:root {
  --navy-950: #071721;
  --navy-900: #0b1e2d;
  --navy-800: #123247;
  --navy-700: #1a455b;
  --paper: #f3f0e8;
  --paper-2: #faf8f2;
  --ink: #10212b;
  --muted: #52636a;
  --teal: #2cc9b7;
  --teal-dark: #087a70;
  --amber: #d8a24a;
  --brick: #b85d52;
  --line: rgba(11, 30, 45, .16);
  --shadow: 0 20px 60px rgba(7, 23, 33, .12);
  --radius: 1.2rem;
  --content: 76rem;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(44, 201, 183, .09), transparent 21rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: #055d56; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--paper-2);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--teal-dark);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  border-radius: .6rem;
  background: var(--paper-2);
  color: var(--navy-950);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--navy-950);
  color: var(--paper-2);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--paper-2);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 2.2rem;
  aspect-ratio: 1;
  border: 2px solid var(--teal);
  border-radius: 50%;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--teal);
  border-radius: 999px;
}
.brand-mark::before { width: 1.15rem; height: 2px; left: .36rem; top: .66rem; transform: rotate(24deg); }
.brand-mark::after { width: .72rem; height: 2px; right: .28rem; bottom: .54rem; transform: rotate(-35deg); }

.primary-nav ul,
.footer-nav,
.crumbs ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25rem;
}

