/* ==========================================================================
   Second Chapters - student-run book drive
   Design system + components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
 -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

 --ink:        #17211C;
 --ink-soft:   #3B4A42;
 --muted:      #5E6F66;
 --line:       #E3DCCD;
 --line-soft:  #EFE9DC;

 --cream:      #FDF8EF;
 --cream-deep: #F6EDDC;
 --paper:      #FFFFFF;

 --forest:     #1B4B3A;
 --forest-700: #123326;
 --forest-500: #2E7D62;
 --leaf:       #3E9E77;
 --sage:       #9FD3BF;
 --sage-tint:  #E6F2EC;

 --marigold:   #F0A830;
 --marigold-d: #D08A14;
 --clay:       #C4562F;
 --clay-tint:  #FBEDE6;

 --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
 --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 --font-hand: "Caveat", "Bradley Hand", "Segoe Script", cursive;

 --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
 --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
 --step-1:  clamp(1.1rem, 1.05rem + 0.25vw, 1.22rem);
 --step-2:  clamp(1.3rem, 1.2rem + 0.45vw, 1.55rem);
 --step-3:  clamp(1.6rem, 1.42rem + 0.8vw, 2.05rem);
 --step-4:  clamp(2rem, 1.65rem + 1.5vw, 2.9rem);
 --step-5:  clamp(2.4rem, 1.85rem + 2.6vw, 3.8rem);

 --space-xs: 0.5rem;
 --space-sm: 0.875rem;
 --space-md: 1.5rem;
 --space-lg: 2.5rem;
 --space-xl: 4rem;
 --space-2xl: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);

 --radius-sm: 8px;
 --radius: 14px;
 --radius-lg: 20px;
 --radius-pill: 999px;

 --shadow-sm: none;
 --shadow: 0 1px 2px rgba(23, 33, 28, 0.04), 0 8px 24px -16px rgba(23, 33, 28, 0.25);
 --shadow-lg: 0 2px 6px rgba(23, 33, 28, 0.06), 0 24px 48px -28px rgba(23, 33, 28, 0.3);

 --container: 1120px;
 --container-narrow: 760px;
 --header-h: 76px;

 --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
 -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Author display rules outrank the UA rule for [hidden]; this keeps hidden hidden. */
[hidden] { display: none !important; }

html {
 -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
 -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--forest-700);
}

h1 { font-size: var(--step-5); letter-spacing: -0.028em; line-height: 1.06; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--forest-500); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

strong { font-weight: 650; color: var(--forest-700); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-lg) 0; }

::selection { background: var(--marigold); color: var(--forest-700); }

:focus-visible {
  outline: 3px solid var(--forest-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
 -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream-deep); }
.section--forest {
  background: var(--forest);
  color: #EAF3EF;
}
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest a { color: var(--sage); }

.section-head { max-width: 46rem; margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.section-head--center p { margin-inline: auto; }
.section--forest .section-head p { color: #C3DAD1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
}
.section--forest .eyebrow { color: var(--marigold); }
.section-head--center .eyebrow::before { display: none; }

.lede { font-size: var(--step-1); color: var(--ink-soft); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--space-md); }
.center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   4. Buttons
 -------------------------------------------------------------------------- */
