/* SCHMARX & SAVVY — "The Deep End"
   One continuous dive: cream surface → ink/navy depths.
   Materials: photo, glass, line-glow, grain. See DESIGN.md. */

:root {
  --ink: #010103;
  --navy: #24496d;
  --peach: #f9ac91;
  --sage: #8fa894;
  --cream: #f4eee6;
  --glow-a: #bccd7e;
  --glow-b: #6bb387;
  --glow-c: #35a28e;

  --font-display: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-monument: "Proxima Nova ExCn", "Arial Narrow", sans-serif;
  --font-body: "Merriweather", Georgia, serif;

  --pad-section: clamp(96px, 14vh, 200px);
  --pad-x: clamp(20px, 5vw, 64px);
  --content-w: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything, beneath nothing interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/meta/grain-256.png") repeat;
  background-size: 128px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 60;
}

img, svg, video, canvas, iframe { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--peach); color: var(--ink); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- type voices ---------- */

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.68rem, 0.6vw + 0.55rem, 0.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.label--peach { color: var(--peach); }

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  letter-spacing: 0.07em;
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--cream);
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.4em; }

/* ---------- shared shells ---------- */

.shell {
  width: min(var(--content-w), 100% - 2 * var(--pad-x));
  margin-inline: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--peach);
  border: 0;
  border-radius: 999px;
  padding: 1em 2.1em;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.pill:hover { background: #ffc4ab; transform: translateY(-2px); }
.pill:active { transform: translateY(0); }

.quiet-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 40%, transparent);
  padding-bottom: 0.35em;
  transition: color 0.3s, border-color 0.3s;
}
.quiet-link:hover { color: var(--cream); border-color: var(--cream); }

/* glass: the only raised material (player + capture form) */
.glass {
  position: relative;
  background: color-mix(in srgb, var(--navy) 36%, transparent);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 60px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.glass::before {
  /* pointer-following specular sheen; --sx/--sy set from JS */
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    38% 32% at var(--sx, 30%) var(--sy, 0%),
    rgba(255, 255, 255, 0.14),
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--pad-x);
  transition: background 0.5s, backdrop-filter 0.5s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  text-decoration: none;
}
.nav__brand img { width: 30px; height: 30px; }
.nav__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--cream);
}
.nav .pill { padding: 0.75em 1.6em; font-size: 0.72rem; }

/* ---------- hero: above the surface ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__bg, .hero__cutout {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img, .hero__cutout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
/* the water below: darkens the shore of the photo and seams into the plunge */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(1, 1, 3, 0.5) 68%, rgba(1, 1, 3, 0.95) 100%);
  pointer-events: none;
}
/* the duo cutout covers only its top region, so the title slides behind
   their shoulders while the actions strip below stays on top of the page */
.hero__cutout {
  z-index: 3;
  pointer-events: none;
  clip-path: inset(0 0 34% 0);
}
/* the cutout assembles gracefully: hidden until decoded, then a soft fade —
   no pop of the name jumping behind the duo on cold loads */
.hero__cutout img { opacity: 0; transition: opacity 0.6s ease; }
.hero__cutout img.is-loaded { opacity: 1; }
.hero__mark {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 var(--pad-x) clamp(40px, 9vh, 110px);
}
.hero__eyebrow {
  color: color-mix(in srgb, var(--cream) 92%, transparent);
  text-shadow: 0 1px 22px rgba(1, 1, 3, 0.65), 0 0 2px rgba(1, 1, 3, 0.4);
  margin-bottom: 1.2em;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 40px rgba(1, 1, 3, 0.18);
}
.hero__title .l { display: inline-block; will-change: transform; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: clamp(1.4rem, 3.5vh, 2.6rem);
}
.hero__scrollcue {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(24px, 5vh, 48px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--sage);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
}
.hero__scrollcue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: currentColor;
  animation: cue-drop 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- the plunge: scrubbed dive + concentric reveal ---------- */

/* the stage overlaps the hero: the dive begins OVER the photo (screen-blended
   canvas), the hero sinks out beneath it, and the ride ends on the ripples */
.plunge {
  position: relative;
  height: 320vh;
  margin-top: -75vh;
  background: transparent;
  z-index: 10;
  /* the section overlaps the hero — it must never eat the hero's clicks;
     interactivity returns only inside .music */
  pointer-events: none;
}
.plunge__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  pointer-events: none;
}

