/* ==========================================================================
   Jacksonville Lacrosse — design system
   --------------------------------------------------------------------------
   Direction: a photocopied equipment-cage flyer, not a dark-mode SaaS page.
   Orange behaves like INK (it overprints, it knocks out), never like light.
   Zero radius anywhere. Hard edges. Grain over everything.
   Foundation borrowed from the Forge (Perception): ink ground, chalk type,
   Monument Extended + HN LT Pro. The accent is this project's own.

   LAYOUT LAW (the thing that was broken):
   every section is `.sect > .wrap > .sect__in`, a two-column grid of
   [label rail][content]. Content never sets its own arbitrary max-width, so
   every block on every page shares one right edge. The only exception is a
   reading measure inside `.editorial`, which lands on that same edge because
   the margin column takes the remainder.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Monument Extended';
  src: url('/assets/fonts/Monument-Extended-w900.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Extended';
  src: url('/assets/fonts/Monument-Extended-w300.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'HN LT Pro';
  src: url('/assets/fonts/HN-LT-Pro-w400.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'HN LT Pro';
  src: url('/assets/fonts/HN-LT-Pro-w700.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'HN LT Pro';
  src: url('/assets/fonts/HN-LT-Pro-w300.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Ground + type: the Perception foundation */
  --ink:    #0E0E0E;   /* ground */
  --chalk:  #F5F5F5;   /* type */
  --dust:   #8A8A85;   /* utility, captions, muted. warm gray, field dust */

  /* Surfaces: near-black with a green cast, so dark reads as grass at night
     rather than as generic dark-mode gray */
  --turf:   #141A14;
  --turf-2: #1B221B;
  --line:   #2A302A;   /* hairlines */

  /* The grid sits on --turf, so its cells need their own contrast pair or the
     control reads as an empty box. It shipped that way once: #0A0E0A cells on
     a #141A14 panel were invisible and the signature element looked broken.
     Cells now sit LIGHTER than the panel, like unlit scoreboard bulbs. */
  --cell-bg:   #232B22;
  --cell-line: #46513F;

  /* THE accent. High-vis lacrosse ball orange. Used on the grid, the CTAs,
     and nothing else. Deliberately NOT Perception's ember (#FF2E47) — ember
     stays Perception's signature. */
  --ball:      #FF6B1A;
  --ball-deep: #C74A08;

  --font-display: 'Monument Extended', 'Arial Black', sans-serif;
  --font-body:    'HN LT Pro', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;

  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --rail: 10rem;       /* the section label column */
  --hdr-h: 62px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Nothing on this site is rounded. */
* { border-radius: 0 !important; }

/* Sticky header would otherwise eat the top of anything you jump to. */
[id] { scroll-margin-top: calc(var(--hdr-h) + var(--s-4)); }

/* ---------- Grain: the whole reason this reads as print, not screen ---------- */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  /* Monument Extended is a very wide face. Long words break rather than
     overflow the viewport. */
  overflow-wrap: break-word;
}

/* No periods on major headlines. House rule. */

.h-hero {
  font-size: clamp(2.3rem, 7.6vw, 6rem);
  line-height: 0.86;
}
/* Monument Extended is wide enough that a 12-letter word sets the floor.
   "JACKSONVILLE" at the full hero size breaks mid-word on a phone and drags
   the paint block apart with it, so headlines carrying a long word step down
   a size instead of being allowed to hyphenate. */
.h-hero--long { font-size: clamp(1.7rem, 6.2vw, 4.6rem); }

.h-min {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.05;
}

.h-sec {
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 0.92;
}

.h-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.05;
}

/* Utility type: section labels, form labels, captions, nav */
.u {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
  line-height: 1.5;
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  font-weight: 300;
  max-width: 40ch;
}

p { max-width: var(--measure); }
p + p { margin-top: 1.05em; }

a { color: var(--ball); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--chalk); }

