@charset "UTF-8";
/* ==========================================================================
   Hockey for Hope — "Made by hand at the rink"
   Game-sheet panels, taped photos, and one ribbon string weaving through
   the backgrounds. Warm paper, brand purple rationed to where it means
   something. Type: Archivo (variable, width axis) display / Literata body.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, no third-party requests) -------------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-latin-ext.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-italic-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------------------------------------------------- */

:root {
  /* Brand hue 306.8 — every neutral is tinted toward it. */
  --purple: oklch(45.1% 0.175 306.8);
  --purple-deep: oklch(31% 0.135 307);
  --purple-soft: oklch(62% 0.155 303);
  --lavender: oklch(68.1% 0.173 299.2);
  --lavender-wash: oklch(93.5% 0.03 300);

  --paper: oklch(98.6% 0.006 92);        /* warm paper, faintly cream */
  --paper-cool: oklch(98.9% 0.005 306);
  --surface: oklch(96.9% 0.008 304);
  --surface-ink: oklch(24% 0.05 306);

  --ink: oklch(21% 0.045 306);
  --ink-2: oklch(43% 0.032 306);
  /* L=53 clears WCAG AA (4.5:1) for small text on paper and surface. */
  --ink-3: oklch(53% 0.024 306);
  --ink-on-dark: oklch(96% 0.012 304);
  --ink-on-dark-2: oklch(80% 0.028 302);

  /* Game-sheet ruling: hairlines for panel borders, pencil for tick marks. */
  --sheet-line: oklch(84% 0.022 304);
  --pencil: oklch(68% 0.03 304);
  --hairline: oklch(89% 0.016 304);
  --hairline-dark: oklch(38% 0.04 306);

  /* The ribbon string. Muted, but meant to be seen. */
  --string: oklch(85% 0.055 302 / 0.75);
  --string-2: oklch(80% 0.07 301 / 0.5);
  --string-deep: oklch(48% 0.09 305 / 0.55);
  --string-deep-2: oklch(55% 0.1 303 / 0.35);

  /* Tape */
  --tape: oklch(88% 0.04 300 / 0.5);
  --tape-edge: oklch(80% 0.05 300 / 0.35);

  --ice: oklch(95.5% 0.021 232);

  /* 4pt scale, semantic names */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);

  --measure: 68ch;
  --max: 78rem;
  --max-wide: 92rem;

  --r-sheet: 6px;
  --r-sm: 0.5rem;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
  --dur-fast: 0.28s;

  --font-display: 'Archivo', ui-sans-serif, 'Segoe UI', sans-serif;
  --font-body: 'Literata', ui-serif, Georgia, serif;

  --nav-h: 4.5rem;
}

/* ---------- 3. Reset & base --------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Film grain. Fixed, pointer-events-none, never on a scrolling container. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: 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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lavender-wash); color: var(--purple-deep); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 200;
  transform: translateY(-160%);
  background: var(--purple);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 4. The ribbon string ----------------------------------------- */
/* Injected by site.js into [data-string] placeholders. Decorative only.
   Positioned per context below; never behind a column of running text. */

[data-string] {
  position: absolute;
  pointer-events: none;
  color: var(--string);
  z-index: 0;
}
[data-string] svg { width: 100%; height: 100%; overflow: visible; }
[data-string] path {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
}
[data-string] path + path { color: var(--string-2); }

/* Draw-on: site.js sets the dash metrics, .is-drawn releases them. */
[data-string].will-draw path {
  transition: stroke-dashoffset 2.2s var(--ease-out);
}
[data-string].will-draw path + path { transition-delay: 0.25s; }

.on-ink [data-string], [data-string].string-deep { color: var(--string-deep); }
.on-ink [data-string] path + path,
[data-string].string-deep path + path { color: var(--string-deep-2); }

/* ---------- 5. Typography ------------------------------------------------ */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}

/* Width axis: headings run wide, like jersey lettering and rink banners. */
h1, .t-display {
  font-size: clamp(2.75rem, 1.4rem + 5.8vw, 6.4rem);
  font-stretch: 114%;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 0.96;
}
h2, .t-h2 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  font-stretch: 108%;
  letter-spacing: -0.026em;
}
h3, .t-h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.85vw, 1.75rem);
  font-stretch: 104%;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
