:root {
  --bg: #f5f1e8;
  --paper: rgba(255, 252, 246, 0.88);
  --paper-strong: #fffcf6;
  --ink: #223249;
  --muted: rgba(34, 50, 73, 0.72);
  --midnight: #223249;
  --midnight-soft: rgba(46, 79, 122, 0.86);
  --bronze: #c9a646;
  --gold: #e3c975;
  --sage: #6b7c93;
  --ember: #2e4f7a;
  --line: rgba(34, 50, 73, 0.12);
  --shadow: 0 24px 80px rgba(34, 50, 73, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 166, 70, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(46, 79, 122, 0.12), transparent 22%),
    linear-gradient(180deg, #f5f1e8 0%, #fffcf6 48%, #f5f1e8 100%);
  font-family: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 252, 246, 0.18), rgba(255, 252, 246, 0.18)),
    repeating-linear-gradient(
      125deg,
      rgba(34, 50, 73, 0.02) 0,
      rgba(34, 50, 73, 0.02) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.35;
}

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

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 252, 246, 0.84);
  border-bottom: 1px solid rgba(34, 50, 73, 0.08);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(46, 79, 122, 0.08);
  color: var(--midnight);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(46, 79, 122, 0.08);
  color: var(--midnight);
  transform: translateY(-1px);
}

.hero {
  padding: 5rem 0 2.4rem;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(201, 166, 70, 0.14);
  color: var(--ember);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0 1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.9rem, 4.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 64ch;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
  background: var(--midnight);
  color: var(--paper-strong);
  box-shadow: 0 10px 32px rgba(34, 50, 73, 0.2);
}

.button-secondary {
  background: rgba(46, 79, 122, 0.08);
  color: var(--midnight);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-card,
.card,
.note,
.timeline-item,
.faq-item,
.table-wrap,
.source-item,
.stat-card,
.quote-block {
  background: var(--paper);
  border: 1px solid rgba(34, 50, 73, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1rem;
}

.hero-card img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
}

.section {
  padding: 1.5rem 0 2.4rem;
}

.section-spaced {
  padding: 3.2rem 0;
}

.section-title,
.section-title-row h2,
.page-hero h2 {
  margin: 0 0 0.9rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.grid-3,
.grid-2,
.source-grid,
.faq-grid,
.stat-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-3,
.source-grid,
.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.source-item,
.faq-item,
.stat-card,
.note,
.timeline-item,
.table-wrap,
.quote-block {
  padding: 1.35rem;
}

.card h3,
.source-item h3,
.faq-item h3,
.timeline-item h3,
.stat-card h3,
.quote-block h3 {
  margin: 0 0 0.65rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.28rem;
}

.card p,
.source-item p,
.faq-item p,
.timeline-item p,
.note p,
.stat-card p,
.quote-block p,
li,
td,
th {
  color: var(--muted);
}

.stat-number {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2.35rem;
  color: var(--midnight);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(46, 79, 122, 0.22));
}

.timeline-item {
  position: relative;
  padding-left: 2.9rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--paper-strong);
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  box-shadow: 0 8px 22px rgba(201, 166, 70, 0.22);
}

.kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ember);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--midnight);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note {
  border-left: 4px solid var(--bronze);
}

.note strong {
  color: var(--midnight);
}

.quote-block {
  background: linear-gradient(180deg, rgba(34, 50, 73, 0.96), rgba(46, 79, 122, 0.88));
  color: var(--paper-strong);
}

.quote-block p,
.quote-block h3 {
  color: inherit;
}

.source-item a {
  color: var(--midnight);
  font-weight: 700;
}

.page-hero {
  padding: 4.4rem 0 1.4rem;
}

.visual-frame {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(201, 166, 70, 0.26), transparent 50%),
    rgba(255, 252, 246, 0.78);
  border: 1px solid rgba(34, 50, 73, 0.08);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 50, 73, 0.08);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .grid-3,
  .grid-2,
  .source-grid,
  .faq-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.8rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.8rem;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .card,
  .source-item,
  .faq-item,
  .stat-card,
  .note,
  .timeline-item,
  .table-wrap,
  .quote-block {
    padding: 1.1rem;
  }
}