strong { font-weight: 700; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Every section, every page. The label rail is what gives the page a spine. */
.sect { border-top: 1px solid var(--line); }
.sect--open { border-top: 0; }

.sect__in {
  display: grid;
  gap: var(--s-4);
  padding-block: clamp(var(--s-5), 5.5vw, var(--s-7));
}
.sect--tight .sect__in { padding-block: clamp(var(--s-5), 4vw, var(--s-6)); }

.sect__body { min-width: 0; }

/* The rail label is a section marker sitting in the margin, not a kicker
   stacked on a headline. Below 960px there is no margin to sit in, and a
   stacked uppercase label above a headline is an eyebrow, which is banned.
   So it is hidden, and the hairline rules carry the structure. */
.sect__label { display: none; }

@media (min-width: 960px) {
  .sect__in {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(var(--s-5), 4vw, var(--s-6));
  }
  .sect__label {
    display: block;
    position: sticky;
    top: calc(var(--hdr-h) + var(--s-4));
    align-self: start;
    margin: 0;
  }
}

/* ---------- Skip link + focus ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ball);
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  z-index: 10000;
}
.skip:focus { left: 0; }

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

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--hdr-h);
}
.mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
}
.mark:hover { color: var(--ball); }
.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-3), 2.5vw, var(--s-5));
}
.hdr__nav a {
  color: var(--dust);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hdr__nav a:hover { color: var(--chalk); }
.hdr__nav a.is-cta {
  color: var(--ink);
  background: var(--ball);
  padding: 9px 14px;
}
.hdr__nav a.is-cta:hover { background: var(--chalk); color: var(--ink); }

@media (max-width: 560px) {
  .hdr__nav .hide-sm { display: none; }
}

/* ---------- Hero ----------
   The one place that skips the label rail: a poster does not need a caption
   telling you it is a poster. */

.hero__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-5), 4vw, var(--s-6));
  align-items: end;
  padding-block: clamp(var(--s-6), 7vw, var(--s-7)) clamp(var(--s-5), 4vw, var(--s-6));
}
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  /* Interior pages have no hero photo. Without this they inherit the two
     column split, get squeezed into the 1.3fr track, and leave the other
     track empty. */
  .hero__in--solo { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { margin-bottom: var(--s-4); }

/* The accent as field paint: an irregular, laid-down stroke behind the word.
   Ink, not glow. */
.paint {
  position: relative;
  display: inline-block;
  color: var(--ink);
  padding-inline: 0.1em;
  isolation: isolate;
}
.paint::before {
  content: '';
  position: absolute;
  inset: 0.04em -0.02em 0.02em;
  background: var(--ball);
  z-index: -1;
  /* slight misregistration, like a stencil laid down by hand */
  transform: rotate(-0.5deg) skewX(-1.2deg);
}

.hero__meta {
  margin-top: clamp(var(--s-4), 3vw, var(--s-5));
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  align-items: center;
}

/* ---------- Rows ----------
   One scannable pattern, used for the home page facts and the whole
   where-to-play directory. Nobody reads a reference page, they scan it for
   the one line they need. Body face, not Monument: the display face is too
   wide for a 13rem label column and wraps every name to three lines. */

.rows { border-top: 1px solid var(--line); }
.rows__row {
  display: grid;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 720px) {
  .rows__row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; }
  .rows--plain .rows__row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
.rows__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.rows__what {
  margin: 0;
  color: var(--dust);
  font-size: 0.97rem;
  max-width: 58ch;
}
.rows__tag {
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--dust);
  justify-self: start;
}
.rows__tag.is-gap { color: var(--ball); border-color: var(--ball); }

/* ---------- Editorial spread ----------
   Reading measure plus a margin column that carries photos. The two together
   fill the content track exactly, so the right edge matches every other
   section on the page. */

.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-5), 4vw, var(--s-6));
  align-items: start;
}
@media (min-width: 1080px) {
  .editorial { grid-template-columns: minmax(0, 62ch) minmax(200px, 1fr); }
}

.margin-col {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

/* A block of real facts in the margin. Print spec-sheet, not a card. */
.spec-card {
  border: 1px solid var(--line);
  background: var(--turf);
  padding: var(--s-4);
}
.spec-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
}
.spec-card dl { margin: 0; display: grid; gap: 0; }
.spec-card dt {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.spec-card dl > dt:first-child { border-top: 0; padding-top: 0; }
.spec-card dd {
  margin: 2px 0 var(--s-3);
  font-size: 0.9rem;
  line-height: 1.45;
}
.spec-card dd:last-child { margin-bottom: 0; }

/* ---------- Photo frame: overprinted, not a soft card ---------- */

/* Every image on this site runs in full colour. No filters anywhere.

   HARD RULE: an image never renders wider than the pixels it actually has.
   Each .frame carries --w with its native width and is capped there, so a
   604px photo stops at 604px instead of being stretched across a 900px column
   and turning to mush. Set --w on every frame you add. */
.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--turf);
  margin: 0;
  max-width: min(100%, var(--w, 100%));
}
.frame img { width: 100%; display: block; }
.frame figcaption {
  border-top: 1px solid var(--line);
  padding: var(--s-3);
}

