/* ==========================================================================
   STENCH — Portland, OR · after-school education
   Design system: warm paper, deep forest, marigold, a lot of glue.
   ========================================================================== */

:root {
  --cream: #f7f3e6;
  --cream-2: #f1ebdb;
  --paper: #fffdf6;
  --ink: #1b2018;
  --ink-soft: #4a5045;
  --forest: #163f2e;
  --moss: #2f6b4f;
  --sage: #cfe0d2;
  --sage-2: #e4ecdf;
  --marigold: #f2b04a;
  --marigold-soft: #f8d79a;
  --clay: #c2553c;
  --line: rgba(27, 32, 24, .14);
  --line-strong: rgba(27, 32, 24, .3);
  --shadow: 0 2px 0 rgba(27, 32, 24, .04), 0 14px 34px -20px rgba(27, 32, 24, .45);
  --shadow-lg: 0 3px 0 rgba(27, 32, 24, .05), 0 28px 60px -28px rgba(22, 63, 46, .5);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moss); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.24rem; letter-spacing: -.015em; }
h4 { font-size: 1.02rem; font-family: var(--sans); letter-spacing: 0; }

strong { font-weight: 700; }

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

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

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 44px, 780px); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 999;
  background: var(--forest); color: #fff; padding: 12px 18px;
  border-radius: 0 0 12px 12px; text-decoration: none; font-weight: 600;
  transition: top .18s ease;
}
.skip:focus { top: 0; color: #fff; }

.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;
}

/* ---------------------------------------------------------------- utilities */
.kicker {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block;
  border-radius: 2px;
}
.kicker.on-dark { color: var(--marigold-soft); }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.hl {
  background-image: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 96%, transparent 96%);
  padding: 0 .06em;
}
.hl-green {
  background-image: linear-gradient(transparent 64%, var(--sage) 64%, var(--sage) 96%, transparent 96%);
}

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--forest);
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
}
.link-arrow:hover { gap: 12px; color: var(--moss); }
.link-arrow .ic-sm { transition: transform .18s ease; }

