/* Normal Again Foundation — shared stylesheet (no build step; every page links this) */
:root {
  --ember: #b4530a;
  --ember-dark: #8f3f06;
  --charcoal: #2b2521;
  --soft: #6b5f56;
  --cream: #faf6f0;
  --card: #ffffff;
  --line: #e8ddd2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; }
a { color: var(--ember); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }

/* ---- Header / nav ---- */
.site-nav { background: var(--cream); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; gap: 16px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--charcoal); white-space: nowrap; }
.wordmark span { color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ember); }
.nav-links a.active { color: var(--ember); font-weight: 600; }
.nav-links a.btn { color: #fff; }

.btn {
  display: inline-block; background: var(--ember); color: #fff;
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--ember-dark); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ember); border: 2px solid var(--ember); }
.btn-ghost:hover { background: var(--ember); color: #fff; }

/* ---- Page scaffolding ---- */
.hero { padding: 72px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; max-width: 800px; margin: 0 auto 24px; }
.hero p.lead { font-size: 1.2rem; color: var(--soft); max-width: 620px; margin: 0 auto 36px; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.page-head p.lead { font-size: 1.15rem; color: var(--soft); max-width: 680px; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--ember); margin-bottom: 18px;
}
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 20px; }
section h3 { font-size: 1.2rem; margin: 28px 0 10px; }
section p + p { margin-top: 16px; }
.muted { color: var(--soft); }

.mission { background: var(--charcoal); color: #f5efe6; padding: 64px 0; text-align: center; }
.mission .kicker { color: #e8a06a; }
.mission-text {
  font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.55; max-width: 720px; margin: 0 auto;
}
.mission-founded { margin-top: 20px; font-size: .92rem; color: #c9bba9; }

.story-quote {
  border-left: 4px solid var(--ember); padding-left: 22px; margin: 28px 0;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; line-height: 1.5;
}
/* 180px floor so three photos fit across the 652px content width of .narrow
   (700px max-width minus 24px padding each side) instead of wrapping 2 + 1. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 36px 0 8px; }
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%; height: 280px; object-fit: cover; object-position: center 25%;
  border-radius: 12px; border: 1px solid var(--line); display: block;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px;
}
.card h3 { font-size: 1.15rem; margin: 0 0 10px; color: var(--ember-dark); }
.card p { font-size: .95rem; color: var(--soft); }

/* ---- Callouts ---- */
.note-box {
  background: #fdf1e5; border: 1px solid #f0d9c2; border-radius: 12px;
  padding: 22px 26px; margin: 28px 0; font-size: .95rem;
}
.legal-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ember);
  border-radius: 8px; padding: 20px 24px; margin: 24px 0; font-size: .92rem; color: var(--soft);
}
.eligibility-box {
  background: var(--charcoal); color: #f5efe6; border-radius: 12px;
  padding: 24px 28px; margin: 28px 0; font-size: 1.05rem;
  font-family: 'Fraunces', Georgia, serif;
}

/* ---- Forms ---- */
form { margin-top: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--charcoal);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: var(--ember); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; margin-top: 8px; }
.checks label { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 400; cursor: pointer; }
.checks input { width: 17px; height: 17px; accent-color: var(--ember); }
.hint { font-size: .85rem; color: var(--soft); margin-top: 4px; }

/* ---- Donation form embed (Zeffy) ---- */
/* Height is fixed because the Zeffy iframe is cross-origin and cannot report
   its own size to us — there is no auto-resize to hook into. It is deliberately
   sized for the TALLEST step (contact details, then card entry), not the first
   one: an over-tall frame shows some empty space below the card, which is much
   better than an inner scrollbar trapping a donor mid-payment. The form stacks
   into one column at narrow widths, so mobile needs more height, not less. */
.zeffy-embed { position: relative; width: 100%; height: 1150px; margin: 24px 0 8px; }
.zeffy-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .zeffy-embed { height: 1350px; } }

/* ---- Tables & stats (transparency) ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 32px 0; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; text-align: center;
}
.stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--ember-dark); }
.stat .label { font-size: .85rem; color: var(--soft); margin-top: 4px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
table.ledger { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
table.ledger th, table.ledger td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.ledger th { background: var(--cream); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.ledger td.empty { color: var(--soft); font-style: italic; }

/* ---- Board page role table ---- */
table.role { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .97rem; margin: 24px 0; }
table.role th, table.role td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.role th { width: 160px; background: var(--cream); font-weight: 600; }

/* ---- CTA band ---- */
.cta-band { background: var(--ember-dark); color: #fff; text-align: center; padding: 56px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #f6dfc9; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--ember-dark); }
.cta-band .btn:hover { background: var(--cream); }

/* ---- Footer ---- */
.site-footer { background: var(--charcoal); color: #cfc4b8; padding: 56px 0 40px; font-size: .9rem; }
.site-footer a { color: #e8a06a; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.15rem; color: #f5efe6; margin-bottom: 8px; }
.footer-grid p + p { margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-legal { border-top: 1px solid #453c34; padding-top: 24px; }
.footer-legal p { font-size: .82rem; color: #a89a8b; line-height: 1.6; }
.footer-legal p + p { margin-top: 12px; }
