/* Purposed Paths — site styles
   Design notes
   - Palette from North Florida: pine shade, limestone, Florida Trail blaze orange, spring water.
   - Besley (a Clarendon revival, like routed park signage) for display; Atkinson Hyperlegible Next for reading.
   - Blazes are structural: a single blaze marks a stop on a sequence, a double blaze marks the mark itself.
   - One bold moment per page (the hero network on home). Everything else stays quiet. */

@font-face { font-family: "Besley"; src: url("../fonts/besley-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/besley-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-next-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-next-italic-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* Color */
  --pine: #16302A;          /* ink and dark bands */
  --pine-2: #1E3D35;        /* raised surface on dark */
  --pine-3: #2A4C43;        /* hairlines on dark */
  --limestone: #ECEFE8;     /* page */
  --chalk: #F7F8F4;         /* raised surface on light, inputs */
  --rule: #CDD3C6;          /* hairlines on light */
  --ink-soft: #4A5D56;      /* secondary text on light (6:1) */
  --moss: #8E9B78;          /* decorative lines only */
  --moss-pale: #B9C3AC;     /* secondary text on dark (7.7:1) */
  --blaze: #F06A25;         /* Florida Trail orange: marks, buttons (pine text 4.6:1) */
  --blaze-ink: #A93D0A;     /* orange text on light (5.4:1) */
  --spring: #4FC3BF;        /* water on dark */
  --spring-ink: #136E6C;    /* water and side links on light (5.2:1) */
  --spring-wash: #CFE7E2;

  /* Type */
  --serif: "Besley", "Rockwell", "Clarendon", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;                                   /* 14 */
  --step-0: 1.125rem;                                    /* 18 body */
  --step-1: 1.3125rem;                                   /* 21 */
  --step-2: 1.5rem;                                      /* 24 */
  --step-3: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);    /* 28 to 36 */
  --step-4: clamp(2.125rem, 1.6rem + 2.1vw, 3rem);       /* 34 to 48 */
  --step-5: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);       /* 40 to 72 */
  --step-6: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);     /* 44 to 84 */

  /* Space and layout */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --wrap: 78rem;
  --measure: 36em;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-blaze: 2px;     /* painted blaze corners: buttons, markers */
  --radius-panel: 10px;    /* large panels only */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--pine);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
main { display: block; outline: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 2px; }
.band--pine :focus-visible, .site-footer :focus-visible { outline-color: var(--spring); }
::selection { background: var(--blaze); color: var(--pine); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.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(--pine); color: var(--limestone); padding: .75rem 1rem; border-radius: var(--radius-blaze); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.display { font-size: var(--step-6); font-weight: 560; line-height: 1.02; letter-spacing: -0.022em; }
.h-section { font-size: var(--step-5); font-weight: 560; letter-spacing: -0.02em; }
.h-sub { font-size: var(--step-3); font-weight: 560; line-height: 1.15; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--ink-soft); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); margin: 2.2em 0 .6em; }
.prose h3 { font-size: var(--step-2); margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blaze-ink); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); line-height: 1.5; }

/* Side-trail links leave the site (blue-blaze convention: a side trail off the main route). */
.side-trail { color: var(--spring-ink); font-weight: 600; text-decoration: underline; }
.side-trail::after { content: ""; display: inline-block; width: .38em; height: .68em; margin-left: .38em; background: currentColor; border-radius: 1px; vertical-align: 0; }

