/* Boxer Rescue Foundation
   Colour system taken from a Boxer's coat: fawn, brindle, black mask, white flash.
   Type: Archivo (headings, interface, figures) and Literata (reading text). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic-var.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("../fonts/homemade-apple.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --fawn: #D09553;
  --fawn-deep: #A8652A;
  --fawn-ink: #8F5226;
  --fawn-pale: #F7ECDF;
  --fawn-mist: #FBF6F0;
  --mask: #1F1611;
  --brindle: #2B1A10;
  --brindle-2: #3E2618;
  --flash: #FFFFFF;
  --tongue: #EE7A8C;
  --muzzle: #6B5F56;
  --line: #E6DCD2;
  --line-strong: #CDBFB2;
  --on-dark: #F6EDE4;
  --on-dark-2: #D7C6B6;
  --ink-blue: #233F8F;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Literata", ui-serif, Georgia, "Times New Roman", serif;
  --font-hand: "Homemade Apple", "Segoe Script", cursive;

  /* type scale, ratio about 1.25 from an 18px base */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.125rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --t-xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --t-2xl: clamp(2.6rem, 1.4rem + 4.6vw, 5.75rem);

  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --wrap: 76rem;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px;
  --radius-lg: 28px;
  --shadow-paper: 0 1px 0 rgba(31, 22, 17, .08), 0 2px 4px rgba(31, 22, 17, .06), 0 24px 48px -16px rgba(31, 22, 17, .38);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--flash); color: var(--mask);
  font-family: var(--font-serif); font-size: var(--t-base); line-height: 1.65;
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
:where(h1, h2, h3, h4) { font-family: var(--font-sans); font-stretch: 108%; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
:where(h1) { font-size: var(--t-2xl); font-weight: 820; font-stretch: 112%; letter-spacing: -0.03em; line-height: .98; }
:where(h2) { font-size: var(--t-xl); font-weight: 780; }
:where(h3) { font-size: var(--t-md); font-weight: 700; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
:where(p, ul, ol, dl, figure, blockquote) { margin: 0 0 1em; }
:where(p, li) { text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--fawn-deep); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--mask); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #F3C48E; }
::selection { background: #F3C48E; color: var(--mask); }
main { display: block; }
main:focus { outline: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.nowrap { white-space: nowrap; }
.visually-hidden { 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: 1rem; top: -4rem; z-index: 100; background: var(--mask); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-family: var(--font-sans); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--pale { background: var(--fawn-mist); }
.lead { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muzzle); }
.measure { max-width: 38em; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--muzzle); font-size: 1.1875rem; }
.sans { font-family: var(--font-sans); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--mask); --fg: #fff; --bd: var(--mask);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3.25rem; padding: .8rem 1.5rem; border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-weight: 650; font-size: 1.0625rem; font-stretch: 104%; letter-spacing: -.005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: #3A2A20; --bd: #3A2A20; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: 1rem; }
.btn--light { --bg: #fff; --fg: var(--mask); --bd: #fff; }
.btn--light:hover { --bg: var(--fawn-pale); --bd: var(--fawn-pale); }
.btn--line { --bg: transparent; --fg: var(--mask); --bd: var(--mask); }
.btn--line:hover { --bg: var(--mask); --fg: #fff; --bd: var(--mask); }
.on-dark .btn--line { --fg: var(--on-dark); --bd: var(--on-dark); }
.on-dark .btn--line:hover { --bg: var(--on-dark); --fg: var(--mask); }
.btn--fawn { --bg: var(--fawn); --fg: var(--mask); --bd: var(--fawn); }
.btn--fawn:hover { --bg: #E0A869; --bd: #E0A869; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.text-link { font-family: var(--font-sans); font-weight: 650; font-stretch: 104%; text-decoration-thickness: 2px; }

/* The Boxer wiggle: a short whole-body wag on the donate buttons */
@media (prefers-reduced-motion: no-preference) {
  .btn[data-wiggle]:hover { animation: wiggle .55s var(--ease-out); }
  @keyframes wiggle {
    0% { transform: rotate(0); } 18% { transform: rotate(-3deg) translateX(-1px); } 36% { transform: rotate(2.5deg) translateX(1px); }
    54% { transform: rotate(-1.6deg); } 72% { transform: rotate(1deg); } 100% { transform: rotate(0); }
  }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, #fff); transition: box-shadow .25s, background-color .25s; }
.home { --header-bg: var(--fawn); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(31, 22, 17, .12), 0 8px 24px -16px rgba(31, 22, 17, .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--mask); }
.brand .mark { width: 2.2rem; height: 2.2rem; flex: none; overflow: visible; }
.brand__badge { width: 3rem; height: 3rem; border-radius: 50%; background: var(--fawn-pale); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease-spring); }
.home .site-header .brand__badge { background: #fff; }
.brand:hover .brand__badge { transform: rotate(-6deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-sans); }
.brand__name { font-weight: 780; font-stretch: 112%; font-size: 1.125rem; letter-spacing: -0.015em; }
.brand__place { font-size: .8125rem; color: var(--muzzle); font-weight: 500; margin-top: .15rem; }
.home .site-header .brand__place { color: #33231A; }
.mark-ear { transform-box: view-box; transition: transform .35s var(--ease-spring); }
.mark-ear--l { transform-origin: 16px 13px; }
.mark-ear--r { transform-origin: 48px 13px; }
.brand:hover .mark-ear--l, .brand:focus-visible .mark-ear--l { transform: rotate(14deg); }
.brand:hover .mark-ear--r, .brand:focus-visible .mark-ear--r { transform: rotate(-14deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: .55rem .8rem; border-radius: 999px; font-family: var(--font-sans); font-weight: 560; font-size: 1rem; text-decoration: none; color: var(--mask); transition: background-color .2s; }
.site-nav ul a:hover { background: rgba(31, 22, 17, .07); }
.site-nav ul a[aria-current="page"] { background: var(--mask); color: #fff; }
.site-nav__donate[aria-current="page"] { box-shadow: 0 0 0 3px var(--header-bg, #fff), 0 0 0 5px var(--fawn); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .5rem 1rem; border: 2px solid var(--mask); border-radius: 999px; background: transparent; color: var(--mask); font: 650 1rem/1 var(--font-sans); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease-out), opacity .2s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: var(--header-bg, #fff); box-shadow: 0 18px 30px -18px rgba(31, 22, 17, .45); border-top: 1px solid rgba(31, 22, 17, .12); }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .85rem 1rem; font-size: 1.125rem; border-radius: 12px; }
  .site-nav__donate { width: 100%; min-height: 3.25rem; }
  .brand__place { display: none; }
}

/* ---------- coat strip (brindle band) ---------- */
.coat-strip { height: clamp(16px, 2vw, 26px); background: #6B4127 url("../img/brindle-band.webp") 0 50% / auto 300% repeat-x; }

/* ---------- home hero ---------- */
.hero { background: var(--fawn); position: relative; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hero__copy { grid-column: 1 / span 6; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 8vw, 7rem); }
.hero h1 { margin-bottom: .45em; max-width: 11.5em; font-size: clamp(2.6rem, 1.3rem + 3.9vw, 5.25rem); }
.hero .lead { color: #2E2018; max-width: 31em; margin-bottom: 2rem; }
.hero__note { margin: 1.5rem 0 0; font-family: var(--font-sans); font-size: .9375rem; color: #3D2A1E; }
.hero__note a { font-weight: 650; }
.hero__media { grid-column: 7 / -1; position: relative; align-self: stretch; display: flex; align-items: flex-end; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero__photo { position: relative; width: 100%; height: 100%; min-height: 30rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: #b57a40; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__credit { position: absolute; right: .75rem; bottom: .6rem; font: 500 .6875rem/1 var(--font-sans); color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* The check: Toby's Gift pays the vet directly */
.check {
  position: absolute; left: -24%; bottom: 6%; width: min(29rem, 100%); z-index: 2;
  padding: 1.1rem 1.35rem 1rem; border-radius: 8px; color: #3B2E26; font-family: var(--font-sans);
  background-color: #F5F2E9;
  background-image:
    radial-gradient(circle at 88% 30%, rgba(208, 149, 83, .14) 0 22%, transparent 23%),
    repeating-radial-gradient(circle at 88% 30%, transparent 0 7px, rgba(168, 101, 42, .07) 7px 8px),
    repeating-linear-gradient(115deg, transparent 0 5px, rgba(35, 63, 143, .035) 5px 6px);
  box-shadow: var(--shadow-paper); --tilt-c: -3.5deg; transform: rotate(var(--tilt-c)); transform-origin: 30% 80%;
}
.check::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(143, 82, 38, .28); border-radius: 4px; pointer-events: none; }
.check__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.check__org { display: flex; gap: .55rem; align-items: center; }
.check__org .mark { width: 2rem; height: 2rem; flex: none; }
.check__org strong { display: block; font-size: .8125rem; font-weight: 760; font-stretch: 110%; letter-spacing: -.01em; color: var(--mask); }
.check__org span { display: block; font-size: .625rem; color: #6E5F55; line-height: 1.3; }
.check__no { text-align: right; font-size: .6875rem; color: #6E5F55; line-height: 1.5; }
.check__no .hand { margin-left: .35rem; }
.check__no b { color: var(--mask); font-weight: 700; font-variant-numeric: tabular-nums; }
.check__line { display: flex; align-items: flex-end; gap: .6rem; margin-top: .55rem; }
.check__label { flex: none; font-size: .625rem; line-height: 1.15; color: #6E5F55; padding-bottom: .3rem; }
.check__fill { flex: 1; min-width: 0; border-bottom: 1px solid #8C7B6E; padding: 0 .25rem .1rem; min-height: 1.9rem; display: flex; align-items: flex-end; }
.check__amount { flex: none; display: flex; align-items: center; gap: .25rem; border: 1px solid #8C7B6E; border-radius: 3px; padding: .15rem .5rem; background: rgba(255, 255, 255, .55); min-height: 2.1rem; }
.check__amount > span:first-child { font-size: .875rem; font-weight: 700; color: #3B2E26; }
.check__bottom { display: flex; flex-direction: column; gap: .1rem; margin-top: .35rem; }
.check__bottom .check__line + .check__line { margin-left: 52%; }
.check__fine { margin: .7rem 0 0; font-size: .625rem; letter-spacing: .01em; color: #6E5F55; }
.hand { font-family: var(--font-hand); color: var(--ink-blue); font-size: 1.0625rem; line-height: 1.25; white-space: nowrap; display: inline-block; padding-top: .35em; transform: translateY(.15em); }
.hand--sm { font-size: .875rem; }
.hand--sig { font-size: .9375rem; transform: translateY(.1em) rotate(-4deg); }

@media (prefers-reduced-motion: no-preference) {
  .js .check { animation: check-in 1s var(--ease-out) .35s both; }
  .js .check .hand { clip-path: inset(-20% 100% -20% 0); animation: write 1.1s steps(18, end) both; }
  .js .check [data-hand="1"] { animation-delay: 1.25s; }
  .js .check [data-hand="2"] { animation-delay: 2.25s; animation-duration: .8s; }
  .js .check [data-hand="3"] { animation-delay: 2.95s; }
  .js .check [data-hand="4"] { animation-delay: 3.9s; animation-duration: .9s; }
  .js .check [data-hand="0"] { animation-delay: .9s; animation-duration: .5s; }
  @keyframes check-in { from { opacity: 0; transform: translate(-3rem, 2.5rem) rotate(-11deg); } to { opacity: 1; transform: rotate(var(--tilt-c)); } }
  @keyframes write { to { clip-path: inset(-20% -5% -20% 0); } }
  .js .hero h1, .js .hero .lead, .js .hero .btn-row, .js .hero__note { animation: rise .8s var(--ease-out) both; }
  .js .hero .lead { animation-delay: .08s; } .js .hero .btn-row { animation-delay: .16s; } .js .hero__note { animation-delay: .24s; }
  .js .hero__photo img { animation: settle 1.6s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes settle { from { transform: scale(1.07); } }
}

@media (max-width: 960px) {
  .hero__copy { grid-column: 1 / -1; padding-bottom: 2rem; }
  .hero__media { grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding-top: 0; }
  .hero__photo { height: auto; min-height: 0; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
  .check { position: relative; left: auto; bottom: auto; width: min(30rem, calc(100% - .75rem)); margin: -4.5rem 0 2rem .5rem; --tilt-c: -2.5deg; }
  .hero__credit { bottom: auto; top: .6rem; }
}
@media (max-width: 520px) {
  .check { padding: .9rem 1rem .85rem; }
  .hand { font-size: .9375rem; }
  .hand--sm { font-size: .8125rem; }
  .check__no span { display: none; }
  .check__line { flex-wrap: wrap; }
  .check__line .check__fill { flex-basis: 55%; }
  .check__amount { margin-left: auto; margin-top: .45rem; }
  .check__bottom .check__line + .check__line { margin-left: 35%; }
  .check__label br { display: none; }
}

/* ---------- programs ---------- */
.programs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.program { border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.program__img { aspect-ratio: 16 / 10; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; }
.program__body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; flex: 1; }
.program__for { font-family: var(--font-sans); font-weight: 600; font-size: .9375rem; margin-bottom: .6rem; color: var(--fawn-ink); }
.program h3 { font-size: var(--t-lg); font-weight: 780; font-stretch: 110%; margin-bottom: .6rem; }
.program__list { list-style: none; padding: 0; margin: .5rem 0 1.75rem; display: grid; gap: .55rem; }
.program__list li { position: relative; padding-left: 1.6rem; }
.program__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--fawn); box-shadow: inset 0 0 0 2px rgba(31, 22, 17, .18); }
.program .btn-row { margin-top: auto; }
.program--grants { background: var(--fawn-pale); }
.program--toby { background: var(--brindle); color: var(--on-dark); position: relative; }
.program--toby .program__for { color: #F3C48E; }
.program--toby .program__list li::before { background: var(--tongue); box-shadow: none; }
.program--toby .program__img { position: relative; }
.program--toby .program__img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--brindle)); }
@media (max-width: 860px) { .programs__grid { grid-template-columns: 1fr; } }

/* ---------- path: how a gift reaches a Boxer (a true sequence) ---------- */
.path__wrap { position: relative; }
.path__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); position: relative; counter-reset: step; }
.path__line { position: absolute; left: 1.75rem; right: 1.75rem; top: 1.75rem; height: 4px; transform: translateY(-50%); pointer-events: none; }
.path__line svg { width: 100%; height: 4px; overflow: visible; }
.path__track { stroke: var(--line); }
.path__ink { stroke: var(--fawn-deep); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.path__step { position: relative; }
.path__num { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong); font: 760 1.25rem/1 var(--font-sans); font-stretch: 110%; color: var(--muzzle); margin-bottom: 1.25rem; position: relative; z-index: 1; transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease-spring); }
.path__step.is-on .path__num { background: var(--mask); border-color: var(--mask); color: #fff; transform: scale(1.06); }
.path__step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.path__step p { color: var(--muzzle); font-size: 1.0625rem; margin: 0; }
.path__fork { margin-top: .9rem; display: grid; gap: .5rem; }
.path__fork span { display: block; font-family: var(--font-sans); font-size: .875rem; line-height: 1.35; padding: .55rem .75rem; border-radius: 10px; background: var(--fawn-mist); border: 1px solid var(--line); color: var(--mask); }
.path__fork b { font-weight: 700; }
@media (max-width: 860px) {
  .path__steps { grid-template-columns: 1fr; gap: 2rem; }
  .path__line { left: 1.75rem; right: auto; top: 1.75rem; bottom: 1.75rem; width: 4px; height: auto; transform: translateX(-50%); }
  .path__line svg { display: none; }
  .path__line::before, .path__line::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
  .path__line::before { background: var(--line); }
  .path__line::after { background: var(--fawn-deep); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .path__step { padding-left: 5rem; min-height: 3.5rem; }
  .path__num { position: absolute; left: 0; top: 0; margin: 0; }
}

.steps-static .path__num { background: var(--mask); border-color: var(--mask); color: #fff; }

/* ---------- record: stats + chart ---------- */
.record__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.stats { display: grid; gap: 0; margin: 2rem 0 0; }
.stats > div { display: grid; grid-template-columns: 11.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .stats > div { grid-template-columns: 1fr; gap: .25rem; } }
.stats > div:last-child { border-bottom: 1px solid var(--line); }
.stats dt { order: 2; font-family: var(--font-sans); font-size: 1rem; color: var(--muzzle); line-height: 1.3; }
.stats dd { order: 1; margin: 0; font-family: var(--font-sans); font-weight: 640; font-stretch: 100%; font-size: clamp(2.25rem, 1.7rem + 1.4vw, 2.875rem); letter-spacing: -0.03em; line-height: 1; }
.source-note { font-size: .9375rem; color: var(--muzzle); margin-top: 1.25rem; }
.chart-figure, .map-figure { position: relative; margin: 0; }
.chart-title { font-family: var(--font-sans); font-weight: 700; font-size: 1.125rem; margin: 0 0 .25rem; }
.chart-sub { font-family: var(--font-sans); font-size: .9375rem; color: var(--muzzle); margin: 0 0 1rem; }
.chart { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.chart-grid { stroke: #EEE7E0; stroke-width: 1; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-tick, .chart-x { fill: var(--muzzle); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-label { fill: var(--mask); font-size: 13px; font-weight: 650; }
.chart-label--quiet { fill: var(--muzzle); font-weight: 500; }
.chart-hit { fill: transparent; }
.chart-bar { cursor: default; outline: none; }
.chart-bar path { transition: filter .15s, opacity .15s; }
.chart-bar:hover path, .chart-bar:focus-visible path { filter: brightness(1.12); }
.chart-bar:focus-visible .chart-hit { stroke: var(--mask); stroke-width: 2; rx: 6; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 8rem; max-width: 18rem; padding: .55rem .75rem; border-radius: 10px; background: var(--mask); color: #fff; font-family: var(--font-sans); line-height: 1.3; box-shadow: 0 10px 24px -10px rgba(31, 22, 17, .6); transform: translate(-50%, calc(-100% - 12px)); }
.chart-tip strong { display: block; font-size: 1.0625rem; font-weight: 700; }
.chart-tip span { display: block; font-size: .8125rem; color: #D8CABD; }
.chart-tip em { display: block; font-style: normal; font-size: .8125rem; color: #fff; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.chart-tip em:empty { display: none; }
.table-view { margin-top: 1rem; font-family: var(--font-sans); font-size: .9375rem; }
.table-view summary { cursor: pointer; font-weight: 600; color: var(--mask); text-decoration: underline; text-decoration-color: var(--fawn-deep); text-underline-offset: .2em; width: fit-content; }
.table-view table { margin-top: .75rem; }
.record__grid--map { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .record__grid, .record__grid--map { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .chart-tick, .chart-x { font-size: 21px; }
  .chart-label { font-size: 22px; }
  .tilemap text { font-size: 17px; }
}

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .9375rem; }
th, td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 650; color: var(--muzzle); font-size: .8125rem; }
tbody th { font-weight: 600; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.table-view td:nth-child(n+2), .table-view th:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.table-total th, .table-total td { font-weight: 700; border-bottom: 0; }

/* ---------- tile map ---------- */
.tilemap { width: 100%; height: auto; font-family: var(--font-sans); }
.tilemap text { font-size: 13px; font-weight: 650; pointer-events: none; }
.tile { outline: none; }
.tile.is-reached, .tile.is-relief { cursor: default; }
.tile.is-reached:hover rect:first-child, .tile.is-reached:focus-visible rect:first-child, .tile.is-relief:hover rect:first-child, .tile.is-relief:focus-visible rect:first-child { stroke: var(--mask); stroke-width: 2.5; }
.map-legend { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-sans); font-size: .875rem; color: var(--muzzle); }
.map-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: 1rem; height: 1rem; border-radius: 3px; display: inline-block; }
.swatch--none { background: #EFE9E3; }
.swatch--relief { background: #EFE9E3; box-shadow: inset 0 0 0 2px #93522A; }

/* ---------- archive prints (photos from the foundation's own early website) ---------- */
.print { background: #fff; padding: .6rem .6rem 0; border-radius: 3px; box-shadow: var(--shadow-paper); transform: rotate(var(--tilt, -2deg)); width: fit-content; max-width: 100%; }
.print img { width: 100%; height: auto; border-radius: 1px; filter: saturate(.92) contrast(1.02); }
.print figcaption { font-family: var(--font-hand); color: #3A3330; font-size: .9375rem; padding: .55rem .2rem .7rem; line-height: 1.35; }
.prints { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }

/* ---------- Toby section (dark brindle) ---------- */
.on-dark { color: var(--on-dark); }
.on-dark .muted, .on-dark .lead { color: var(--on-dark-2); }
.toby-band { background: var(--brindle) url("../img/brindle-dark.webp") center / cover; position: relative; isolation: isolate; }
.toby-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 19, 12, .88), rgba(31, 19, 12, .72) 60%, rgba(31, 19, 12, .86)); }
.toby__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.toby__portrait { justify-self: center; width: min(100%, 24rem); --tilt: -3deg; }
.toby__copy h2 { color: #fff; }
.toby__copy p { max-width: 34em; }
.pull { margin: 2rem 0; padding: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.35; color: #fff; max-width: 24em; }
.pull cite { display: block; margin-top: .75rem; font-family: var(--font-sans); font-style: normal; font-size: .9375rem; color: var(--on-dark-2); }
.pull::before { content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 2px; background: var(--tongue); margin-bottom: 1rem; }
.kali { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(246, 237, 228, .16); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kali .prints .print:nth-child(1) { --tilt: -2.5deg; width: min(100%, 17rem); }
.kali .prints .print:nth-child(2) { --tilt: 2deg; width: min(100%, 16rem); margin-top: 1.5rem; }
.kali h3 { color: #fff; font-size: var(--t-lg); }
@media (max-width: 860px) { .toby__grid, .kali { grid-template-columns: 1fr; } }

/* ECG line that ends in a heart: used for Toby's Gift */
.ecg { width: 100%; max-width: 30rem; height: auto; margin: 1.25rem 0 1.5rem; color: var(--tongue); overflow: visible; }
.ecg path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .ecg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .ecg.is-visible path { animation: ecg 2.2s var(--ease-out) forwards; }
  @keyframes ecg { to { stroke-dashoffset: 0; } }
}

/* ---------- before and after ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.ba__pair figure { margin: 0; }
.ba__pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ba__pair figcaption { font-family: var(--font-sans); margin-top: .6rem; }
.ba__pair figcaption b { display: block; font-weight: 640; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1; }
.ba__pair figcaption span { font-size: .9375rem; color: var(--muzzle); }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }

/* ---------- ways to help ---------- */
.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--mask); }
.help > div { padding: 2rem clamp(1rem, 2.5vw, 2rem) 0 0; }
.help > div + div { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2.5vw, 2rem); }
.help h3 { font-size: var(--t-lg); font-weight: 780; font-stretch: 110%; }
.help p { color: var(--muzzle); }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } .help > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 2rem; } }

/* ---------- donate band ---------- */
.give-band { background: var(--fawn); position: relative; overflow: hidden; }
.give-band__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; }
.give-band h2 { max-width: 14em; }
.give-band p { max-width: 32em; color: #2E2018; }
.give-band__photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; width: min(100%, 24rem); justify-self: end; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); }
.give-band__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .give-band__grid { grid-template-columns: 1fr; } .give-band__photo { justify-self: start; width: 12rem; order: -1; } }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--fawn-mist); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.page-hero__copy { padding-block: clamp(3rem, 7vw, 6rem); }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); }
.page-hero__media { align-self: stretch; display: flex; align-items: flex-end; padding-top: 2rem; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.page-hero--fawn { background: var(--fawn); }
.page-hero--fawn .lead { color: #2E2018; }
.page-hero--dark { background: var(--brindle) url("../img/brindle-dark.webp") center / cover; color: var(--on-dark); position: relative; isolation: isolate; }
.page-hero--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 19, 12, .9), rgba(31, 19, 12, .7)); }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lead { color: var(--on-dark-2); }
.crumb { font-family: var(--font-sans); font-size: .9375rem; margin-bottom: 1.25rem; }
.crumb a { font-weight: 600; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__copy { padding-bottom: 1.5rem; } .page-hero__media { padding-top: 0; } .page-hero__media img { aspect-ratio: 16 / 10; } }

/* ---------- prose & split layouts ---------- */
.prose { max-width: 40em; }
.prose h2 { font-size: var(--t-lg); margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--fawn-deep); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__aside { position: sticky; top: 7rem; }
.split__aside h2 { font-size: var(--t-xl); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--fawn-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238F5226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.factor-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.factor-list li { padding: .9rem 0 .9rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.factor-list li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--fawn); }
@media (max-width: 640px) { .factor-list { grid-template-columns: 1fr; } }

.panel { background: var(--fawn-mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.panel--warn { background: #FFF5F1; border-color: #F1CFC4; }
.panel h2, .panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: #FFF5F1; border: 1px solid #F1CFC4; font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; }
.notice svg { flex: none; width: 1.5rem; height: 1.5rem; color: #B23A4E; margin-top: .1rem; }
.notice p { margin: 0; }
.notice strong { font-weight: 700; }

/* ---------- facts (EIN etc.) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; font-family: var(--font-sans); }
.facts > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--muzzle); margin-bottom: .2rem; }
.facts dd { margin: 0; font-size: 1.125rem; font-weight: 600; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.copy-btn { margin-left: .4rem; padding: .2rem .6rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: 600 .8125rem/1.4 var(--font-sans); cursor: pointer; vertical-align: middle; }
.copy-btn:hover { background: rgba(31, 22, 17, .07); }
.copy-btn.is-done { background: var(--mask); color: #fff; border-color: var(--mask); }
.site-footer .copy-btn.is-done { background: var(--on-dark); color: var(--mask); border-color: var(--on-dark); }

/* ---------- timeline (About; a true sequence by year) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.25rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: 2.5rem; padding-bottom: 2.25rem; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(6.25rem - 6px); top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--fawn); box-shadow: 0 0 0 4px #fff; }
.timeline time { font: 780 1.5rem/1.1 var(--font-sans); font-stretch: 112%; letter-spacing: -.02em; text-align: right; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--muzzle); }
@media (max-width: 560px) {
  .timeline::before { left: .45rem; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; }
  .timeline li::after { left: 0; }
  .timeline time { text-align: left; }
}

/* ---------- ledger (all published grants) ---------- */
.ledger { display: grid; gap: .75rem; }
.ledger-year { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ledger-year summary { display: flex; align-items: baseline; gap: 1.25rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-family: var(--font-sans); }
.ledger-year summary::-webkit-details-marker { display: none; }
.ledger-year summary::after { content: ""; margin-left: auto; width: .65rem; height: .65rem; border-right: 2px solid var(--mask); border-bottom: 2px solid var(--mask); transform: rotate(45deg) translateY(-.2rem); transition: transform .25s var(--ease-out); align-self: center; }
.ledger-year[open] summary::after { transform: rotate(-135deg) translateY(-.1rem); }
.ledger-y { font-weight: 780; font-stretch: 112%; font-size: 1.375rem; letter-spacing: -.02em; }
.ledger-sum { color: var(--muzzle); font-size: 1rem; }
.ledger-year table, .ledger-note { margin: 0 1.25rem 1.25rem; width: calc(100% - 2.5rem); }
.ledger-note { font-size: 1rem; color: var(--muzzle); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.form legend { font: 750 1.25rem/1.2 var(--font-sans); font-stretch: 106%; margin-bottom: .25rem; padding: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-family: var(--font-sans); font-weight: 620; font-size: 1rem; }
.field .hint { font-family: var(--font-sans); font-size: .875rem; color: var(--muzzle); margin-top: -.15rem; }
.optional { font-weight: 450; color: var(--muzzle); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; min-height: 3.1rem; padding: .7rem .9rem; border: 2px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--mask);
  font: 400 1.0625rem/1.4 var(--font-sans); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 8rem; resize: vertical; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231F1611' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat; padding-right: 2.5rem; }
input:hover, select:hover, textarea:hover { border-color: #A99787; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--mask); box-shadow: 0 0 0 4px rgba(208, 149, 83, .45); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B23A4E; }
.field-error { font: 600 .875rem/1.3 var(--font-sans); color: #B23A4E; }
.check-field { display: flex; gap: .7rem; align-items: flex-start; font-family: var(--font-sans); font-size: 1rem; line-height: 1.45; }
.check-field input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--mask); flex: none; }
.form-status { font-family: var(--font-sans); font-size: 1rem; padding: 1rem 1.25rem; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #EEF6EC; border: 1px solid #C6DFC0; }
.form-status.is-error { background: #FFF5F1; border: 1px solid #F1CFC4; }
.hp { position: absolute; left: -9999px; }

/* ---------- donate widget ---------- */
.donate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .donate { grid-template-columns: 1fr; } }
.donate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 30px 60px -40px rgba(31, 22, 17, .45); }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: .35rem; background: var(--fawn-mist); border: 1px solid var(--line); border-radius: 999px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; justify-content: center; align-items: center; min-height: 2.75rem; border-radius: 999px; font: 650 1rem/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--mask); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--mask); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; }
.amounts span { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; border: 2px solid var(--line-strong); border-radius: 14px; font: 680 1.25rem/1 var(--font-sans); font-stretch: 105%; cursor: pointer; font-variant-numeric: lining-nums; transition: border-color .15s, background-color .15s, color .15s, transform .2s var(--ease-spring); }
.amounts span:hover { border-color: #A99787; }
.amounts input:checked + span { background: var(--mask); border-color: var(--mask); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--mask); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .amounts input:checked + span { animation: pop .35s var(--ease-spring); } @keyframes pop { 40% { transform: scale(1.05); } } }
.other-amount { position: relative; }
.other-amount::before { content: "$"; position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); font: 600 1.0625rem/1 var(--font-sans); color: var(--muzzle); }
.other-amount input { padding-left: 1.9rem; }
.funds { display: grid; gap: .6rem; }
.fund { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 1rem 1.1rem; border: 2px solid var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.fund input { margin: .2rem 0 0; width: 1.2rem; height: 1.2rem; accent-color: var(--mask); }
.fund b { display: block; font: 680 1.0625rem/1.25 var(--font-sans); }
.fund small { display: block; font: 400 .9375rem/1.4 var(--font-sans); color: var(--muzzle); margin-top: .15rem; }
.fund:has(input:checked) { border-color: var(--mask); background: var(--fawn-mist); }
.impact { font-family: var(--font-sans); font-size: 1rem; color: var(--muzzle); margin: 0; min-height: 1.5em; }
.tribute-fields[hidden] { display: none; }
.tribute-fields { display: grid; gap: 1.25rem; padding: 1.25rem; border-radius: 14px; background: var(--fawn-mist); border: 1px solid var(--line); }
.donate-summary { font-family: var(--font-sans); font-size: 1.0625rem; margin: 0; }
.donate-summary b { font-weight: 700; }
.btn--block { width: 100%; }
body:not([data-donate-url=""]) .donate-offline, body[data-donate-url=""] .secure-note { display: none; }
.donate-offline { margin: 0; }
.secure-note { font-family: var(--font-sans); font-size: .875rem; color: var(--muzzle); text-align: center; margin: .25rem 0 0; }

/* mail-in slip (print-friendly) */
.slip[hidden] { display: none; }
.slip { margin-top: 1.5rem; padding: 1.5rem; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--fawn-mist); font-family: var(--font-sans); }
.slip h3 { font-size: 1.25rem; }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.slip dt { color: var(--muzzle); }
.slip dd { margin: 0; font-weight: 650; }

.mail-card { font-family: var(--font-sans); }
.mail-card address { font-style: normal; font-size: 1.25rem; line-height: 1.45; font-weight: 600; margin: .75rem 0 1rem; }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; }
.story__media { position: sticky; top: 7rem; }
.story__media .prints .print:nth-child(1) { --tilt: -2deg; width: min(100%, 18rem); }
.story__media .prints .print:nth-child(2) { --tilt: 2.5deg; width: min(100%, 16rem); margin: 1rem 0 0 3rem; }
.story__media .prints .print:only-child { width: min(100%, 20rem); }
.story__meta { font-family: var(--font-sans); font-size: 1rem; color: var(--muzzle); margin-bottom: .75rem; }
.story h2 { font-size: var(--t-xl); margin-top: 0; }
.story .weights { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1.5rem 0; font-family: var(--font-sans); }
.story .weights div { display: grid; }
.story .weights b { font-size: 2rem; font-weight: 640; letter-spacing: -.03em; line-height: 1.05; }
.story .weights span { font-size: .875rem; color: var(--muzzle); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__media { position: static; } }

/* ---------- credits ---------- */
.credits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; }
.credits li { font-family: var(--font-sans); font-size: .9375rem; line-height: 1.45; }
.credits img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; }
.credits b { display: block; font-weight: 650; }

/* ---------- 404 ---------- */
.lost { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gutter); align-items: center; min-height: 70vh; padding-block: 4rem; }
.lost h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); }
.lost img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 60%; }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--mask); color: var(--on-dark-2); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(243, 196, 142, .6); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 2.5rem var(--gutter); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.site-footer__about p { max-width: 24rem; margin-top: 1.25rem; }
.brand--footer { color: var(--on-dark); }
.brand--footer .brand__place { color: var(--on-dark-2); display: block; }
.brand--footer .brand__badge { width: 3.25rem; height: 3.25rem; background: var(--fawn-pale); }
.brand--footer .brand__badge .mark { width: 2.4rem; height: 2.4rem; }
.site-footer__h { font-size: 1rem; font-weight: 700; color: #fff; font-stretch: 104%; letter-spacing: 0; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer .ein { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(246, 237, 228, .14); font-size: .875rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal for the few elements that use it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .btn, .nav-toggle, .coat-strip { display: none !important; }
  body { font-size: 12pt; }
  body.printing-slip main > *:not(.print-target) { display: none !important; }
  body.printing-slip .print-target .donate-card > *:not(.slip) { display: none !important; }
  body.printing-slip .print-target .donate > *:not(.donate-card) { display: none !important; }
  .slip { border: 2px dashed #000; background: #fff; }
}
