@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(archivo.woff2) format("woff2"); }
@font-face { font-family: "Mr Dafoe"; font-weight: 400; font-display: swap; src: url(mr-dafoe.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --paper: #0a1322;         /* page: deep navy */
  --ink: #f2f5f8;
  --muted: #a9b6c6;
  --blue: #1c69d4;          /* buttons */
  --blue-hover: #2f7de6;
  --accent: #81c4ff;        /* links, chevrons, script, closing line */
  --focus: #81c4ff;
  --dash: #04070c;          /* instrument panel */
  --line: rgba(255, 255, 255, .14);
  --track: rgba(255, 255, 255, .16);
  --needle: #e7222e;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 7.6vw, 3.25rem); line-height: 1.06; }
h2 { font-size: clamp(1.45rem, 5.6vw, 2.1rem); line-height: 1.1; }
p { margin: 0; max-width: 36em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Hero */
.hero-wrap { background: linear-gradient(to bottom, rgba(10, 19, 34, 0) 45%, var(--paper)), url(chevrons.svg) center top / 56px 56px; }
.shot { position: relative; margin: 0; overflow: hidden; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(215deg, rgba(4, 10, 20, .74), rgba(4, 10, 20, 0) 48%); pointer-events: none; }
.hero-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 25% 18%; }
.badge { position: absolute; z-index: 1; top: 4%; right: 5%; display: grid; justify-items: center; transform: rotate(-6deg); text-shadow: 0 2px 22px rgba(4, 10, 20, .55); }
.badge-word { position: relative; z-index: 1; font: 400 clamp(2.7rem, 13.5vw, 4.4rem)/1 var(--script); color: var(--accent); }
.badge-num { margin-top: -.22em; font-weight: 900; font-stretch: 125%; font-size: clamp(4.4rem, 23vw, 7.25rem); line-height: .82; letter-spacing: -.04em; color: #fff; }
.hero-text { padding: 2rem 1.5rem 2.75rem; }
.chev-row { display: block; width: 7rem; margin-top: 1.25rem; fill: none; stroke: var(--accent); stroke-width: 4; }
.lede { margin-top: 1.1rem; font-size: 1.15rem; }

/* Dashboard band */
.dash { --focus: #7cc2ff; position: relative; overflow: hidden; background: var(--dash); padding: 2.75rem 1.5rem 3rem; }
.dash-inner { max-width: 30rem; margin: 0 auto; }
.dash p { margin-top: .6rem; color: var(--muted); }
.meter { margin-top: 1.75rem; }
.gauge { display: block; width: 100%; max-width: 22rem; margin: 0 auto; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.g-track { stroke: var(--track); }
.g-preview { stroke: var(--ink); transition: stroke-dasharray .45s cubic-bezier(.3, 1, .5, 1); }
.g-fill { stroke: var(--accent); transition: stroke-dasharray 1.4s cubic-bezier(.3, 1, .5, 1); }
.g-ticks line { stroke: var(--muted); stroke-linecap: round; stroke-width: 2; }
.g-ticks .major { stroke-width: 4; }
.g-ticks .reserve { stroke: var(--needle); }
.gauge text { font-family: var(--sans); font-weight: 600; font-size: 18px; fill: var(--muted); }
.needle { transform-origin: 160px 168px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.3, 1.3, .5, 1); }
.live .needle { transition-duration: .45s; }
.needle line { stroke: var(--needle); stroke-width: 5; stroke-linecap: round; }
.g-hub { fill: var(--ink); }
@media (prefers-reduced-motion: reduce) { .needle, .g-fill, .g-preview { transition: none; } }
.dash .raised { margin: .4rem auto 0; text-align: center; font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.raised strong { margin-right: .2em; font-weight: 800; font-stretch: 125%; font-size: 2.9rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }

.act { margin-top: 1.75rem; }
.dash .nudge { margin: 0 auto; text-align: center; color: var(--ink); font-weight: 500; }
.pick { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.25rem; }
.pick button { width: 3.25rem; height: 3.25rem; padding: 0 0 .12rem; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; background: none; color: var(--ink); font: 500 1.8rem/1 var(--sans); cursor: pointer; }
.pick button:hover:not(:disabled) { border-color: #fff; }
.pick button:disabled { opacity: .3; cursor: default; }
.amount { display: flex; align-items: baseline; font-weight: 800; font-stretch: 125%; font-size: 2.6rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.amount input { width: 2.3ch; margin-left: .08em; padding: 0; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .35); border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; }
.amount input:focus { outline: none; border-bottom-color: var(--accent); }
.give { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.give a, .give button, .btn { padding: 1rem 1.25rem; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: 600 1.1rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.give a, .give button { flex: 1 1 11rem; }
.give a:hover, .give button:hover, .btn:hover { background: var(--blue-hover); }
.dash .zelle-note { margin: 1rem auto 0; text-align: center; color: var(--ink); }
.dash .fine { margin: 1rem auto 0; text-align: center; font-size: .95rem; }

/* Goal reached */
.full .act { display: none; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Donor ticker */
.crew { display: flex; align-items: center; background: var(--dash); border-top: 1px solid var(--line); padding: .85rem 0 .85rem 1.5rem; }
.crew-label { flex: none; margin: 0 .9rem 0 0; font-weight: 800; font-stretch: 125%; font-size: .95rem; color: var(--accent); }
.crew-window { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
.crew-track { display: flex; width: max-content; margin: 0; padding: 0 0 0 .6rem; list-style: none; }
.crew-track li { position: relative; padding: 0 1.1rem; white-space: nowrap; font-weight: 600; }
.crew-track li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--blue); }
.crew-track:not(.run) li:first-child::before { display: none; }
.crew-track.run { padding-left: 0; animation: crew linear infinite; }
.crew-window:hover .run { animation-play-state: paused; }
@keyframes crew { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .crew-track.run { animation: none; width: auto; flex-wrap: wrap; row-gap: .3rem; }
  .crew-track .clone { display: none; }
}

/* The school */
.school { padding: 3rem 1.5rem 0; }
.school p { margin-top: 1rem; }
.school-photo { width: calc(100% + 3rem); max-width: none; margin: 2rem -1.5rem 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.more { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Birthday messages */
.wishes { padding: 3rem 1.5rem 0; }
.wishes p { margin-top: 1rem; }
.wishes ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.wishes li { margin-top: .25rem; }
.btn { display: inline-block; margin-top: .5rem; }

footer { padding: 2.5rem 1.5rem 3rem; }
.thanks { font-weight: 800; font-stretch: 125%; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; color: var(--accent); }
.credit { margin-top: 1.75rem; font-size: .95rem; color: var(--muted); }
.heart { width: 1em; height: 1em; vertical-align: -.14em; fill: var(--needle); }

@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: 5fr 6fr; align-items: center; max-width: 72rem; margin: 0 auto; padding: 3rem 3rem 3.5rem; gap: 3.5rem; }
  .shot { border-radius: 12px; }
  .hero-text { padding: 0; }
  .dash { padding: 4rem 3rem 4.5rem; }
  .dash-inner { max-width: 66rem; display: grid; grid-template-columns: 5fr 6fr; grid-template-areas: "meter intro" "meter act"; column-gap: 3.5rem; align-items: center; }
  .intro { grid-area: intro; align-self: end; }
  .meter { grid-area: meter; margin-top: 0; }
  .act { grid-area: act; align-self: start; }
  .full .intro { align-self: center; grid-row: 1 / 3; }
  .pick, .dash .nudge, .dash .fine, .dash .zelle-note { justify-content: flex-start; text-align: left; margin-left: 0; }
  .crew { padding-left: 3rem; }
  .school { display: grid; grid-template-columns: 6fr 5fr; gap: 3.5rem; align-items: center; max-width: 72rem; margin: 0 auto; padding: 4.5rem 3rem 0; }
  .school-photo { width: 100%; margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; }
  .wishes { max-width: 72rem; margin: 0 auto; padding: 4.5rem 3rem 0; }
  footer { max-width: 72rem; margin: 0 auto; padding: 3.5rem 3rem 4rem; }
}