/* ---------- Buttons ---------- */
.button {
  --b-bg: var(--pine); --b-fg: var(--limestone);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .7em 1.35em;
  background: var(--b-bg); color: var(--b-fg);
  border: 2px solid var(--b-bg); border-radius: var(--radius-blaze);
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, color .18s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--blaze { --b-bg: var(--blaze); --b-fg: var(--pine); }
.button--blaze:hover { --b-bg: #F57A3A; }
.button--ghost { background: transparent; color: var(--pine); border-color: currentColor; }
.button--ghost:hover { background: var(--pine); color: var(--limestone); border-color: var(--pine); }
.band--pine .button--ghost { color: var(--limestone); }
.band--pine .button--ghost:hover { background: var(--limestone); color: var(--pine); border-color: var(--limestone); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* Text link with a double blaze: "turn here" to another page. */
.turn { display: inline-flex; align-items: center; gap: .65em; font-weight: 700; text-decoration: none; color: var(--pine); padding-block: .3em; }
.turn::before {
  content: ""; flex: none; width: 14px; height: 20px;
  background:
    linear-gradient(var(--blaze), var(--blaze)) 5px 0 / 9px 8px no-repeat,
    linear-gradient(var(--blaze), var(--blaze)) 0 12px / 9px 8px no-repeat;
  transition: transform .2s var(--ease-out);
}
.turn span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.turn:hover span { text-decoration-thickness: 2px; }
.turn:hover::before { transform: translateX(3px); }
.band--pine .turn { color: var(--limestone); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s; }
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu and collapse the menu to the header's height. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--limestone) 90%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
body.menu-open .site-header::before { background: var(--limestone); }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: .85rem var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--pine); }
.brand .mark { width: 20px; height: 31px; }
.brand__name { font-family: var(--serif); font-weight: 650; font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1; }
.mark-blaze { fill: var(--blaze); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { list-style: none; display: flex; gap: 1.75rem; }
.site-nav__list a { text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding-block: .4rem; background: linear-gradient(var(--blaze), var(--blaze)) left bottom / 0 3px no-repeat; transition: background-size .25s var(--ease-out); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { background-size: 100% 3px; }
.site-nav__donate { min-height: 2.6rem; padding-block: .55em; }
.site-nav__donate[aria-current="page"] { box-shadow: 0 0 0 2px var(--limestone), 0 0 0 4px var(--blaze); }

.menu-toggle { display: none; align-items: center; gap: .55rem; background: none; border: 0; padding: .6rem .2rem; font-weight: 700; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s var(--ease-out), opacity .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 52rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: 0 0 0 0; top: var(--header-h, 4.2rem); z-index: 40;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 2rem var(--gutter) 3rem; background: var(--limestone);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s, transform .22s var(--ease-out), visibility 0s .22s;
    overflow-y: auto;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .22s var(--ease-out); }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a { display: block; font-family: var(--serif); font-size: var(--step-3); font-weight: 560; padding: .6rem 0; border-bottom: 1px solid var(--rule); background: none; }
  .js .site-nav__list a[aria-current="page"] { color: var(--blaze-ink); }
  .site-nav__donate { align-self: flex-start; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Bands and sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band--pine { background: var(--pine); color: var(--limestone); }
.band--pine .lede, .band--pine .muted { color: var(--moss-pale); }
.band--chalk { background: var(--chalk); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); max-width: 50rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.hero__copy { position: relative; z-index: 2; padding-block: 2rem; }
.hero__title { margin-bottom: 1.6rem; max-width: 9.5em; }
.hero__lede { margin-bottom: 2.2rem; }
.hero__place { position: relative; display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin-top: 2.5rem; padding-left: 1.4rem; color: var(--ink-soft); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.hero__place::before { content: ""; position: absolute; left: 0; top: .2em; width: 9px; height: 13px; background: var(--blaze); border-radius: 1px; }

/* The network figure */
.paths { position: relative; margin: 0; margin-right: calc(-1 * var(--gutter)); }
.paths__stage { position: relative; aspect-ratio: 1 / 1.02; max-height: min(78vh, 760px); width: 100%; }
.paths__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair;
  -webkit-mask-image: radial-gradient(120% 100% at 55% 50%, #000 58%, transparent 92%);
          mask-image: radial-gradient(120% 100% at 55% 50%, #000 58%, transparent 92%); }
.paths__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 1.2s; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 55% 50%, #000 58%, transparent 92%);
          mask-image: radial-gradient(120% 100% at 55% 50%, #000 58%, transparent 92%); }
.paths.is-live .paths__poster { opacity: 0; }
.paths__nodes { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.paths__node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .3rem; }
.paths__node::before { content: ""; width: 10px; height: 15px; background: var(--blaze); border-radius: 1.5px; box-shadow: 0 0 0 3px var(--limestone); }
.paths__node span { font-size: .8125rem; font-weight: 700; letter-spacing: .01em; color: var(--pine); background: color-mix(in srgb, var(--limestone) 82%, transparent); padding: .05rem .4rem; border-radius: 3px; white-space: nowrap; }
.paths__cursor { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 2px solid var(--blaze); border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease-out); }
.paths__cursor.is-on { opacity: 1; transform: scale(1); }
.paths__caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-top: .75rem; padding-right: var(--gutter); color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }
.paths__caption p { max-width: 34em; margin: 0; }
.paths__toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .85rem .35rem .65rem; font-size: var(--step--1); font-weight: 700; color: var(--pine); cursor: pointer; }
.paths__toggle:hover { border-color: var(--pine); }
.paths__toggle-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.paths__toggle[aria-pressed="true"] .paths__toggle-icon { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
html:not(.js) .paths__toggle, html:not(.js) .paths__hint { display: none; }

/* Hero load sequence: the one orchestrated entrance on the site. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) forwards; }
  .js .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .24s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .36s; }
  .js .paths__node { opacity: 0; animation: node-in .6s var(--ease-out) forwards; animation-delay: calc(.6s + var(--i, 0) * .09s); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes node-in { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- Statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem var(--gutter); align-items: start; }
.statement__text { font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 2.1vw, 3rem); font-weight: 450; line-height: 1.22; letter-spacing: -0.012em; max-width: 22em; text-wrap: pretty; }
.statement__text p { margin-bottom: .7em; }
.statement__aside { padding-top: .6rem; color: var(--ink-soft); }
.statement__aside .turn { margin-top: 1rem; }

/* ---------- Trail sequence (how we work) ---------- */
.trail { position: relative; padding-top: 4.5rem; }
.trail__stops { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem var(--gutter); counter-reset: stop; }
.trail__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 64px; overflow: visible; }
.trail__line path { fill: none; stroke: var(--moss); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail__line .trail__walked { stroke: var(--blaze); stroke-width: 3; vector-effect: none; }
html:not(.js) .trail__walked { display: none; }
.trail__stop { position: relative; counter-increment: stop; }
.trail__stop::before { content: ""; position: absolute; top: calc(-4.5rem + var(--y, 30px) - 9px); left: calc(50% - 6px); width: 12px; height: 18px; background: var(--pine-3); border-radius: 2px; box-shadow: 0 0 0 4px var(--pine); transition: background-color .35s; }
.trail__stop.is-reached::before { background: var(--blaze); }
.trail__num { display: block; font-family: var(--serif); font-size: var(--step-2); font-weight: 500; color: var(--moss-pale); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.trail__num::before { content: counter(stop); }
.trail__title { font-size: var(--step-3); margin-bottom: .8rem; }
.trail__stop p { color: var(--moss-pale); max-width: 22em; }

/* ---------- Program index ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem var(--gutter); align-items: start; }
.split__head { position: sticky; top: 7rem; display: grid; gap: 1.25rem; }
.index { list-style: none; border-top: 1px solid var(--rule); }
.index__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: baseline; padding: 1.75rem 0 1.85rem; border-bottom: 1px solid var(--rule); }
.index__title { font-size: var(--step-3); }
.index__title a { text-decoration: none; }
.index__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blaze); }
.index__item p { grid-column: 1; color: var(--ink-soft); max-width: 34em; }
.index__for { grid-column: 2; grid-row: 1; font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; }

/* ---------- Place / map ---------- */
.place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem var(--gutter); align-items: center; }
.place__facts { list-style: none; margin-top: 2rem; border-top: 1px solid var(--rule); }
.place__facts li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.place__facts strong { font-weight: 700; }
.place__facts span { color: var(--ink-soft); }
.place__figure { margin: 0; }
.place__figure figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--ink-soft); }

.map { width: 100%; height: auto; border-radius: var(--radius-panel); }
.map-ground { fill: #E3E8DE; }
.map-neighbors { fill: none; stroke: #BCC5B3; stroke-width: 1; stroke-linejoin: round; }
.map-county { fill: var(--chalk); }
.map-hatch { fill: none; stroke: #DDE3D6; stroke-width: 1; }
.map-lakes { fill: var(--spring-wash); stroke: #9FCFC8; stroke-width: .8; }
.map-rivers { fill: none; stroke: #5FB3AC; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-city { fill: color-mix(in srgb, var(--blaze) 16%, transparent); stroke: var(--blaze); stroke-width: 1.2; stroke-linejoin: round; }
.map-roads-casing { fill: none; stroke: var(--chalk); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.map-roads { fill: none; stroke: var(--pine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map-county-line { fill: none; stroke: var(--pine); stroke-width: 2; stroke-dasharray: 7 3 1.5 3; stroke-linejoin: round; }
.map-label { font-family: var(--sans); fill: var(--pine); paint-order: stroke; stroke: var(--chalk); stroke-width: 3.5px; stroke-linejoin: round; }
.map-label--state { font-size: 13px; font-weight: 700; fill: var(--ink-soft); stroke: #E3E8DE; }
.map-label--county { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.map-label--water { font-size: 12.5px; font-style: italic; fill: var(--spring-ink); }
.map-label--forest { font-size: 12.5px; font-style: italic; fill: #56704A; stroke: #E3E8DE; }
.map-label--city { font-family: var(--serif); font-size: 21px; font-weight: 650; }
.map-shield rect { fill: var(--pine); }
.map-shield text { font-family: var(--sans); font-size: 12px; font-weight: 800; fill: var(--chalk); text-anchor: middle; }
.map-here-dot { fill: var(--blaze); stroke: var(--chalk); stroke-width: 2.5; }
.map-here-pulse { fill: none; stroke: var(--blaze); stroke-width: 2; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .map-here-pulse { animation: pulse 2.6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.map-inset-bg { fill: var(--chalk); stroke: var(--rule); }
.map-inset-land { fill: #CBD3C2; }
.map-inset-frame { fill: none; stroke: var(--blaze); stroke-width: 1.5; }
.map-scale path { stroke: var(--pine); stroke-width: 1.5; fill: none; }
.map-scale text { font-family: var(--sans); font-size: 11.5px; font-weight: 700; fill: var(--pine); }

/* ---------- Ways to help ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--pine); }
.way { padding: 2rem var(--gutter) 2.25rem 0; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; }
.way + .way { padding-left: var(--gutter); border-left: 1px solid var(--rule); }
.way h3 { font-size: var(--step-3); }
.way p { color: var(--ink-soft); }
.way .turn { margin-top: .25rem; justify-self: start; }

/* Give panel: the one orange surface. */
.give { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem var(--gutter); align-items: end; margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding: clamp(2rem, 1.2rem + 3vw, 3.5rem); background: var(--blaze); color: var(--pine); border-radius: var(--radius-panel); }
.give h2 { font-size: var(--step-5); max-width: 11em; }
.give p { max-width: 30em; font-size: var(--step-1); line-height: 1.5; }
.give .button { --b-bg: var(--pine); --b-fg: var(--limestone); }
.give .button:hover { --b-bg: #0E211C; }
.give__actions { display: grid; gap: 1rem; justify-items: start; }
.give__actions .small { max-width: 26em; font-size: 1rem; line-height: 1.5; }

/* ---------- Facts (transparency) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.facts > div { padding: 1.35rem 1.25rem 1.5rem 0; }
.facts > div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: .35rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: var(--step-2); font-weight: 560; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.25rem; font-size: var(--step--1); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem var(--gutter); align-items: end; }
.page-hero h1 { font-size: var(--step-6); font-weight: 560; line-height: 1.02; letter-spacing: -0.022em; max-width: 12em; margin-bottom: 1.4rem; }
.page-hero__trail { position: absolute; right: 0; top: 0; height: 100%; width: 38%; pointer-events: none; }
.page-hero__trail path { fill: none; stroke: var(--moss); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .55; }
.page-hero__trail rect { fill: var(--blaze); }
.crumb { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumb a { color: inherit; }

/* ---------- About ---------- */
.epigraph { margin: 0; max-width: 62rem; }
.epigraph blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--step-5); font-weight: 420; line-height: 1.12; letter-spacing: -0.015em; }
.epigraph blockquote p { margin-bottom: .5em; }
.epigraph figcaption { color: var(--moss-pale); font-size: var(--step--1); margin-top: 1rem; }
.epigraph .original { font-size: var(--step-2); line-height: 1.4; color: var(--moss-pale); font-style: italic; margin-top: 1.25rem; }

.blaze-explainer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem var(--gutter); align-items: center; }
.blaze-explainer__art { width: clamp(150px, 18vw, 230px); }
.blaze-tree__bark { fill: #C9CFBF; }
.blaze-tree__grain { fill: none; stroke: #B0B8A4; stroke-width: 1.5; stroke-linecap: round; }

.values { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.values li { padding: 1.75rem 0 2rem; border-top: 1px solid var(--rule); }
.values h3 { font-size: var(--step-3); margin-bottom: .6rem; }
.values p { color: var(--ink-soft); max-width: 30em; }

.timeline { list-style: none; border-left: 2px dotted var(--moss); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .3rem; width: 12px; height: 18px; background: var(--blaze); border-radius: 2px; box-shadow: 0 0 0 4px var(--limestone); }
.timeline time, .timeline strong { display: block; font-weight: 700; margin-bottom: .2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .timeline__next::before { background: var(--limestone); border: 2px solid var(--blaze); }

/* ---------- Programs page ---------- */
.program { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem var(--gutter); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.program:first-of-type { border-top: 0; }
.program__head { display: grid; gap: 1rem; align-content: start; }
.program__glyph { width: 72px; height: 72px; margin-bottom: .25rem; }
.program__glyph * { fill: none; stroke: var(--pine); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.program__glyph .g-blaze { fill: var(--blaze); stroke: none; }
.program h2 { font-size: var(--step-4); }
.program__for { font-size: var(--step--1); color: var(--ink-soft); }
.program__body { max-width: var(--measure); }
.program__body > p:first-child { font-size: var(--step-1); line-height: 1.55; }
.checks { list-style: none; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 12px; background: var(--blaze); border-radius: 1px; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; list-style: none; }
.jump a { font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.35rem; max-width: 40rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin-top: -.25rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem; background: var(--chalk); border: 1.5px solid #AEB8A6; border-radius: 4px; font-size: 1.0625rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--pine); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blaze) 55%, transparent); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: var(--step--1); font-weight: 700; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem 1rem; border: 1.5px solid #AEB8A6; border-radius: 4px; background: var(--chalk); font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice input:checked + span { border-color: var(--pine); background: var(--pine); color: var(--limestone); }
.choice input:focus-visible + span { outline: 3px solid var(--blaze); outline-offset: 2px; }
.choice input[type="checkbox"] + span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.choice input[type="checkbox"]:checked + span::before { background: var(--blaze); border-color: var(--blaze); }
.form__status { padding: 1rem 1.15rem; border-radius: 4px; border-left: 4px solid var(--pine); background: var(--chalk); }
.form__status[hidden] { display: none; }
.form__status--ok { border-left-color: var(--spring-ink); }
.form__status--error { border-left-color: #B3261E; }
.hp { position: absolute; left: -9999px; }

/* ---------- Donate ---------- */
.donate-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem var(--gutter); align-items: start; }
.donate-card { background: var(--chalk); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.donate-card h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.amounts .choice span { width: 100%; justify-content: center; font-family: var(--serif); font-size: var(--step-2); font-weight: 600; min-height: 3.6rem; font-variant-numeric: tabular-nums; }
.other-amount { position: relative; }
.other-amount input { padding-left: 1.8rem !important; }
.other-amount::before { content: "$"; position: absolute; left: .85rem; bottom: .78rem; font-weight: 700; color: var(--ink-soft); }
.donate-summary { font-family: var(--serif); font-size: var(--step-2); font-weight: 560; }
.ways-to-give { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ways-to-give > div { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.ways-to-give h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.ways-to-give p { color: var(--ink-soft); }

/* Mail-in slip, shown on screen as a preview and printed alone. */
.slip { display: none; margin-top: 2rem; padding: 2rem; background: #fff; color: #000; border: 2px dashed var(--moss); border-radius: 6px; font-size: 1rem; }
.slip.is-ready { display: block; }
.slip h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.slip dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 1rem; margin: 1rem 0; }
.slip dt { font-weight: 700; }
.slip dd { margin: 0; border-bottom: 1px solid #999; min-height: 1.6em; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem var(--gutter); align-items: start; }
.contact-aside { display: grid; gap: 2rem; }
.contact-aside h2 { font-size: var(--step-2); margin-bottom: .5rem; }
.contact-aside address { font-size: var(--step-1); line-height: 1.5; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; align-items: center; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem var(--gutter); align-items: center; }
.lost__sign { width: min(100%, 420px); justify-self: center; }
.lost__sign .post { fill: #7A6248; }
.lost__sign .board { fill: var(--pine); }
.lost__sign text { font-family: var(--serif); font-weight: 650; fill: var(--limestone); font-size: 30px; }
.lost__sign .ground { stroke: var(--moss); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--limestone); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); padding-bottom: 2rem; }
.site-footer a { color: var(--limestone); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem var(--gutter); padding-bottom: 3rem; }
.site-footer__about p { color: var(--moss-pale); max-width: 28em; margin-top: 1.25rem; }
.site-footer__mark-note { font-size: var(--step--1); }
.brand--footer { color: var(--limestone); }
.site-footer__heading { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--moss-pale); margin-bottom: 1rem; letter-spacing: .01em; }
.site-footer__nav ul { list-style: none; display: grid; gap: .55rem; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__contact address { line-height: 1.6; margin-bottom: 1rem; }
.site-footer__legal { border-top: 1px solid var(--pine-3); padding-top: 1.5rem; display: grid; gap: .5rem; color: var(--moss-pale); font-size: var(--step--1); }
.site-footer__disclosure { max-width: 60rem; }

/* ---------- Reveal on scroll (only for the trail line; nothing else fades in) ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .trail { padding-top: 0; }
  .trail__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail__line { display: none; }
  .trail__stop { padding-left: 2.25rem; }
  .trail__stop::before { top: .35rem; left: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .hero__grid, .statement, .split, .place, .page-hero__grid, .program, .donate-layout, .contact-layout, .lost__grid, .blaze-explainer, .give { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-block: 1rem 0; }
  .paths { margin-left: calc(-1 * var(--gutter)); }
  .paths__stage { aspect-ratio: 1 / 1.05; max-height: none; }
  .paths__caption { padding-left: var(--gutter); }
  .split__head { position: static; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 1.75rem 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--rule); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .page-hero__trail { opacity: .5; width: 60%; }
  .lost__sign { width: min(70%, 300px); order: -1; }
}
@media (max-width: 36rem) {
  .trail__stops { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place__facts li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .index__item { grid-template-columns: minmax(0, 1fr); }
  .index__for { grid-column: 1; grid-row: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 1.1rem 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--rule); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .slip dl { grid-template-columns: minmax(0, 1fr); }
  .paths__node span { font-size: .75rem; }
}

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

/* ---------- Print: the mail-in slip prints alone; other pages print cleanly ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .paths__toggle, .button, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  body.print-slip * { visibility: hidden; }
  body.print-slip .slip, body.print-slip .slip * { visibility: visible; }
  body.print-slip .slip { display: block; position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 0; padding: 0; }
}