/* ---------- Full-bleed image band ---------- */

.band {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
}
.band img {
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  display: block;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 30%, transparent) 0%,
    transparent 30%,
    transparent 70%,
    color-mix(in srgb, var(--ink) 45%, transparent) 100%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ball);
  color: var(--ink);
  border: 1px solid var(--ball);
  padding: 15px 26px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
}
.btn:hover { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.btn:active { background: var(--ball-deep); border-color: var(--ball-deep); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Pull quote ---------- */

.pull {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  line-height: 1.25;
  text-transform: uppercase;
  border-left: 3px solid var(--ball);
  padding-left: var(--s-4);
  margin: var(--s-5) 0;
  max-width: 30ch;
}

/* ---------- Form ----------
   Fills the content track. It used to cap at 1000px inside a 1440px wrap,
   which left a dead column beside it on every desktop screen. */

.form-shell {
  background: var(--turf);
  border: 1px solid var(--line);
  padding: clamp(var(--s-4), 3vw, var(--s-5));
  margin-top: var(--s-5);
}

.field { margin-bottom: var(--s-4); }
.field > label,
.fieldset > legend {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: var(--s-2);
  padding: 0;
}
.field .hint {
  display: block;
  color: var(--dust);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: var(--s-1);
}

input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--chalk);
  padding: 13px 15px;
  transition: border-color 120ms linear;
}
input:hover, select:hover, textarea:hover { border-color: var(--dust); }
input:focus, select:focus, textarea:focus { border-color: var(--ball); outline: none; box-shadow: inset 0 0 0 1px var(--ball); }
textarea { min-height: 118px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A85' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}

.row { display: grid; gap: var(--s-4); }
@media (min-width: 700px) {
  .row--2 { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: 1fr 1fr 1fr; }
  .row--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); }

/* Checkboxes: chunky, hard-edged, ink-filled */
.check {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 120ms linear, background 120ms linear;
}
.check:hover { border-color: var(--dust); }
.check:has(input:checked) { border-color: var(--ball); background: color-mix(in srgb, var(--ball) 8%, transparent); }
.check input {
  appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--dust);
  background: var(--ink);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.check input:checked { background: var(--ball); border-color: var(--ball); }
.check input:checked::after {
  content: '';
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -1px);
}
.check span { font-size: 0.93rem; line-height: 1.45; }
.check + .check { margin-top: var(--s-2); }

/* Honeypot: offscreen, never display:none (bots read that) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

.form-status {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  display: none;
}
.form-status.is-on { display: block; }
.form-status.is-ok { border-color: var(--ball); }
.form-status p { max-width: 60ch; margin: 0; }
.err { color: var(--ball); font-size: 0.82rem; margin-top: var(--s-2); display: none; }
.err.is-on { display: block; }

/* ==========================================================================
   THE AVAILABILITY GRID — the signature element
   A scoreboard, not a calendar widget. Paint across it with mouse or finger.
   Cells snap, they do not fade. This is the one place boldness gets spent.
   ========================================================================== */

.avail {
  margin-top: var(--s-3);
  border: 1px solid var(--cell-line);
  background: var(--ink);
  padding: clamp(var(--s-3), 2vw, var(--s-4));
}

.avail__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.chip {
  background: transparent;
  border: 1px solid var(--cell-line);
  color: var(--dust);
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms linear, border-color 120ms linear, background 120ms linear;
}
.chip:hover { color: var(--ink); background: var(--chalk); border-color: var(--chalk); }

.avail__help { margin: 0 0 var(--s-3); }

.avail__scroll { overflow-x: auto; padding-bottom: var(--s-2); }