.divider { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 44px 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-solid:hover { background: var(--moss); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(22, 63, 46, .8); }
.btn-line { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-line:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn-marigold { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.btn-marigold:hover { background: var(--marigold-soft); transform: translateY(-2px); }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 80;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand-mark { width: 40px; height: 40px; color: var(--forest); }
.brand:hover .brand-mark { color: var(--clay); }
.brand-txt {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .06em; line-height: 1; display: flex; flex-direction: column; gap: 3px;
}
.brand-txt small {
  font-family: var(--sans); font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
}

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

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.sub-toggle { display: none; }
.nav-top {
  display: block; padding: 10px 12px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.nav-top:hover { background: var(--sage-2); color: var(--forest); }
.nav-item.is-active > .nav-top { background: var(--forest); color: #fff; }

.sub {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 236px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px; margin: 0; list-style: none;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .sub,
.nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: .9rem;
}
.sub a:hover { background: var(--sage-2); color: var(--forest); }
.nav-extra { display: none; }
.head-donate { flex: none; }

/* ticker */
.ticker {
  background: var(--forest); color: var(--cream);
  overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.ticker-track {
  display: flex; align-items: center; gap: 18px; width: max-content;
  padding: 9px 0; animation: tick 48s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.tick-dot { color: var(--marigold); font-size: .8rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------------------------------------------------------------- heroes */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(34px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-tint { background: var(--sage-2); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 6px; }

.crumbs {
  font-size: .78rem; color: var(--ink-soft); margin-bottom: 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--forest); border-bottom-color: currentColor; }
.crumb-sep { opacity: .4; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; padding: 20px 0 0;
  border-top: 1.5px dashed var(--line-strong);
}
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts dt {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--moss);
}
.hero-facts dd { margin: 0; font-family: var(--serif); font-size: 1.06rem; font-weight: 600; }

/* home hero */
.home-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.home-hero h1 { margin-bottom: .28em; }
.home-hero .lede { margin: 20px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 0 rgba(47, 107, 79, .5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 79, .45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 107, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 79, 0); }
}

.hero-art { position: relative; min-height: 420px; }
.art-frame {
  position: absolute; inset: 0;
  background: var(--forest);
  border-radius: 46% 54% 42% 58% / 46% 42% 58% 54%;
  transform: rotate(-2.5deg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.art-frame svg { width: 100%; height: 100%; }
.art-card {
  position: absolute; bottom: 6px; left: -10px;
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: 14px; padding: 14px 18px; box-shadow: 5px 6px 0 var(--marigold);
  transform: rotate(-2deg);
  max-width: 232px;
}
.art-card strong { font-family: var(--serif); font-size: 1.7rem; display: block; line-height: 1; }
.art-card span { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 600; }
.sticker {
  position: absolute; top: -6px; right: 4px;
  background: var(--marigold); color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ink);
  transform: rotate(6deg); box-shadow: 3px 3px 0 var(--ink);
}

/* stats band */
.stats-band { background: var(--forest); color: var(--cream); padding: clamp(30px, 4vw, 44px) 0; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.statrow .stat-n { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--marigold); display: block; line-height: 1; }
.statrow .stat-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; color: rgba(247, 243, 230, .75); font-weight: 500; }
.statrow .stat { border-left: 1px solid rgba(247, 243, 230, .22); padding-left: 20px; }
.statrow .stat:first-child { border-left: 0; padding-left: 0; }

/* ---------------------------------------------------------------- sections */
.band { padding: clamp(44px, 6vw, 76px) 0; }
.band.paper { background: var(--paper); }
.band.sage { background: var(--sage-2); }
.band.forest { background: var(--forest); color: var(--cream); }
.band.forest h2, .band.forest h3 { color: var(--cream); }
.band.forest p { color: rgba(247, 243, 230, .82); }
.band.tight { padding: clamp(30px, 4vw, 48px) 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head > div { max-width: 62ch; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 10px 0 0; color: var(--ink-soft); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* cards */
.cards { display: grid; gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px;
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.card h3 { margin: 0; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.card-tag {
  font-size: .68rem !important; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--moss) !important; margin-bottom: 2px !important;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-go {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--forest);
}
.card-go .ic-sm { transition: transform .18s ease; }
.card-link:hover .card-go .ic-sm { transform: translateX(4px); }

/* program cards */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog-card {
  --accent: var(--moss);
  display: flex; flex-direction: column; gap: 9px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px 20px; text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.prog-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent);
}
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prog-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
  color: var(--accent); margin-bottom: 4px;
}
.prog-ic .ic { width: 24px; height: 24px; }
.prog-card h3 { margin: 0; }
.prog-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* quotes */
.quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  margin: 0; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; right: 20px;
  font-family: var(--serif); font-size: 4.4rem; line-height: 1; color: var(--marigold);
  opacity: .55;
}
.quote blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -.01em;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .86rem; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption em { font-style: normal; color: var(--ink-soft); font-size: .8rem; }
.ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--sage); color: var(--forest);
  font-family: var(--serif); font-weight: 700; font-size: .92rem; border: 1px solid var(--line);
}

/* events */
.events-list { display: flex; flex-direction: column; border-top: 1.5px solid var(--line-strong); }
.event-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 6px; border-bottom: 1.5px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .15s ease, padding .15s ease;
}
.event-row:hover { background: var(--sage-2); padding-left: 14px; padding-right: 14px; }
.ev-date { text-align: center; border-right: 1.5px dashed var(--line-strong); }
.ev-m { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--clay); }
.ev-d { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; font-weight: 600; }
.event-row h3 { margin: 0 0 3px; font-size: 1.12rem; }
.event-row p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.ev-meta { display: flex; gap: 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--moss); font-weight: 600; margin-top: 6px; flex-wrap: wrap; }
.ev-go { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--forest); flex: none; }
.event-row:hover .ev-go { background: var(--forest); color: #fff; border-color: var(--forest); }

/* feature split with tile */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 58px); align-items: center; }
.feature.rev .feature-art { order: -1; }
.tile {
  --accent: var(--moss);
  margin: 0; position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .6) 0 2px, transparent 2px),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255, 255, 255, .09) 13px 14px),
    var(--accent);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.tile > span {
  font-family: var(--serif); font-size: clamp(4rem, 11vw, 8rem); font-weight: 700;
  color: rgba(255, 255, 255, .82); letter-spacing: -.04em; line-height: 1;
  transform: rotate(-4deg);
}
.tile figcaption {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

/* stats grid inline */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.statgrid .stat { background: var(--paper); padding: 22px 20px; }
.stat-n { font-family: var(--serif); font-size: 2rem; display: block; line-height: 1; margin-bottom: 6px; color: var(--forest); }
.stat-l { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; }

/* callouts */
.callout {
  display: grid; grid-template-columns: 190px 1fr; gap: 22px;
  padding: 22px 24px; border-radius: var(--r); margin: 30px 0;
  background: var(--sage-2); border: 1.5px solid transparent;
  border-left: 5px solid var(--moss);
}
.callout-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--forest); margin: 0; }
.callout div p:last-child { margin-bottom: 0; }
.callout p { font-size: .95rem; }
.callout-warn { background: #fbeedd; border-left-color: var(--clay); }
.callout-warn .callout-k { color: var(--clay); }
.callout-good { background: #eaf1e4; border-left-color: var(--moss); }

/* lists */
.band ul, .band ol { padding-left: 1.15em; margin: 0 0 1.1em; }
.band li { margin-bottom: .5em; }
.band li::marker { color: var(--moss); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--sage);
  color: var(--forest); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* split + sidebars */
.split { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(28px, 5vw, 58px); align-items: start; }
.split-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.side-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.side-card p, .side-card li { font-size: .9rem; color: var(--ink-soft); }
.side-card ul { margin: 0; padding-left: 1.1em; }
.side-card.marigold { background: var(--marigold); border-color: var(--ink); }
.side-card.marigold p, .side-card.marigold h3 { color: var(--ink); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; border-left: 2px dashed var(--sage); }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 26px; padding-bottom: 30px; position: relative; }
.tl-year { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--moss); padding-top: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: 56px; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--marigold); border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--moss);
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th {
  text-align: left; font-family: var(--sans); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--moss); padding: 14px 16px; border-bottom: 1.5px solid var(--line-strong);
  background: var(--sage-2); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }

/* filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
[data-tags] { transition: opacity .2s ease; }
.is-hidden { display: none !important; }

/* CTA band */
.cta-band { padding: 0 0 clamp(44px, 6vw, 70px); }
.cta-inner {
  background: var(--marigold); border: 1.5px solid var(--ink); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; box-shadow: 6px 6px 0 rgba(27, 32, 24, .9);
}
.cta-inner h2 { margin-bottom: .25em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta-inner p { margin: 0; max-width: 52ch; color: #3a3320; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* related */
.related { padding: 0 0 clamp(42px, 6vw, 68px); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.rel:hover { border-color: var(--forest); transform: translateY(-2px); }
.rel strong { font-weight: 600; font-size: .96rem; }
.rel span { font-size: .8rem; color: var(--ink-soft); }

/* article / prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--marigold);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4;
}
.prose figure { margin: 30px 0; }
.prose figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }

.post-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-bottom: 28px; }
.post-tag { background: var(--sage-2); color: var(--forest); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

/* forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 2px solid var(--sage); outline-offset: 1px; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--ink-soft); }

/* faq */
.faq { border-top: 1.5px solid var(--line-strong); }
.faq details { border-bottom: 1.5px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--moss); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--forest); }
.faq details p, .faq details ul { margin: 12px 0 0; color: var(--ink-soft); font-size: .96rem; max-width: 68ch; }
.faq details > div > *:first-child { margin-top: 12px; }

/* decorative map */
.map {
  border-radius: var(--r-lg); border: 1.5px solid var(--line); overflow: hidden;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--sage-2);
  aspect-ratio: 16 / 10; position: relative;
}
.map::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 14px;
  background: var(--paper); border-block: 1.5px solid var(--line-strong);
  transform: rotate(-7deg);
}
.map-pin {
  position: absolute; left: 42%; top: 38%; width: 46px; height: 46px; border-radius: 50% 50% 50% 4px;
  background: var(--clay); border: 2px solid var(--ink); transform: rotate(-45deg);
  display: grid; place-items: center; box-shadow: 3px 3px 0 rgba(27,32,24,.25);
}
.map-pin span { transform: rotate(45deg); font-size: .6rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.map-label {
  position: absolute; left: 46%; top: 52%; background: var(--ink); color: var(--cream);
  font-size: .68rem; padding: 5px 9px; border-radius: 6px; font-weight: 600;
}

/* nothing page */
.void-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.void-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); margin: 0 auto 30px; }
.void-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4em; }
.void-wrap p { max-width: 46ch; color: var(--ink-soft); }
.breath { width: min(320px, 70vw); aspect-ratio: 1; border: 1.5px dashed var(--line-strong); border-radius: 50%; margin: 34px auto; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--forest); color: rgba(247, 243, 230, .8); padding: clamp(48px, 6vw, 72px) 0 0; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px 26px; }
.foot-logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .08em; color: var(--cream); font-weight: 700; margin-bottom: 6px; }
.foot-tag { font-size: .78rem; letter-spacing: .04em; color: var(--marigold); margin-bottom: 16px; }
.foot-brand p { font-size: .88rem; line-height: 1.6; }
.foot-brand address { font-style: normal; font-size: .88rem; line-height: 1.7; margin: 16px 0 12px; }
.foot-brand a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(247, 243, 230, .35); }
.foot-brand a:hover { color: var(--marigold); }
.foot-501 { font-size: .72rem !important; color: rgba(247, 243, 230, .55) !important; letter-spacing: .04em; }
.foot-col h3 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--marigold); font-weight: 700; margin-bottom: 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: rgba(247, 243, 230, .8); text-decoration: none; font-size: .87rem; }
.foot-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot-bar {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 44px; padding: 18px 0; border-top: 1px solid rgba(247, 243, 230, .18);
  font-size: .78rem; color: rgba(247, 243, 230, .6);
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: rgba(247, 243, 230, .7); text-decoration: none; }
.foot-links a:hover { color: var(--marigold); }
.foot-big {
  font-family: var(--serif); font-weight: 700; font-size: clamp(5rem, 21vw, 20rem);
  line-height: .72; letter-spacing: -.02em; color: rgba(247, 243, 230, .045);
  text-align: center; pointer-events: none; user-select: none; margin-bottom: -0.12em;
}

/* sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.sitemap-group h2 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss); border-bottom: 1.5px solid var(--line-strong); padding-bottom: 10px; margin-bottom: 14px;
}
.sitemap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sitemap-list a { color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.sitemap-list a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .statgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .head-donate { display: none; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--cream);
    padding: 18px 22px 40px; overflow-y: auto; display: none; z-index: 70;
    border-top: 1px solid var(--line);
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-top { font-family: var(--serif); font-size: 1.35rem; padding: 12px 4px; border-radius: 8px; }
  .nav-item.is-active > .nav-top { background: none; color: var(--forest); }
  .sub-toggle {
    display: grid; place-items: center; position: absolute; right: 0; top: 5px;
    width: 44px; height: 44px; border: 0; background: transparent; color: var(--forest);
    cursor: pointer; border-radius: 10px;
  }
  .sub-toggle:hover { background: var(--sage-2); }
  .sub-toggle svg { transition: transform .2s ease; }
  .nav-item.open .sub-toggle svg { transform: rotate(180deg); }
  .nav-item.open > .nav-top { color: var(--forest); }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--sage);
    border-radius: 0; padding: 0 0 10px 14px; margin: 0 0 8px 4px;
    display: none; gap: 2px; min-width: 0;
  }
  .nav-item.open .sub { display: grid; }
  .sub a { padding: 7px 4px; font-size: .95rem; }
  .nav-extra { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1.5px dashed var(--line-strong); }
  .nav-phone { font-weight: 600; text-decoration: none; }
  .home-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; max-width: 420px; margin: 10px auto 0; width: 100%; }
  .split, .feature, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .statrow { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .statrow .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .ticker-track { animation-duration: 34s; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 34px); }
  .head-inner { min-height: 68px; }
  .site-nav { top: 68px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-txt { font-size: 1.15rem; }
  .home-hero { padding-top: 26px; }
  .hero-art { min-height: 290px; }
  .art-card { left: 0; bottom: -8px; padding: 11px 14px; }
  .art-card strong { font-size: 1.35rem; }
  .sticker { right: -4px; font-size: .62rem; padding: 7px 11px; }
  .prog-grid, .cards.cols-2, .cards.cols-3, .cards.cols-4, .quotes-grid, .rel-grid, .grid-4, .statgrid, .sitemap-grid { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .statrow .stat { border-left: 1.5px solid rgba(247,243,230,.2); padding-left: 14px; }
  .statrow .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .event-row { grid-template-columns: 66px 1fr; gap: 14px; }
  .ev-d { font-size: 1.5rem; }
  .ev-go { display: none; }
  .callout { grid-template-columns: 1fr; gap: 8px; }
  .cta-inner { flex-direction: column; align-items: flex-start; box-shadow: 4px 4px 0 rgba(27,32,24,.9); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-big { font-size: 26vw; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline::before { left: 48px; }
  .timeline li::before { left: 42px; }
  .section-head { margin-bottom: 24px; }
  .band { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .pulse, .breath { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

@media print {
  .site-head, .ticker, .site-foot, .cta-band, .related { display: none; }
  body { background: #fff; font-size: 12pt; }
  .js .reveal { opacity: 1; transform: none; }
}