h4, .t-h4 {
  font-size: 1.0625rem;
  font-stretch: 102%;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Outlined display word — the "Hope" treatment. */
.t-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--purple);
}
@supports not (-webkit-text-stroke: 1px black) {
  .t-outline { color: var(--purple); }
}
.band--ink .t-outline, .footer .t-outline { -webkit-text-stroke-color: var(--lavender); }

p { max-width: var(--measure); }
.lede {
  font-size: clamp(1.15rem, 1.03rem + 0.55vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}
.prose { color: var(--ink-2); }
.prose p + p { margin-top: var(--space-sm); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--purple); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ---------- 6. Eyebrow --------------------------------------------------- */
/* Ribbon-loop glyph + tracked caps + a trailing thread that curls into a
   knot. No pill, no dot. Same markup as before: <p class="eyebrow">…</p> */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--purple);
  line-height: 1;
  padding: 0;
  background: none;
  max-width: 100%;
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 0.95rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow::after {
  content: '';
  flex: none;
  width: 4.6rem;
  height: 0.85rem;
  opacity: 0.55;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 20' fill='none'%3E%3Cpath d='M0 13 h103 c8 0 12-6 7.5-9.5 c-3.6-2.8-9 .6-6.6 5.4 c2 4.2 8.4 5 14.6 3.4 c5-1.3 9-1.3 13 0' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 20' fill='none'%3E%3Cpath d='M0 13 h103 c8 0 12-6 7.5-9.5 c-3.6-2.8-9 .6-6.6 5.4 c2 4.2 8.4 5 14.6 3.4 c5-1.3 9-1.3 13 0' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.band--ink .eyebrow, .footer .eyebrow { color: var(--lavender); }
.eyebrow--bare::after { display: none; }

.mono-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  font-stretch: 96%;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ---------- 7. Layout ---------------------------------------------------- */

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gutter) * 2, var(--max-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 54rem); margin-inline: auto; }

section { position: relative; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.stack > * + * { margin-top: var(--space-sm); }
.stack-lg > * + * { margin-top: var(--space-lg); }

/* Editorial split: heading column holds while content scrolls past. */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.editorial > * { min-width: 0; }
.editorial__aside { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.editorial__aside > * + * { margin-top: var(--space-md); }
.editorial__aside p { color: var(--ink-2); }
@media (max-width: 64rem) {
  .editorial { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .editorial__aside { position: static; }
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head > * + * { margin-top: var(--space-md); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }

/* ---------- 8. Ticket buttons -------------------------------------------- */
/* Rectangular stubs with notched tear-line. The .btn__icon span from the
   old markup becomes the stub segment past the perforation. */

.btn {
  --btn-bg: var(--purple);
  --btn-fg: oklch(99% 0.008 306);
  --stub: 2.6rem;
  --notch: 0.34rem;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 103%;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-sm);
  padding: 0.72rem 1.2rem;
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translate(-1px, -2px); filter: drop-shadow(3px 3px 0 oklch(60% 0.05 304 / 0.55)); }
.btn:active { transform: translate(0, 0); filter: none; }

/* With a stub, the ticket notches are cut from the button silhouette at the
   perforation line. Label carries its own padding via .btn__label. */
.btn:has(.btn__icon) {
  padding: 0;
  min-height: 2.8rem;
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, black),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, black);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, black),
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, black);
  mask-composite: intersect;
}
.btn__label {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.05rem 0.72rem 1.2rem;
}
.btn__icon {
  width: var(--stub);
  align-self: stretch;
  display: grid;
  place-items: center;
  flex: none;
  border-left: 1.5px dashed oklch(100% 0 0 / 0.5);
  border-radius: 0;
  background: none;
  margin-left: auto;
}
.btn__icon svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__icon svg { transform: translateX(2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover { background: var(--surface); filter: drop-shadow(3px 3px 0 oklch(60% 0.05 304 / 0.4)); }
.btn--ghost .btn__icon { border-left-color: oklch(21% 0.045 306 / 0.4); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--purple);
  box-shadow: none;
}
.btn--quiet:hover { background: var(--lavender-wash); filter: none; }

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--purple-deep);
}
.btn--light .btn__icon { border-left-color: oklch(31% 0.135 307 / 0.35); }
.btn--light:hover { filter: drop-shadow(3px 3px 0 oklch(10% 0.03 306 / 0.6)); }

