/* Adopt and Feed Inc. — site styles
   Palette: cobalt night sky, manila gift tags, red-and-white baker's twine. */

:root {
  --cobalt: #2441c4;
  --cobalt-700: #1b329e;
  --cobalt-900: #14247a;
  --night: #0e1a4a;
  --ink-2: #3b4675;
  --paper: #f4f6fe;
  --white: #ffffff;
  --line: #d3d9f0;
  --manila: #efd49b;
  --manila-200: #f7e7c2;
  --manila-600: #c9a65a;
  --manila-ink: #5b4718;
  --twine: #de3a2e;
  --stamp: #b42318;
  --marker: #1f33a3;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Gochi Hand", "Marker Felt", "Comic Sans MS", cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --focus: var(--cobalt);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .08 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--twine); }
address { font-style: normal; }
button { font: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--manila); color: var(--night); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 1rem; top: -200px; z-index: 100;
  background: var(--manila); color: var(--night); font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.25rem; }
.h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 780; font-stretch: 108%; margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.prose p { max-width: 62ch; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-top: 0; }
/* two plain paper sections in a row share one gap */
.section:not(.band-cobalt):not(.band-manila) + .section:not(.band-cobalt):not(.band-manila) { padding-top: 0; }
.band-cobalt { background: var(--cobalt); color: var(--white); --focus: var(--manila); }
.band-cobalt a:not(.btn) { color: var(--white); }
.band-cobalt a:not(.btn):hover { text-decoration-color: var(--manila); }
.band-manila { background: var(--manila) var(--grain); color: var(--night); --focus: var(--cobalt-900); }
.band-manila a:not(.btn) { color: var(--night); }

.text-link { font-weight: 700; color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.icon-link { display: inline-flex; align-items: center; gap: 0.55rem; }
.icon-link svg { width: 20px; height: 20px; flex: none; }
.icon-link--big { font-size: 1.1875rem; font-weight: 700; }
.link-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0 1.5rem;
  font-family: var(--font); font-size: 1.0625rem; font-weight: 750; font-stretch: 106%;
  line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 0; background: none; cursor: pointer;
}
/* Gift-tag shaped button: pointed left end with a real punched eyelet. */
.btn--tag { color: var(--night); padding-left: 2.35rem; }
.btn--tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--manila);
  border-radius: 0 8px 8px 0;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 19px 50%, transparent 4.5px, #000 5.2px);
          mask: radial-gradient(circle at 19px 50%, transparent 4.5px, #000 5.2px);
  transform-origin: 19px 50%;
  transition: transform 0.45s cubic-bezier(0.3, 1.8, 0.5, 1), background-color 0.2s;
}
.btn--tag:hover::before { background: var(--manila-200); transform: rotate(-3deg); }
.btn--tag:active::before { transform: rotate(1deg) scale(0.98); }
.btn--on-paper { color: var(--white); }
.btn--on-paper::before { background: var(--cobalt); }
.btn--on-paper:hover::before { background: var(--cobalt-700); }
.btn--line { color: var(--white); border: 2px solid currentColor; border-radius: 10px; }
.btn--line:hover { background: rgba(255, 255, 255, 0.1); }
.btn--line-ink { color: var(--night); }
.btn--line-ink:hover { background: rgba(14, 26, 74, 0.06); }
.btn__icon { width: 20px; height: 20px; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; vertical-align: 0.1em;
  margin-left: 0.5rem; padding: 0.2rem 0.75rem 0.2rem 0.6rem;
  font: 650 0.875rem/1.4 var(--font); color: inherit;
  background: transparent; border: 1.5px solid currentColor; border-radius: 999px; cursor: pointer;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { background: rgba(14, 26, 74, 0.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cobalt); color: var(--white);
  --focus: var(--manila);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(8, 16, 60, 0.55); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--white); text-decoration: none;
  font-size: 1.3125rem; font-weight: 850; font-stretch: 116%; letter-spacing: -0.02em; line-height: 1;
}
.brand__mark { width: 42px; height: 42px; flex: none; transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); transform-origin: 60% 20%; }
.brand:hover .brand__mark { transform: rotate(8deg); }
.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.85rem); list-style: none; margin: 0; padding: 0; }
.site-nav__list a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 650; font-size: 1rem;
  padding-block: 0.5rem; background: linear-gradient(var(--manila), var(--manila)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.25s;
}
.site-nav__list a:not(.btn):hover { background-size: 100% 3px; }
.site-nav__list a[aria-current="page"]:not(.btn) { background-size: 100% 3px; }
.site-nav__give .btn { min-height: 44px; font-size: 1rem; }
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 1rem;
  color: var(--white); background: transparent; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 10px;
  font-weight: 700; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s;
}
.nav-toggle__bars { position: relative; }
.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); }

