:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #16332c;
  --muted: #5f6f68;
  --line: #d9d2c3;
  --accent: #d66f2c;
  --accent-dark: #b9581f;
  --forest: #23473d;
  --sage: #dfe9df;
  --gold: #e6bf69;
  --shadow: 0 24px 60px rgba(22, 51, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f1ede4 0%, #f8f5ee 28%, #fffdf9 100%);
  line-height: 1.65;
}

a { color: var(--forest); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(230, 191, 105, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(35, 71, 61, 0.96), rgba(22, 51, 44, 0.98));
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(230, 191, 105, 0.12);
  filter: blur(10px);
}

.hero-inner,
.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 34px;
  padding: 88px 0 78px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3db96;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.03;
  max-width: 12ch;
}

.subtitle {
  font-size: 1.17rem;
  max-width: 52rem;
  margin: 22px 0 14px;
  color: rgba(255,255,255,0.9);
}

.audience {
  margin: 0;
  color: rgba(255,255,255,0.78);
  max-width: 54rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover { background: var(--accent-dark); }
.button.secondary {
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.button.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hero-card {
  align-self: end;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.hero-card li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  color: #f7f2e5;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}
.card-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f3db96;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.microcopy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.76);
}

.page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 0 80px;
}

.toc {
  position: sticky;
  top: 22px;
  height: fit-content;
}

.toc-card,
.callout,
.stat-card,
.section-grid article,
.timeline-grid article,
.cta-box {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.toc-card {
  border-radius: 22px;
  padding: 22px;
}
.toc-title {
  font-weight: 800;
  margin-bottom: 12px;
}
.toc nav {
  display: grid;
  gap: 10px;
}
.toc nav a {
  text-decoration: none;
  color: var(--muted);
}
.toc nav a:hover { color: var(--forest); }

.content {
  display: grid;
  gap: 28px;
}

.section {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(217,210,195,0.8);
  border-radius: 28px;
  padding: 34px;
}

.section-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p, li { color: #27443b; }

.callout {
  margin-top: 22px;
  border-radius: 20px;
  padding: 20px;
}
.callout.soft { background: #faf8f2; }
.callout strong { display: block; margin-bottom: 8px; }
.callout ul, .callout ol { margin: 0; padding-left: 20px; }

.stats-grid,
.section-grid,
.timeline-grid {
  display: grid;
  gap: 16px;
}
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-card,
.section-grid article,
.timeline-grid article {
  border-radius: 22px;
  padding: 22px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.weights-table {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.weights-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.weights-table strong {
  color: var(--accent-dark);
  white-space: nowrap;
}

.checklist,
.questions-list,
.sources-list {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.questions-list li::marker,
.checklist li::marker {
  color: var(--accent-dark);
  font-weight: 700;
}

.cta-section {
  background: linear-gradient(180deg, #fff8ef 0%, #fffdf8 100%);
}
.cta-box {
  border-radius: 24px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.cta-box p { margin-bottom: 0; }

@media (max-width: 1024px) {
  .page,
  .hero-inner,
  .stats-grid,
  .timeline-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .toc { position: static; }
  h1 { max-width: none; }
}

@media (max-width: 640px) {
  .hero-inner,
  .page {
    width: min(100% - 24px, 1180px);
  }
  .hero-inner { padding: 64px 0 56px; }
  .section,
  .toc-card,
  .hero-card,
  .cta-box {
    padding: 22px;
    border-radius: 22px;
  }
  .hero-actions,
  .cta-box {
    flex-direction: column;
    align-items: stretch;
  }
}
