/* ==========================================================================
   Z-Survivor Fund — style.css
   --------------------------------------------------------------------------
   Single stylesheet. No build step, no preprocessor, no external requests.

   CONVENTIONS (see ARCHITECTURE.md):
     • No inline style="" attributes in the HTML. Everything lives here.
     • --gold (#e8b858, straight off the logo) works as a surface AND as text
       on the dark navy (9.66:1). On LIGHT backgrounds use --gold-deep instead;
       --gold on white is only 1.8:1.
     • Active nav page is marked with aria-current="page", not a class.

   SECTIONS
     1.  Design tokens
     2.  Reset & document
     3.  Base typography
     4.  Utilities
     5.  Skip link & focus
     6.  Header / navigation
     7.  Hero
     8.  Layout (container, section, split, divider)
     9.  Buttons
     10. Cards & grids
     11. Stat band
     12. Pull quote
     13. Contact methods
     14. CTA band
     15. Book cover & portrait
     16. Footer
     17. Responsive
     18. Motion & print
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand -------------------------------------------------------------
     Sampled directly from assets/Z-Survivor Fund Logo.png (the top-right
     mark). The logo gold is brighter than the old brand gold, which lifts
     every pairing: navy-on-gold went from 4.68:1 to 9.66:1. */
  --navy:       #0d1925;  /* Logo background. THE dark surface (17.8:1 vs white) */
  --navy-deep:  #060e17;  /* Deeper still — gradient floor                  */
  --navy-lift:  #142338;  /* Raised panel on a dark surface                 */
  --navy-soft:  #204060;  /* Ring steel from the mark — hairlines on dark   */
  --gold:       #e8b858;  /* The "Z" gold. Surfaces, and text on dark (9.66:1) */
  --gold-light: #f0c060;  /* Logo highlight — hover, sun core               */
  --gold-deep:  #8d6c2b;  /* Gold TEXT on LIGHT backgrounds (4.65:1)        */
  --gold-rule:  #b08038;  /* Shadow gold from the mark — rules on dark      */
  --gold-tint:  #fdf8ec;  /* Barely-there gold wash — feature surfaces      */
  --sun:        #ffb347;  /* Sunrise core — glow accents only, never text   */
  --on-dark:    #cfd8e3;  /* Body copy on dark surfaces (12.3:1)            */

  /* --- Neutrals --------------------------------------------------------- */
  --bg:         #f8fafc;  /* Soft off-white page background                 */
  --surface:    #ffffff;  /* Card / panel background                        */
  --border:     #e2e8f0;  /* Hairline borders and dividers                  */
  --text:       #2d3748;  /* Body text — 11.5:1 on --bg                     */
  --text-muted: #4a5568;  /* Secondary text — 7.4:1 on --bg                 */

  /* --- Spacing scale ---------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* --- Fluid type scale ------------------------------------------------- */
  --step--1: clamp(0.875rem, 0.85rem + 0.10vw, 0.95rem);
  --step-0:  clamp(1rem,     0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --step-2:  clamp(1.35rem,  1.24rem + 0.55vw, 1.6rem);
  --step-3:  clamp(1.6rem,   1.35rem + 1.20vw, 2.1rem);
  --step-4:  clamp(2.1rem,   1.55rem + 2.60vw, 3.2rem);

  /* --- Radii ------------------------------------------------------------ */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-sm: 0 1px 3px rgba(6, 14, 23, 0.09);
  --shadow-md: 0 4px 14px rgba(6, 14, 23, 0.10);
  --shadow-lg: 0 14px 40px rgba(6, 14, 23, 0.16);
  --glow-gold: 0 6px 22px rgba(232, 184, 88, 0.34);

  /* --- Measure ---------------------------------------------------------- */
  --width-page:    1140px;  /* header & footer inner width */
  --width-content: 1040px;  /* main content width          */
  --width-measure:  760px;  /* comfortable reading width   */

  /* --- Type families -----------------------------------------------------
     Both are local system stacks — the zero-external-requests rule holds. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Motion ----------------------------------------------------------- */
  --transition: 0.2s ease;

  /* --- Legacy aliases ---------------------------------------------------
     Kept so any stray var() reference from the original markup still
     resolves. Prefer the names above in new code. */
  --primary-color: var(--navy);
  --accent-color:  var(--gold);
  --bg-light:      var(--bg);
  --text-dark:     var(--text);
  --white:         var(--surface);
}