/* ---------- twine and hanging tags ---------- */
.tag-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tag-stage__tags { position: absolute; inset: 0; pointer-events: none; }
.twine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.twine path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.twine__shadow { stroke: rgba(6, 12, 50, 0.32); stroke-width: 3.5; transform: translateY(5px); }
.twine__base { stroke: #fff; stroke-width: 3.4; }
.twine__twist { stroke: var(--twine); stroke-width: 3.4; stroke-dasharray: 3.2 4.2; }

.tag-stage { --s: 1; }
.tag {
  --w: 146px; --h: 210px; --len: 40px;
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * var(--s));
  height: calc(var(--len) + var(--h) * var(--s));
  margin-left: calc(var(--w) * var(--s) / -2);
  padding: 0; border: 0; background: none; color: inherit;
  transform-origin: 50% 0;
  pointer-events: auto; cursor: grab;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: opacity 0.35s;
}
.tag.is-dragging { cursor: grabbing; }
.tag.is-hanging { opacity: 0; }
.tag[aria-pressed="true"] { z-index: 2; }
.tag::before {
  /* the loop of twine from the strand to the eyelet */
  content: ""; position: absolute; left: 50%; top: 0;
  width: 2px; margin-left: -1px;
  height: calc(var(--len) + 22px * var(--s));
  background: repeating-linear-gradient(180deg, #fff 0 3px, var(--twine) 3px 6.5px);
}
.tag__body {
  position: absolute; left: 50%; top: var(--len);
  width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  transform-origin: 50% 0;
  transform: rotate(var(--lag, 0rad)) scale(var(--s));
  perspective: 900px;
  filter: drop-shadow(0 14px 14px rgba(6, 12, 50, 0.38));
}
.tag:focus-visible { outline: none; }
.tag:focus-visible .tag__body { outline: 3px solid var(--manila); outline-offset: 8px; border-radius: 12px; }
.tag__card {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 1.35, 0.45, 1);
}
.tag[aria-pressed="true"] .tag__card { transform: rotateY(180deg); }
.tag__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 42px 12px 16px; text-align: center;
  color: var(--marker);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%, rgba(120, 80, 10, 0.08)),
    var(--grain),
    var(--manila);
  clip-path: polygon(25% 0, 75% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
  -webkit-mask: radial-gradient(circle at 50% 22px, transparent 5px, #000 5.6px);
          mask: radial-gradient(circle at 50% 22px, transparent 5px, #000 5.6px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tag__face--back { transform: rotateY(180deg); }
.tag__eyelet {
  position: absolute; left: 50%; top: 13px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 5px, #f9ebc9 5.5px 8.2px, rgba(120, 80, 10, 0.25) 8.6px, transparent 9px);
}
.tag__hand { font-family: var(--hand); font-weight: 400; line-height: 1; }
.tag__family { font-size: 26px; margin-top: 4px; }
.tag__num { font-family: var(--hand); font-size: 96px; line-height: 0.86; }
.tag__year { font-size: 18px; opacity: 0.85; }
.tag__need {
  margin-top: auto; padding: 4px 9px;
  font: 700 12.5px/1.15 var(--font); font-stretch: 104%;
  color: var(--stamp); border: 1.5px dashed currentColor; border-radius: 6px;
}
.tag__stamp {
  margin-top: auto; padding: 3px 10px;
  font: 900 17px/1.2 var(--font); font-stretch: 122%; letter-spacing: 0.02em;
  color: var(--stamp); border: 3px double currentColor; border-radius: 4px;
  transform: rotate(-9deg); opacity: 0.88;
}
.tag__to { font-size: 21px; margin: 2px 0 10px; }
.tag__list { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.tag__item { display: flex; align-items: center; gap: 7px; font: 700 15px/1.1 var(--font); font-stretch: 104%; color: var(--night); }
.tag__item svg { width: 17px; height: 17px; color: var(--marker); }
.tag__from { margin-top: auto; font-size: 20px; }
.tag__you { text-decoration: underline wavy var(--twine) 1.5px; text-underline-offset: 5px; }
.tag--page { --w: 164px; --h: 204px; }
.tag__big { font-size: 31px; line-height: 1.02; margin-top: 10px; text-wrap: balance; }
.tag__small { font-size: 19px; margin-top: auto; opacity: 0.85; }

.tag-hint {
  position: absolute; left: calc(44% - 290px); top: 70px; margin: 0;
  transition: opacity 0.5s;
  display: flex; align-items: flex-end; gap: 4px;
  font-family: var(--hand); font-size: 23px; line-height: 1.15; color: var(--manila);
  transform: rotate(-4deg);
}
.tag-hint svg { width: 82px; height: 42px; flex: none; transform: translateY(6px) rotate(18deg); }
.tag-stage.has-flipped .tag-hint { opacity: 0; }
.tag-stage.is-narrow .tag-hint {
  left: 0; right: 0; top: calc(var(--stage-h, 320px) - 46px);
  justify-content: center; font-size: 19px; transform: none;
}
.tag-stage.is-narrow .tag-hint br, .tag-stage.is-narrow .tag-hint svg { display: none; }
.tag-stage.is-narrow .tag-hint span::after { content: ""; }

/* Without JavaScript the tags sit in a simple row */
html:not(.js) .tag-stage { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 24px var(--gutter) 56px; }
html:not(.js) .tag-stage__tags { position: static; display: contents; }
html:not(.js) .twine, html:not(.js) .tag-hint { display: none; }
html:not(.js) .tag { position: relative; margin: 0; --len: 12px; --s: 0.7; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--cobalt); color: var(--white); overflow: clip; --focus: var(--manila); }
.hero__inner {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; align-items: flex-end;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 880px);
  padding-block: 140px clamp(56px, 9vh, 104px);
}
.hero__inner > * { pointer-events: auto; }
.hero__copy { max-width: min(41rem, calc(54vw - var(--gutter) - 96px)); }
.hero__title { font-size: clamp(2.5rem, 4.7vw, 4.6rem); font-weight: 820; font-stretch: 100%; line-height: 0.98; letter-spacing: -0.028em; margin-bottom: 1.5rem; }
.hero__lead { font-size: clamp(1.1875rem, 1.55vw, 1.375rem); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 32em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1rem; }
.hero.has-narrow-stage .hero__inner { min-height: 0; padding-top: var(--stage-h, 340px); }
.hero.has-narrow-stage .hero__copy { max-width: 40rem; }
html:not(.js) .hero__inner { min-height: 0; padding-top: 48px; }

/* ---------- interior page hero ---------- */
.page-hero { position: relative; background: var(--cobalt); color: var(--white); overflow: clip; --focus: var(--manila); }
.page-hero:not(.has-narrow-stage) { min-height: var(--stage-h, 0px); display: flex; align-items: center; }
.page-hero:not(.has-narrow-stage) .page-hero__inner { flex: 1; }
.page-hero__inner { position: relative; z-index: 2; pointer-events: none; padding-block: clamp(5rem, 9vw, 8rem) clamp(3.5rem, 6vw, 5.5rem); }
.page-hero__inner > * { pointer-events: auto; max-width: min(38rem, 56%); }
.page-hero__title { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-stretch: 108%; margin-bottom: 1.25rem; }
.page-hero__lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; color: rgba(255, 255, 255, 0.9); margin: 0; }
.page-hero.has-narrow-stage .page-hero__inner { padding-top: var(--stage-h, 200px); }
.page-hero.has-narrow-stage .page-hero__inner > * { max-width: 40rem; }
html:not(.js) .page-hero__stage { justify-content: flex-end; }

/* ---------- home: what every family receives ---------- */
.receive__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.receive__intro .lead { margin-bottom: 1.5rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 3rem); list-style: none; margin: 0; padding: 0; }
.checklist__item {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 1.1rem; align-content: start;
  padding-block: 1.6rem; border-top: 2px solid var(--line);
}
.checklist__icon { grid-row: span 2; width: 64px; height: 64px; padding: 10px; border-radius: 50%; background: var(--manila) var(--grain); color: var(--night); }
.checklist__title { font-size: 1.375rem; font-weight: 780; font-stretch: 108%; margin: 0.45rem 0 0.35rem; }
.checklist__item p { margin: 0; color: var(--ink-2); }
.checklist--compact { grid-template-columns: 1fr; }

