:root {
  --paper: #f7f5ef;
  --paper-2: #fbfaf6;
  --ink: #191714;
  --muted: #68635b;
  --faint: #d9d1c3;
  --gold: #b7892a;
  --gold-2: #d5b66d;
  --line: rgba(25, 23, 20, 0.15);
  --shadow: 0 20px 60px rgba(41, 32, 19, 0.08);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 10%, rgba(183, 137, 42, 0.05), transparent 28%),
    linear-gradient(90deg, rgba(25, 23, 20, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 23, 20, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 26px 26px, 26px 26px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 9vw;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: 18px;
}

.topnav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.source-link {
  justify-self: end;
  padding: 11px 18px;
  border-radius: 6px;
  color: #fff;
  background: var(--gold);
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(183, 137, 42, 0.2);
}

.hero {
  max-width: 980px;
  min-height: 560px;
  margin: 0 auto;
  padding: 118px 24px 82px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1,
.overview h2,
.section-heading h2 {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 94px);
  font-weight: 400;
  line-height: 0.96;
}

.hairline {
  width: 86px;
  height: 1px;
  margin: 34px auto;
  background: var(--gold);
}

.hero-copy {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.copyright-note {
  display: inline-flex;
  margin: 26px 0 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.34);
  font-size: 12px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1160px;
  margin: 0 auto 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip article {
  min-height: 138px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stat-strip article:last-child {
  border-right: 0;
}

.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
}

.stat-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.overview {
  padding: 0 8vw 100px;
  text-align: center;
}

.overview h2,
.section-heading h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 58px auto 0;
  text-align: left;
}

.overview-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.overview-grid span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
}

.overview-grid h3 {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.overview-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 2.2fr) minmax(260px, 0.95fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--line);
}

.reader-nav,
.focus-panel {
  position: sticky;
  top: 88px;
  align-self: start;
}

.section-buttons {
  display: grid;
  gap: 8px;
}

.section-buttons button,
.reader-toolbar button,
.chart-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.section-buttons button {
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.section-buttons button.active,
.section-buttons button:hover,
.chart-tabs button.active,
.chart-tabs button:hover,
.reader-toolbar button:hover {
  border-color: var(--gold);
  color: #fff;
  background: var(--gold);
}

.progress-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.progress-box strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
}

.reader-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.search-field span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.reader-toolbar button {
  min-width: 86px;
}

.paragraph-grid {
  display: grid;
  gap: 12px;
}

.para-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.para-card:hover,
.para-card.active {
  border-color: rgba(183, 137, 42, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.para-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
}

.para-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.para-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(183, 137, 42, 0.1);
  font-size: 12px;
}

.focus-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1f1d19;
  color: #fff;
  box-shadow: 0 22px 70px rgba(25, 23, 20, 0.16);
}

.focus-card .kicker {
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.focus-card h3 {
  margin: 18px 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.focus-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
}

.focus-card dl {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.focus-card dt {
  color: var(--gold-2);
  font-size: 12px;
}

.focus-card dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.charts-section {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 90px 24px 110px;
  text-align: center;
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 44px 0 24px;
}

.chart-tabs button {
  min-height: 42px;
  padding: 0 16px;
}

.chart-stage {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  text-align: left;
  overflow: hidden;
}

.chart-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  min-height: 520px;
  padding: 32px;
}

.chart-copy h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.chart-copy p,
.chart-copy li {
  color: var(--muted);
  line-height: 1.85;
}

.chart-copy ul {
  padding-left: 18px;
}

.svg-wrap {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-left: 1px solid var(--line);
}

svg {
  max-width: 100%;
  height: auto;
}

.footer {
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .reader-shell {
    grid-template-columns: 1fr;
  }

  .reader-nav,
  .focus-panel {
    position: static;
  }

  .section-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-layout {
    grid-template-columns: 1fr;
  }

  .svg-wrap {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 18px;
  }

  .topnav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 82px;
  }

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

  .stat-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-strip article:last-child {
    border-bottom: 0;
  }

  .section-buttons {
    grid-template-columns: 1fr;
  }

  .reader-toolbar,
  .para-card {
    grid-template-columns: 1fr;
  }

  .reader-toolbar {
    flex-direction: column;
  }

  .para-card {
    gap: 12px;
  }
}
