:root {
  color-scheme: dark;
  --ink: #f2f5ee;
  --muted: #9aa8a1;
  --dim: #6f7d77;
  --line: rgba(222, 239, 229, 0.13);
  --line-strong: rgba(222, 239, 229, 0.23);
  --surface: #0d1714;
  --surface-2: #13201c;
  --paper: #07110f;
  --mint: #46e6b0;
  --cyan: #61d9f4;
  --orange: #ff8f5a;
  --radius: 18px;
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% -10%, rgba(70, 230, 176, 0.12), transparent 30rem),
    radial-gradient(circle at -10% 38%, rgba(97, 217, 244, 0.07), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 15, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 132px; height: auto; }
.header-inner nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header-inner nav a {
  position: relative;
  color: #b9c4be;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { color: var(--ink); }
.header-inner nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -27px;
  left: 0;
  height: 2px;
  background: var(--mint);
  content: "";
}
.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #d8e3dd;
  font-size: 0.78rem;
  font-weight: 700;
}
.brief-pill span, .signal-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(70, 230, 176, 0.1);
}

.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.7fr); gap: 64px; align-items: end; padding-block: 112px 90px; }
.kicker {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero h1, .topic-hero h1, .article-header h1, .prose-page h1, .not-found h1 {
  max-width: 920px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 8vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}
.hero h1 span { color: #71877d; }
.hero-deck { max-width: 720px; margin: 34px 0 0; color: #b4c0ba; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; color: var(--dim); font-size: 0.79rem; text-transform: uppercase; letter-spacing: 0.07em; }
.hero-proof span { display: flex; align-items: baseline; gap: 7px; }
.hero-proof strong { color: var(--ink); font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: 0; }
.signal-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(19, 32, 28, 0.86), rgba(10, 22, 18, 0.9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}
.signal-pulse { position: absolute; top: 34px; right: 32px; }
.signal-label { margin: 0 0 14px; color: var(--dim); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.signal-card > p:last-child { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.45; }

.feature-section, .latest-section { padding-block: 56px 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .standards-band h2, .article-content h2, .prose-page h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.section-heading > p { max-width: 400px; margin: 0; color: var(--dim); font-size: 0.9rem; text-align: right; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.7fr); gap: 26px; }
.lead-card { display: grid; min-height: 670px; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.lead-media { position: relative; min-height: 390px; overflow: hidden; background: #101b18; }
.lead-media img, .story-media img, .compact-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.lead-card:hover .lead-media img, .story-card:hover .story-media img, .compact-card:hover .compact-media img { transform: scale(1.025); }
.source-chip, .story-media > span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(7, 17, 15, 0.76);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.lead-body { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 34px 34px; }
.byline { display: flex; justify-content: space-between; gap: 16px; width: 100%; color: var(--dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.byline span { color: var(--cyan); }
.lead-body h3 { margin: 16px 0 13px; font-family: Georgia, serif; font-size: clamp(2.1rem, 3.6vw, 3.55rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.lead-body h3 a:hover, .compact-card h3 a:hover, .story-card h3 a:hover { color: var(--mint); }
.lead-body > p { max-width: 750px; margin: 0 0 20px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--ink); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.text-link span { color: var(--mint); transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(3px); }
.feature-stack { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; }
.compact-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compact-media { overflow: hidden; min-height: 116px; border-radius: 11px; background: var(--surface-2); }
.compact-card > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.compact-card h3 { margin: 10px 0 0; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; line-height: 1.15; }
.media-fallback { display: grid; width: 100%; height: 100%; min-height: 130px; place-items: center; color: rgba(255,255,255,0.25); font-size: 2rem; font-weight: 900; letter-spacing: -0.07em; }

.topic-strip { border-block: 1px solid var(--line); background: rgba(19, 32, 28, 0.44); }
.topic-list { display: grid; grid-template-columns: repeat(6, 1fr); }
.topic-list a { padding: 24px 18px; border-right: 1px solid var(--line); font-family: Georgia, serif; font-size: 1.15rem; transition: background 0.2s ease; }
.topic-list a:first-child { border-left: 1px solid var(--line); }
.topic-list a:hover { background: rgba(70, 230, 176, 0.07); }
.topic-list span { display: block; margin-bottom: 5px; color: var(--dim); font-family: Inter, sans-serif; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.latest-section { padding-top: 92px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.story-body { min-height: 260px; padding: 23px 24px 26px; }
.story-card h3 { margin: 13px 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.022em; line-height: 1.13; }
.story-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.card-link { display: grid; width: 36px; height: 36px; margin-top: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint); }
.card-link:hover { background: var(--mint); color: #06130e; }

.standards-band { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 70px; margin-bottom: 110px; padding: 54px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(135deg, rgba(22, 42, 35, 0.9), rgba(10, 25, 20, 0.92)); }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.standards-grid article { border-left: 1px solid var(--line-strong); padding-left: 22px; }
.standards-grid span { color: var(--orange); font-size: 0.7rem; font-weight: 800; }
.standards-grid h3 { margin: 18px 0 8px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.standards-grid p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.topic-hero { padding-block: 100px 70px; border-bottom: 1px solid var(--line); }
.topic-hero h1 { font-size: clamp(4.4rem, 10vw, 9rem); }
.topic-hero > p:last-child { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 1.2rem; }
.empty-copy { color: var(--muted); }

.article-shell { max-width: 1160px; padding-block: 76px 110px; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 54px; color: var(--dim); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.breadcrumbs a:hover { color: var(--mint); }
.article-header { max-width: 960px; margin-bottom: 42px; }
.article-header h1 { font-size: clamp(3.2rem, 7.1vw, 6.5rem); line-height: 0.94; }
.article-deck { max-width: 850px; margin: 30px 0 0; color: #afbbb5; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 30px; color: var(--dim); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.article-meta strong { color: var(--cyan); }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #000; box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 90px; margin-top: 70px; }
.article-content section { margin-bottom: 64px; }
.article-content h2 { margin-bottom: 25px; font-size: clamp(2rem, 3.5vw, 3rem); }
.tldr { padding: 32px; border-left: 3px solid var(--mint); background: linear-gradient(90deg, rgba(70,230,176,.09), transparent); }
.tldr p:last-child { margin: 0; font-family: Georgia, serif; font-size: 1.38rem; line-height: 1.5; }
.takeaways, .caveats ul { display: grid; gap: 18px; padding: 0; list-style: none; }
.takeaways li, .caveats li { position: relative; padding-left: 30px; color: #c4cec9; font-size: 1.02rem; line-height: 1.65; }
.takeaways li::before { position: absolute; top: .55em; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); content: ""; }
.chapters { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.chapters a { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.chapters a:last-child { border-bottom: 0; }
.chapters a:hover { background: rgba(70,230,176,.055); }
.chapters time { color: var(--orange); font: 700 0.82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.chapters strong { display: block; }
.chapters small { display: block; margin-top: 4px; color: var(--muted); font-size: .83rem; }
.caveats { padding: 28px; border: 1px solid rgba(255,143,90,.32); border-radius: var(--radius); background: rgba(255,143,90,.05); }
.article-aside { display: flex; flex-direction: column; gap: 18px; }
.source-box, .method-box { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source-box h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.source-box > p:not(.kicker), .method-box p { color: var(--muted); font-size: .86rem; }
.method-box h3 { margin-top: 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.method-box a { color: var(--mint); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.button { display: inline-flex; justify-content: center; margin-top: 12px; padding: 12px 16px; border-radius: 999px; background: var(--mint); color: #06130e; font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.button:hover { background: var(--cyan); }

.prose-page { max-width: 900px; padding-block: 105px 130px; }
.prose-page h1 { max-width: 850px; font-size: clamp(3.5rem, 7vw, 6.4rem); }
.prose-page .lede { margin: 35px 0 80px; color: #bac6c0; font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.55; }
.prose-page section { margin: 0 0 58px; }
.prose-page h2 { margin-bottom: 21px; font-size: 2.3rem; }
.prose-page section p, .prose-page li { color: #aebbb4; font-size: 1.02rem; line-height: 1.75; }
.prose-page section a { color: var(--mint); }
.prose-page li { margin-bottom: 10px; }
.not-found, .empty-state { min-height: 62vh; padding-block: 110px; }
.not-found h1 { font-size: clamp(3.3rem, 7vw, 6.4rem); }
.not-found > p:not(.kicker), .empty-state > p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line); background: #050d0b; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 60px; padding-block: 66px; }
.footer-grid > div:first-child p { color: var(--dim); }
.footer-grid h2 { margin: 0 0 18px; color: var(--dim); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a { display: block; margin-bottom: 10px; color: #b1bdb7; font-size: .84rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 19px 27px; border-top: 1px solid var(--line); color: var(--dim); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 1040px) {
  .header-inner nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .signal-card { max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .topic-list { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-band { grid-template-columns: 1fr; }
  .article-layout { gap: 46px; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .header-inner { min-height: 62px; }
  .brand img { width: 112px; }
  .brief-pill { font-size: .68rem; }
  .hero { gap: 36px; padding-block: 70px 58px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.4rem); }
  .hero-deck { margin-top: 25px; }
  .hero-proof { gap: 14px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > p { text-align: left; }
  .feature-section, .latest-section { padding-block: 42px 64px; }
  .lead-card { min-height: 0; }
  .lead-media { min-height: 240px; }
  .lead-body { padding: 24px; }
  .lead-body h3 { font-size: 2.15rem; }
  .feature-stack { display: grid; grid-template-columns: 1fr; }
  .compact-card { grid-template-columns: 120px 1fr; }
  .compact-media { min-height: 98px; }
  .topic-list { grid-template-columns: repeat(2, 1fr); }
  .topic-list a:nth-child(odd) { border-left: 1px solid var(--line); }
  .story-grid { grid-template-columns: 1fr; }
  .story-body { min-height: 220px; }
  .standards-band { gap: 35px; margin-bottom: 70px; padding: 30px 23px; }
  .standards-grid { grid-template-columns: 1fr; }
  .topic-hero { padding-block: 70px 50px; }
  .topic-hero h1 { font-size: clamp(4rem, 22vw, 7rem); }
  .article-shell { padding-block: 48px 80px; }
  .breadcrumbs { margin-bottom: 38px; }
  .article-header h1 { font-size: clamp(2.9rem, 14vw, 4.6rem); }
  .article-deck { margin-top: 22px; }
  .video-frame { width: calc(100% + 28px); margin-left: -14px; border-radius: 0; }
  .article-layout { grid-template-columns: 1fr; margin-top: 46px; }
  .article-aside { grid-row: 1; }
  .tldr { padding: 23px; }
  .chapters a { grid-template-columns: 57px 1fr; gap: 13px; padding: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

