/* ==========================================================================
   Love The Elderly — Design System
   --------------------------------------------------------------------------
   Palette research: senior-services nonprofits in SE Michigan lean heavily on
   institutional blue (AgeWays, The Senior Alliance) or heritage green
   (St. Patrick Senior Center). Blue reads "faded" to many older eyes, so this
   system uses a deep teal + warm earth palette: high contrast, warm, and
   distinct from the local field.

   Type: Fraunces (display serif — warmth + editorial authority)
         Source Sans 3 (body — large x-height, screen-legible at 18px+)

   Accessibility targets: body 18px base, 1.65 line-height, 4.5:1 minimum
   contrast, 48px minimum tap targets, visible focus, reduced-motion support,
   and clean reflow at 200% browser zoom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --teal-900: #072E2B;
  --teal-800: #0B3B38;
  --teal-700: #0F5049;
  --teal-600: #14675D;
  --teal-500: #1C8A7C;
  --teal-300: #6FBFB2;
  --teal-100: #D6ECE7;

  --clay-700: #8F3620;
  --clay-600: #B4472C;
  --clay-500: #D0603F;
  --clay-200: #F3D7CC;

  --amber-600: #C07A15;
  --amber-500: #E5A02C;
  --amber-300: #F5CE84;
  --amber-100: #FBEBCB;

  /* Neutrals */
  --ink: #14211F;
  --ink-soft: #3D4C49;
  --muted: #5E6D6A;
  --line: #E3D8C8;
  --line-soft: #EFE7DA;
  --sand: #F3E9DA;
  --cream: #FCF7EF;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--sand);
  --bg-deep: var(--teal-800);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
  --accent: var(--clay-600);
  --highlight: var(--amber-500);

  /* Type scale (fluid) */
  --fs-base: 1.125rem;           /* 18px */
  --fs-sm: 0.9375rem;            /* 15px */
  --fs-lg: clamp(1.1875rem, 0.5vw + 1.05rem, 1.375rem);
  --fs-xl: clamp(1.375rem, 1vw + 1.1rem, 1.625rem);
  --fs-h4: clamp(1.25rem, 0.8vw + 1.05rem, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.4vw + 1.1rem, 2rem);
  --fs-h2: clamp(2rem, 3vw + 1.1rem, 3.125rem);
  --fs-h1: clamp(2.5rem, 5.2vw + 0.9rem, 4.5rem);
  --fs-display: clamp(2.75rem, 6.5vw + 0.8rem, 5.5rem);

  /* Space scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --wrap: 78rem;
  --wrap-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-arch: 999px 999px var(--r-lg) var(--r-lg);
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(20, 33, 31, 0.05), 0 2px 8px rgba(20, 33, 31, 0.04);
  --sh-2: 0 2px 4px rgba(20, 33, 31, 0.05), 0 12px 28px rgba(20, 33, 31, 0.08);
  --sh-3: 0 4px 8px rgba(20, 33, 31, 0.06), 0 28px 56px rgba(20, 33, 31, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain — pure CSS/SVG, no image requests */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body > * { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-family: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--teal-600); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--clay-600); }

strong, b { font-weight: 700; }

ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.4em; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