/* ==========================================================================
   2. RESET & DOCUMENT
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Sticky header must not cover in-page anchor targets. */
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;  /* disabled by the reduced-motion block in §18 */
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Footer pins to the bottom on short pages. */
body > footer { margin-top: auto; }

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

::selection {
  background: var(--gold);
  color: var(--navy);
}


/* ==========================================================================
   3. BASE TYPOGRAPHY
   --------------------------------------------------------------------------
   The original sheet reset all margins to 0 but never restored paragraph
   spacing, which is why 23 inline style="" attributes existed. These rules
   replace every one of them.
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.22;
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); margin-bottom: var(--space-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); margin-bottom: var(--space-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
h4 { font-size: var(--step-0); margin-bottom: var(--space-2); }

p  { margin-bottom: var(--space-3); }

ul, ol {
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

li { margin-bottom: var(--space-2); }

/* Never leave trailing space at the bottom of a container. */
p:last-child,
ul:last-child,
ol:last-child,
h2:last-child,
h3:last-child { margin-bottom: 0; }

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

a {
  color: var(--gold-deep);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--navy); }


/* ==========================================================================
   4. UTILITIES
   ========================================================================== */

.measure     { max-width: var(--width-measure); margin-inline: auto; }
.text-center { text-align: center; }
.muted       { color: var(--text-muted); }
.small       { font-size: var(--step--1); }

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-2);
}

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--border) 12%, var(--gold-deep) 50%, var(--border) 88%, transparent);
  opacity: 0.5;
  margin: var(--space-6) 0;
}

/* Rule-flanked label, echoing the "— Z-SURVIVOR FUND —" lockup in the mark. */
.eyebrow--ruled {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow--ruled::after {
  content: "";
  height: 1px;
  width: clamp(24px, 8vw, 56px);
  background: currentColor;
  opacity: 0.7;
}

/* Centred contexts get the matching leading rule, completing the
   "— Z-SURVIVOR FUND —" treatment from the logo lockup. */
.hero .eyebrow--ruled,
.text-center .eyebrow--ruled,
.cta-band .eyebrow--ruled {
  justify-content: center;
}

.hero .eyebrow--ruled::before,
.text-center .eyebrow--ruled::before,
.cta-band .eyebrow--ruled::before {
  content: "";
  height: 1px;
  width: clamp(24px, 8vw, 56px);
  background: currentColor;
  opacity: 0.7;
}

/* Screen-reader-only text. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================================
   5. SKIP LINK & FOCUS
   --------------------------------------------------------------------------
   The original sheet had zero :focus styling of any kind.
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
  background: var(--gold);
  color: var(--navy);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On navy surfaces the dark-gold ring is hard to see — go white. */
header :focus-visible,
.hero :focus-visible,
.stat-band :focus-visible,
.cta-band :focus-visible,
footer :focus-visible {
  outline-color: var(--surface);
}


/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */

header {
  background-color: var(--navy);   /* exactly the background the logo sits on */
  color: var(--surface);
  padding: var(--space-3) var(--space-5);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

/* Lit hairline under the header, matching the water line inside the mark. */
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(232, 184, 88, 0.5) 28%, rgba(232, 184, 88, 0.5) 72%, transparent);
}

.nav-container {
  max-width: var(--width-page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--gold);
}

/* Metallic sheen mirroring the gradient fill of the "Z" itself. Gated so
   unsupporting browsers keep the solid gold above (9.66:1 on the navy). */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .logo__word {
    background: linear-gradient(175deg, #f7dda2 0%, var(--gold) 42%, var(--gold-rule) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Scoped to the primary nav by id — the footer's link columns are also <nav>
   landmarks and must not inherit the horizontal header layout. */
#site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
}

#site-nav li { margin-bottom: 0; }

#site-nav a {
  color: var(--surface);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

#site-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Current page: gold AND an underline — color alone would fail WCAG 1.4.1. */
#site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

/* The nav Donate button keeps its button styling in all states. */
#site-nav a.btn,
#site-nav a.btn:hover,
#site-nav a.btn[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: transparent;
}