.primary-nav a {
  display: block;
  padding: .62rem .82rem;
  border-radius: .65rem;
  color: #dae4e7;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { background: rgba(44,201,183,.14); color: #fff; }

.header-tools { display: flex; align-items: center; gap: .65rem; }
.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.7rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: .7rem;
  color: #fff;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -.38rem; }
.menu-bars::after { top: .38rem; }

.preview-strip {
  padding: .46rem 1rem;
  background: #fff2d7;
  color: #553b0b;
  border-bottom: 1px solid #dfc27a;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--paper-2);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 46%, rgba(44,201,183,.08) 46.2%, transparent 46.7%),
    linear-gradient(68deg, transparent 72%, rgba(216,162,74,.08) 72.2%, transparent 72.7%);
}

.hero-inner {
  position: relative;
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.3rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, .82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.crumbs { margin-bottom: 2rem; font-size: .84rem; color: #b9c9ce; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #718a94; }
.crumbs a { color: #d9e8ea; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .75rem;
  color: #8ee4da;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--teal); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  text-wrap: balance;
}

.lead {
  max-width: 67ch;
  margin: 1.25rem 0 0;
  color: #d7e2e5;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.hero-figure {
  margin: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0e2939;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transform: rotate(1.2deg);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption { padding: .7rem .9rem; color: #b7c8cd; font-size: .78rem; }

.signal-row {
  width: min(var(--content), calc(100% - 2rem));
  margin: -1.4rem auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.signal-card,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper-2);
  box-shadow: 0 12px 38px rgba(7,23,33,.08);
}

.signal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  min-height: 100%;
  padding: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.signal-card:hover { border-color: var(--teal-dark); color: var(--ink); transform: translateY(-2px); }
.signal-number {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .65rem;
  background: var(--navy-900);
  color: var(--teal);
  font-weight: 800;
}
.signal-card strong { display: block; line-height: 1.3; }
.signal-card span:last-child { color: var(--muted); font-size: .86rem; line-height: 1.45; }

.content-shell {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.8rem 0 6rem;
  display: grid;
  grid-template-columns: minmax(0, 47rem) minmax(14rem, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.article-content { min-width: 0; }
.article-content h2 {
  margin: 3.4rem 0 1rem;
  padding-top: .4rem;
  color: var(--navy-900);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  text-wrap: balance;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 2.15rem 0 .7rem; color: var(--navy-800); font-size: 1.34rem; }
.article-content p { max-width: 70ch; margin: 0 0 1.18rem; }
.article-content ul,
.article-content ol { max-width: 68ch; margin: 0 0 1.5rem; padding-left: 1.35rem; }
.article-content li { margin-bottom: .48rem; padding-left: .25rem; }
.article-content li::marker { color: var(--teal-dark); font-weight: 800; }
.article-content blockquote {
  margin: 1.7rem 0;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  border-left: .35rem solid var(--amber);
  border-radius: 0 .85rem .85rem 0;
  background: #fff8e9;
  color: #3d321d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}
.article-content code {
  padding: .12em .35em;
  border: 1px solid #c9d0cf;
  border-radius: .32rem;
  background: #fff;
  color: #263a43;
  font-size: .9em;
}

.table-scroll { margin: 1.5rem 0 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: .92rem; }
th, td { padding: .85rem .9rem; border-bottom: 1px solid #dce1df; text-align: left; vertical-align: top; }
th { background: var(--navy-900); color: #fff; line-height: 1.3; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8f6f0; }

.toc {
  position: sticky;
  top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(250,248,242,.9);
  backdrop-filter: blur(12px);
}
.toc strong { display: block; margin-bottom: .7rem; color: var(--navy-900); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: block; padding: .58rem 0; color: #304a55; text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc a:hover { color: var(--teal-dark); }
.toc-note { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

.topic-section {
  width: min(var(--content), calc(100% - 2rem));
  margin: 3.5rem auto -1.5rem;
}
.section-kicker { margin: 0 0 .35rem; color: var(--teal-dark); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.topic-section h2 { margin: 0 0 1.35rem; color: var(--navy-900); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic-card { padding: 1.35rem; }
.topic-card .tag { color: var(--teal-dark); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.topic-card h3 { margin: .5rem 0 .6rem; color: var(--navy-900); font-size: 1.35rem; }
.topic-card p { margin: 0 0 .85rem; color: var(--muted); font-size: .92rem; }
.topic-card a { font-weight: 800; }

.secondary-figure {
  margin: 2.4rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.secondary-figure img { width: 100%; height: auto; }
.secondary-figure figcaption { padding: .8rem 1rem; color: #d6e2e5; font-size: .82rem; }

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 3rem;
  padding: 1rem;
  border-radius: .85rem;
  background: #e5ece8;
  color: #33484f;
  font-size: .82rem;
}
.source-meta span { padding-right: .55rem; border-right: 1px solid #b8c5c2; }
.source-meta span:last-child { border-right: 0; }

.site-footer {
  background: var(--navy-950);
  color: #c9d7db;
  border-top: .45rem solid var(--teal);
}
.footer-inner {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
  padding: 3.2rem 0 1.4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; }
.footer-title { margin: 0 0 .65rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.footer-copy { max-width: 44ch; margin: 0; font-size: .9rem; }
.footer-nav { columns: 2; column-gap: 2rem; }
.footer-nav li { break-inside: avoid; margin-bottom: .55rem; }
.footer-nav a { color: #d7e4e7; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #91a8b0; font-size: .78rem; }

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 5rem 1rem;
  text-align: center;
}
.not-found-inner { max-width: 42rem; }
.not-found-code { margin: 0; color: var(--teal-dark); font-weight: 900; font-size: 5rem; line-height: 1; }
.not-found h1 { max-width: none; margin: 1rem 0; color: var(--navy-900); font-size: clamp(2.2rem, 6vw, 4rem); }
.not-found p { color: var(--muted); }
.button-link {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: .72rem;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button-link:hover { background: var(--teal-dark); color: #fff; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.6rem; }
  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    margin: 0 -1rem;
    padding: .4rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; padding-top: .5rem; }
  .primary-nav a { min-height: 2.8rem; display: flex; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 42rem; transform: none; }
  .signal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-shell { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .toc ol { columns: 2; column-gap: 1.5rem; }
  .toc li { break-inside: avoid; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-inner { padding-top: 1.6rem; }
  .crumbs { margin-bottom: 1.4rem; }
  .signal-row { grid-template-columns: 1fr; margin-top: 1rem; }
  .content-shell { padding-top: 3.2rem; }
  .topic-section { margin-top: 2.8rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { columns: 1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .header-inner { width: min(100% - 1.2rem, var(--content)); gap: .7rem; }
  .brand-name { font-size: .92rem; }
  .age-badge { min-width: 2.25rem; height: 2.25rem; font-size: .85rem; }
  .menu-toggle { width: 2.7rem; justify-content: center; padding-inline: .6rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .primary-nav ul { grid-template-columns: 1fr; }
  .hero-inner,
  .content-shell,
  .topic-section,
  .signal-row,
  .footer-inner { width: min(100% - 1.2rem, var(--content)); }
  .hero-inner { padding-bottom: 2.4rem; }
  h1 { font-size: clamp(2.1rem, 11vw, 3.15rem); }
  .lead { font-size: 1rem; }
  .article-content h2 { font-size: 1.7rem; }
  th, td { padding: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

