:root {
  --site-bg: #f6f1e8;
  --surface: #fffdf9;
  --surface-soft: #efe7d8;
  --surface-strong: #d8c7ab;
  --ink: #1c2024;
  --muted: #5f625f;
  --accent: #8a4b2a;
  --accent-deep: #5f2f19;
  --border: rgba(28, 32, 36, 0.11);
  --shadow: 0 28px 60px rgba(37, 24, 15, 0.08);
  --radius-lg: 30px;
  --radius-md: 18px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(138, 75, 42, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f3ecdf 100%);
  color: var(--ink);
  font-family: var(--sans);
}

body,
input,
textarea,
select {
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-deep);
}

#page-wrapper {
  background: transparent;
}

#header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 37, 29, 0.92), rgba(94, 55, 37, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

#header::before {
  content: "";
  position: absolute;
  inset: auto -8rem -7rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: rgba(255, 233, 205, 0.12);
  filter: blur(8px);
}

#header h1 {
  margin: 0;
}

#logo {
  color: #fff7ee;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.4rem 0 0;
}

#nav a {
  border: 1px solid rgba(255, 245, 234, 0.2);
  border-radius: 999px;
  color: rgba(255, 247, 238, 0.85);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.1rem;
  text-transform: uppercase;
  transition: all 180ms ease;
}

#nav a:hover,
#nav a.current-page-item {
  background: rgba(255, 247, 238, 0.12);
  border-color: rgba(255, 247, 238, 0.38);
  color: #fffdf8;
}

.halcyonic-language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.halcyonic-language-nav a {
  border-bottom: 1px solid transparent;
  color: rgba(255, 247, 238, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  padding-bottom: 0.1rem;
  text-transform: uppercase;
}

.halcyonic-language-nav a.is-current,
.halcyonic-language-nav a:hover {
  border-color: rgba(255, 247, 238, 0.65);
  color: #fffdf8;
}

#banner {
  padding: 4.5rem 0 5rem;
}

#banner p {
  color: rgba(255, 247, 238, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.8rem);
  line-height: 1.18;
  margin-bottom: 1.4rem;
  max-width: 12ch;
}

.button-large {
  background: linear-gradient(180deg, #f7dcb9, #e9bf8c);
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(17, 10, 6, 0.16);
  color: #3f2313 !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
}

.halcyonic-banner-image,
.story-card__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.halcyonic-banner-image img,
.story-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.halcyonic-banner-image picture,
.story-card__image picture {
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  width: 100%;
}

.entry-thumbnail picture {
  display: block;
  width: 100%;
}

.entry-thumbnail picture img {
  display: block;
  height: auto;
  width: 100%;
}

.media-placeholder {
  align-items: flex-end;
  background:
    linear-gradient(145deg, rgba(197, 164, 123, 0.28), rgba(117, 79, 52, 0.08)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), rgba(244, 237, 223, 0.75));
  color: rgba(35, 25, 16, 0.94);
  display: flex;
  position: relative;
  text-decoration: none;
}

.media-placeholder--card,
.media-placeholder--banner {
  overflow: hidden;
}

.media-placeholder--card {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 1rem 1rem 1.1rem;
}

.media-placeholder--banner {
  aspect-ratio: 4 / 3;
  min-height: 18rem;
  padding: 1.4rem 1.5rem;
}

.entry-thumbnail--placeholder .media-placeholder--article {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 18rem;
  padding: 1.5rem 1.6rem;
}

.media-placeholder::before {
  border: 1px solid rgba(117, 79, 52, 0.16);
  border-radius: 20px;
  content: "";
  inset: 0.85rem;
  position: absolute;
}

.media-placeholder::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
}

.media-placeholder__eyebrow,
.media-placeholder__title {
  position: relative;
  z-index: 1;
}