/* The track floor must stay minmax(0, ...) and the grid must never carry a
   min-width. `touch-action: none` means a finger dragging across the grid
   paints instead of scrolling, so if the grid is wider than the phone there is
   no gesture left that can reach the cut-off days. It has to fit. */
.avail__grid {
  display: grid;
  grid-template-columns: 2.4rem repeat(7, minmax(0, 1fr));
  gap: 3px;
  /* stop the browser from scrolling the page while painting cells */
  touch-action: none;
  cursor: crosshair;
}

.avail__col,
.avail__row {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust);
  user-select: none;
}
.avail__col { padding-bottom: var(--s-2); }
.avail__row { justify-content: start; padding-right: var(--s-2); }

.cell {
  appearance: none;
  /* Do NOT use aspect-ratio here. Combined with a max-height it shrinks the
     cell to a square inside a much wider track, which leaves dead gaps and
     throws the day headers out of alignment. Fill the track, fix the height. */
  width: 100%;
  height: clamp(42px, 5vw, 58px);
  border: 1px solid var(--cell-line);
  background: var(--cell-bg);
  cursor: crosshair;
  position: relative;
  padding: 0;
  /* mechanical snap, like a scoreboard bulb — not a soft fade */
  transition: background 70ms steps(2, end), border-color 70ms linear;
}
/* An unlit bulb still has a filament. Without this an empty cell reads as a
   hole rather than as something you are meant to hit. */
.cell::before {
  content: '';
  position: absolute;
  inset: 50% 38% auto;
  height: 1px;
  background: var(--cell-line);
}
.cell:hover { border-color: var(--chalk); background: #2E382C; }
.cell[aria-pressed="true"] {
  background: var(--ball);
  border-color: var(--ball);
}
.cell[aria-pressed="true"]::before { opacity: 0; }
.cell[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
}
.cell:focus-visible { outline: 3px solid var(--chalk); outline-offset: 1px; z-index: 2; }

.avail__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--cell-line);
}
.slots {
  margin: 0;
  color: var(--chalk);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 48ch;
}
.slots:empty::before {
  content: 'Nothing painted yet';
  color: var(--dust);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Phones. Seven columns plus a row label inside a padded card inside a padded
   section runs out of room fast: at 360px the default paddings leave the grid
   about 240px, which is 25px a cell. Claw the horizontal padding back on the
   two shells around it and shrink the label column so the cells stay hittable.
   Only the horizontal padding shrinks; vertical rhythm is untouched. */
@media (max-width: 560px) {
  .form-shell { padding: var(--s-4) 14px; }
  .avail { padding: var(--s-3) 10px; }
  .avail__grid {
    grid-template-columns: 2rem repeat(7, minmax(0, 1fr));
    gap: 2px;
  }
  .avail__col,
  .avail__row { font-size: 0.58rem; letter-spacing: 0.03em; }
  .avail__row { padding-right: var(--s-1); }
  .cell { height: 46px; }
  .cell::before { inset: 50% 30% auto; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  text-transform: uppercase;
  line-height: 1.15;
  list-style: none;
  display: flex;
  gap: var(--s-4);
  align-items: baseline;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--ball);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: var(--s-4); }
.faq p { color: var(--dust); max-width: 68ch; }

/* ---------- Footer ---------- */

.ftr { border-top: 1px solid var(--line); }
.ftr__in {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-6) var(--s-5);
  align-items: end;
}
@media (min-width: 720px) {
  .ftr__in { grid-template-columns: minmax(0, 1fr) auto; }
}
/* The measure cap on p would wrap the one-line footer credit. */
.ftr__in p { max-width: none; }
.ftr a { color: var(--dust); text-decoration: none; }
.ftr a:hover { color: var(--chalk); }
.ftr nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Prose ---------- */

.prose > * { max-width: 62ch; }
.prose > h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.prose ul { padding-left: 1.1em; margin-block: var(--s-3); }
.prose li { margin-bottom: var(--s-2); max-width: var(--measure); }

/* ---------- Motion ---------- */

@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.wipe { animation: wipe-in 620ms cubic-bezier(0.16, 0.84, 0.44, 1) both; }
.wipe-2 { animation-delay: 110ms; }
.wipe-3 { animation-delay: 200ms; }

@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;
  }
}
