/* ============================================================
   Nuristan Education Initiative — website
   Design language: modern minimal
   Tight neutral palette · one deep green · square geometry ·
   hairline rules instead of shadows · generous whitespace.
   Type: Hanken Grotesk (text) · IBM Plex Mono (labels/data)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:        #f3f2ec;   /* page background — warm neutral off-white */
  --surface:      #ffffff;   /* panels */
  --tint:         #eceadf;   /* alternate section band */

  --ink:          #1b1d1a;   /* near-black text */
  --ink-soft:     #5d5f59;   /* secondary text */
  --ink-faint:    #6c6c64;   /* fine print / tertiary */

  --line:         #e0ded4;   /* hairline */
  --line-strong:  #c7c4b6;

  --accent:       #2c5141;   /* deep green — actions, marks, links */
  --accent-dark:  #1a2c23;   /* very dark green — dark sections, footer */
  --accent-soft:  #e7e9e1;   /* faint green-grey fill */
  --on-dark:      #e9ebe3;   /* text on dark sections */
  --on-dark-soft: #9aa79f;   /* muted text on dark sections */

  /* legacy aliases — kept so any inline styles still resolve */
  --pine-deep:    #1a2c23;
  --amber:        #2c5141;
  --radius:       0px;
  --radius-lg:    0px;
  --shadow-sm:    none;
  --shadow-md:    none;

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap:        1180px;
  --wrap-narrow: 720px;

  /* spacing rhythm */
  --space-section:       6rem;
  --space-section-md:    4.5rem;
  --space-section-sm:    3rem;
  --space-section-xs:    2.5rem;
  --space-inline:        2rem;
  --space-inline-mobile: 1.125rem;
  --space-gap:           1.25rem;
  --header-h:            3.25rem;

  /* responsive type */
  --text-hero:     clamp(1.75rem, 5.5vw + 0.35rem, 4.3rem);
  --text-h2:       clamp(1.55rem, 3.2vw + 0.45rem, 2.75rem);
  --text-h3:       clamp(1.15rem, 1.5vw + 0.65rem, 1.3rem);
  --text-body:     1.0625rem;
  --text-body-sm:  0.9375rem;
  --text-lede:     clamp(1rem, 0.35vw + 0.92rem, 1.2rem);
  --text-stat:     clamp(1.85rem, 4vw + 0.5rem, 3.4rem);
  --text-nav:      0.9375rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
h3, h4 { font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
strong { font-weight: 600; }

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0; top: -100%;
  z-index: 200; padding: 0.75rem 1.25rem;
  background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-inline); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: var(--space-section) 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.section--sm { padding: var(--space-section-md) 0; }