/* Secondary action on a dark band: outline, label stays AA. */
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--ink-on-dark);
  box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.45);
}
.btn--outline-light:hover { background: oklch(100% 0 0 / 0.08); filter: none; }
.btn--outline-light .btn__icon { border-left-color: oklch(100% 0 0 / 0.35); }

.btn--sm { font-size: 0.875rem; --stub: 2.2rem; }
.btn--sm.btn:not(:has(.btn__icon)) { padding: 0.55rem 1rem; }
.btn--sm:has(.btn__icon) { min-height: 2.35rem; }
.btn--sm:has(.btn__icon) > svg:first-child,
.btn--sm .btn__label { padding-left: 1rem; }

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

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.link-arrow:hover { border-bottom-color: currentColor; gap: 0.65rem; }

/* ---------- 9. Game sheets ----------------------------------------------- */
/* Flat paper, ruled border, scorekeeper corner ticks. Replaces the old
   double-bezel; same markup (.bezel > .bezel__core) so pages need no churn. */

.bezel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--sheet-line);
  border-radius: var(--r-sheet);
  padding: 0;
  box-shadow: none;
}
.bezel::before, .bezel::after {
  content: '';
  position: absolute;
  width: 11px; height: 11px;
  border: 0 solid var(--pencil);
  pointer-events: none;
}
.bezel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.bezel::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.bezel__core {
  background: none;
  border-radius: calc(var(--r-sheet) - 1px);
  box-shadow: none;
  height: 100%;
  overflow: hidden;
}

.bezel--dark { background: var(--surface-ink); border-color: var(--hairline-dark); }
.bezel--dark::before, .bezel--dark::after { border-color: var(--string-deep); }
.bezel--dark .bezel__core { color: var(--ink-on-dark); }

.bezel--flush { padding: 0; }

.pad { padding: clamp(1.25rem, 0.9rem + 1.4vw, 2rem); }
.pad-lg { padding: clamp(1.5rem, 1rem + 2.2vw, 3rem); }

/* ---------- 10. Taped photos --------------------------------------------- */
/* Paper mat, hairline edge, two translucent tape strips, a small tilt. */