::selection { background: var(--amber-300); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--clay-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 90rem; }

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.section--sand { background: var(--bg-alt); }
.section--white { background: var(--white); }
.section--deep { background: var(--bg-deep); color: #E6F0EE; }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--white); }
.section--deep a { color: var(--amber-300); }
.section--deep a:hover { color: var(--white); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.center { text-align: center; }
.center-x { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.measure { max-width: 40rem; }
.measure-wide { max-width: 52rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  background: var(--teal-800);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--deep .eyebrow { color: var(--amber-300); }

.lead {
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: var(--ink-soft);
}
.section--deep .lead { color: #CFE2DE; }

.display {
  font-size: var(--fs-display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 600;
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }

/* Hand-drawn amber underline on a key phrase */
.mark {
  position: relative;
  white-space: nowrap;
  font-style: italic;
  color: var(--clay-600);
}
.mark::after {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.02em;
  height: 0.34em;
  background: var(--amber-300);
  border-radius: 0.3em;
  z-index: -1;
  opacity: 0.75;
}
.section--deep .mark { color: var(--amber-300); }
.section--deep .mark::after { background: rgba(229, 160, 44, 0.28); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3rem;
  padding: 0.75em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--clay-600);
  color: var(--white);
  box-shadow: var(--sh-2);
}
.btn--primary:hover { background: var(--clay-700); color: var(--white); box-shadow: var(--sh-3); }

.btn--teal { background: var(--teal-700); color: var(--white); box-shadow: var(--sh-2); }
.btn--teal:hover { background: var(--teal-800); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--teal-800);
  border-color: var(--teal-700);
}
.btn--ghost:hover { background: var(--teal-700); color: var(--white); }

.btn--light { background: var(--white); color: var(--teal-800); box-shadow: var(--sh-2); }
.btn--light:hover { background: var(--amber-100); color: var(--teal-900); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: var(--white); color: var(--teal-800); }

.btn--lg { min-height: 3.5rem; font-size: 1.1875rem; padding: 0.8em 1.9em; }
.btn--sm { min-height: 2.5rem; font-size: 0.9375rem; padding: 0.5em 1.1em; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-700);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 247, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 33, 31, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-900);
  flex-shrink: 0;
}
/* The logo is not square (256x219), so constrain height and let width follow. */
.brand__mark { width: auto; height: 3rem; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.brand__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-600);
  font-weight: 600;
  margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 2px;
  background: var(--clay-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--teal-800); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--teal-900); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--teal-700);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--teal-800);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  /* Brand and toggle must stay above the drawer, or the drawer hides its own
     close button. */
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    width: min(24rem, 100%);
    background: var(--cream);
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-3);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 7rem var(--sp-6) var(--sp-7);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line-soft); }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1875rem;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--clay-600); }
  .nav__cta { margin-top: var(--sp-5); }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(7, 46, 43, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s var(--ease), visibility 0.38s;
    z-index: 99;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 1081px) {
  .nav-scrim { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}
.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: 46rem; height: 46rem;
  background: radial-gradient(circle at 35% 35%, rgba(229, 160, 44, 0.22), rgba(229, 160, 44, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; }
}

.hero__title {
  font-size: var(--fs-display);
  font-variation-settings: "SOFT" 45, "WONK" 1;
}
.hero__title em {
  font-style: italic;
  color: var(--clay-600);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--sh-3); }

.hero__badge {
  position: absolute;
  left: clamp(-0.5rem, -1vw, -1.5rem);
  bottom: clamp(-1rem, -2vw, -2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: 19rem;
}
.hero__badge-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--clay-600);
  line-height: 1;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero__badge-txt { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-soft); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 1.15rem; height: 1.15rem; color: var(--teal-500); flex-shrink: 0; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--teal-800);
  color: #DCEAE7;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 82% 20%, rgba(229, 160, 44, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 90% at 10% 90%, rgba(28, 138, 124, 0.35), transparent 62%);
}
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .lead { color: #C6DCD8; max-width: 44rem; margin-top: var(--sp-5); }
.page-hero .eyebrow { color: var(--amber-300); }

.breadcrumb {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-300); text-decoration: underline; }
.breadcrumb span { padding-inline: 0.4rem; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card--link:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: var(--teal-300);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-soft); }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

.card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}
.card__icon svg { width: 1.85rem; height: 1.85rem; }
.card__icon--clay { background: var(--clay-200); color: var(--clay-700); }
.card__icon--amber { background: var(--amber-100); color: var(--amber-600); }

.card--flat { background: transparent; border: 0; box-shadow: none; padding: 0; }