.section--tint { background: var(--tint); }
.section--pine { background: var(--accent-dark); color: var(--on-dark); }
.section--pine h1, .section--pine h2, .section--pine h3 { color: #fff; }

@media (max-width: 720px) {
  .section { padding: var(--space-section-sm) 0; }
  .section--sm { padding: var(--space-section-xs) 0; }
  .wrap { padding: 0 var(--space-inline-mobile); }
  .section-head { margin-bottom: 2rem; }
}

.section-head { max-width: 50rem; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: var(--text-h2); margin-bottom: 0.9rem; }
.section-head p { font-size: var(--text-lede); color: var(--ink-soft); margin: 0; max-width: 38rem; }
.section--pine .section-head p { color: var(--on-dark-soft); }

/* ---------- Mono label / eyebrow ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section--pine .eyebrow { color: #8fae9e; }

.topo-rule, .cta-band-glow { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--accent);
  --b-fg: #fff;
  --b-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--b-bd);
  background: var(--b-bg);
  color: var(--b-fg);
  border-radius: 0;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--primary, .btn--pine { --b-bg: var(--accent); --b-fg: #fff; --b-bd: var(--accent); }
.btn--primary:hover, .btn--pine:hover {
  --b-bg: var(--accent-dark); --b-bd: var(--accent-dark); color: #fff;
}
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn--ghost:hover { --b-bg: var(--ink); --b-fg: var(--paper); color: var(--paper); }
.btn--light { --b-bg: #fff; --b-fg: var(--accent-dark); --b-bd: #fff; }
.btn--light:hover { --b-bg: var(--accent-soft); --b-bd: var(--accent-soft); }
.btn--outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,0.45); }
.btn--outline-light:hover { --b-bg: rgba(255,255,255,0.1); --b-bd: #fff; color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.55rem 0;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex-shrink: 1; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 48px; width: auto; max-width: min(100%, 11.5rem); flex: none; display: block; }
.brand-text { display: flex; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  color: var(--ink); padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"] {
  color: var(--accent); border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 0; cursor: pointer;
  flex: none;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.header-donate { display: none; flex: none; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .header-donate { display: inline-flex; margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(300px, 88vw);
    z-index: 110;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(26, 44, 35, 0.12);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav:not(.is-open) { visibility: hidden; pointer-events: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: flex; align-items: center;
    min-height: 44px;
    padding: 0.65rem 0;
    font-size: var(--text-nav);
    border-bottom: 1px solid var(--line);
  }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 1.25rem; width: 100%; min-height: 44px; }
}
.nav-scrim {
  display: none; position: fixed; inset: 0;
  background: rgba(26,44,35,0.45);
  z-index: 90;
  -webkit-tap-highlight-color: transparent;
}
.nav-scrim.is-open { display: block; }

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  .nav-toggle span { transition: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem; align-items: center;
  padding-block: 5.5rem;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero-tag .dot { width: 7px; height: 7px; background: var(--accent); flex: none; }

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.hero h1 .accent { color: var(--accent); }

.hero-lede {
  font-size: var(--text-lede); line-height: 1.58;
  color: var(--ink-soft);
  max-width: 33rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero-note {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.88rem; color: var(--ink-soft);
  max-width: 32rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-note svg { flex: none; margin-top: 2px; color: var(--accent); }

.hero-art { display: flex; flex-direction: column; gap: 0.85rem; }
.hero-art img { width: 100%; height: auto; }
.hero-art-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem; line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin: 0;
}
.hero-art-caption strong { color: var(--ink); font-weight: 500; }

/* ---------- Stat band (editorial, light) ---------- */
.statband { background: var(--surface); border-bottom: 1px solid var(--line); }
.statband-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 3.25rem 0 2.5rem;
}
.statband-grid .stat { padding: 0 1.75rem; }
.statband-grid .stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .statband-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-gap);
    padding: var(--space-section-sm) 0 1.75rem;
  }
  .statband-grid .stat {
    padding: 1rem 1.1rem;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-left: none;
  }
  .statband-grid .stat + .stat { border-left: none; }
  .statband-grid .stat:nth-child(odd),
  .statband-grid .stat:nth-child(even) { padding-left: 1.1rem; }
  .stat-label { margin-top: 0.55rem; line-height: 1.45; }
}
.stat-num {
  font-size: var(--text-stat);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1;
  font-feature-settings: "tnum";
}
.stat-num .unit { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.74rem; line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink-soft); margin-top: 0.7rem;
}
.statband-foot {
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.1rem 2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.73rem; letter-spacing: 0.03em;
  color: var(--ink-faint);
}

/* ---------- Prose / split ---------- */
.prose { max-width: 42rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1.15rem; }
.prose p.lead, p.lead { font-size: 1.18rem; color: var(--ink); }

.split {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem; align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.pillar { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.pillar-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 1.1rem; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: var(--text-h3); }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Programs ---------- */
.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.program:first-of-type { padding-top: 0; }
.program + .program { border-top: 1px solid var(--line); }

.program--village {
  grid-template-areas:
    "copy art"
    "details art";
}
.program--village .program-copy { grid-area: copy; }
.program--village .program-details { grid-area: details; }
.program--village .program-art { grid-area: art; align-self: center; }

.program--kabul {
  grid-template-areas:
    "art copy"
    "art details";
}
.program--kabul .program-copy { grid-area: copy; }
.program--kabul .program-details { grid-area: details; }
.program--kabul .program-art { grid-area: art; align-self: center; }

.program-copy,
.program-details,
.program-art { min-width: 0; }

@media (max-width: 860px) {
  .program,
  .program--village,
  .program--kabul {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "art"
      "details";
    gap: 1.25rem;
    padding: 2.75rem 0;
  }
  .program:first-of-type { padding-top: 0; }
  .program + .program {
    padding-top: 3rem;
    margin-top: 0.5rem;
  }
  .program-copy,
  .program-details,
  .program-art {
    width: 100%;
    max-width: 100%;
  }
  .program-art {
    margin: 0.35rem 0 0.85rem;
    padding-inline: 0;
  }
  .program-art img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin-inline: auto;
  }
}
.program-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.program h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.program p { color: var(--ink-soft); }
.program-art img { width: 100%; height: auto; }