.photo-tape {
  position: relative;
  background: var(--paper-cool);
  border: 1px solid var(--sheet-line);
  padding: clamp(6px, 0.5vw, 10px);
  transform: rotate(-0.8deg);
}
.photo-tape img { width: 100%; }
.photo-tape::before, .photo-tape::after {
  content: '';
  position: absolute;
  width: clamp(3.4rem, 4.5vw, 5rem);
  height: 1.35rem;
  background: linear-gradient(100deg, var(--tape-edge), var(--tape) 18%, var(--tape) 82%, var(--tape-edge));
  clip-path: polygon(2% 0%, 98% 4%, 100% 32%, 97% 100%, 3% 96%, 0% 65%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-tape::before { top: -0.5rem; left: -0.7rem; transform: rotate(-38deg); }
.photo-tape::after { bottom: -0.5rem; right: -0.7rem; transform: rotate(-42deg); }

.photo-tape--r { transform: rotate(0.9deg); }
.photo-tape--r::before { left: auto; right: -0.7rem; transform: rotate(40deg); }
.photo-tape--r::after { right: auto; left: -0.7rem; transform: rotate(38deg); }
.photo-tape--flat { transform: none; }

/* ---------- 11. Navigation ----------------------------------------------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 80;
  padding: var(--space-sm) var(--gutter) 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.2rem + 1vw, 1.5rem);
  width: min(100%, var(--max-wide));
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-radius: 12px;
  background: oklch(98.6% 0.006 92 / 0.86);
  border: 1px solid var(--sheet-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-stuck .nav__shell {
  background: oklch(98.6% 0.006 92 / 0.95);
  box-shadow: 0 3px 0 oklch(60% 0.05 304 / 0.18);
}

.nav__brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.nav__brand img { height: 3.4rem; width: auto; }
@media (max-width: 30rem) { .nav__brand img { height: 3rem; } }

.nav__links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-sm);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link[aria-current='page'] { color: var(--purple); font-weight: 600; border-bottom-color: var(--purple); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--sheet-line);
  margin-left: auto;
  position: relative;
  flex: none;
}
.nav__toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.05rem; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav__toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
body.menu-open .nav__toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: oklch(98.6% 0.006 92 / 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) var(--space-xl);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
body.menu-open .nav__panel { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.nav__panel [data-string="drift"] {
  right: -8%; top: 4%; width: min(42vw, 300px); height: 92%;
  opacity: 0.9;
}

.nav__panel-links { display: flex; flex-direction: column; gap: 0.25rem; position: relative; }
.nav__panel-links a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 4vw, 2.75rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.35rem;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color var(--dur-fast) var(--ease);
}
.nav__panel-links a[aria-current='page'] { color: var(--purple); }
body.menu-open .nav__panel-links a { opacity: 1; transform: translateY(0); }
body.menu-open .nav__panel-links a:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .nav__panel-links a:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .nav__panel-links a:nth-child(3) { transition-delay: 0.14s; }
body.menu-open .nav__panel-links a:nth-child(4) { transition-delay: 0.18s; }
body.menu-open .nav__panel-links a:nth-child(5) { transition-delay: 0.22s; }
body.menu-open .nav__panel-links a:nth-child(6) { transition-delay: 0.26s; }

.nav__panel-foot {
  margin-top: var(--space-xl);
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  position: relative;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s;
}
body.menu-open .nav__panel-foot { opacity: 1; transform: translateY(0); }

@media (max-width: 62rem) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- 12. Hero ----------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 1rem + 5vw, 5rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero [data-string="sweep"] {
  top: -4%;
  right: -6%;
  width: min(52vw, 700px);
  height: 110%;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__copy > * + * { margin-top: var(--space-md); }
.hero h1 { margin-block: 0.4rem 0; }
.hero__sub { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--ink-2); max-width: 33ch; line-height: 1.5; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--sheet-line);
}
.hero__fact { padding-block: var(--space-2xs); }
.hero__fact dt { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3); }
.hero__fact dd { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; font-stretch: 104%; letter-spacing: -0.015em; margin-top: 0.2rem; }

/* Taped photo cluster */
.hero__media { position: relative; }
.hero__plate { position: relative; z-index: 2; }
.hero__plate img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
/* The small print sits ON TOP of the big one, like the last photo dropped
   onto the pile. */
.hero__plate--back {
  position: absolute;
  z-index: 3;
  width: 38%;
  bottom: -2.75rem; left: -3.5rem;
  transform: rotate(-4deg);
}
.hero__plate--back img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Hand-stamped corner label, replaces the pill badge. */
.hero__badge {
  position: absolute;
  z-index: 4;
  right: -0.5rem; top: -1.1rem;
  background: var(--paper);
  color: var(--purple);
  border: 1.5px solid var(--purple);
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1;
  transform: rotate(3deg);
  box-shadow: 2px 2px 0 oklch(60% 0.05 304 / 0.35);
}

@media (max-width: 75rem) {
  .hero__plate--back { left: -1.5rem; bottom: -2.25rem; }
}
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__plate--back { display: none; }
  .hero__badge { right: 0.5rem; top: -0.75rem; }
  .hero__sub { max-width: 46ch; }
  .hero [data-string="sweep"] { width: 78vw; opacity: 0.8; }
}

/* ---------- 13. Countdown ------------------------------------------------ */

.countdown { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.countdown__unit { text-align: center; min-width: 2.9rem; }
.countdown__n {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.6rem);
  font-weight: 800;
  font-stretch: 104%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--purple-deep);
}
.countdown__l { font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-top: 0.35rem; display: block; }
@media (max-width: 30rem) {
  .countdown { gap: 0.25rem; }
  .countdown__unit { min-width: 2.4rem; }
  .countdown__l { letter-spacing: 0.08em; }
}