.media-placeholder__eyebrow {
  color: rgba(83, 57, 37, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.media-placeholder__title {
  color: rgba(83, 57, 37, 0.9);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  max-width: 13ch;
}

.media-placeholder--banner .media-placeholder__title,
.media-placeholder--article .media-placeholder__title {
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  max-width: 10ch;
}

.media-placeholder[data-category="articles"] {
  background:
    linear-gradient(145deg, rgba(208, 170, 132, 0.26), rgba(122, 81, 48, 0.08)),
    radial-gradient(circle at top right, rgba(255, 248, 239, 0.98), rgba(245, 235, 219, 0.78));
}

.media-placeholder[data-category="home-appliances"] {
  background:
    linear-gradient(145deg, rgba(153, 185, 202, 0.32), rgba(65, 108, 128, 0.1)),
    radial-gradient(circle at top right, rgba(247, 251, 255, 0.98), rgba(229, 239, 246, 0.8));
}

.media-placeholder[data-category="building-materials"] {
  background:
    linear-gradient(145deg, rgba(190, 168, 140, 0.34), rgba(122, 87, 56, 0.12)),
    radial-gradient(circle at top right, rgba(250, 244, 236, 0.98), rgba(233, 222, 208, 0.82));
}

.media-placeholder[data-category="games"] {
  background:
    linear-gradient(145deg, rgba(159, 151, 221, 0.3), rgba(89, 80, 147, 0.1)),
    radial-gradient(circle at top right, rgba(246, 244, 255, 0.98), rgba(231, 227, 250, 0.82));
}

.media-placeholder[data-category="hobby"] {
  background:
    linear-gradient(145deg, rgba(168, 198, 158, 0.3), rgba(88, 122, 79, 0.1)),
    radial-gradient(circle at top right, rgba(247, 252, 243, 0.98), rgba(231, 241, 224, 0.82));
}

.media-placeholder[data-category="auto"] {
  background:
    linear-gradient(145deg, rgba(160, 170, 186, 0.3), rgba(71, 80, 94, 0.12)),
    radial-gradient(circle at top right, rgba(247, 249, 252, 0.98), rgba(230, 235, 241, 0.84));
}

.media-placeholder[data-category="natural-phenomena"] {
  background:
    linear-gradient(145deg, rgba(176, 196, 225, 0.3), rgba(95, 122, 168, 0.1)),
    radial-gradient(circle at top right, rgba(244, 249, 255, 0.98), rgba(226, 236, 248, 0.84));
}

#features,
#content,
.halcyonic-page-lede,
#footer {
  position: relative;
}

#features {
  margin-top: -2.25rem;
  padding-bottom: 1.5rem;
}

.halcyonic-topic {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
  padding: 1.6rem 1.5rem 1.7rem;
}

.halcyonic-topic h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.halcyonic-topic p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.halcyonic-page-lede {
  padding: 4rem 0 1.5rem;
}

.halcyonic-page-lede header {
  max-width: 48rem;
}

.halcyonic-page-lede h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.halcyonic-page-lede p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 42rem;
}

.halcyonic-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.halcyonic-entry-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
}

#content {
  padding-bottom: 4.25rem;
}

#content header h2,
#content header h3,
#footer h2 {
  font-family: var(--serif);
}

#content .container,
#footer .container {
  position: relative;
  z-index: 1;
}

.story-grid .row {
  row-gap: 1.4rem;
}