/* revealed layer = the music chapter, opened like an iris from the pool center */
.music {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  clip-path: circle(140% at 50% 62%);
  background: var(--ink);
  pointer-events: auto;
}
.music__bg {
  position: absolute;
  inset: 0;
}
.music__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 78% 88%, color-mix(in srgb, var(--peach) 18%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 62%, transparent), color-mix(in srgb, var(--navy) 50%, var(--ink)) 130%);
}
.music__inner {
  position: relative;
  width: min(760px, 100% - 2 * var(--pad-x));
  text-align: center;
  padding: 12vh 0 6vh;
}
.music__title { margin-bottom: 1.1em; }
.player { padding: clamp(14px, 2.2vw, 22px); }
.player iframe { border: 0; border-radius: 12px; width: 100%; height: 352px; }
.player__placeholder {
  height: 352px;
  display: grid;
  place-items: center;
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.music__follow { display: inline-block; margin-top: 2.2em; }

/* scrub canvas above the reveal; screen blend drops its black to transparent,
   so the glowing diver rides over the hero, then over the revealed chapter */
.plunge__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}
/* topo ring echo, drawn over the canvas as the diver hits */
.plunge__rings {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}
.plunge__rings svg { width: min(120vh, 92vw); height: auto; }

/* resting ripples: once the splash passes, these hold the pool's rings as the
   chapter's background — behind the heading and the glass, above the ink */
.music__rings {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: min(130vh, 96vw);
  opacity: 0;
  pointer-events: none;
}
.music__rings svg { width: 100%; height: auto; }

/* no-JS / reduced-motion: the plunge collapses to the music chapter, fully open,
   with the final ripple frame standing in as its background */
html.no-motion .plunge { height: auto; margin-top: 0; }
html.no-motion .plunge__stage { position: relative; height: auto; min-height: 100svh; }
html.no-motion .music {
  position: relative;
  clip-path: none;
  min-height: 100svh;
  background: var(--ink) url("../assets/sequence/frames/frame-096.webp") center / cover no-repeat;
}
html.no-motion .plunge__canvas, html.no-motion .plunge__rings { display: none; }

/* ---------- bio: who we are ---------- */

.bio {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 30%, var(--ink)), var(--ink) 46%);
  padding: var(--pad-section) 0;
}
.bio__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.bio__photo { position: relative; }
.bio__photo img { border-radius: 12px; }
.bio__photo .frame {
  position: absolute;
  inset: clamp(-18px, -2vw, -12px);
  color: color-mix(in srgb, var(--sage) 58%, transparent);
  pointer-events: none;
}
.bio__copy .headline { margin-bottom: 0.9em; }

/* ---------- credits marquee + stats ---------- */

.credits {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0;
  overflow: hidden;
}
.credits__kicker { text-align: center; margin-bottom: 1.1em; }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: 100%;
  justify-content: space-around;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: marquee 84s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--cream) 66%, transparent);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--peach); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(calc(-100% - 3.5rem)); } }
html.no-motion .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; }
html.no-motion .marquee__track[aria-hidden] { display: none; }

.stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2rem, 7vw, 7rem);
  padding: calc(var(--pad-section) * 0.6) var(--pad-x);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-monument);
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.9;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.stat__num sup { font-size: 0.5em; color: var(--peach); }
.stat__label { margin-top: 0.9em; }
.stat__qual {
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--cream) 45%, transparent);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- videos: the visuals ---------- */

.videos { padding: var(--pad-section) 0; }
.videos__head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.vrow {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.2rem, 2.6vh, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  background: none;
  border-inline: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}
.vrow:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.vrow__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--navy) 40%, var(--ink));
}
.vrow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.vrow:hover .vrow__media img { transform: scale(1.045); }
.vrow__media .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.vrow__media .play::after {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 55%, transparent) center / 40% no-repeat;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f4eee6"><path d="M8 5.5v13l11-6.5z"/></svg>');
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-out), background-color 0.35s;
}
.vrow:hover .play::after { transform: scale(1.12); background-color: color-mix(in srgb, var(--peach) 70%, transparent); }
.vrow__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}
.vrow__watch { justify-self: end; }
.vrow.is-playing { cursor: default; }
.vrow.is-playing .vrow__media { grid-column: 1 / -1; max-width: 960px; width: 100%; justify-self: center; }
.vrow.is-playing .vrow__title, .vrow.is-playing .vrow__watch { display: none; }
.vrow__media iframe { width: 100%; height: 100%; border: 0; }

/* ---------- live ---------- */

.live {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}
.live__bg { position: absolute; inset: 0; }
.live__bg img { width: 100%; height: 100%; object-fit: cover; }
.live__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 30% 62%, var(--ink) 100%);
}
.live__inner { position: relative; padding-bottom: clamp(48px, 9vh, 110px); }
.live__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.live__line { margin-top: 1em; max-width: 46ch; color: color-mix(in srgb, var(--cream) 80%, transparent); }

/* ---------- the floor: merch + list + contact ---------- */