/* ---------- 14. Facts rail (ruled sheet strip) --------------------------- */

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rail__cell {
  background: none;
  padding: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
  border-right: 1px solid var(--sheet-line);
}
.rail__cell:last-child { border-right: 0; }
.rail__cell dt { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3); }
.rail__cell dd { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); letter-spacing: -0.02em; margin-top: 0.4rem; line-height: 1.2; }
.rail__cell dd small { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-top: 0.2rem; }
@media (max-width: 56rem) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__cell:nth-child(2n) { border-right: 0; }
  .rail__cell:nth-child(-n+2) { border-bottom: 1px solid var(--sheet-line); }
}

/* ---------- 15. Bento / stats -------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-sm);
}
.bento > * { grid-column: span 12; }
@media (min-width: 48rem) {
  .bento__lead { grid-column: span 7; }
  .bento__side { grid-column: span 5; }
  .bento__third { grid-column: span 4; }
  .bento__half { grid-column: span 6; }
  .bento__eight { grid-column: span 8; }
}

.stat { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); height: 100%; }
.bento__media .bezel__core { display: flex; }
.bento__media img { width: 100%; height: 100%; min-height: 15rem; object-fit: cover; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.25rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}
.stat__n sup { font-size: 0.42em; font-weight: 700; vertical-align: super; letter-spacing: 0; }
.stat__label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.stat__note { font-size: 0.9rem; color: var(--ink-3); margin-top: 0.3rem; max-width: 30ch; }
.bezel--dark .stat__n { color: var(--lavender); }
.bezel--dark .stat__label { color: var(--ink-on-dark); }
.bezel--dark .stat__note { color: var(--ink-on-dark-2); }

/* ---------- 16. Divisions ------------------------------------------------ */

.division { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md) var(--space-lg); align-items: start; }
.division h3 { margin-bottom: var(--space-2xs); }
.division p { color: var(--ink-2); font-size: 0.975rem; }
/* Referee's circled number: thin ink ring, slightly off-round. */
.division p.division__tier {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  font-stretch: 104%;
  line-height: 1;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  width: 3.1em; height: 3.1em;
  display: grid; place-items: center;
  border: 1.5px solid var(--purple-soft);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
}

.division__meta { margin-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: 0.45rem; }
/* Stamped labels, same language as the hero badge. */
.tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--pencil);
  border-radius: 3px;
  color: var(--ink-2);
  background: none;
}
.tag--brand { border-color: var(--purple-soft); color: var(--purple); }

/* ---------- 17. Story / quote -------------------------------------------- */

.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.story > * { min-width: 0; }
@media (max-width: 60rem) { .story { grid-template-columns: minmax(0, 1fr); } }

.quote { max-width: 34ch; }
.quote blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-style: italic;
}
.quote figcaption { margin-top: var(--space-md); display: flex; align-items: center; gap: 0.75rem; }
.quote figcaption strong { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; display: block; color: var(--ink); }
.quote figcaption span { font-size: 0.85rem; color: var(--ink-3); }
/* The rule is a thread that curls at the end. */
.quote__rule {
  width: 3rem; height: 0.8rem; flex: none;
  background: var(--purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 20' fill='none'%3E%3Cpath d='M0 13 h103 c8 0 12-6 7.5-9.5 c-3.6-2.8-9 .6-6.6 5.4 c2 4.2 8.4 5 14.6 3.4 c5-1.3 9-1.3 13 0' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 20' fill='none'%3E%3Cpath d='M0 13 h103 c8 0 12-6 7.5-9.5 c-3.6-2.8-9 .6-6.6 5.4 c2 4.2 8.4 5 14.6 3.4 c5-1.3 9-1.3 13 0' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}

.quote--center { text-align: center; margin-inline: auto; max-width: 46ch; }
.quote--center figcaption { flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }
.quote--center .quote__rule { width: 3.5rem; }
.quote--center figcaption strong { margin-bottom: 0.15rem; }

/* ---------- 18. Photo strip / gallery ------------------------------------ */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(74vw, 22rem), 1fr);
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.5rem var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--sheet-line) transparent;
}
.strip > * { scroll-snap-align: start; }
.strip figure {
  position: relative;
  background: var(--paper-cool);
  border: 1px solid var(--sheet-line);
  padding: 6px 6px 0.5rem;
}
.strip figure:nth-child(odd) { transform: rotate(-0.7deg); }
.strip figure:nth-child(even) { transform: rotate(0.6deg); }
.strip figure::before {
  content: '';
  position: absolute;
  top: -0.5rem; left: 50%;
  width: 3.6rem; height: 1.2rem;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(100deg, var(--tape-edge), var(--tape) 18%, var(--tape) 82%, var(--tape-edge));
  clip-path: polygon(2% 0%, 98% 4%, 100% 32%, 97% 100%, 3% 96%, 0% 65%);
  mix-blend-mode: multiply;
}
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption {
  padding: 0.55rem 0.35rem 0.1rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  font-style: italic;
}