.pt-60[aria-label],
.pt-60[aria-label="Page navigation"],
.pt-60[aria-label="Навигация по страницам"] {
  margin-top: 2rem;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  align-items: center;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pagination .page-link:hover {
  background: #fffdf8;
  border-color: rgba(138, 75, 42, 0.32);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(180deg, #f7dcb9, #e9bf8c);
  border-color: rgba(138, 75, 42, 0.25);
  color: #3f2313;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  background: rgba(239, 231, 216, 0.5);
  border-color: rgba(28, 32, 36, 0.06);
  color: rgba(95, 98, 95, 0.65);
  cursor: default;
  pointer-events: none;
}

.pagination .sr-only {
  display: none;
}

.page-prose {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  padding: 2rem 2.1rem;
}

.page-prose__header {
  margin-bottom: 0.9rem;
}

.page-prose__header h2 {
  margin-bottom: 0;
}

.page-prose p + p {
  margin-top: 1rem;
}

.stat-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.stat-strip article,
.team-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(37, 24, 15, 0.08);
  padding: 1.2rem 1.15rem;
}

.stat-strip strong {
  color: var(--accent-deep);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-strip span,
.team-card__eyebrow,
.team-card__topics {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.team-card__header {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.team-card__avatar {
  border: 1px solid rgba(138, 75, 42, 0.16);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 24, 15, 0.12);
  flex: 0 0 72px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.team-card__intro {
  min-width: 0;
}

.team-card__intro .team-card__eyebrow {
  margin-bottom: 0.25rem;
}

.halcyonic-sidebar__block {
  padding: 1.8rem 1.6rem;
}

.team-card h3 {
  font-size: 1.45rem;
  margin: 0;
}

.team-card h3 a {
  color: var(--accent-deep);
  text-decoration: none;
}

.team-card p:last-child {
  margin-bottom: 0;
}

.story-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  box-shadow: 0 34px 70px rgba(37, 24, 15, 0.14);
  transform: translateY(-5px);
}

.story-card__copy {
  padding: 1.1rem 1.2rem 1.35rem;
}

.story-card__meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.story-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.18;
  margin-bottom: 0.5rem;
}

.story-card__excerpt {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.halcyonic-sidebar,
.halcyonic-author-box,
.halcyonic-related-posts,
#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  padding: 2rem;
}

.halcyonic-sidebar {
  padding: 1.4rem;
}

.halcyonic-sidebar > section + section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.halcyonic-sidebar h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.halcyonic-sidebar .link-list li {
  border-top-color: var(--border);
}

.halcyonic-sidebar p,
.halcyonic-sidebar li a {
  color: var(--muted);
}

.halcyonic-author-box {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.5rem 1fr;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
}

.halcyonic-author-box img {
  aspect-ratio: 1;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  width: 4.5rem;
}

.halcyonic-author-role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem !important;
  text-transform: uppercase;
}

.halcyonic-article-shell,
.halcyonic-related-posts {
  margin-bottom: 1.5rem;
  padding: 2rem !important;
}

.halcyonic-article-shell .entry-thumbnail img {
  border-radius: 22px;
  display: block;
  width: 100%;
}

.entry-content {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.9;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
  margin-bottom: 1.1rem;
}

.entry-content strong,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  line-height: 1.15;
  margin-top: 1.9rem;
}

.entry-content h2 {
  font-size: 2rem;
}

.entry-content h3 {
  font-size: 1.55rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content img {
  border-radius: 18px;
}

.author-info,
.entry-comments {
  background: var(--surface-soft) !important;
  border: 1px solid rgba(138, 75, 42, 0.1) !important;
  border-radius: 22px !important;
}

.entry-comments {
  display: none;
}

.halcyonic-related-posts header {
  margin-bottom: 1.2rem;
}

#footer {
  background: linear-gradient(180deg, rgba(43, 34, 28, 0.96), rgba(28, 22, 18, 0.98));
  color: rgba(255, 247, 238, 0.85);
  margin-top: 2rem;
  padding-top: 3.5rem;
}

#footer a {
  color: rgba(255, 247, 238, 0.75);
}

#footer a:hover {
  color: #fffdf8;
}

#footer h2 {
  color: #fffdf8;
  margin-bottom: 0.8rem;
}

#footer .link-list li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

#copyright {
  background: transparent;
  color: rgba(255, 247, 238, 0.55);
  padding: 1.8rem 1rem 2.5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-scrolled #header {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 16px 45px rgba(16, 10, 6, 0.14);
}

@media screen and (max-width: 980px) {
  #banner {
    padding-top: 3.2rem;
  }

  .halcyonic-page-lede {
    padding-top: 3rem;
  }

  .halcyonic-author-box {
    grid-template-columns: 1fr;
  }

  #content .col-8 > section,
  #content .col-9 > section,
  #content .col-4 > section,
  .halcyonic-article-shell,
  .halcyonic-related-posts {
    padding: 1.45rem !important;
  }
}

