/* ==========================================================================
   The Musgrove Family Fund — design system
   --------------------------------------------------------------------------
   0. Tokens          5. Hero
   1. Reset + base    6. Progress + stats
   2. Layout          7. Components
   3. Typography      8. Donation flow
   4. Header + nav    9. Footer + utilities
   ========================================================================== */

/* ==========================================================================
   0. TOKENS
   ========================================================================== */

:root {
  /* Surfaces — warm paper, not clinical white */
  --paper:      #FDFAFB;
  --paper-2:    #F9F1F4;
  --paper-3:    #F2E4EA;
  --paper-sunk: #F6ECF0;

  /* Ink */
  --ink:   #1B1216;
  --ink-2: #524049;
  --ink-3: #837079;
  --ink-4: #A4949C;

  /* Lines */
  --line:      #EBDBE2;
  --line-soft: #F3E7EC;
  --line-firm: #DCC3CE;

  /* Accent — burnt bronze. Warm and serious, never alarming. */
  --accent:      #B04A6A;
  --accent-deep: #8A3450;
  --accent-soft: #FBE7EE;
  --accent-line: #EFC6D5;

  /* Secondary — deep sage, used for the medical / "cause" material */
  --sage:      #4A6B5C;
  --sage-deep: #2C4A3B;
  --sage-soft: #E6EFE9;
  --sage-line: #C8DBD0;

  /* Signal */
  --focus: #1F5FBF;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.09rem);
  --step-1:  clamp(1.18rem, 1.11rem + 0.34vw, 1.36rem);
  --step-2:  clamp(1.42rem, 1.29rem + 0.63vw, 1.78rem);
  --step-3:  clamp(1.7rem, 1.47rem + 1.12vw, 2.42rem);
  --step-4:  clamp(2.05rem, 1.63rem + 2.05vw, 3.4rem);
  --step-5:  clamp(2.45rem, 1.7rem + 3.6vw, 4.8rem);

  /* Space */
  --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;

  /* Shape */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 999px;

  /* Shadow — soft, warm-tinted, never grey */
  --shadow-1: 0 1px 2px rgba(90, 40, 60, 0.05), 0 2px 8px rgba(90, 40, 60, 0.04);
  --shadow-2: 0 2px 4px rgba(90, 40, 60, 0.06), 0 8px 24px rgba(90, 40, 60, 0.07);
  --shadow-3: 0 4px 8px rgba(90, 40, 60, 0.07), 0 18px 48px rgba(90, 40, 60, 0.11);

  /* Artwork palette — consumed by the inline SVG illustration so it can
     follow the theme. Kept separate from the UI tokens because the picture
     needs its own internal light logic. */
  --art-wall-1:   #FAF0F4;
  --art-wall-2:   #F2E0E8;
  --art-glass-1:  #FFF6FA;
  --art-glass-2:  #F7DCE7;
  --art-glass-3:  #EEC3D5;
  --art-shaft:    #FFE4EE;
  --art-glow:     #FFE0EC;
  --art-floor-2:  #DFC5D1;
  --art-recess:   #EDD6E0;
  --art-mullion:  #CDA0B4;
  --art-bench:    #AE7690;
  --art-fig-1:    #8E4B67;
  --art-fig-2:    #632F45;
  --art-line:     #C9A8B8;
  --art-line-soft:#E5CCD8;
  --art-mote:     #FFF0F6;

  --container: 1160px;
  --prose: 65ch;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #150F12;
    --paper-2:    #1F1619;
    --paper-3:    #2A1E23;
    --paper-sunk: #110C0E;

    --ink:   #F8F0F3;
    --ink-2: #CFBDC5;
    --ink-3: #A3919A;
    --ink-4: #82717A;

    --line:      #362630;
    --line-soft: #2A1E24;
    --line-firm: #4A343F;

    --accent:      #E88CA8;
    --accent-deep: #F3A9C0;
    --accent-soft: #341C25;
    --accent-line: #55303E;

    --sage:      #8FB69E;
    --sage-deep: #A0C7AC;
    --sage-soft: #1A241E;
    --sage-line: #2E4136;

    --focus: #7FB0FF;

    --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
    --shadow-2: 0 2px 4px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.38);
    --shadow-3: 0 4px 8px rgba(0,0,0,0.5), 0 18px 48px rgba(0,0,0,0.5);

    /* Artwork, after dark: the window becomes the only light source */
    --art-wall-1:   #221720;
    --art-wall-2:   #160F13;
    --art-glass-1:  #7A4055;
    --art-glass-2:  #562D3D;
    --art-glass-3:  #3B1E2A;
    --art-shaft:    #8A4A64;
    --art-glow:     #54293A;
    --art-floor-2:  #1D1418;
    --art-recess:   #29191F;
    --art-mullion:  #58353F;
    --art-bench:    #422730;
    --art-fig-1:    #170F13;
    --art-fig-2:    #0D080A;
    --art-line:     #402A34;
    --art-line-soft:#2E1F27;
    --art-mote:     #C08CA0;


    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:      #150F12;
  --paper-2:    #1F1619;
  --paper-3:    #2A1E23;
  --paper-sunk: #110C0E;
  --ink:   #F8F0F3;
  --ink-2: #CFBDC5;
  --ink-3: #A3919A;
  --ink-4: #82717A;
  --line:      #362630;
  --line-soft: #2A1E24;
  --line-firm: #4A343F;
  --accent:      #E88CA8;
  --accent-deep: #F3A9C0;
  --accent-soft: #341C25;
  --accent-line: #55303E;
  --sage:      #8FB69E;
  --sage-deep: #A0C7AC;
  --sage-soft: #1A241E;
  --sage-line: #2E4136;
  --focus: #7FB0FF;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-2: 0 2px 4px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.38);
  --shadow-3: 0 4px 8px rgba(0,0,0,0.5), 0 18px 48px rgba(0,0,0,0.5);

    /* Artwork, after dark: the window becomes the only light source */
    --art-wall-1:   #221720;
    --art-wall-2:   #160F13;
    --art-glass-1:  #7A4055;
    --art-glass-2:  #562D3D;
    --art-glass-3:  #3B1E2A;
    --art-shaft:    #8A4A64;
    --art-glow:     #54293A;
    --art-floor-2:  #1D1418;
    --art-recess:   #29191F;
    --art-mullion:  #58353F;
    --art-bench:    #422730;
    --art-fig-1:    #170F13;
    --art-fig-2:    #0D080A;
    --art-line:     #402A34;
    --art-line-soft:#2E1F27;
    --art-mote:     #C08CA0;

  color-scheme: dark;
}