.floor {
  position: relative;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--navy) 24%, var(--ink)) 80%);
  padding: var(--pad-section) 0 0;
}
.floor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.merch__title, .signup__title { margin-bottom: 0.7em; }
/* the signup line reads as a sentence, not a shouted header */
.signup__title {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
.merch .label { display: block; margin-bottom: 1.5em; }
.merch p { color: color-mix(in srgb, var(--cream) 75%, transparent); max-width: 40ch; }

.signup { padding: clamp(26px, 3.4vw, 40px); }
.signup__fields { display: grid; gap: 0.9rem; margin-top: 1.8rem; }
.signup label { display: grid; gap: 0.45rem; }
.signup input {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.95em 1.1em;
  transition: border-color 0.3s;
}
.signup input::placeholder { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.signup input:focus { outline: none; border-color: var(--peach); }
.signup .pill { margin-top: 1.4rem; width: 100%; justify-content: center; }
.signup__note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
  min-height: 1.4em;
}

/* ---------- footer ---------- */

.footer { margin-top: var(--pad-section); padding: 0 0 clamp(32px, 5vh, 56px); }
.footer__surface {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(40px, 7vh, 72px);
  text-align: center;
}
.footer__icon { width: clamp(200px, 28vw, 360px); margin: 0 auto 2.2rem; }
.footer__icon svg { width: 100%; height: auto; }
.footer__icon img { width: 100%; }
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 2.4rem;
  margin-bottom: 2.4rem;
  padding: 0;
  list-style: none;
}
.socials a { font-size: 0.74rem; }
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.4rem;
  margin-bottom: 2.6rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}
.footer__contact a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.footer__contact a:hover { border-color: var(--peach); color: var(--peach); }
.footer__fine {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 40%, transparent);
}

/* depth gauge: the page's one Dive Gradient spend outside the line art */
.depth-gauge {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  z-index: 55;
  background: linear-gradient(180deg, var(--glow-a), var(--glow-b), var(--glow-c));
  transform-origin: top;
  transform: scaleY(0);
  pointer-events: none;
  opacity: 0.85;
}
html.no-motion .depth-gauge { display: none; }

/* ---------- reveal-on-scroll defaults (JS enhances; visible without it) ---------- */

.rv { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .bio__grid, .floor__grid { grid-template-columns: 1fr; }
  .bio__photo { max-width: 520px; }
  .vrow { grid-template-columns: 1fr; gap: 1rem; }
  .vrow__watch { display: none; }
  .vrow__media { max-width: none; }
  .stats { flex-direction: column; gap: 2.6rem; }
  .hero__bg img { object-position: 62% 40%; }
  .hero__cutout { display: none; } /* the photo already carries the duo */
  .hero__scrollcue { display: none; }
  /* LIVE: show the whole landscape photo instead of a tall cover crop */
  .live { min-height: 0; display: block; }
  .live__bg { position: relative; inset: auto; }
  .live__bg img { height: auto; object-fit: contain; }
  .live__bg::after { background: linear-gradient(180deg, var(--ink) 0%, transparent 22% 70%, var(--ink) 100%); }
  .live__inner { margin-top: -3.2rem; padding-bottom: clamp(48px, 9vh, 110px); }
}

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

/* ---------- legal pages (privacy, terms) ---------- */

.legal-page { background: var(--ink); }
.legal {
  padding: clamp(110px, 18vh, 190px) 0 clamp(60px, 10vh, 110px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 22%, var(--ink)), var(--ink) 60%);
}
.legal__head { margin-bottom: clamp(2.4rem, 6vh, 4rem); }
.legal__head .label { display: block; margin-bottom: 1.4em; }
.legal__date {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.legal__body { max-width: 74ch; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 2.6em 0 0.9em;
}
.legal__body p { color: color-mix(in srgb, var(--cream) 82%, transparent); }
.legal__body ul { margin: 1.2em 0 0; padding-left: 1.3em; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.legal__body li + li { margin-top: 0.6em; }
.legal__body ul + p { margin-top: 1.4em; }
.legal__body strong { color: var(--cream); }
.legal__body a { color: var(--peach); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--peach) 45%, transparent); }
.legal__body a:hover { border-color: var(--peach); }
.legal__footer { margin-top: 0; }

/* footer legal links, on every page */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.legal-links a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  transition: color 0.3s;
}
.legal-links a:hover, .legal-links a[aria-current] { color: var(--peach); }

/* ---------- signup consent ---------- */

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.5rem;
}
.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--peach);
  cursor: pointer;
  flex: none;
}
.consent__text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}
.consent__text a { color: var(--peach); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--peach) 45%, transparent); }
.signup.is-invalid .consent input[type="checkbox"] { outline: 2px solid var(--peach); outline-offset: 3px; }