/* Scrapbook wall */
.gallery {
  columns: 3;
  column-gap: var(--space-lg);
  padding-top: 0.75rem;
}
@media (max-width: 56rem) { .gallery { columns: 2; } }
@media (max-width: 34rem) { .gallery { columns: 1; } }
.gallery figure {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  background: var(--paper-cool);
  border: 1px solid var(--sheet-line);
  padding: 7px;
  transition: transform var(--dur) var(--ease);
}
.gallery figure:nth-child(3n) { transform: rotate(-0.9deg); }
.gallery figure:nth-child(3n+1) { transform: rotate(0.7deg); }
.gallery figure:nth-child(3n+2) { transform: rotate(-0.3deg); }
.gallery figure::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -0.55rem; left: -0.9rem;
  width: 3.8rem; height: 1.25rem;
  transform: rotate(-38deg);
  background: linear-gradient(100deg, var(--tape-edge), var(--tape) 18%, var(--tape) 82%, var(--tape-edge));
  clip-path: polygon(2% 0%, 98% 4%, 100% 32%, 97% 100%, 3% 96%, 0% 65%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.gallery figure:nth-child(2n)::before { left: auto; right: -0.9rem; transform: rotate(38deg); }
.gallery figure:hover { transform: rotate(0deg) translateY(-3px); }
.gallery button { display: block; width: 100%; padding: 0; }
.gallery img { width: 100%; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: oklch(20% 0.04 306 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.lightbox[data-open='true'] { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(100%, 76rem); max-height: 84vh; border: 6px solid var(--paper-cool); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid oklch(100% 0 0 / 0.35);
  border-radius: var(--r-sm);
  color: oklch(99% 0 0);
  display: grid; place-items: center;
  transition: background-color var(--dur-fast) var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: oklch(100% 0 0 / 0.15); }
.lightbox__close { top: var(--gutter); right: var(--gutter); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.lightbox__nav[data-dir='prev'] { left: var(--gutter); }
.lightbox__nav[data-dir='next'] { right: var(--gutter); }

/* ---------- 19. Tables (game sheets) ------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 0.925rem;
  min-width: 34rem;
}
table.data caption { text-align: left; padding-bottom: var(--space-sm); color: var(--ink-3); font-size: 0.85rem; font-family: var(--font-body); }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; }
table.data thead th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  border-bottom: 2px solid var(--pencil);
  white-space: nowrap;
}
table.data tbody tr { border-bottom: 1px solid var(--sheet-line); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data .team-name { font-weight: 600; color: var(--ink); }
table.data .rank { color: var(--ink-3); font-variant-numeric: tabular-nums; width: 2.5rem; }
tr.is-advancing .rank { color: var(--purple); font-weight: 700; }
tr.is-advancing .team-name::after {
  content: '';
  display: inline-block;
  width: 0.72em; height: 0.82em;
  background: var(--purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-left: 0.45rem;
  vertical-align: -0.05em;
}

.game { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding: var(--space-sm) 0; border-bottom: 1px solid var(--sheet-line); }
.game:last-child { border-bottom: 0; }
.game__time { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
.game__time b { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.game__teams { font-family: var(--font-display); font-weight: 600; font-size: 0.975rem; }
.game__teams span { color: var(--ink-3); font-weight: 400; padding-inline: 0.35rem; }
.game__score { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.game__score--pending { color: var(--ink-3); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- 20. Accordion (rules) ---------------------------------------- */

.accordion { border-top: 1px solid var(--sheet-line); }
.accordion details { border-bottom: 1px solid var(--sheet-line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  letter-spacing: -0.015em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--purple); }
.accordion__icon {
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  color: var(--purple);
  background: none;
  border-radius: 0;
  flex: none;
  transition: transform var(--dur) var(--ease);
}
details[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { padding-bottom: var(--space-lg); color: var(--ink-2); }
.accordion__body > * + * { margin-top: var(--space-sm); }

/* Referee's circled numbers on ordered lists. */
ol.rules, ul.rules { padding-left: 0; list-style: none; counter-reset: r; }
ol.rules li { position: relative; padding-left: 2.6rem; padding-block: 0.4rem; max-width: var(--measure); }
ol.rules li::before {
  counter-increment: r;
  content: counter(r);
  position: absolute; left: 0; top: 0.48rem;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  color: var(--purple);
  background: none;
  border: 1.5px solid var(--purple-soft);
  width: 1.7rem; height: 1.7rem;
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
ol.rules li:nth-child(even)::before { border-radius: 54% 46% 52% 48% / 46% 54% 48% 52%; }
ul.rules li { position: relative; padding-left: 1.5rem; padding-block: 0.3rem; max-width: var(--measure); }
ul.rules li::before {
  content: '';
  position: absolute; left: 0.15rem; top: 0.92rem;
  width: 0.55rem; height: 0.6rem;
  background: var(--purple-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 21. Callout: the margin note --------------------------------- */

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-lg);
  position: relative;
  background: none;
  border: 1px solid var(--sheet-line);
  border-radius: var(--r-sheet);
  padding: clamp(1.3rem, 1rem + 1.1vw, 1.9rem);
  color: var(--ink-2);
  font-size: 0.975rem;
  margin-top: 0.8rem;
}
@media (min-width: 44rem) {
  .callout { grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: baseline; }
}
.callout strong { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.35; color: var(--ink); }
.callout p { max-width: 60ch; color: inherit; }
/* Knot pinned through the top border. */
.callout::before {
  content: '';
  position: absolute;
  top: -0.85rem; left: 1.4rem;
  width: 1.35rem; height: 1.6rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3E%3Cpath d='M8 1.5c3.3 0 4.7 3.4 2.6 5.8L4.2 16.5' stroke='%239A6BD2' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M8 1.5c-3.3 0-4.7 3.4-2.6 5.8l6.4 9.2' stroke='%239A6BD2' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat,
    var(--paper);
}
.band .callout::before { background-color: var(--surface); }
.callout--ice { border-color: oklch(82% 0.045 232); color: oklch(36% 0.05 232); }
.callout--ice strong { color: oklch(30% 0.05 232); }

/* ---------- 22. Steps ---------------------------------------------------- */

.steps { counter-reset: s; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); } }
.step { position: relative; padding-top: var(--space-md); border-top: 2px solid var(--pencil); }
.step::before {
  counter-increment: s;
  content: counter(s);
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  color: var(--purple);
  border: 1.5px solid var(--purple-soft);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  margin-bottom: var(--space-2xs);
  font-variant-numeric: tabular-nums;
}
.step:nth-child(even)::before { border-radius: 54% 46% 52% 48% / 46% 54% 48% 52%; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- 23. Sponsors ------------------------------------------------- */

.sponsors { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sponsor {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--sheet-line);
  border-radius: var(--r-sheet);
  color: var(--ink-2);
  background: var(--paper);
}

/* ---------- 24. Forms ---------------------------------------------------- */

.field { display: block; margin-bottom: var(--space-md); }
.field > span, .field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field-hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.35rem; }
.input, input[type='text'], input[type='email'], input[type='tel'], input[type='number'],
input[type='date'], input[type='time'], input[type='password'], select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  background: var(--paper-cool);
  border: 1px solid var(--pencil);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236F2F9F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.7rem; padding-right: 2.2rem; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 2px 2px 0 var(--lavender-wash);
}
.field-row { display: grid; gap: var(--space-md); }
@media (min-width: 40rem) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field-row .field { margin-bottom: 0; }

/* ---------- 25. Footer --------------------------------------------------- */

/* No top margin: most pages end on a dark CTA band, and a paper gap between
   two ink sections reads as a rendering mistake. Sections carry their own
   bottom padding. */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  padding-block: var(--space-3xl) var(--space-xl);
}
.footer [data-string="weave"] {
  top: 0.5rem; left: -2%;
  width: 104%; height: 8rem;
  color: var(--string-deep);
}
.footer [data-string="weave"] path + path { color: var(--string-deep-2); }
.footer a { color: var(--ink-on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-lg);
}
@media (max-width: 60rem) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 34rem) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__logo { height: 3.5rem; width: auto; margin-bottom: var(--space-md); }
.footer h4 { color: var(--ink-on-dark); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: var(--space-sm); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; font-family: var(--font-display); font-size: 0.925rem; }
.footer__note { color: var(--ink-on-dark-2); font-size: 0.925rem; max-width: 34ch; }
.footer__bar {
  position: relative;
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
  align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-on-dark-2);
}