.facts { list-style: none; margin: 1.2rem 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.facts li {
  display: flex; gap: 0.7rem;
  font-size: 0.95rem; color: var(--ink-soft);
}
.facts li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.ministats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 1.3rem; margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.ministat .n {
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink);
}
.ministat .l {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--ink-soft); margin-top: 0.15rem;
}

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1.4rem 1.6rem;
}
.callout h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.callout p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.callout--warn { background: var(--accent-soft); }
.callout--clay { background: var(--accent-soft); }

/* ---------- Ways ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 0; }
.way {
  border: 1px solid var(--line);
  margin: -0.5px;
  padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column;
  background: var(--surface);
}
.way-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 1rem; }
.way-icon svg { width: 100%; height: 100%; }
.way h3 { font-size: 1.12rem; }
.way p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.way-link {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--accent);
}
.way-link:hover { color: var(--accent-dark); text-decoration: underline; }
.way-link::after { content: " \2192"; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent-dark); color: var(--on-dark); text-align: center; }
.cta-band .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.cta-band p { color: var(--on-dark-soft); font-size: 1.12rem; max-width: 36rem; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent-dark); color: var(--on-dark-soft); padding: 4rem 0 2rem; font-size: 0.92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand-row .brand-mark { width: 46px; height: 46px; }
.footer-brand-name { font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem; color: #fff; letter-spacing: -0.02em; }
.footer-about { max-width: 25rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.71rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #8fae9e; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.73rem; letter-spacing: 0.03em;
  color: var(--on-dark-soft);
}
.footer-legal-note {
  margin-top: 1.1rem; font-size: 0.8rem; line-height: 1.6;
  color: var(--on-dark-soft); max-width: 62rem;
}

/* ---------- Donate page ---------- */
.donate-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 4rem 0 3rem; }
.donate-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; }
.donate-hero .prose { margin: 0 auto; text-align: center; }

.give-layout { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 2.5rem; align-items: start; }
@media (max-width: 920px) { .give-layout { grid-template-columns: 1fr; gap: 2rem; } }

.give-card { background: var(--surface); border: 1px solid var(--line-strong); padding: 2.1rem 2rem; }
@media (max-width: 520px) { .give-card { padding: 1.5rem 1.2rem; } }
.give-card h2 { font-size: 1.5rem; }

.freq {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  margin: 1.2rem 0 1.8rem;
}
.freq-option input { position: absolute; opacity: 0; pointer-events: none; }
.freq-option:first-child label { border-right: 1px solid var(--line-strong); }
.freq-option label {
  display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  min-height: 48px;
  padding: 0.75rem 0.5rem; color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.freq-option input:checked + label { background: var(--accent); color: #fff; }
.freq-option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -3px; }

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.7rem;
}

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.amount {
  text-align: left; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  margin: -0.5px;
  padding: 0.9rem 0.95rem;
  font-family: inherit;
  min-height: 44px;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.amount:hover { background: var(--accent-soft); }
.amount .amount-value { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.amount .amount-meta {
  display: block; font-family: var(--font-mono);
  font-size: 0.68rem; line-height: 1.4;
  color: var(--ink-soft); margin-top: 0.3rem;
}
.amount[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent);
  position: relative; z-index: 1;
}
.amount[aria-pressed="true"] .amount-value { color: #fff; }
.amount[aria-pressed="true"] .amount-meta { color: rgba(255,255,255,0.8); }

.custom-amount { margin-top: 1.1rem; }
.amount-input-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.amount-input-wrap:focus-within { border-color: var(--accent); }
.amount-input-wrap .currency { padding: 0 0.6rem 0 0.95rem; font-weight: 600; font-size: 1.15rem; color: var(--ink-soft); }
.amount-input-wrap input {
  flex: 1; border: 0; background: transparent;
  font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  padding: 0.75rem 0.9rem 0.75rem 0; width: 100%;
}
.amount-input-wrap input:focus { outline: none; }

.select-field {
  width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.8rem 0.9rem; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 0; cursor: pointer;
}
.select-field:focus { outline: none; border-color: var(--accent); }

.give-block { margin-top: 1.7rem; }

.give-summary {
  margin-top: 1.8rem; padding: 1.1rem 1.2rem;
  background: var(--accent-soft);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.give-summary .label {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.give-summary .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); }
.give-summary .value .per { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }

.give-submit { margin-top: 1.1rem; }
.give-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }
.give-alert {
  margin-top: 1rem; padding: 0.9rem 1rem;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  font-size: 0.86rem; color: var(--ink);
}
.give-alert[hidden] { display: none; }

.give-aside { display: grid; gap: 1.5rem; }
.trust-card { background: var(--surface); border: 1px solid var(--line); padding: 1.7rem 1.6rem; }
.trust-card h3 { font-size: 1.12rem; }
.trust-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 1rem; }
.trust-list li { display: flex; gap: 0.75rem; font-size: 0.89rem; color: var(--ink-soft); }
.trust-list svg { flex: none; color: var(--accent); margin-top: 1px; }
.trust-list strong { display: block; color: var(--ink); font-size: 0.92rem; margin-bottom: 0.1rem; }