.btn {
 --btn-bg: var(--forest);
 --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  border: 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
 --btn-hover: var(--forest-700);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { color: var(--btn-fg); background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }

.btn--accent { --btn-bg: var(--marigold); --btn-fg: #2A1B05; --btn-hover: var(--marigold-d); }
.btn--clay { --btn-bg: var(--clay); }
.btn--ghost {
 --btn-bg: transparent;
 --btn-fg: var(--forest-700);
  box-shadow: inset 0 0 0 2px var(--forest);
}
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--ghost:hover { --btn-bg: var(--forest); --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--forest-700); --btn-hover: #EEF4F1; }
.btn--sm { padding: 0.6em 1.15em; font-size: var(--step--1); }
.btn--lg { padding: 1em 2em; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
  transition: gap 0.18s var(--ease);
}
.text-link:hover { gap: 0.7em; }

/* --------------------------------------------------------------------------
   5. Header / navigation
 -------------------------------------------------------------------------- */
.topbar {
  background: var(--forest-700);
  color: #C9DED6;
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 40px;
  padding-block: 6px;
}
.topbar a { color: #DCEAE4; text-decoration: none; }
.topbar a:hover { color: var(--marigold); }
.topbar__meta { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; min-width: 0; }
.topbar__socials { display: flex; gap: 0.6rem; }
.topbar__socials a {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.topbar__socials a:hover { background: var(--marigold); color: var(--forest-700); }
@media (max-width: 720px) { .topbar__meta .topbar__hide-sm { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
 -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* While the drawer is open the header must not create a containing block for
   fixed positioning, or the drawer collapses to the height of the header. */
body.nav-open .site-header {
  backdrop-filter: none;
 -webkit-backdrop-filter: none;
  background: var(--cream);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(23, 33, 28, 0.5);
  background: rgba(251, 246, 236, 0.95);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest-700);
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; flex-shrink: 0; }
.brand > span { min-width: 0; }

/* The wordmark is long: let it shrink before it shoves the menu button off. */
@media (max-width: 460px) {
  .site-header__inner { gap: 0.6rem; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { font-size: 0.58rem; letter-spacing: 0.1em; }
  .nav-toggle { padding: 0.5rem 0.75rem; }
}
/* On the narrowest phones the tagline is the first thing to go. */
@media (max-width: 380px) {
  .brand__tag { display: none; }
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: block;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.6rem 0.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover { color: var(--forest); background: rgba(30, 77, 62, 0.07); }
.nav__link[aria-current="page"] { color: var(--forest-700); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--marigold);
}
.nav__caret { width: 10px; height: 10px; transition: transform 0.2s var(--ease); }
.nav__item.is-open > .nav__link .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 244px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item.is-open > .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}
.nav__menu a:hover { background: var(--sage-tint); color: var(--forest-700); }
.nav__menu small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }

.header__cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--forest);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed;
    /* --drawer-top is set from the header's real bottom edge as the menu opens,
       so the panel lines up whether or not the top bar has scrolled away. */
    inset: var(--drawer-top, calc(var(--header-h) + 40px)) 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
 -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.95rem 0.6rem; font-size: 1.02rem; min-height: 48px; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--sage-tint); }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 0.6rem 0.6rem;
    padding: 0 0 0 0.5rem;
    display: none;
    min-width: 0;
  }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__cta-mobile { margin-top: var(--space-md); display: grid; gap: 0.6rem; }
}
@media (min-width: 1041px) { .nav__cta-mobile { display: none; } }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 28, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
  z-index: 90;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. Hero
 -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.3rem, 1.55rem + 2.9vw, 3.6rem); margin-bottom: 0.35em; max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--clay);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  height: 2px;
  background: var(--marigold);
}
.hero__sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--space-md);
}
.hero__note {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hero__art { position: relative; }
.hero__art-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.hero__art-card svg { width: 100%; height: auto; }

.hero__badge {
  position: absolute;
  right: -8px;
  bottom: -22px;
  background: var(--forest);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 240px;
}
.hero__badge strong { display: block; color: var(--marigold); font-size: 1.6rem; line-height: 1.1; font-family: var(--font-display); }
.hero__badge span { font-size: 0.8rem; color: #C3DAD1; line-height: 1.35; display: block; }
@media (max-width: 560px) { .hero__badge { position: static; margin-top: 1.2rem; max-width: none; } }

.hero__marquee {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.hero__marquee div { padding-inline: 0.5rem; }
.hero__marquee b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--forest);
  line-height: 1;
}
.hero__marquee span { font-size: var(--step--1); color: var(--muted); }

.page-hero {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(159, 211, 191, 0.22), rgba(251, 246, 236, 0));
}
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero p { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

.breadcrumb {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Cards & components
 -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  height: 100%;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card--link:hover { border-color: var(--forest-500); background: #FCFBF8; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--sage-tint); border-color: #D3E7DE; }
.card--clay { background: var(--clay-tint); border-color: #F1D9CD; }

.card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--sage-tint);
  color: var(--forest);
  margin-bottom: var(--space-sm);
}
.card__icon svg { width: 20px; height: 20px; }
.card--clay .card__icon { background: #F6DDD1; color: var(--clay); }

.card-link-title { color: var(--forest-700); text-decoration: none; }
.card-link-title::after { content: ""; position: absolute; inset: 0; }
.card--link { position: relative; }

.steps { counter-reset: step; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 3px solid var(--marigold);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--marigold-d);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}
.stat {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--marigold);
  margin-bottom: 0.25em;
}
.stat span { font-size: 0.95rem; color: #C3DAD1; }
.stat cite { display: block; font-size: 0.75rem; color: #8FB3A7; font-style: normal; margin-top: 0.5em; }

.progress-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.progress-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.progress-card__count {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--forest);
  line-height: 1;
}
.progress-card__count small { font-size: 0.45em; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.progress-track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--forest-500);
  transition: width 1.4s var(--ease);
  min-width: 6px;
}
.progress-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--marigold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md);
}
.callout--tint { background: var(--sage-tint); box-shadow: none; border-left-color: var(--forest-500); }

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.4;
  color: var(--forest-700);
  border: 0;
  margin: 0;
  padding: 0;
}
.pull-quote footer { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); margin-top: 0.9em; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sage-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4D3E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--no li::before {
  background: var(--clay-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4562F' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--sage-tint);
  color: var(--forest-700);
  font-size: var(--step--1);
  font-weight: 600;
}
.pill--marigold { background: #FBEDD6; color: #8A5A10; }
.pill--clay { background: var(--clay-tint); color: var(--clay); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--cream-deep); font-weight: 650; color: var(--forest-700); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: #FCFAF5; }

.accordion { display: grid; gap: 0.75rem; }
.accordion details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion details[open] { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.05rem 1.25rem;
  font-weight: 650;
  color: var(--forest-700);
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4D3E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.22s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.accordion .accordion__body p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--marigold), var(--sage));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding-left: 46px;
  padding-bottom: var(--space-md);
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--forest-500);
}
.timeline li.is-now::before { border-color: var(--marigold); background: var(--marigold); box-shadow: 0 0 0 5px rgba(233, 161, 59, 0.22); }
.timeline h4 { margin-bottom: 0.2em; }
.timeline .timeline__when {
  display: block;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.25em;
}
.timeline p { color: var(--muted); margin-bottom: 0; }