/* --- Hamburger (shown only on small screens, only when JS is active) ----- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--navy-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--surface);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   7. HERO
   --------------------------------------------------------------------------
   Replaces the original background image, which pointed at via.placeholder.com
   (a host that has since shut down — the request always failed). This gradient
   is entirely self-contained. See SETUP.md to swap in a real photograph.
   ========================================================================== */

/* The signature surface: a sunrise breaking over a dark horizon, lifted
   straight out of the logo mark. Every dark band on the site is a variation
   of this, so the artwork and the page read as one object. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 50% 102%, rgba(255, 179, 71, 0.34), transparent 68%),
    radial-gradient(ellipse 95% 62% at 50% 112%, rgba(232, 184, 88, 0.16), transparent 66%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 58%, #10202f 100%);
  color: var(--surface);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--space-4);
}

/* The horizon itself — a lit hairline closing every dark band. */
.hero::after,
.cta-band::after,
.stat-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(780px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent,
    rgba(232, 184, 88, 0.55) 18%,
    rgba(255, 209, 138, 1) 50%,
    rgba(232, 184, 88, 0.55) 82%,
    transparent);
  pointer-events: none;
}

/* Keep hero content painting above the glow. */
.hero > * { position: relative; }

/* The mark itself, shown full size above the homepage headline. */
.hero__mark {
  width: clamp(96px, 17vw, 150px);
  height: auto;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 6px 26px rgba(232, 184, 88, 0.22));
}

.hero .eyebrow--ruled { color: var(--gold); }

.hero h1 {
  color: var(--surface);
  max-width: 20ch;
  margin-inline: auto;
}

.hero p {
  font-size: var(--step-1);
  max-width: 60ch;
  margin: 0 auto var(--space-5);
  color: var(--on-dark);
}

.hero .eyebrow { color: var(--gold); }

.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero--compact { padding: clamp(2.5rem, 6vw, 4.5rem) var(--space-4); }


/* ==========================================================================
   8. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section       { padding: var(--space-7) 0; }
.section--tight{ padding: var(--space-6) 0; }

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Two-column layout that collapses to one. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
  align-items: start;
}

.split--aside { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }


/* ==========================================================================
   9. BUTTONS
   --------------------------------------------------------------------------
   The original .btn was white-on-gold: 2.60:1, a WCAG AA failure on the site's
   most important element. Navy-on-gold measures 4.68:1 and keeps the palette.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-image: linear-gradient(178deg, var(--gold-light) 0%, var(--gold) 58%, #d9a844 100%);
  background-color: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  /* Lightens rather than darkens — navy text climbs to 10.49:1. */
  background-image: linear-gradient(178deg, #f8d488 0%, var(--gold-light) 60%, var(--gold) 100%);
  background-color: var(--gold-light);
  color: var(--navy);
  box-shadow: var(--glow-gold);
}

.btn:active { transform: translateY(1px); box-shadow: none; }

/* Outlined button for use on navy backgrounds. */
.btn--ghost {
  background-image: none;
  background-color: transparent;
  color: var(--surface);
  border-color: rgba(232, 184, 88, 0.55);
}

.btn--ghost:hover {
  background-image: none;
  background-color: rgba(232, 184, 88, 0.14);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: none;
}

.btn--lg    { padding: 1.05rem 2.4rem; font-size: var(--step-1); }
.btn--nav   { padding: 0.5rem 1.15rem; font-size: 0.95rem; }


/* ==========================================================================
   10. CARDS & GRIDS
   ========================================================================== */

