:root {
  color-scheme: dark;
  --bg: #11130f;
  --surface: #191c16;
  --surface-raised: #20241c;
  --ink: #f0f2e8;
  --muted: #a7ad9e;
  --quiet: #747b6d;
  --line: rgba(240, 242, 232, 0.14);
  --accent: #c7e833;
  --accent-ink: #15180d;
  --focus: #e1f67b;
  --font-display: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --page: min(1260px, calc(100vw - 48px));
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 6%, rgba(199, 232, 51, 0.08), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 15% 20%, white 0 0.5px, transparent 0.6px),
    radial-gradient(circle at 80% 60%, white 0 0.45px, transparent 0.55px);
  background-size: 8px 8px, 11px 11px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }
.shell { width: var(--page); margin-inline: auto; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 15, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 11px;
  height: 22px;
  background: var(--accent);
  transform: skew(-16deg);
}

.nav-links { display: flex; align-items: center; gap: 10px; }

.nav-link {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--ink);
}

.nav-link--accent { background: var(--accent); color: var(--accent-ink); }
.nav-link--accent:hover { background: var(--focus); color: var(--accent-ink); }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-index-hero { padding: clamp(88px, 12vw, 168px) 0 72px; }

.story-index-hero h1,
.article-heading h1 {
  margin: 0;
  max-width: 1050px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.83;
  text-transform: uppercase;
  text-wrap: balance;
}

.story-index-hero h1 span,
.article-heading h1 span { color: var(--accent); }

.story-index-intro {
  max-width: 680px;
  margin: 34px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  text-wrap: pretty;
}

.latest-story { padding: 0 0 clamp(100px, 12vw, 160px); }

.story-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  background: var(--surface);
}

.story-feature-media { position: relative; min-height: 620px; overflow: hidden; }
.story-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--surface));
}

.story-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}

.story-feature:hover .story-feature-media img { transform: scale(1.035); filter: saturate(1.08); }

.story-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 68px) clamp(40px, 5vw, 72px) 0;
}

.story-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-kicker span:first-child { color: var(--accent); }

.story-feature h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.story-feature p { margin: 28px 0 0; color: var(--muted); font-size: 1.06rem; text-wrap: pretty; }

.story-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: fit-content;
  margin-top: 34px;
  padding: 14px 17px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms ease;
}

.story-link:hover { transform: translateY(-3px); background: var(--focus); }
.story-link:active { transform: translateY(0) scale(0.98); }

.story-schedule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.story-schedule strong { color: var(--ink); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }

.article-progress {
  position: fixed;
  inset: var(--nav-height) 0 auto;
  z-index: 16;
  height: 2px;
  background: rgba(255,255,255,0.05);
}

.article-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

.article-header { padding: clamp(70px, 9vw, 126px) 0 44px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
  color: var(--quiet);
  font-size: 13px;
}

.breadcrumbs a { text-underline-offset: 4px; }

.article-heading h1 { max-width: 1160px; font-size: clamp(3.9rem, 8.8vw, 8rem); }

.article-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 42px;
}

.article-deck > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  text-wrap: pretty;
}

.article-meta { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 12px; line-height: 1.85; text-align: right; text-transform: uppercase; }
.article-meta strong { color: var(--ink); }

.article-hero {
  position: relative;
  width: min(1500px, calc(100vw - 28px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px 30px 8px 30px;
  background: var(--surface);
}

.article-hero img { width: 100%; max-height: 780px; object-fit: cover; }
.article-hero figcaption { position: absolute; right: 16px; bottom: 14px; padding: 7px 10px; background: rgba(17,19,15,.76); color: var(--muted); font-size: 11px; backdrop-filter: blur(8px); }

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px) minmax(120px, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  padding: clamp(64px, 8vw, 112px) 0 clamp(100px, 12vw, 180px);
}

.article-aside { position: sticky; top: calc(var(--nav-height) + 38px); }
.article-aside p { margin: 0 0 12px; color: var(--quiet); font-family: var(--font-mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-aside strong { display: block; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }

.story-body { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.16rem, 1.75vw, 1.34rem); line-height: 1.82; }
.story-body p { margin: 0 0 1.55em; }
.story-body > p:first-child::first-letter { float: left; margin: .09em .12em 0 0; color: var(--accent); font-family: var(--font-display); font-size: 5.6em; font-weight: 950; line-height: .67; }
.story-body h2 { margin: 2.3em 0 .8em; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: .95; text-transform: uppercase; }
.story-break { display: flex; gap: 11px; justify-content: center; margin: 3.6em 0; color: var(--accent); font-size: 11px; letter-spacing: .7em; }

.story-lesson {
  margin-top: 3.2em;
  padding: clamp(28px, 5vw, 48px);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-family: var(--font-body);
}

.story-lesson span { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-lesson h2 { margin: 12px 0 18px; font-size: 2.1rem; }
.story-lesson p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.article-end { grid-column: 2; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.article-end p { color: var(--muted); }

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.site-footer strong { color: var(--ink); font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 860px) {
  :root { --page: min(100% - 32px, 1260px); }
  .nav-link:not(.nav-link--accent) { display: none; }
  .story-feature { grid-template-columns: 1fr; }
  .story-feature-media { min-height: 440px; }
  .story-feature-media::after { background: linear-gradient(0deg, var(--surface), transparent 55%); }
  .story-feature-copy { margin-top: -80px; padding: 30px; }
  .article-deck { grid-template-columns: 1fr; }
  .article-meta { text-align: left; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .article-aside p { margin: 0; }
  .article-aside strong { padding: 0 0 0 14px; border: 0; border-left: 1px solid var(--line); }
  .article-end { grid-column: 1; }
}

@media (max-width: 560px) {
  .story-index-hero h1, .article-heading h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .story-index-intro { margin-left: 0; }
  .story-feature-media { min-height: 330px; }
  .story-feature-copy { margin-top: -54px; padding: 24px; }
  .story-feature h2 { font-size: 2.75rem; }
  .story-schedule { grid-template-columns: 1fr; }
  .article-header { padding-top: 52px; }
  .breadcrumbs { margin-bottom: 36px; }
  .article-hero { width: calc(100vw - 16px); }
  .article-hero img { min-height: 340px; object-fit: cover; }
  .article-layout { padding-top: 52px; }
  .story-body { font-size: 1.12rem; line-height: 1.78; }
  .footer-inner { flex-direction: column; }
}

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