.cta-band {
  position: relative;
  background: var(--forest);
  color: #EAF3EF;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--marigold);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #C3DAD1; max-width: 52ch; position: relative; }
.cta-band .btn-row { position: relative; margin-top: var(--space-md); }

/* Partner spotlight (CIWA) */
.partner-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .partner-feature { grid-template-columns: 1fr; } }
.partner-mark {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sage-tint), #FBEDD6);
  border: 1px solid var(--line);
}
.partner-mark__acronym {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--forest-700);
}
.partner-mark__name { font-weight: 650; color: var(--forest-700); line-height: 1.3; }
.partner-mark__meta { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.partner-mark__meta a { word-break: break-word; }
.partner-feature h2, .partner-feature h3 { margin-top: 0; }

/* Forms */
.form { display: grid; gap: var(--space-md); }
.form__row { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 650; font-size: 0.92rem; color: var(--forest-700); }
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px rgba(47, 122, 98, 0.15);
}
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 0.7rem; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); }
.field--check label { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--sage-tint); border: 1px solid #C4E0D4; color: var(--forest-700); }
.form-status--info { background: #FBEDD6; border: 1px solid #F0D9AF; color: #7A4F0C; }

/* Footer */
.site-footer {
  background: var(--forest-700);
  color: #B9D2C9;
  padding-block: var(--space-xl) var(--space-md);
  margin-top: var(--space-2xl);
}
.site-footer a { color: #DCEAE4; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: var(--space-lg);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.94rem; }
.footer__links li { margin: 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-bottom: var(--space-sm); }
.footer__brand img { width: 40px; height: 40px; }
.footer__brand span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; }
.footer__mission { font-size: 0.94rem; max-width: 34ch; }
.footer__socials { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.footer__socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.footer__socials a:hover { background: var(--marigold); color: var(--forest-700); }
.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: space-between;
  font-size: 0.83rem;
  color: #8FB3A7;
}
.footer__disclosure {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.83rem;
  line-height: 1.5;
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   8. Motion
 -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   9. Print
 -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .site-footer, .nav-scrim, .btn-row { display: none !important; }
  body { background: #fff; }
  .card, .step { box-shadow: none; border-color: #ccc; }
  .reveal { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   11. Photography
   Photos are dropped into assets/img/photos/. Any that are missing remove
   themselves (see main.js) rather than leaving a broken image on the page.
 -------------------------------------------------------------------------- */
.figure { margin: 0; display: grid; gap: 0.7rem; }
.figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream-deep);
  object-fit: cover;
  display: block;
}
.figure figcaption { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 3 / 2; }
.figure--square img { aspect-ratio: 1 / 1; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}
.photo-grid .figure img { aspect-ratio: 4 / 3; }

/* A photo that failed to load: the whole figure is hidden by main.js. */
.photo-missing { display: none !important; }

/* --------------------------------------------------------------------------
   12. Impact figures + milestone
 -------------------------------------------------------------------------- */
.impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-md);
}
.impact__item { padding-inline: 0.25rem; }
.impact__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem);
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.impact__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.milestone {
  background: var(--forest);
  color: #EAF3EF;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
@media (max-width: 720px) {
  .milestone { grid-template-columns: 1fr; }
  .milestone__date { justify-self: start; }
}
.milestone__date {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 108px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}
.milestone__day { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--marigold); }
.milestone__month { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #C3DAD1; margin-top: 0.3rem; }
.milestone h2, .milestone h3 { color: #fff; margin-bottom: 0.35em; }
.milestone p { color: #C3DAD1; margin-bottom: 0; }
.milestone__facts {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: #EAF3EF;
}
.milestone__facts li { margin: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.milestone__facts b { font-family: var(--font-display); font-size: 1.15rem; color: var(--marigold); }

/* A quiet partner line, for pages that only need to name the partner. */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.partner-strip__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.partner-strip__name { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest-700); }
.partner-strip p { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1 1 260px; }


/* ==========================================================================
   13. The warm layer - colour panels, photography and a human hand
   ========================================================================== */

/* Handwritten asides. Used sparingly: a caption, a note, a signature. */
.hand {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--clay);
  font-weight: 600;
}
.hand--light { color: var(--marigold); }

/* --- Split hero: colour on one side, faces on the other ------------------ */
.hero-split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  background: var(--forest);
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

.hero-split__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  color: #EAF3EF;
}
.hero-split__panel .eyebrow { color: var(--marigold); }
.hero-split__kicker {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}
.hero-split__title {
  font-size: clamp(2.6rem, 1.9rem + 4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.hero-split__title span { display: block; }
.hero-split__title .is-accent { color: var(--marigold); }
.hero-split__panel p { color: #CFE3DA; font-size: var(--step-1); max-width: 40ch; }

.hero-split__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(320px, 52vw, 620px);
}
.hero-split__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px) { .hero-split__photos { grid-template-columns: 1fr; } .hero-split__photos img:last-child { display: none; } }

/* --- Pill link row (the quick choices under the hero) -------------------- */
.pill-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.8em;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pill-link:hover { background: var(--leaf); color: #fff; transform: translateY(-2px); }
.pill-link--accent { background: var(--marigold); color: #2A1B05; }
.pill-link--accent:hover { background: var(--marigold-d); color: #2A1B05; }

/* --- Ways to help: icon circles ----------------------------------------- */
.helpers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg) var(--space-md);
  text-align: center;
}
.helper { display: grid; justify-items: center; gap: 0.6rem; text-decoration: none; }
.helper__icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--forest);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.helper__icon svg { width: 36px; height: 36px; }
.helper:hover .helper__icon { background: var(--marigold); color: var(--forest-700); transform: translateY(-3px); }
.helper__label { font-weight: 700; color: var(--forest-700); line-height: 1.25; }
.helper__note { font-size: 0.85rem; color: var(--muted); max-width: 20ch; }

/* --- Big celebratory numbers -------------------------------------------- */
.tally {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-lg) var(--space-md);
  text-align: center;
}
.tally__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 2rem + 3.6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--clay);
}
.tally__value--forest { color: var(--forest); }
.tally__value--marigold { color: var(--marigold-d); }
.tally__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.section--forest .tally__value { color: var(--marigold); }
.section--forest .tally__label { color: #C3DAD1; }

/* --- Snapshots: photos that look pinned up, not placed by a machine ------ */
.snap {
  background: #fff;
  padding: 10px 10px 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin: 0;
}
.snap img { width: 100%; display: block; border-radius: 2px; object-fit: cover; }
.snap figcaption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.5rem 0.25rem 0.7rem;
  line-height: 1.2;
}
.snap--tilt-l { transform: rotate(-1.6deg); }
.snap--tilt-r { transform: rotate(1.4deg); }
.snap--tall img { aspect-ratio: 3 / 4; }
.snap--wide img { aspect-ratio: 4 / 3; }

.snap-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* --- Story band: photo bleeding against colour -------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* --- A note in someone's own words -------------------------------------- */
.note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.note__body { font-size: var(--step-1); color: var(--ink-soft); }
.note__body p { max-width: 62ch; }
.note__sign {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--forest);
  margin-top: 0.6rem;
}
.note__role { font-size: 0.9rem; color: var(--muted); }

/* --- FAQ on a colour block, AARCS-style white rows ----------------------- */
.section--forest .accordion details {
  background: #fff;
  border-color: transparent;
  border-radius: var(--radius-pill);
}
.section--forest .accordion details[open] { border-radius: var(--radius-lg); }
.section--forest .accordion summary { padding: 1rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .snap--tilt-l, .snap--tilt-r { transform: none; }
}