/* ---------- home: campaign band ---------- */
.campaign__grid { display: grid; grid-template-columns: 1fr minmax(0, 23rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.campaign .lead { color: rgba(255, 255, 255, 0.9); }
.family-row { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 2.25rem 0 0.9rem; }
.mini-tag { position: relative; width: 58px; height: 92px; transform-origin: 50% 0; }
.mini-tag:nth-child(odd) { transform: rotate(-5deg); }
.mini-tag:nth-child(even) { transform: rotate(4deg); }
.mini-tag svg { width: 100%; height: 100%; overflow: visible; }
.mini-tag__string { stroke: rgba(255, 255, 255, 0.7); }
.mini-tag__shape { fill: rgba(239, 212, 155, 0.08); stroke: var(--manila); }
.mini-tag__hole { fill: none; stroke: var(--manila); stroke-width: 2; }
.mini-tag__n { position: absolute; left: 0; right: 0; top: 48%; text-align: center; font: 26px/1 var(--hand); color: var(--manila); }
.mini-tag.is-sponsored .mini-tag__shape { fill: var(--manila); }
.mini-tag.is-sponsored .mini-tag__hole { fill: var(--cobalt); stroke: none; }
.mini-tag.is-sponsored .mini-tag__n { color: var(--marker); }
.family-row__label { font-weight: 700; margin: 0; }

.advent__count { font-size: 1.375rem; font-weight: 700; margin: 0 0 1rem; }
.advent__count strong { font-size: 3.25rem; font-weight: 900; font-stretch: 118%; line-height: 1; letter-spacing: -0.03em; margin-right: 0.15em; color: var(--manila); }
.advent__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 23rem; list-style: none; margin: 0; padding: 0; }
.advent__day {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.36); border-radius: 8px;
  font-weight: 700; font-stretch: 110%; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.advent__day.is-past { color: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.18); }