@media screen and (max-width: 736px) {
  #nav {
    justify-content: flex-start;
  }

  .halcyonic-language-nav {
    justify-content: flex-start;
  }

  #features {
    margin-top: -1.25rem;
  }

  .story-card h3 {
    font-size: 1.15rem;
  }

  .entry-content {
    font-size: 1rem;
  }

  .pagination {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .pagination .page-link {
    min-height: 2.45rem;
    min-width: 2.45rem;
    padding: 0.55rem 0.85rem;
  }

  .stat-strip,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card__header {
    align-items: flex-start;
  }

  .page-prose {
    padding: 1.5rem 1.25rem;
  }
}

/* Layout refinement pass: calmer hierarchy, safer wrapping, better mobile fit */
:root {
  --container-max: 1180px;
}

body {
  line-height: 1.65;
}

.container {
  width: min(var(--container-max), calc(100% - 3rem));
}

a {
  text-underline-offset: 0.16em;
}

#header {
  overflow: hidden;
}

#header > .container {
  height: auto !important;
  min-height: 0;
  padding: 0.8rem 0 1.15rem;
}

#page-wrapper {
  padding-top: 0 !important;
}

#titleBar,
#navPanel {
  display: none !important;
}

#header > .container:first-child {
  display: block !important;
}

#header .row {
  margin: 0 !important;
}

#header .row > * {
  padding: 0 !important;
}

#header .col-12 {
  align-items: start;
  display: grid;
  grid-template-areas:
    "lang lang"
    "logo nav";
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0;
  row-gap: 1rem;
}

#header h1 {
  bottom: auto;
  grid-area: logo;
  left: auto;
  margin-top: 0.15rem;
  position: static;
  right: auto;
  top: auto;
}

#logo {
  display: block;
  line-height: 1;
  max-width: 13ch;
  overflow-wrap: normal;
  white-space: nowrap;
  text-wrap: nowrap;
}

#nav {
  align-items: center;
  align-self: end;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  grid-area: nav;
  justify-content: flex-end;
  justify-self: end;
  margin: 0;
  max-width: 100%;
  padding-top: 0;
  position: static;
  top: auto;
  width: auto;
}

#nav a {
  align-items: center;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.14em;
  min-height: 44px;
  opacity: 0.82;
  padding: 0 0.15rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}

#nav a::after {
  background: rgba(255, 247, 238, 0.72);
  bottom: -0.28rem;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#nav a:hover,
#nav a.current-page-item {
  color: #fffdf8;
  opacity: 1;
}

#nav a:hover::after,
#nav a.current-page-item::after {
  opacity: 1;
  transform: scaleX(1);
}

.halcyonic-language-nav {
  align-items: center;
  display: flex;
  gap: 0.45rem 0.75rem;
  grid-area: lang;
  justify-content: flex-start;
  margin-top: 0;
  position: static;
  top: auto;
  width: 100%;
}

.halcyonic-language-nav a {
  align-items: center;
  color: rgba(255, 247, 238, 0.78);
  display: inline-flex;
  font-size: 0.72rem;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 44px;
  min-width: 44px;
  opacity: 0.85;
  text-decoration: none;
  text-transform: uppercase;
}

#banner {
  padding: 3.15rem 0 4.4rem;
}

#banner .row {
  align-items: center;
  row-gap: 1.8rem;
}

#banner p {
  font-size: clamp(1.35rem, 2.35vw, 2.55rem);
  line-height: 1.12;
  max-width: 15ch;
  text-wrap: balance;
}

.button-large {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.halcyonic-banner-image img,
.story-card__image img,
.halcyonic-banner-image picture,
.story-card__image picture {
  aspect-ratio: 16 / 11;
}

#features {
  margin-top: -1.3rem;
}

.halcyonic-topic {
  padding: 1.45rem 1.35rem 1.55rem;
}