.impact-meter { background: var(--accent-dark); color: var(--on-dark); padding: 1.7rem 1.6rem; }
.impact-meter h3 { color: #fff; font-size: 1.12rem; margin-bottom: 0.6rem; }
.impact-meter .row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
}
.impact-meter .row:last-child { border-bottom: 0; }
.impact-meter .row .amt {
  font-family: var(--font-mono); font-weight: 500;
  color: #fff; white-space: nowrap;
}

/* ---------- Tables / ledger ---------- */
.table-scroll { overflow-x: auto; }
.ledger {
  width: 100%; border-collapse: collapse;
  font-size: 0.93rem; background: var(--surface);
  border: 1px solid var(--line-strong);
}
.ledger caption {
  text-align: left; font-family: var(--font-mono);
  font-size: 0.73rem; letter-spacing: 0.03em;
  color: var(--ink-faint); margin-bottom: 0.7rem;
}
.ledger th, .ledger td { padding: 0.8rem 0.95rem; text-align: left; border-bottom: 1px solid var(--line); }
.ledger thead th {
  font-family: var(--font-mono);
  font-size: 0.69rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}
.ledger td.num, .ledger th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tr.total td, .ledger tr.total th {
  background: var(--accent-soft); font-weight: 700; color: var(--ink);
  border-top: 1px solid var(--line-strong);
}