.card-grid {
  display: grid;
  /* min() prevents horizontal overflow below ~320px viewports. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.card {
  position: relative;
  background: var(--surface);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* The top rule, graded bright-gold to ring-steel exactly like the circle in
   the logo mark. Painted as a strip so it can carry a gradient; the solid
   border-top above is the fallback underneath it. */
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -4px;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 42%, var(--gold-rule) 100%);
}

.card h3 { color: var(--navy); }

.card-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Highlighted variant — tax notice, "other ways to give", etc. */
.card--feature {
  background: var(--gold-tint);
  border-color: rgba(232, 184, 88, 0.4);
}

.card--plain::before {
  background: linear-gradient(100deg, var(--border), #cbd5e1 100%);
}


/* ==========================================================================
   11. STAT BAND
   --------------------------------------------------------------------------
   Ships with visible [TODO] placeholders on purpose. This is a real 501(c)(3);
   no impact number is invented here. Fill in or delete — see SETUP.md.
   ========================================================================== */

.stat-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 120% at 50% 130%, rgba(255, 179, 71, 0.18), transparent 70%),
    linear-gradient(180deg, #10202f 0%, var(--navy) 100%);
  color: var(--surface);
  padding: var(--space-6) var(--space-4);
}

.stat-band__grid {
  max-width: var(--width-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-5);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

/* One figure alone should read as a deliberate statement, not a grid with
   two cells missing. See SETUP.md #5 for restoring the other two. */
.stat-band--single .stat-band__grid { grid-template-columns: 1fr; }
.stat-band--single .stat__value     { font-size: var(--step-4); }

.stat__label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}


/* ==========================================================================
   12. PULL QUOTE
   ========================================================================== */

.quote {
  position: relative;
  max-width: 62ch;
  margin: var(--space-6) auto;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: var(--space-3);
  top: 0.1em;
  font-size: 3.5rem;
  line-height: 1;
  font-style: normal;
  color: var(--gold);
  opacity: 0.5;
}

.quote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 700;
  color: var(--text-muted);
}


/* ==========================================================================
   13. CONTACT METHODS
   ========================================================================== */

/* --- Contact methods list (contact.html) --------------------------------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
}

.contact-list li:first-child { border-top: 0; padding-top: var(--space-2); }
.contact-list li:last-child  { padding-bottom: 0; }

.contact-list__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold-deep);
}

.contact-list__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list__value {
  display: block;
  font-size: var(--step-1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list__note {
  display: block;
  font-size: var(--step--1);
  color: var(--text-muted);
}


/* ==========================================================================
   14. CTA BAND
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 42% at 50% 104%, rgba(255, 179, 71, 0.28), transparent 68%),
    radial-gradient(ellipse 95% 60% at 50% 114%, rgba(232, 184, 88, 0.14), transparent 66%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, #10202f 100%);
  color: var(--surface);
  text-align: center;
  padding: var(--space-7) var(--space-4);
}

.cta-band > * { position: relative; }

.cta-band h2 { color: var(--surface); }

.cta-band p {
  max-width: 56ch;
  margin: 0 auto var(--space-5);
  color: var(--on-dark);
}

.cta-band__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   15. BOOK COVER & PORTRAIT
   --------------------------------------------------------------------------
   Both are real artwork now. Each reserves its aspect ratio up front so
   nothing reflows while the image decodes, and carries a real shadow so the
   image sits on the light page rather than floating. (The old .media-slot
   placeholder was removed once both images were supplied.)
   ========================================================================== */

.book-cover {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 700 / 1052;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* Founder portrait — same treatment, plus a gold hairline. */
.portrait {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 660 / 996;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 184, 88, 0.4);
  box-shadow: var(--shadow-lg);
}



/* ==========================================================================
   16. FOOTER
   ========================================================================== */

footer {
  position: relative;
  background-color: var(--navy);   /* same surface the logo was drawn on */
  color: var(--on-dark);
  padding: var(--space-6) var(--space-4) var(--space-4);
  font-size: var(--step--1);
}

/* Lit hairline along the top edge, closing the page the way the mark closes. */
footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(780px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent, rgba(232, 184, 88, 0.5) 30%, rgba(232, 184, 88, 0.5) 70%, transparent);
}