/* ---------- 26. Bands ---------------------------------------------------- */

.band { background: var(--surface); }
.band--ink { background: var(--surface-ink); color: var(--ink-on-dark); overflow: hidden; }
.band--ink h2, .band--ink h3 { color: var(--ink-on-dark); }
.band--ink .lede, .band--ink p { color: var(--ink-on-dark-2); }
.band--ink [data-string] { color: var(--string-deep); }
.band--ink [data-string] path + path { color: var(--string-deep-2); }
.band--ink [data-string="knot"] {
  right: 7%; top: 10%;
  width: clamp(5rem, 8vw, 7.5rem); height: clamp(6rem, 9vw, 8.5rem);
  transform: rotate(14deg);
}
@media (max-width: 52rem) { .band--ink [data-string="knot"] { right: 4%; top: 4%; } }
.band--wash { background: var(--lavender-wash); }

.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; }
@media (max-width: 52rem) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 27. Page header ---------------------------------------------- */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(2rem, 1rem + 4vw, 4rem));
  padding-bottom: clamp(2rem, 1.5rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-head [data-string="sweep"] {
  top: -8%; right: -10%;
  width: min(44vw, 560px); height: 130%;
  opacity: 0.85;
}
.page-head > .wrap, .page-head > .wrap-wide { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); margin-block: var(--space-sm) var(--space-md); }
.page-head .lede { max-width: 52ch; }

