:root {
  --paper: #f4f0e6;
  --paper-deep: #eae4d6;
  --surface: #fbf9f3;
  --ink: #172927;
  --ink-soft: #40524e;
  --muted: #6b7974;
  --line: #ccd2c8;
  --line-strong: #a5b3aa;
  --teal: #11796f;
  --teal-bright: #0d8f80;
  --teal-wash: #dcebe4;
  --amber: #a96923;
  --shadow: 0 24px 60px rgba(34, 52, 45, .08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-theme='dark'] {
  --paper: #101b1a;
  --paper-deep: #172522;
  --surface: #182624;
  --ink: #edf1e9;
  --ink-soft: #c1cec5;
  --muted: #9eaea5;
  --line: #334841;
  --line-strong: #526b61;
  --teal: #76d3c0;
  --teal-bright: #8de6d2;
  --teal-wash: #203d36;
  --amber: #e1ac65;
  --shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-bright); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--teal); color: var(--paper); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--teal-bright); }
.site-header { position: sticky; top: 0; z-index: 50; min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 12px clamp(20px, 4vw, 64px); background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
.brand b { color: var(--teal); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--teal); font-size: 24px; line-height: 1; }
.chapter-nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.chapter-nav a { position: relative; color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.chapter-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--teal); transition: right .2s ease; }
.chapter-nav a:hover, .chapter-nav a.active { color: var(--ink); }
.chapter-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.text-action { font-size: 12px; }
.icon-button { border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink); padding: 7px 12px; font-size: 12px; cursor: pointer; }
.icon-button:hover { border-color: var(--teal); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 260px; max-width: 1320px; min-height: 720px; margin: 0 auto; padding: clamp(72px, 9vw, 124px) clamp(24px, 6vw, 84px) 84px; overflow: hidden; }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 75% 30%, var(--teal-wash), transparent 44%), linear-gradient(115deg, transparent 65%, color-mix(in srgb, var(--paper-deep) 60%, transparent)); }
.hero::after { content: ''; position: absolute; z-index: -1; left: clamp(24px, 6vw, 84px); right: clamp(24px, 6vw, 84px); bottom: 0; border-bottom: 1px solid var(--line-strong); }
.hero-copy { position: relative; z-index: 2; max-width: 810px; }
.eyebrow { margin: 0 0 20px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .19em; line-height: 1.4; }
.hero h1 { margin: 0; max-width: 800px; font-family: var(--serif); font-size: clamp(54px, 7.4vw, 104px); font-weight: 400; letter-spacing: -.055em; line-height: .96; }
.hero h1 em { color: var(--teal); font-weight: 400; }
.hero-subtitle { margin: 30px 0 6px; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; }
.byline { color: var(--muted); font-size: 12px; letter-spacing: .045em; }
.byline span { margin: 0 8px; color: var(--line-strong); }
.hero-thesis { max-width: 690px; margin: 40px 0 34px; padding: 0 0 0 24px; border-left: 2px solid var(--amber); }
.hero-thesis p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.62; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.primary-link { display: inline-flex; gap: 22px; align-items: center; padding: 12px 18px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 13px; text-decoration: none; }
.primary-link:hover { background: var(--teal); color: white; }
.secondary-link { font-size: 13px; }
.hero-index { align-self: end; margin-bottom: 16px; padding: 24px 0 0 28px; border-left: 1px solid var(--line-strong); }
.hero-index > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.hero-index ol { margin: 0; padding: 0; list-style: none; }
.hero-index li { display: flex; gap: 12px; padding: 9px 0; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.35; }
.hero-index li span { color: var(--teal); font-family: var(--sans); font-size: 10px; padding-top: 4px; }
.index-foot { margin-top: 26px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.hero-map { position: absolute; z-index: 0; width: min(52vw, 660px); right: -60px; top: 20px; opacity: .15; pointer-events: none; }
.hero-map svg { width: 100%; }
.map-lines { fill: none; stroke: var(--teal); stroke-width: 1; }
.map-nodes { fill: var(--paper); stroke: var(--teal); stroke-width: 2; }
.article-layout { display: grid; grid-template-columns: 170px minmax(0, 780px); justify-content: center; gap: clamp(32px, 5vw, 80px); max-width: 1160px; margin: 0 auto; padding: 86px 32px 120px; }
.margin-note { align-self: start; position: sticky; top: 116px; padding-top: 10px; border-top: 2px solid var(--amber); }
.margin-note span { color: var(--amber); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.margin-note p { color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.retrospective { min-width: 0; counter-reset: chapter; }
.retrospective > h2 { position: relative; margin: 92px 0 30px; padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--ink); font-family: var(--serif); font-size: clamp(31px, 4vw, 44px); font-weight: 400; letter-spacing: -.025em; line-height: 1.14; }
.retrospective > h2::before { counter-increment: chapter; content: counter(chapter, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--teal); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.retrospective > h2:first-child { margin-top: 0; }
.retrospective h3 { margin: 52px 0 18px; color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.25; }
.retrospective p, .retrospective li { color: var(--ink-soft); }
.retrospective p { margin: 0 0 24px; }
.retrospective strong { color: var(--ink); font-weight: 700; }
.retrospective ul, .retrospective ol { margin: 0 0 28px; padding-left: 24px; }
.retrospective li { margin: 10px 0; padding-left: 7px; }
.retrospective li::marker { color: var(--teal); }
.retrospective blockquote { margin: 36px 0; padding: 28px 32px; background: var(--teal-wash); border-left: 3px solid var(--teal); }
.retrospective blockquote p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.retrospective table { display: table; width: 100%; margin: 30px 0 34px; border-collapse: collapse; font-size: 14px; }
.retrospective th, .retrospective td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.retrospective thead th { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.retrospective tbody th { color: var(--ink); font-weight: 650; }
.retrospective tbody td:nth-child(2) { color: var(--teal); font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.retrospective tbody tr:hover { background: var(--surface); }
.growth-figure { margin: 54px 0 18px; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.figure-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.figure-heading .eyebrow { margin-bottom: 8px; }
.figure-heading h3 { margin: 0; font-size: 23px; }
.figure-note { flex: none; color: var(--teal); font-size: 12px; font-weight: 700; }
.growth-figure svg { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 8; }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.point-halo { fill: var(--surface); stroke: var(--teal); stroke-width: 2; }
.point-core { fill: var(--amber); }
.chart-value { fill: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.chart-date { fill: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .08em; }
.chart-point:focus { outline: none; }
.chart-point:focus .point-halo { stroke: var(--amber); stroke-width: 5; }
.growth-figure > figcaption { margin-top: 4px; color: var(--muted); font-size: 11px; }
.data-disclosure { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.data-disclosure summary { color: var(--teal); font-size: 12px; cursor: pointer; }
.data-disclosure table { margin: 14px 0 0; font-size: 12px; }
.data-disclosure th, .data-disclosure td { padding: 9px 10px; }
.concentration { margin: 28px 0 32px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.concentration-cells { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; height: 34px; }
.concentration-cells i { display: block; background: var(--teal); opacity: calc(.3 + var(--n) * .02); }
.concentration-cells i:nth-child(5n) { background: var(--amber); }
.concentration figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.retrospective .closing-quote { position: relative; margin: 48px 0 30px; padding: 32px 0 32px 32px; border-left: 3px solid var(--amber); }
.closing-quote strong { color: var(--ink); font-family: var(--serif); font-size: clamp(25px, 3.3vw, 34px); font-weight: 400; line-height: 1.4; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 36px; padding: 46px clamp(24px, 6vw, 84px); border-top: 1px solid var(--line-strong); background: var(--paper-deep); }
.site-footer .eyebrow { margin-bottom: 10px; }
.site-footer p:not(.eyebrow) { margin: 0; max-width: 540px; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 18px; font-size: 12px; }
.back-top { font-family: var(--serif); font-size: 14px; white-space: nowrap; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; gap: 14px; }
  .chapter-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding: 2px 0 5px; }
  .header-actions { justify-self: end; }
  .hero { grid-template-columns: 1fr 220px; }
  .article-layout { grid-template-columns: 130px minmax(0, 1fr); gap: 38px; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 132px; }
  .site-header { padding: 10px 18px; }
  .text-action { display: none; }
  .hero { display: block; min-height: 0; padding: 64px 24px 60px; }
  .hero h1 { font-size: clamp(50px, 13vw, 76px); }
  .hero-index { margin: 52px 0 0; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .hero-index ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-index li { display: block; }
  .hero-index li span { display: block; margin-bottom: 5px; }
  .hero-map { width: 100vw; right: -35vw; top: 70px; }
  .article-layout { display: block; padding: 60px 22px 80px; }
  .margin-note { position: static; max-width: 360px; margin-bottom: 54px; }
  .margin-note p { margin-bottom: 0; }
  .retrospective > h2 { margin-top: 70px; }
  .retrospective table { display: block; overflow-x: auto; }
  .concentration-cells { grid-template-columns: repeat(15, 1fr); height: 60px; }
  .concentration figcaption { flex-wrap: wrap; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}
@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .header-actions { gap: 6px; }
  .icon-button { padding: 7px 10px; }
  .chapter-nav { gap: 18px; }
  .hero { padding-top: 48px; }
  .hero-subtitle { margin-top: 24px; }
  .byline span { margin: 0 4px; }
  .hero-thesis { margin-top: 30px; padding-left: 18px; }
  .hero-index ol { grid-template-columns: 1fr; }
  .figure-heading { display: block; }
  .figure-note { display: block; margin-top: 8px; }
  .growth-figure { padding: 16px 10px; }
  .chart-value { font-size: 20px; }
  .chart-date { font-size: 13px; }
  .retrospective th, .retrospective td { padding: 12px 10px; }
  .site-footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root, html[data-theme='dark'] { --paper: white; --surface: white; --ink: #111; --ink-soft: #333; --muted: #555; --line: #ccc; --line-strong: #999; --teal: #175f59; --teal-wash: #eef4f1; --amber: #76501e; }
  body { font-size: 10pt; }
  .site-header, .reading-progress, .hero-map, .hero-index, .hero-links, .margin-note, .site-footer, .data-disclosure summary { display: none !important; }
  .hero { display: block; min-height: 0; padding: 20px 0 40px; }
  .hero h1 { font-size: 48pt; }
  .hero-thesis { margin-top: 24px; }
  .article-layout { display: block; max-width: none; padding: 20px 0; }
  .retrospective > h2 { break-after: avoid; margin-top: 40px; }
  .retrospective h3, .retrospective table, .growth-figure, .concentration { break-inside: avoid; }
  .growth-figure { box-shadow: none; }
  .data-disclosure { display: block; }
  .data-disclosure > table { display: table !important; }
  a { color: inherit; text-decoration: none; }
}