.footer-grid {
  max-width: var(--width-page);
  margin: 0 auto var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-5);
  text-align: left;
}

.footer-grid h3 {
  font-family: var(--font-body);
  color: var(--surface);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--space-2); }

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.footer-brand img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.footer-social li { margin-bottom: 0; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;               /* comfortable touch target */
  height: 42px;
  border: 1px solid rgba(232, 184, 88, 0.35);
  border-radius: var(--radius-md);
  color: var(--gold);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background-color: rgba(232, 184, 88, 0.14);
  border-color: var(--gold);
  color: var(--gold-light);
  text-decoration: none;
}

.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  max-width: var(--width-page);
  margin: 0 auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(232, 184, 88, 0.18);
  text-align: center;
  color: var(--on-dark);
}

.footer-bottom p { margin-bottom: 0; }


/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  header { padding: var(--space-3) var(--space-4); }

  /* The collapsed nav is applied only when JS is running (js/nav.js adds the
     .js class to <html>). Without JS the full nav simply stays visible, so
     navigation never depends on script execution. */
  .js .nav-toggle { display: flex; }

  .js #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(232, 184, 88, 0.3);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .js #site-nav.is-open { display: block; }

  #site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  #site-nav a {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(232, 184, 88, 0.16);
  }

  .logo__mark { width: 36px; height: 36px; }
  .logo__word { font-size: 1.08rem; }

  #site-nav a:hover,
  #site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

  #site-nav a.btn {
    justify-content: center;
    margin-top: var(--space-3);
    border-bottom: 2px solid transparent;
  }

  /* Without JS the nav sits inline, so let the header wrap gracefully. */
  .nav-container { flex-wrap: wrap; }

  .split--aside { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section       { padding: var(--space-6) 0; }
  .hero__actions,
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .cta-band__actions .btn { width: 100%; }
  .card  { padding: var(--space-4); }
  /* Flanking rules read badly once the label wraps to two lines. */
  .eyebrow--ruled::before,
  .eyebrow--ruled::after { display: none; }
  .quote { padding-left: var(--space-5); }
  .quote::before { font-size: 2.5rem; left: var(--space-2); }
}


/* ==========================================================================
   18. MOTION & PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  header, footer, .cta-band, .stat-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: none !important; color: #000; }
  .hero::after, .card::before { display: none !important; }
  .book-cover,
  .portrait { box-shadow: none; border: 1px solid #999; max-width: 220px; }
  .hero h1, .cta-band h2 { color: #000; }
  .hero__mark { filter: none; }
  .card, .quote { box-shadow: none; border: 1px solid #999; }
}


/* ==========================================================================
   19. BOARD OF DIRECTORS
   --------------------------------------------------------------------------
   Photo placeholders show initials. To add a real photo, replace the
   <span> inside .board-member__photo with:
   <img src="assets/board/name.jpg" alt="" width="280" height="280">
   ========================================================================== */

.board-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
  text-align: center;
}

.board-member__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.board-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-member h3 {
  margin-bottom: var(--space-1);
  color: var(--navy);
}

.board-member__role {
  margin: 0;
  color: var(--gold-deep);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ==========================================================================
   20. CONTACT FORM
   --------------------------------------------------------------------------
   Netlify Forms. Submissions appear under Forms in the Netlify dashboard;
   js/contact-form.js submits in the background and shows the thank-you.
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field--full { grid-column: 1 / -1; }

.field label {
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--navy);
}

.field__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(232, 184, 88, 0.35);
}

.form-actions { margin-top: var(--space-4); }

.form-success {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--gold-tint);
  border: 1px solid rgba(232, 184, 88, 0.5);
}

.form-success h3 { margin-bottom: var(--space-2); }

.form-error {
  margin-top: var(--space-3);
  color: #9b1c1c;
  font-weight: 600;
}


/* ==========================================================================
   21. TAX NOTE
   ========================================================================== */

.footer-tax {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  opacity: 0.85;
}

.donate-tax-note { margin-top: var(--space-3); }