/* The 404 gets the tangled version. */
.page-head [data-string="tangle"] {
  top: 16%; right: 6%;
  width: min(32vw, 360px); height: 74%;
}

.breadcrumb { font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span { padding-inline: 0.4rem; opacity: 0.5; }

/* ---------- 28. Tabs (ticket folder cuts) -------------------------------- */

.tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0;
  background: none;
  border-bottom: 2px solid var(--pencil);
  border-radius: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs button {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  color: var(--ink-2);
  white-space: nowrap;
  transform: translateY(2px);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tabs button:hover { color: var(--ink); background: var(--surface); }
.tabs button[aria-selected='true'] {
  background: var(--paper);
  color: var(--purple);
  border-color: var(--pencil);
  box-shadow: 0 2px 0 var(--paper);
}

/* ---------- 29. Scroll reveal (no blur) ---------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: 0.08s; }
[data-reveal-delay='2'] { transition-delay: 0.16s; }
[data-reveal-delay='3'] { transition-delay: 0.24s; }
[data-reveal-delay='4'] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .photo-tape, .gallery figure, .strip figure { transform: none; }
}

/* ---------- 30. Utilities ------------------------------------------------ */

.flow-tight > * + * { margin-top: var(--space-2xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.center-x { margin-inline: auto; }
.text-purple { color: var(--purple); }
.hide-sm { }
@media (max-width: 40rem) { .hide-sm { display: none; } }