/* ==========================================================================
   1. RESET + BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

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

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: 860px; }
.wrap--prose  { max-width: 720px; }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--sunk { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--deep {
  background: var(--paper-sunk);
  border-block: 1px solid var(--line-soft);
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}

.sticky-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
}

h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); line-height: 1.2; }
h4, .h4 { font-size: var(--step-1); line-height: 1.3; }

.display-xl {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--sage { color: var(--sage); }
.eyebrow--bare::before { display: none; }

.muted  { color: var(--ink-3); }
.small  { font-size: var(--step--1); }
.tiny   { font-size: 0.78rem; line-height: 1.5; }

.prose { max-width: var(--prose); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 650; color: var(--ink); }

/* Pull quote */
.quote {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--accent);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  text-wrap: pretty;
}
.quote cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.quote--center {
  border-left: 0;
  padding-left: 0;
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
}

/* ==========================================================================
   4. HEADER + NAV
   ========================================================================== */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 20;
}
.brand__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__link {
  display: block;
  padding: 0.45rem 0.15rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--paper-3); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle { position: relative; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--r-sm); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--sp-3) clamp(1.25rem, 5vw, 2.5rem) var(--sp-5);
    margin: 0;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .header .btn--sm { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  color: #FFF7F9;
  box-shadow: var(--shadow-1);
}
.btn--primary:hover {
  background: var(--accent-deep);
  color: #FFF7F9;
  box-shadow: var(--shadow-2);
}
:root[data-theme="dark"] .btn--primary { color: #2A0F19; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { color: #2A0F19; }
}

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-firm);
}
.btn--ghost:hover { background: var(--paper-3); color: var(--ink); border-color: var(--ink-3); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent);
}
.link-arrow svg { width: 0.95em; height: 0.95em; transition: transform 0.22s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background: var(--paper);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 82% 12%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 8% 88%, color-mix(in srgb, var(--sage-soft) 70%, transparent), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  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'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__lede { max-width: 46ch; margin-bottom: var(--sp-6); }

.hero__note {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  max-width: 48ch;
}

/* Status pill above headline */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.6rem;
  margin-bottom: var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.status-pill__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: 0.2rem;
}
.status-pill__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.status-pill strong { font-weight: 650; color: var(--ink); }

