/* ---------- Design tokens ---------- */
:root {
  --cream: #f1f5ed;
  --cream-soft: #f7f3ec;
  --white: #ffffff;
  --ink: #1d280b;
  --ink-on-dark: #f1f5ed;
  --muted-green: #305007;
  --accent-green: #54871a;
  --sage: #849576;
  --sage-soft: #a8b89a;
  --divider: #d4ddcb;

  --blue: #4873c2;
  --blue-dark: #284075;
  --blue-soft: #edf5fa;
  --blue-sage: #778ba8;

  --tan: #a87b3e;
  --tan-dark: #6b4a1c;
  --tan-deep: #5e3f19;
  --tan-soft: #f3ece0;
  --tan-cream: #f7f3ec;
  --tan-mute: #948272;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --container-max: 1280px;
  --container-pad: clamp(24px, 6vw, 120px);

  --font-sans: "Red Hat Text", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Red Hat Display", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Red Hat Text", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

/* ---------- Layout ---------- */
.section {
  padding-block: 80px;
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--ink-on-dark);
}

.section--header {
  padding-bottom: 32px;
}

.section--no-top {
  padding-top: 0;
}

.section--cta {
  background: var(--muted-green);
  color: var(--ink-on-dark);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--green {
  color: var(--accent-green);
}

.eyebrow--blue {
  color: var(--blue);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 860px;
  margin-top: 16px;
}

.section__title--light {
  color: var(--ink-on-dark);
}

.section__lede {
  margin-top: 16px;
  color: var(--muted-green);
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
}

.section__lede--narrow {
  max-width: 640px;
}

.section__lede--light {
  color: var(--sage-soft);
}

/* ---------- 1. Hero ---------- */
.hero {
  padding-block: 96px 64px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.hero__headline {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero__lede {
  color: var(--muted-green);
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 440 / 520;
  max-width: 440px;
  justify-self: end;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- 2. Stakes ---------- */
.stakes {
  padding-block: 64px 100px;
}

.stakes__quote-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 1000px;
}

.stakes__accent {
  flex-shrink: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--accent-green, #54871A);
}

.stakes__quote {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.42;
  max-width: 800px;
}

.stakes__support {
  margin-top: 24px;
  color: var(--muted-green);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
}

/* ---------- 4. Score cards ---------- */
.score-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 960px) {
  .score-cards {
    grid-template-columns: 1fr;
  }
}

.score-card {
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-card--blue {
  background: var(--blue-soft);
  --card-accent: var(--blue-dark);
  --card-dot: var(--blue);
  --card-icon-bg: var(--blue-dark);
}

.score-card--green {
  background: var(--cream);
  --card-accent: var(--muted-green);
  --card-dot: var(--accent-green);
  --card-icon-bg: var(--muted-green);
}

.score-card--tan {
  background: var(--tan-soft);
  --card-accent: var(--tan-dark);
  --card-dot: var(--tan);
  --card-icon-bg: var(--tan-dark);
}

.score-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-card__icon {
  background: var(--card-icon-bg);
  color: var(--cream);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.score-card__question {
  color: var(--card-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.score-card__scale {
  color: var(--card-accent);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.score-card__desc {
  color: var(--card-accent);
  font-size: 14.5px;
  line-height: 1.6;
}

.score-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.score-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.58;
}

.score-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--card-dot);
}

/* ---------- 5. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  padding-block: 48px 80px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__number--primary {
  color: var(--muted-green);
}

.stat__number--muted {
  color: var(--sage);
  opacity: 0.5;
}

.stat__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.stat__label--primary {
  color: var(--accent-green);
}

.stat__label--muted {
  color: var(--sage);
}

.stat__source {
  color: var(--sage);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.stat__explainer {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- 7. Timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__step {
  display: flex;
  gap: 32px;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.timeline__number {
  background: var(--muted-green);
  color: var(--cream);
  border-radius: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline__line {
  flex-grow: 1;
  width: 2px;
  background: var(--muted-green);
  opacity: 0.2;
  margin-top: 4px;
}

.timeline__body {
  flex: 1;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}

.timeline__step--last .timeline__body {
  padding-bottom: 0;
}

.timeline__when {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.timeline__headline {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline__desc {
  color: var(--muted-green);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
}

/* ---------- 9. Root cards (dark) ---------- */
.root-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
}

@media (max-width: 900px) {
  .root-cards {
    grid-template-columns: 1fr;
  }
}

.root-card {
  background: rgba(241, 245, 237, 0.06);
  border: 1px solid rgba(241, 245, 237, 0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.root-card__label {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.root-card__title {
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.root-card__desc {
  color: var(--sage-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 11. Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 960px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-block: 32px;
}

.principle__number {
  color: var(--muted-green);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.3;
}

.principle__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.principle__desc {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- 13. Flag cards ---------- */
.flags {
  padding-bottom: 48px;
  background: var(--white);
}

.flags__scroller {
  display: flex;
  gap: 20px;
  padding-inline: var(--container-pad);
  padding-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.flag-card {
  flex-shrink: 0;
  width: 360px;
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-snap-align: start;
}

.flag-card--green {
  background: var(--cream);
}

.flag-card--blue {
  background: var(--blue-soft);
}

.flag-card--cream {
  background: var(--tan-cream);
}

.flag-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  align-self: flex-start;
  white-space: nowrap;
}

.flag-card__tag--tan {
  color: var(--tan-dark);
}

.flag-card__tag--green {
  color: var(--muted-green);
}

.flag-card__tag--blue {
  color: var(--blue-dark);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dot--tan {
  background: var(--tan);
}

.dot--green {
  background: var(--accent-green);
}

.dot--blue {
  background: var(--blue);
}

.flag-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.flag-quote {
  background: var(--white);
  border-left: 3px solid var(--tan-dark);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.flag-quote p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.flag-quote cite {
  color: var(--sage);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.flag-quote--tan {
  border-left-color: #9d6626;
}

.flag-quote--blue {
  border-left-color: var(--blue);
}
.flag-quote--blue cite {
  color: var(--blue-sage);
}

.flag-quote--darktan {
  border-left-color: var(--tan-deep);
}

.flag-quote--darkblue {
  border-left-color: var(--blue-dark);
}
.flag-quote--darkblue cite {
  color: var(--blue-sage);
}

.flag-stat {
  background: var(--white);
  border-left: 3px solid var(--muted-green);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flag-stat__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.flag-stat__label {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.flag-stat__value {
  color: var(--muted-green);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.flag-stat__note {
  color: var(--sage);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.flag-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  margin: 0;
}

.flag-meta dt {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.flag-meta dd {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.flag-meta dt + dd {
  margin-top: 2px;
  margin-bottom: 6px;
}

.flag-meta__action {
  color: var(--accent-green) !important;
}

.flag-meta--blue dt {
  color: var(--blue-sage);
}
.flag-meta--blue .flag-meta__action {
  color: var(--accent-green) !important;
}

.flag-meta--muted dt {
  color: var(--tan-mute);
}

/* Scroll hint pagination */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
}

.scroll-hint__pill {
  height: 4px;
  width: 16px;
  border-radius: 2px;
  background: var(--divider);
  flex-shrink: 0;
}

.scroll-hint__pill--active {
  width: 32px;
  background: var(--ink);
}

.scroll-hint__label {
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-left: 8px;
  text-transform: uppercase;
}

/* ---------- 14. CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.cta__headline {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
}

.cta__lede {
  color: rgba(241, 245, 237, 0.7);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease;
}

.btn--primary {
  background: var(--cream);
  color: var(--muted-green);
}

.btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  border: 1px solid rgba(241, 245, 237, 0.3);
  color: var(--cream);
}

.btn--secondary:hover {
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: 48px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.site-footer__brand a {
  color: inherit;
  text-decoration: none;
}

.site-footer__brand a:hover {
  text-decoration: underline;
}

.site-footer__meta {
  font-size: 14px;
  color: rgba(241, 245, 237, 0.7);
}