.advent__day.is-past::after {
  content: ""; position: absolute; inset: 22%;
  background:
    linear-gradient(45deg, transparent 45%, var(--twine) 45% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 45%, var(--twine) 45% 56%, transparent 56%);
}
.advent__day.is-today { background: var(--manila); border-color: var(--manila); color: var(--night); }
.advent__day--xmas { background: var(--twine); border-color: var(--twine); color: var(--white); }
.advent__day--xmas svg { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; color: var(--manila); }

.ways__title { font-size: 1.1875rem; font-weight: 750; font-stretch: 106%; color: var(--manila); margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.1rem; letter-spacing: 0; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, 0.28); }
.ways li + li { border-left: 2px solid rgba(255, 255, 255, 0.28); }
.way { display: block; height: 100%; padding: 1.5rem 1.75rem 1.75rem; text-decoration: none; }
.ways li:first-child .way { padding-left: 0; }
.way__name { display: block; font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; font-stretch: 110%; letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.way__text { display: block; color: rgba(255, 255, 255, 0.82); }
.band-cobalt a.way { color: var(--white); }
.way:hover .way__name { text-decoration: underline; text-decoration-color: var(--manila); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

/* ---------- route map (Christmas Ride) ---------- */
.ride__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.route { margin: 0; }
.route__svg { width: 100%; height: auto; overflow: visible; }
.route__bg { fill: var(--white); }
.route__frame { fill: none; stroke: var(--line); stroke-width: 2; }
.route__streets { fill: none; stroke: #e5e9f8; stroke-width: 1.5; }
.route__road { fill: none; stroke: #d6dcf3; stroke-width: 8; stroke-linecap: round; }
.route__canal { fill: none; stroke: #b9caff; stroke-width: 6; stroke-linecap: round; }
.route__base { fill: none; stroke: #b9c1e3; stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; stroke-linejoin: round; }
.route__line { fill: none; stroke: var(--cobalt); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.route__start circle { fill: var(--night); }
.route__label { font: 700 15px var(--font); fill: var(--night); }
.route__glow { fill: var(--manila); opacity: 0; transform: scale(0.3); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
.route__house { fill: var(--white); stroke: var(--night); stroke-width: 2.2; stroke-linejoin: round; transition: fill 0.3s; }
.route__door { fill: none; stroke: var(--night); stroke-width: 2; }
.route__num { font: 24px var(--hand); fill: var(--night); }
.route:not(.is-animated) .route__glow, .route__stop.is-reached .route__glow { opacity: 0.6; transform: scale(1); }
.route:not(.is-animated) .route__house, .route__stop.is-reached .route__house { fill: var(--manila); }
.route__marker { color: var(--white); }
.route__marker circle { fill: var(--twine); stroke: var(--white); stroke-width: 3; }
.route:not(.is-animated) .route__marker { display: none; }
.route__place { font: 28px var(--hand); fill: var(--cobalt); }

.facts { margin: 2rem 0 2.25rem; border-top: 2px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 2px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 650; }
.facts--large dd { font-size: 1.1875rem; }

/* ---------- sponsors ---------- */
.sponsor-flow {
  max-width: none; margin: 1.25rem 0 2.5rem;
  font-size: clamp(1.75rem, 3.5vw, 3.1rem); font-weight: 800; font-stretch: 112%;
  line-height: 1.28; letter-spacing: -0.02em; text-wrap: pretty;
}
.sponsor-name { white-space: nowrap; }
.sponsor-sep { display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.15em 0 0.4em; vertical-align: 0.1em; color: var(--twine); }
.thanks__more { margin: 0; }
.nominate { padding-block: clamp(3rem, 5vw, 4rem); }
.nominate__grid { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2.5rem; align-items: center; }
.nominate__grid h2 { margin: 0; max-width: 24em; }
.nominate__grid p { grid-column: 1; margin: 0; }
.nominate__grid .btn { grid-column: 2; grid-row: 1 / span 2; }

.giant-tag-wrap { filter: drop-shadow(0 26px 34px rgba(14, 26, 74, 0.2)); max-width: 980px; margin: 0 auto; }
.giant-tag {
  position: relative;
  padding: clamp(5rem, 9vw, 6.5rem) clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 40%), var(--grain), var(--manila);
  clip-path: polygon(72px 0, calc(100% - 72px) 0, 100% 72px, 100% 100%, 0 100%, 0 72px);
}
.giant-tag__eyelet { position: absolute; left: 50%; top: 30px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 9px #f8e9c6; }
.giant-tag__to { font: 2.25rem/1 var(--hand); color: var(--marker); margin: 0 0 0.25rem; }
.giant-tag__title { color: var(--night); }
.sponsor-list {
  list-style: none; padding: 0; margin: 2rem 0 0; columns: 2; column-gap: 3rem;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 760; font-stretch: 108%; line-height: 1.2;
}
.sponsor-list li { break-inside: avoid; padding: 0.8rem 0; border-bottom: 2px dashed rgba(91, 71, 24, 0.3); }
.giant-tag__from { font: 1.75rem/1.2 var(--hand); color: var(--marker); margin: 2rem 0 0; }

.options { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 2px solid rgba(255, 255, 255, 0.28); }
.option { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 0.35rem 1.5rem; padding: 1.25rem 0; border-bottom: 2px solid rgba(255, 255, 255, 0.28); }
.option__name { font-size: 1.3125rem; font-weight: 800; font-stretch: 108%; }
.option p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.option__cta { max-width: 40em; }
.options--ink { border-color: rgba(14, 26, 74, 0.22); }
.options--ink .option { border-color: rgba(14, 26, 74, 0.22); }
.options--ink .option p { color: var(--manila-ink); }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head .lead { margin-bottom: 0; }
.band-cobalt .lead { color: rgba(255, 255, 255, 0.9); }

/* ---------- about ---------- */
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); list-style: none; margin: 2.5rem 0 0; padding: 0; }
.value { border-top: 3px solid var(--manila); padding-top: 1.35rem; }
.value__name { font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: 0.6rem; }
.value p { margin: 0; color: rgba(255, 255, 255, 0.88); }

.record {
  position: relative; color: var(--night);
  padding: clamp(2.75rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%), var(--grain), var(--manila);
  border-radius: 6px;
  box-shadow: 0 28px 50px -26px rgba(14, 26, 74, 0.45);
  transform: rotate(-0.7deg);
}
.record::before { content: ""; position: absolute; top: 18px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 6px #f8e9c6; }
.record__list { margin: 0; }
.record__row { display: grid; grid-template-columns: 10.5rem 1fr; gap: 0.25rem 1rem; padding: 0.8rem 0; border-bottom: 1.5px dashed rgba(91, 71, 24, 0.35); }
.record__row:last-child { border-bottom: 0; }
.record__row dt { font-size: 0.9375rem; font-weight: 700; color: var(--manila-ink); }
.record__row dd { margin: 0; font-weight: 650; }
.record__value { font-weight: 850; font-stretch: 110%; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- Christmas Ride page ---------- */
.ride-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ride-detail__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; margin: 3rem 0 0; padding: 0; }
.steps::before {
  content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 6px; height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 6px, var(--twine) 6px 12px);
}
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; width: 58px; height: 80px; padding-top: 14px;
  font: 36px/1 var(--hand); color: var(--marker);
  background: var(--grain), var(--manila);
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}
.step__num::before { content: ""; position: absolute; top: 11px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cobalt); }
.step__title { font-size: 1.4375rem; font-stretch: 108%; margin: 1.25rem 0 0.5rem; }
.step p { margin: 0; color: rgba(255, 255, 255, 0.86); }

/* ---------- give page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-block: 1.25rem; border-bottom: 2px solid var(--line); }
.jump a { font-weight: 700; text-decoration: none; }
.jump a:hover { text-decoration: underline; }
.methods { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line); }
.method { display: grid; grid-template-columns: 11rem 1fr; gap: 0.25rem 1.5rem; padding: 1.5rem 0; border-bottom: 2px solid var(--line); }
.method > * { grid-column: 2; margin: 0; }
.method > .method__name { grid-column: 1; grid-row: 1 / span 4; font-size: 1.3125rem; font-stretch: 108%; }
.method p + p, .method p + address, .method address + * { margin-top: 0.6rem; }
.method__address { font-size: 1.1875rem; font-weight: 700; line-height: 1.45; }
.method .btn { justify-self: start; margin-top: 0.75rem; }
.taxnote { margin-top: 2rem; padding: 1.5rem 1.75rem; background: var(--white); border: 2px solid var(--line); border-radius: 14px; font-size: 1rem; }
.taxnote p { max-width: 62ch; }
.taxnote__ein { font-size: 1.0625rem; }
.taxnote .fl-disclosure { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); }
.items__note { margin-top: 1.5rem; max-width: 40em; }
.family-row--inline { margin-top: 1.75rem; }

/* ---------- board ---------- */
.people { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.people--trustees { grid-template-columns: repeat(4, 1fr); }
.person {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem; min-height: 230px;
  padding: 4.25rem 1.5rem 1.75rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%), var(--grain), var(--manila);
  clip-path: polygon(44px 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%, 0 44px);
  transform-origin: 50% 0;
}
.person:nth-child(3n + 1) { transform: rotate(-1.1deg); }
.person:nth-child(3n + 2) { transform: rotate(0.8deg); }
.person:nth-child(3n) { transform: rotate(-0.4deg); }
.person::before { content: ""; position: absolute; top: 20px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px #f8e9c6; }
.person__name { font-size: clamp(1.5rem, 2.3vw, 1.9rem); font-weight: 820; font-stretch: 110%; line-height: 1.08; letter-spacing: -0.015em; }
.person__role { font: 1.5rem/1.1 var(--hand); color: var(--marker); }
.person__contact { margin-top: auto; padding-top: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.person__contact a { color: var(--night); overflow-wrap: anywhere; }
.person--trustee { min-height: 170px; padding-top: 4rem; }
.person--trustee .person__name { font-size: clamp(1.3125rem, 1.9vw, 1.5rem); }
.people__note { margin-top: 2.5rem; max-width: 46em; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.address-tag-wrap { filter: drop-shadow(0 18px 24px rgba(14, 26, 74, 0.2)); margin-bottom: 2.5rem; }
.address-tag {
  position: relative; padding: 1.75rem 1.75rem 1.75rem 4.5rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%), var(--grain), var(--manila);
  clip-path: polygon(2.75rem 0, 100% 0, 100% 100%, 2.75rem 100%, 0 50%);
  transform: rotate(-1.2deg);
}
.address-tag__eyelet { position: absolute; left: 1.65rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px #f8e9c6; }
.address-tag__label { font: 1.5rem/1 var(--hand); color: var(--marker); margin: 0 0 0.5rem; }
.address-tag__address { font-size: 1.3125rem; font-weight: 750; font-stretch: 104%; line-height: 1.45; margin-bottom: 0.9rem; }
.contact-list { margin: 0; border-top: 2px solid var(--line); }
.contact-list__row { display: grid; grid-template-columns: 8rem 1fr; gap: 0.25rem 1rem; padding: 0.9rem 0; border-bottom: 2px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--ink-2); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.contact-form { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field__optional { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  font: inherit; font-size: 1.0625rem; color: var(--night);
  background: var(--paper); border: 2px solid #c3cae6; border-radius: 10px;
  transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9ea8d6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--stamp); }
.field__error { margin: 0.4rem 0 0; color: var(--stamp); font-size: 0.9375rem; font-weight: 650; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-note { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { display: flex; align-items: center; min-height: calc(80vh - var(--header-h)); padding-block: 5rem; }
.lost__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }
.lost .lead { color: rgba(255, 255, 255, 0.9); margin: 1.25rem 0 2rem; }
.lost__tag { position: relative; justify-self: center; width: 150px; height: 214px; transform: rotate(74deg) translateY(-20px); filter: drop-shadow(0 16px 16px rgba(6, 12, 50, 0.4)); }
.lost__face { position: absolute; inset: 0; }
.lost__face .tag__big { font-size: 54px; margin-top: 16px; }
.lost__string { position: absolute; left: 50%; top: -70px; width: 2px; height: 92px; margin-left: -1px; transform: rotate(-24deg); transform-origin: 50% 100%; background: repeating-linear-gradient(180deg, #fff 0 3px, var(--twine) 3px 6.5px); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--white); --focus: var(--manila); }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { text-decoration-color: var(--manila); }
.footer-motto {
  margin: 0; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  font-size: clamp(3.5rem, 12.6vw, 11.75rem); font-weight: 900; font-stretch: 112%;
  line-height: 0.86; letter-spacing: -0.04em; color: var(--manila);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer-col p { margin: 0 0 0.5rem; }
.footer-h { font-size: 1rem; font-weight: 750; font-stretch: 106%; color: var(--manila); letter-spacing: 0; margin-bottom: 0.85rem; }
.footer-col address { margin-bottom: 0.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.hashtags { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; margin-top: 0.75rem; font-size: 0.9375rem; }
.hashtags a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.hashtags a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { padding-block: 2rem 3.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.footer-legal p { max-width: 82ch; }
.footer-legal strong { color: var(--white); }
.fl-disclosure { font-size: 0.78rem; letter-spacing: 0.01em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .people--trustees { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand { font-size: 1.1875rem; }
  .brand__mark { width: 38px; height: 38px; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem; background: var(--cobalt-700);
    box-shadow: 0 24px 40px -20px rgba(6, 12, 50, 0.6);
  }
  .js .site-nav.is-open .site-nav__list { display: flex; }
  .site-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav__list li.site-nav__give { border: 0; padding-top: 1.25rem; }
  .site-nav__list a:not(.btn) { display: block; padding: 0.95rem 0; font-size: 1.25rem; background: none; }
  .site-nav__list a[aria-current="page"]:not(.btn) { color: var(--manila); }
  .site-nav__give .btn { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }

  .receive__grid, .campaign__grid, .ride__grid, .split, .contact-grid, .ride-detail, .lost__grid { grid-template-columns: 1fr; }
  .campaign__grid { align-items: start; }
  .advent { max-width: 28rem; }
  .ride__copy { order: -1; }
  .ways { grid-template-columns: 1fr; }
  .ways li + li { border-left: 0; border-top: 2px solid rgba(255, 255, 255, 0.28); }
  .way { padding: 1.35rem 0; }
  .values__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::before { display: none; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .nominate__grid { grid-template-columns: 1fr; }
  .nominate__grid .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1rem; }
  .lost__tag { order: -1; transform: rotate(74deg) scale(0.8); }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .checklist { grid-template-columns: 1fr; }
  .checklist__item { grid-template-columns: 52px 1fr; }
  .checklist__icon { width: 52px; height: 52px; padding: 8px; }
  .sponsor-name { white-space: normal; }
  .sponsor-list { columns: 1; }
  .method, .option, .record__row, .contact-list__row { grid-template-columns: 1fr; }
  .method > .method__name { grid-column: 1; grid-row: auto; }
  .method > * { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .people, .people--trustees { grid-template-columns: 1fr; }
  .person { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 5.5rem 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .giant-tag { clip-path: polygon(44px 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%, 0 44px); }
  .advent__count strong { font-size: 2.75rem; }
}

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

@media print {
  .site-header, .tag-stage, .site-footer .footer-motto, .contact-form { display: none; }
  .hero, .page-hero, .band-cobalt { background: none; color: #000; }
}