.hero__art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.hero__art img, .hero__art svg { width: 100%; display: block; }

/* ==========================================================================
   6. PROGRESS + STATS
   ========================================================================== */

.donate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-3);
}
.donate-card--flush { box-shadow: var(--shadow-2); }

.progress__figures {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
}
.progress__raised {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 20;
  color: var(--ink);
}
.progress__goal { font-size: 0.95rem; color: var(--ink-3); font-weight: 500; }

.progress__track {
  position: relative;
  height: 10px;
  background: var(--paper-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 1.6s var(--ease-out);
}
:root[data-theme="dark"] .progress__bar,
.progress__bar { box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12); }

.progress__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: var(--sp-3);
  font-size: 0.855rem;
  color: var(--ink-3);
}
.progress__meta strong { color: var(--ink-2); font-weight: 600; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--sage);
}
.verified svg { width: 1em; height: 1em; }

/* Stat band */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  background: var(--paper);
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1rem, 2.5vw, 1.6rem);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variation-settings: 'SOFT' 20;
  margin-bottom: 0.4rem;
}
.stat__num--sage { color: var(--sage); }
.stat__label { font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.stat__sub { display: block; font-size: 0.78rem; color: var(--ink-4); margin-top: 0.3rem; }

/* ==========================================================================
   7. COMPONENTS
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.card--raised { box-shadow: var(--shadow-1); }
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-firm);
}
.card--sage { background: var(--sage-soft); border-color: var(--sage-line); }
.card--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--sage { background: var(--sage-soft); color: var(--sage); }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-2); font-size: 0.945rem; }

/* Callout */
.callout {
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3vw, 1.75rem);
}
.callout--accent { border-left-color: var(--accent); background: var(--accent-soft); }
.callout h3, .callout h4 { margin-bottom: 0.5rem; }
.callout p { color: var(--ink-2); }
.callout p + p { margin-top: 0.75rem; }

/* Timeline */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-firm), var(--line), var(--line-firm));
  border-radius: 1px;
}
.tl-item { position: relative; padding-bottom: var(--sp-7); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 0.45rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--line-firm);
  z-index: 1;
}
.tl-item--key::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item--now::before { border-color: var(--sage); background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.tl-item__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.tl-item--now .tl-item__date { color: var(--sage); }
.tl-item h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.tl-item p { color: var(--ink-2); font-size: 0.95rem; max-width: 60ch; }
.tl-item p + p { margin-top: 0.6rem; }

/* Accordion */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.28em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding-bottom: 1.5rem; max-width: 68ch; }
.faq__body p { color: var(--ink-2); }
.faq__body p + p { margin-top: 0.85rem; }
.faq__body ul { margin-top: 0.85rem; padding-left: 1.25rem; color: var(--ink-2); }
.faq__body li + li { margin-top: 0.45rem; }

