/* ============================================================
   Eric Foundation — design system
   Deep evergreen + warm cream + harvest gold. Serif display
   (Fraunces) over a clean sans (Inter).
   ============================================================ */

:root {
  --green-950: #0E241E;
  --green-900: #14342C;
  --green-800: #173F35;
  --green-700: #1E5346;
  --green-600: #2A6B5A;
  --green-100: #E3EDE7;
  --gold: #C99B4A;
  --gold-dark: #A87F33;
  --gold-soft: #F0E4CB;
  --cream: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #24322C;
  --muted: #5D6B64;
  --line: #E6E0D2;
  --shadow-sm: 0 1px 2px rgba(20, 52, 44, .06), 0 2px 8px rgba(20, 52, 44, .05);
  --shadow-md: 0 2px 6px rgba(20, 52, 44, .07), 0 12px 32px rgba(20, 52, 44, .10);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --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; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.005em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--green-900); }
.small { font-size: .88rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tint { background: linear-gradient(180deg, #F4EFE3 0%, var(--cream) 100%); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin: 0 0 14px;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; border-radius: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--green-900); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 10px 13px; border-radius: 9px; }
.nav a:hover { background: var(--green-100); color: var(--green-900); }
.nav a[aria-current="page"] { color: var(--green-800); background: var(--green-100); font-weight: 600; }
.nav .drop { position: relative; }
.nav .drop > a::after { content: "▾"; font-size: .7rem; margin-left: 5px; color: var(--muted); }
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; display: none;
}
.nav .drop:hover .menu, .nav .drop:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: 10px 14px; }
.nav .menu .menu-title { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; }
.btn-nav { margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 4px 14px rgba(200, 155, 74, .35); }
.btn-gold:hover { background: #D4A85C; color: var(--green-950); }
.btn-primary { background: var(--green-800); color: #FDFBF6; box-shadow: 0 4px 14px rgba(23, 63, 53, .28); }
.btn-primary:hover { background: var(--green-700); color: #FDFBF6; }
.btn-ghost { border-color: rgba(253, 251, 246, .65); color: #FDFBF6; }
.btn-ghost:hover { background: rgba(253, 251, 246, .12); color: #fff; }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #FDFBF6;
  background:
    linear-gradient(185deg, rgba(14, 36, 30, .78) 0%, rgba(20, 52, 44, .66) 45%, rgba(14, 36, 30, .86) 100%),
    url("../images/hero-sunset.jpg") center / cover no-repeat;
  padding: 108px 0 116px;
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #FDFBF6; max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; color: rgba(253, 251, 246, .92); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- fact strip ---------- */
.facts { background: var(--green-950); color: rgba(253, 251, 246, .85); padding: 22px 0; }
.facts .container { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; }
.fact { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.fact svg { flex: none; }
.fact strong { color: #FDFBF6; font-weight: 600; }

/* ---------- split about ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.goals { list-style: none; padding: 0; margin: 26px 0 0; }
.goals li { display: flex; gap: 14px; margin-bottom: 18px; }
.goals .tick {
  flex: none; width: 28px; height: 28px; border-radius: 999px; margin-top: 3px;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.goals .tick svg { width: 13px; height: 13px; }
.figure-card { position: relative; }
.figure-card img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.figure-card figcaption {
  margin: 14px 4px 0; font-size: .85rem; color: var(--muted); line-height: 1.5;
}
.stat-chip {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px 20px; text-align: center; max-width: 190px;
}
.stat-chip .n { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--green-800); }
.stat-chip .t { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- project cards ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-100);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }

/* ---------- workshop band ---------- */
.workshop {
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%, var(--green-950) 100%);
  color: rgba(253, 251, 246, .88); border-radius: var(--radius-lg);
  padding: 52px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.workshop h2 { color: #FDFBF6; }
.workshop .eyebrow { color: var(--gold-soft); }
.workshop img { border-radius: var(--radius); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); background: #fff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stat {
  background: rgba(253, 251, 246, .08); border: 1px solid rgba(253, 251, 246, .16);
  border-radius: var(--radius); padding: 12px 18px; font-size: .88rem; line-height: 1.4;
}
.stat b { display: block; font-size: 1.06rem; color: #FDFBF6; }

/* ---------- event list ---------- */
.event-list { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }
.event {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event .when { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event .when .m { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.event .when .d { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--green-900); line-height: 1.1; }
.event .when .y { font-size: .74rem; color: var(--muted); }
.event h3 { margin: 0 0 4px; font-size: 1.12rem; }
.event .meta { color: var(--muted); font-size: .88rem; }
.event .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.note-box {
  background: var(--gold-soft); border: 1px solid #E3D2AC; border-radius: var(--radius);
  padding: 20px 24px; font-size: .95rem; max-width: 780px; margin: 26px auto 0;
}
.note-box strong { color: var(--green-900); }

/* ---------- quote ---------- */
.quote { background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px; box-shadow: var(--shadow-sm); }
.quote p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--green-900); margin: 0 0 10px; }
.quote cite { font-style: normal; font-size: .88rem; color: var(--muted); }

/* ---------- donate band ---------- */
.donate-band {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(201, 155, 74, .25), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  color: rgba(253, 251, 246, .9); padding: 84px 0; text-align: center;
}
.donate-band h2 { color: #FDFBF6; }
.donate-band p { max-width: 62ch; margin: 0 auto 26px; }
.donate-band .eyebrow { color: var(--gold-soft); }
.donate-band .eyebrow::before { background: var(--gold); }

/* ---------- resource cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.res-card h3 { font-size: 1.12rem; }
.res-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.res-card .more { font-weight: 600; font-size: .95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-card a { font-weight: 600; text-decoration: none; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); max-width: 660px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-900); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; border-color: var(--green-600); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.form-hint { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- donate page ---------- */
.donate-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.method-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.method-card h3 { display: flex; align-items: center; gap: 12px; }
.method-card .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.transfer-box {
  display: inline-block; background: var(--green-100); border: 1px dashed var(--green-600);
  border-radius: 10px; padding: 12px 18px; font-weight: 600; color: var(--green-900);
  letter-spacing: .02em; word-break: break-all;
}
.reg-list { list-style: none; padding: 0; margin: 20px 0 0; }
.reg-list li { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed var(--line); padding: 10px 2px; font-size: .93rem; }
.reg-list li span:first-child { color: var(--muted); }
.reg-list li span:last-child { font-weight: 600; color: var(--green-900); text-align: right; }

/* ---------- event detail ---------- */
.event-hero { background: linear-gradient(180deg, #F4EFE3, var(--cream)); border-bottom: 1px solid var(--line); padding: 64px 0 54px; }
.pill-passed { display: inline-block; background: #F3E3E0; color: #8C3B2E; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.details-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.details-card dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.details-card dt:first-child { margin-top: 0; }
.details-card dd { margin: 3px 0 0; font-weight: 600; color: var(--green-900); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; }
.pager a { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--green-700); }
.pager a:hover { text-decoration: underline; }

/* ---------- album ---------- */
.album { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.album figure { margin: 0; }
.album img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.album figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.album .wide { grid-column: 1 / -1; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: linear-gradient(180deg, #F4EFE3, var(--cream)); border-bottom: 1px solid var(--line); padding: 64px 0 58px; }
.page-head p.sub { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--green-700); font-weight: 600; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .6em; }
.two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: start; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.aside-card li:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: rgba(253, 251, 246, .72); margin-top: 0; }
.footer-cta { border-bottom: 1px solid rgba(253, 251, 246, .12); padding: 56px 0; text-align: center; }
.footer-cta h2 { color: #FDFBF6; }
.footer-cta p { max-width: 60ch; margin: 0 auto 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-grid h4 { color: #FDFBF6; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 16px; }
.footer-grid a { color: rgba(253, 251, 246, .72); text-decoration: none; display: block; padding: 5px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand .brand-name { color: #FDFBF6; }
.footer-mission { font-size: .93rem; max-width: 34ch; }
.footer-note { border-top: 1px solid rgba(253, 251, 246, .12); padding: 22px 0 30px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }
.footer-note a { color: rgba(253, 251, 246, .72); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 110px 0 130px; }
.nf .code { font-family: var(--serif); font-size: 5.4rem; font-weight: 700; color: var(--green-800); line-height: 1; margin-bottom: 10px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .two-col, .donate-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .workshop { grid-template-columns: 1fr; padding: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-chip { right: 8px; bottom: -18px; }
  .hero { padding: 84px 0 92px; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .cards-2, .contact-grid, .album { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; padding: 14px 18px 22px; gap: 2px;
  }
  .nav a { padding: 13px 10px; }
  .nav .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav .drop > a::after { content: ""; }
  .btn-nav { margin: 10px 0 0; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: var(--green-100); border: 0; border-radius: 10px; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  body.nav-open .nav { display: flex; }
  .event { grid-template-columns: 74px 1fr; }
  .event .tag { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .facts .container { flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .pager { flex-direction: column; }
}