.card--feature {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-700) 60%, var(--teal-600));
  border-color: transparent;
  color: #DCEAE7;
}
.card--feature h3 { color: var(--white); }
.card--feature p { color: #C6DCD8; }
.card--feature .card__icon { background: rgba(255,255,255,0.14); color: var(--amber-300); }

/* Numbered step cards */
.step { position: relative; padding-left: 4.25rem; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--amber-500);
  color: var(--teal-900);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
}
.step h3 { margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat__num {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber-500);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  display: block;
}
.section--sand .stat__num, .section--white .stat__num { color: var(--clay-600); }
.stat__label {
  margin-top: var(--sp-3);
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
  opacity: 0.88;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-4);
}
.stat-row--divided .stat + .stat { border-left: 1px solid var(--line); }
.section--deep .stat-row--divided .stat + .stat { border-left-color: rgba(255,255,255,0.16); }
@media (max-width: 640px) {
  .stat-row--divided .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   10. Quote / testimonial
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.15em; left: 0.35em;
  font-family: Fraunces, Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--amber-300);
}
.quote__text {
  position: relative;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--fs-lg);
  line-height: 1.42;
  color: var(--teal-900);
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.quote__by {
  margin-top: auto;
  padding-top: var(--sp-5);
  font-size: 0.9375rem;
  color: var(--muted);
}
.quote__by strong { display: block; color: var(--ink); font-size: 1rem; }

.pullquote {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.32;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--white);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   11. Media / arch frames
   -------------------------------------------------------------------------- */
.frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--sand);
}
.frame--arch { border-radius: var(--r-arch); }
.frame img, .frame svg { width: 100%; display: block; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}

/* --------------------------------------------------------------------------
   12. Marquee of values
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--teal-800);
  color: var(--amber-300);
  overflow: hidden;
  padding-block: var(--sp-4);
  border-block: 1px solid rgba(255,255,255,0.1);
}
.marquee__track {
  display: flex;
  gap: var(--sp-6);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.marquee__track span::after {
  content: "✦";
  color: var(--teal-300);
  font-size: 0.8em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   13. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--teal-900);
  line-height: 1.3;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.accordion__btn:hover { color: var(--clay-600); }
.accordion__icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: var(--r-pill);
  background: var(--teal-100);
  color: var(--teal-700);
  display: grid; place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.accordion__btn[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
  background: var(--clay-600);
  color: var(--white);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel p { padding-bottom: var(--sp-5); color: var(--ink-soft); max-width: 60ch; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; gap: 0.45rem; }
.field > label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-900);
}
.field__hint { font-size: 0.9375rem; color: var(--muted); }
.req { color: var(--clay-600); }

.input, .select, .textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { min-height: 9rem; resize: vertical; padding-top: 0.85rem; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F5049' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(28, 138, 124, 0.16);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--clay-600);
}
.field__error {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clay-700);
  display: none;
}
.field__error.is-visible { display: block; }

.checkbox-group { display: grid; gap: var(--sp-3); }
.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  font-size: 1.0625rem;
  min-height: 3rem;
}
.checkbox:hover { border-color: var(--teal-300); }
.checkbox input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; accent-color: var(--teal-600); flex-shrink: 0; }
.checkbox:has(input:checked) { border-color: var(--teal-500); background: var(--teal-100); }

.form-note {
  padding: var(--sp-5);
  background: var(--amber-100);
  border: 1px solid var(--amber-300);
  border-radius: var(--r-md);
  font-size: 1rem;
}

.form-status {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--teal-100); border: 1px solid var(--teal-300); color: var(--teal-800); }
.form-status--err { background: var(--clay-200); border: 1px solid var(--clay-500); color: var(--clay-700); }

/* --------------------------------------------------------------------------
   15. Donate amount picker
   -------------------------------------------------------------------------- */