/* ---------- Metrics ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.25rem; }
@media (max-width: 760px) { .metric-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.metric { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.metric .m-num { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.metric .m-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.02em;
  color: var(--ink-soft); margin-top: 0.65rem;
}

/* ---------- Timeline ---------- */
.timeline { margin: 0; padding: 0 0 0 1.75rem; list-style: none; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute;
  left: calc(-1.75rem - 5px); top: 0.35rem;
  width: 9px; height: 9px; background: var(--accent);
}
.timeline .t-year { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.timeline .t-body { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0; padding: 0 0 1.4rem; color: var(--ink-soft); font-size: 0.96rem; max-width: 52rem; }

/* ---------- Values / roles ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (max-width: 720px) { .value-grid { grid-template-columns: 1fr; } }
.value { border: 1px solid var(--line); margin: -0.5px; padding: 1.6rem 1.7rem; background: var(--surface); }
.value h3 { font-size: 1.14rem; }
.value p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (max-width: 720px) { .role-grid { grid-template-columns: 1fr; } }
.role { border: 1px solid var(--line); margin: -0.5px; padding: 1.5rem 1.6rem; background: var(--surface); }
.role h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.role p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact-card { background: var(--accent-dark); color: var(--on-dark); padding: 3rem 2.5rem; text-align: center; }
.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: #8fae9e; }
.contact-card a.email {
  font-size: 1.35rem; font-weight: 600;
  color: #fff; text-decoration: none;
  border-bottom: 2px solid #8fae9e;
}
.contact-card a.email:hover { border-bottom-color: #fff; color: #fff; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.error-page .big {
  font-size: clamp(4.5rem, 15vw, 9rem);
  font-weight: 700; letter-spacing: -0.05em;
  color: var(--accent); line-height: 1;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.fineprint { font-size: 0.82rem; color: var(--ink-faint); }
.divider-space { height: 1px; background: var(--line); margin: 3rem 0; }

/* ============================================================
   Mobile & responsive refinements
   Breakpoints: 960 (tablet/desktop), 768 (tablet),
   640 (large phone), 430 (common phone), 390 (small phone)
   ============================================================ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: var(--space-section-md) var(--space-section-sm);
  }
  .hero-art { order: 2; }
  .hero-copy { order: 1; }
}

@media (max-width: 640px) {
  :root {
    --header-h: 3rem;
    --space-section-sm: 2.75rem;
  }

  .brand-logo { height: 32px; max-width: 8.75rem; }
  .header-donate.btn--sm { padding: 0.5rem 0.65rem; font-size: 0.76rem; letter-spacing: -0.01em; }
  .header-inner { gap: 0.5rem; }

  .hero-inner {
    padding-block: var(--space-section-sm) 2rem;
    gap: 1.5rem;
  }
  .hero-copy,
  .hero-art {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-tag { font-size: 0.68rem; margin-bottom: 1rem; }
  .hero h1 { margin-bottom: 1rem; line-height: 1.1; }
  .hero-lede { margin-bottom: 1.35rem; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.65rem; margin-bottom: 1.25rem; }
  .hero-actions .btn--lg { width: 100%; padding: 0.95rem 1.25rem; }
  .hero-note { font-size: 0.84rem; padding-top: 1.1rem; max-width: none; }

  .hero-art img {
    max-height: min(42vw, 200px);
    width: auto;
    margin-inline: auto;
    object-fit: contain;
  }
  .hero-art-caption { font-size: 0.68rem; line-height: 1.45; }

  .statband-foot { padding: 1rem var(--space-inline-mobile) 1.25rem; font-size: 0.7rem; line-height: 1.5; }

  .split { gap: 1.75rem; }
  .split h2 { font-size: var(--text-h2); line-height: 1.12; }

  .callout { padding: 1.15rem 1.2rem; margin-top: 1.75rem !important; }
  .callout p { font-size: clamp(1rem, 2.5vw + 0.5rem, 1.2rem) !important; line-height: 1.45 !important; }

  .pillar-grid { gap: 1.75rem; }
  .pillar { padding-top: 1.25rem; }

  .ways-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .way {
    margin: 0;
    padding: 1.35rem 1.25rem;
  }

  .value-grid,
  .role-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .value,
  .role {
    margin: 0;
    padding: 1.35rem 1.25rem;
  }

  .cta-band .wrap { padding-top: var(--space-section-sm); padding-bottom: var(--space-section-sm); }
  .cta-band h2 { line-height: 1.12; margin-bottom: 0.85rem; }
  .cta-band p { font-size: var(--text-body-sm); margin-bottom: 1.5rem; }
  .cta-band .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-band .hero-actions .btn--lg { width: 100%; }

  .site-footer { padding: var(--space-section-sm) 0 max(1.5rem, env(safe-area-inset-bottom)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

  /* Donate page */
  .donate-hero { padding: var(--space-section-sm) 0 2rem; }
  .donate-hero h1 { line-height: 1.1; }
  .donate-hero .lead { font-size: var(--text-body-sm); }

  .give-card { padding: 1.35rem 1.15rem; }
  .give-card h2 { font-size: 1.3rem; }
  .amounts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .amount { margin: 0; padding: 0.85rem 0.8rem; }
  .amount .amount-value { font-size: 1.15rem; }
  .amount .amount-meta { font-size: 0.64rem; line-height: 1.35; }
  .give-summary { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .give-summary .value { font-size: 1.5rem; }
  .give-submit .btn { min-height: 48px; }
  .impact-meter .row { flex-wrap: wrap; font-size: 0.85rem; }
  .impact-meter .row .amt { margin-left: auto; }

  .faq summary { font-size: 1rem; padding: 1rem 0; min-height: 44px; }
  .contact-card { padding: 2rem 1.25rem; }
  .contact-card a.email { font-size: 1.05rem; word-break: break-word; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: var(--space-gap); }
  .metric { border-top-width: 2px; padding-top: 0.95rem; }
  .metric .m-num { font-size: clamp(1.5rem, 4vw + 0.4rem, 2.3rem); }

  .table-scroll { margin-inline: calc(-1 * var(--space-inline-mobile)); padding-inline: var(--space-inline-mobile); }

  .section--pine .split { gap: 1.25rem; }
  .section--pine h2 { line-height: 1.12; }

  .program h3 { line-height: 1.15; }
  .program-details .ministats { gap: 1.25rem 2rem; margin-top: 1rem; padding-top: 1rem; }

  .split > div:first-child img { max-height: 240px; width: 100%; object-fit: contain; }
}

@media (max-width: 390px) {
  :root {
    --space-inline-mobile: 1rem;
    --text-hero: 1.65rem;
    --text-stat: 1.65rem;
  }

  .statband-grid { grid-template-columns: 1fr; }
  .statband-grid .stat { padding: 0.95rem 1rem; }

  .amounts { grid-template-columns: 1fr; }
  .freq-option label { font-size: 0.82rem; padding-inline: 0.35rem; }
}

@media (min-width: 769px) and (max-width: 960px) {
  .ways-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .value-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .value { margin: 0; }
}

@media (min-width: 961px) {
  .header-donate { display: none !important; }
}