/* Helpline block */
.helpline {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.helpline:last-child { border-bottom: 0; }
.helpline__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--sage-soft);
  color: var(--sage);
}
.helpline__icon svg { width: 19px; height: 19px; }
.helpline__num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  margin: 0.1rem 0 0.25rem;
}
.helpline__num:hover { color: var(--accent); }
.helpline h3 { font-size: 0.94rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--ink-2); }

/* Source list */
.sources { list-style: none; padding: 0; }
.sources li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.sources li:last-child { border-bottom: 0; }
.sources a { font-weight: 500; }

/* Notice bar */
.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.885rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--ink-3); }
.notice strong { color: var(--ink); font-weight: 650; }

/* Artwork band */
.art-band { padding-block: 0 var(--sp-5); background: var(--paper); }
/* Explicit width + height rather than aspect-ratio: pairing `aspect-ratio`
   with `max-height` makes the browser transfer the clamped height back into
   the width, which shrank this band to 890px instead of letting it run full
   bleed. The SVG uses preserveAspectRatio="slice", so it crops to any ratio. */
.art-band__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(230px, 31vw, 450px);
  border-block: 1px solid var(--line);
}
.art-band__frame svg { width: 100%; height: 100%; display: block; }
.art-band__frame::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper), transparent 12%, transparent 88%, var(--paper));
}
.art-band__caption {
  margin-top: var(--sp-4);
  font-size: 0.79rem;
  color: var(--ink-4);
  text-align: center;
}
.art-band__caption a { color: var(--ink-3); }

.notice--ok   { border-color: var(--sage-line); background: var(--sage-soft); }
.notice--warn { border-color: var(--accent-line); background: var(--accent-soft); }

/* Reveal on scroll
   Gated on `.js` so that if scripting is unavailable — or main.js fails to
   load — the content is simply visible rather than invisible. A donation page
   must never depend on JavaScript to render its own text. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* Page header (interior pages) */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 88% 20%, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent 70%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 { margin: var(--sp-3) 0 var(--sp-4); }
.page-head .lede { max-width: 60ch; }

.crumbs {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; color: var(--ink-3); margin-bottom: 0.25rem;
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   8. DONATION FLOW
   ========================================================================== */

.tiers {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.tier { position: relative; }
.tier input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0; cursor: pointer;
  top: 0; left: 0;
}
.tier__body {
  display: block;
  padding: 0.95rem 0.9rem;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tier__amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  font-variation-settings: 'SOFT' 20;
}
.tier__label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.22rem;
  line-height: 1.3;
}
.tier input:hover + .tier__body { border-color: var(--line-firm); transform: translateY(-1px); }
.tier input:checked + .tier__body {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.tier input:checked + .tier__body .tier__amount { color: var(--accent-deep); }
.tier input:checked + .tier__body .tier__label { color: var(--accent-deep); }
.tier input:focus-visible + .tier__body { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.tier__flag {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.15rem 0.55rem;
  background: var(--accent);
  color: #FFF7F9;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  pointer-events: none;
  white-space: nowrap;
}
:root[data-theme="dark"] .tier__flag { color: #2A0F19; }

.field { display: block; }
.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
}
.amount-input {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.amount-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.amount-input__sym {
  padding-left: 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-3);
  pointer-events: none;
}
.amount-input input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem 0.9rem 0.35rem;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.amount-input input::-webkit-outer-spin-button,
.amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input input[type=number] { -moz-appearance: textfield; }

.tier-note {
  min-height: 2.6em;
  font-size: 0.885rem;
  line-height: 1.45;
  color: var(--ink-2);
  padding: 0.7rem 0.9rem;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
}
.tier-note strong { color: var(--ink); font-weight: 650; }

.handoff {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.handoff svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--sage); }

/* Text inputs + selects (donor email, currency) */
.text-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.text-input::placeholder { color: var(--ink-4); }
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
select.text-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  cursor: pointer;
}