.give {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.give__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--sand);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.give__toggle button {
  min-height: 3rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.give__toggle button[aria-pressed="true"] { background: var(--teal-700); color: var(--white); }

.give__amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: var(--sp-3);
}
.give__amount {
  min-height: 4.25rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-800);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.give__amount:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.give__amount[aria-pressed="true"] {
  border-color: var(--clay-600);
  background: var(--clay-600);
  color: var(--white);
}
.give__impact {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--amber-100);
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--teal-900);
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.give__impact svg { width: 2rem; height: 2rem; color: var(--amber-600); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   16. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(var(--amber-500), var(--teal-300));
}
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.5rem; top: 0.55rem;
  width: 1.125rem; height: 1.125rem;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 3px solid var(--clay-600);
}
.timeline__year {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clay-600);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.timeline__item h3 { font-size: var(--fs-h4); margin: 0.15rem 0 0.4rem; }
.timeline__item p { color: var(--ink-soft); max-width: 55ch; }

/* --------------------------------------------------------------------------
   17. People
   -------------------------------------------------------------------------- */
.person { text-align: center; }
.person__avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-arch);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-100), var(--sand));
  border: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
.person__avatar svg { width: 100%; height: 100%; }
.person h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.person__role { font-size: 0.9375rem; color: var(--clay-600); font-weight: 700; letter-spacing: 0.03em; }
.person__bio { font-size: 0.9375rem; color: var(--muted); margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   18. Posts / events
   -------------------------------------------------------------------------- */
.post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.post__media { aspect-ratio: 16 / 10; background: var(--teal-100); overflow: hidden; }
.post__media svg { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: var(--sp-3);
}
.post h3 { font-size: 1.375rem; margin-bottom: var(--sp-3); }
.post p { font-size: 1rem; color: var(--ink-soft); }
.post .link-arrow { margin-top: auto; padding-top: var(--sp-4); font-size: 1rem; }

.tag {
  display: inline-block;
  padding: 0.28em 0.85em;
  border-radius: var(--r-pill);
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag--clay { background: var(--clay-200); color: var(--clay-700); }
.tag--amber { background: var(--amber-100); color: var(--amber-600); }

.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.event__date {
  width: 5.25rem;
  padding: var(--sp-3);
  text-align: center;
  background: var(--teal-800);
  color: var(--white);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.event__month { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber-300); font-weight: 700; }
.event__day { display: block; font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.event h3 { font-size: var(--fs-h4); margin-bottom: 0.3rem; }
.event__where { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------------------
   19. Callout band
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  background: linear-gradient(140deg, var(--teal-900), var(--teal-700) 55%, var(--teal-600));
  color: #DCEAE7;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 32rem; height: 32rem;
  background: radial-gradient(circle, rgba(229,160,44,0.28), transparent 65%);
}
.callout > * { position: relative; }
.callout h2 { color: var(--white); }
.callout p { color: #C6DCD8; }

.ribbon {
  background: var(--clay-600);
  color: var(--white);
  padding-block: var(--sp-5);
  text-align: center;
}
.ribbon a { color: var(--white); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--teal-900);
  color: #B9D2CE;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: 1rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.0625rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer a { color: #B9D2CE; text-decoration: none; }
.site-footer a:hover { color: var(--amber-300); text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: var(--sp-7) var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer__brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; max-width: 22rem; } }
.footer__brand .brand__name, .footer__brand .brand { color: var(--white); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: 0.65rem; }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: 0.9375rem;
  color: #8FB2AD;
}
.socials { display: flex; gap: var(--sp-3); }
.socials a {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-pill);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--teal-900); }
.socials svg { width: 1.25rem; height: 1.25rem; }

.newsletter { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.newsletter .input {
  flex: 1 1 12rem;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.newsletter .input::placeholder { color: #8FB2AD; }
.newsletter .input:focus { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(229,160,44,0.2); }

/* --------------------------------------------------------------------------
   21. Misc
   -------------------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--teal-100);
  border-left: 5px solid var(--teal-600);
  border-radius: var(--r-md);
}
.notice svg { width: 1.6rem; height: 1.6rem; color: var(--teal-700); flex-shrink: 0; }
.notice--amber { background: var(--amber-100); border-left-color: var(--amber-500); }
.notice--amber svg { color: var(--amber-600); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--line-soft); }
th { background: var(--sand); font-weight: 700; color: var(--teal-900); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* Scroll-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .marquee, .ribbon { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  body::before { display: none; }
}