.halcyonic-topic h2 {
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  text-wrap: balance;
}

.halcyonic-topic h2 a,
.story-card h3 a,
.team-card h3 a,
.halcyonic-sidebar .link-list li a,
#footer a {
  text-decoration: none;
}

.halcyonic-page-lede {
  padding: 3.35rem 0 1.35rem;
}

.halcyonic-page-lede header {
  max-width: 52rem;
}

.halcyonic-page-lede h2 {
  font-size: clamp(2.1rem, 4.7vw, 4.75rem);
  line-height: 1.01;
  margin-bottom: 0.75rem;
  max-width: 12ch;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.halcyonic-page-lede p {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 56ch;
}

.story-grid .row {
  row-gap: 1.6rem;
}

.page-prose {
  padding: 2rem 2rem 2.1rem;
}

.stat-strip article,
.team-card {
  padding: 1.25rem 1.2rem;
}

.team-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.story-card {
  border-radius: 26px;
}

.story-card__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem 1.4rem;
}

.story-card__meta {
  font-size: 0.74rem;
  margin-bottom: 0;
}

.story-card h3 {
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.2;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.story-card__excerpt {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  padding: 2.1rem;
}

@media screen and (min-width: 981px) {
  .halcyonic-sidebar {
    position: sticky;
    top: 1.35rem;
  }
}

.halcyonic-sidebar .link-list li a {
  display: block;
  padding: 0.22rem 0;
}

.halcyonic-article-shell,
.halcyonic-related-posts {
  padding: 2.15rem !important;
}

.halcyonic-article-shell .entry-thumbnail {
  margin-bottom: 1.65rem !important;
}

.entry-content {
  font-size: clamp(1.02rem, 1vw, 1.1rem);
  line-height: 1.84;
  margin: 0 auto;
  max-width: 68ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  text-wrap: balance;
}

.halcyonic-related-posts h2 {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

#copyright {
  text-align: center;
}

@media screen and (max-width: 980px) {
  .container {
    width: min(var(--container-max), calc(100% - 2.25rem));
  }

  #header {
    text-align: left;
  }

  #header > .container:first-child {
    display: block;
  }

  #page-wrapper {
    padding-top: 0;
  }

  #titleBar,
  #navPanel {
    display: none !important;
  }

  body.navPanel-visible #page-wrapper,
  body.navPanel-visible #titleBar,
  body.navPanel-visible #navPanel {
    transform: none;
  }

  #header .col-12 {
    grid-template-areas:
      "lang"
      "logo"
      "nav";
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 0.95rem;
  }

  #logo {
    max-width: none;
    white-space: normal;
    text-wrap: balance;
  }

  #nav,
  .halcyonic-language-nav {
    justify-content: flex-start;
    justify-self: stretch;
    max-width: none;
  }

  #nav {
    align-self: start;
    width: 100%;
  }

  #nav {
    gap: 1rem 1.1rem;
    padding-top: 0.15rem;
  }

  #banner {
    padding-top: 3rem;
  }

  .halcyonic-page-lede h2 {
    max-width: 14ch;
  }
}

@media screen and (max-width: 736px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  #logo {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
    max-width: 9ch;
  }

  #nav {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    width: 100%;
  }

  .halcyonic-language-nav {
    gap: 0.35rem 0.65rem;
  }

  #nav a {
    min-width: 0;
    padding: 0.6rem 0;
  }

  #features {
    margin-top: -0.5rem;
  }

  .halcyonic-page-lede h2 {
    font-size: clamp(1.95rem, 11vw, 3rem);
    max-width: 100%;
  }

  .halcyonic-page-lede p {
    font-size: 0.98rem;
  }

  .story-card__excerpt {
    -webkit-line-clamp: 5;
  }

  #content .col-8 > section,
  #content .col-9 > section,
  #content .col-4 > section,
  .halcyonic-article-shell,
  .halcyonic-related-posts {
    padding: 1.25rem !important;
  }
}