/* Inline form error */
.form-error {
  padding: 0.85rem 1.1rem;
  background: color-mix(in srgb, #B3261E 12%, var(--paper));
  border: 1.5px solid color-mix(in srgb, #B3261E 45%, var(--paper));
  border-radius: var(--r-md);
  color: color-mix(in srgb, #B3261E 78%, var(--ink));
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}
.form-error[hidden] { display: none; }

/* Configuration warning — shown when the operator is unidentified.
   Loud on purpose: it means the site is soliciting money anonymously. */
.config-warning {
  position: relative;
  z-index: 500;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: #7A1630;
  color: #FFEAF0;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}
.config-warning strong { color: #FFF; }
.config-warning code {
  background: rgba(255,255,255,0.16);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}
.config-warning__hint { opacity: 0.82; display: inline-block; }


/* Payment method selector */
.methods { display: grid; gap: 0.6rem; }
.method { position: relative; }
.method input {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  top: 0; left: 0; margin: 0; cursor: pointer;
}
.method__body {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.method__icon {
  flex-shrink: 0; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--paper-3);
  color: var(--ink-2);
}
.method__icon svg { width: 19px; height: 19px; }
.method__name { display: block; font-weight: 600; font-size: 0.97rem; line-height: 1.25; }
.method__note { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.35; margin-top: 1px; }
.method input:hover + .method__body { border-color: var(--line-firm); }
.method input:checked + .method__body {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.method input:checked + .method__body .method__icon { background: var(--accent); color: var(--paper); }
.method input:focus-visible + .method__body { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* Full-bleed image band */
.figure-band { margin: 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.figure-band img {
  width: 100%;
  max-height: min(58vh, 520px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.figure-band figcaption {
  padding: var(--sp-4) 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: center;
}

/* Sticky mobile donate bar */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(90,40,60,0.09);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock__text { font-size: 0.8rem; line-height: 1.35; color: var(--ink-2); min-width: 0; }
.dock__text strong { display: block; font-size: 0.92rem; color: var(--ink); font-weight: 650; }
@media (max-width: 820px) {
  .dock { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 70% at 78% 25%, rgba(232,140,168,0.22), transparent 70%),
              radial-gradient(ellipse 55% 60% at 12% 85%, rgba(143,182,158,0.12), transparent 72%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 76%, transparent); }
.cta-band .btn--primary { background: var(--paper); color: var(--ink); }
.cta-band .btn--primary:hover { background: #FFF; color: var(--ink); }
.cta-band .btn--ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 32%, transparent); }
.cta-band .btn--ghost:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); color: var(--paper); }

/* Share row */
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--line-firm);
  border-radius: var(--r-full);
  font-size: 0.865rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.share-btn:hover { background: var(--paper-3); border-color: var(--ink-3); color: var(--ink); }
.share-btn svg { width: 15px; height: 15px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 150%);
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-full);
  font-size: 0.885rem;
  font-weight: 550;
  box-shadow: var(--shadow-3);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }
@media (max-width: 820px) { .toast { bottom: 5.5rem; } }

/* ==========================================================================
   9. FOOTER + UTILITIES
   ========================================================================== */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--sp-6);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.footer__brand { max-width: 32ch; }
.footer__brand p { font-size: 0.88rem; color: var(--ink-3); margin-top: var(--sp-4); }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: 0.6rem; }
.footer a {
  font-size: 0.905rem;
  color: var(--ink-2);
  text-decoration: none;
}
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__base {
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  justify-content: space-between;
  align-items: center;
  font-size: 0.81rem;
  color: var(--ink-4);
}
.footer__base p { max-width: 72ch; line-height: 1.6; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-top: 0; margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.nowrap { white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }

/* Any element that scrolls horizontally must do it inside itself */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Print */
@media print {
  .header, .dock, .cta-band, .theme-toggle, .nav-toggle, .share-row { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
