/* ONE SET. — tokens first (ARCHITECTURE §7). One accent. Black ground. Oswald for display. */
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #121212;
  --raised: #1c1c1c;
  --hairline: #262626;
  --text: #fff;
  --dim: #9e9e9e;
  --faint: #6b6b6b;
  --red: #e1251b;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --button: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.vh, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 10px 14px; background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero: the pitch and a set counting live. */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: clamp(28px, 6vh, 72px) var(--gutter) 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.mark {
  margin: 0;
  font: 700 clamp(76px, 21vw, 184px)/0.9 var(--display);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.mark i { font-style: normal; color: var(--red); }
.lead {
  margin: 20px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
.sub {
  margin: 12px 0 0;
  max-width: 34ch;
  color: var(--dim);
  font-size: clamp(17px, 1.5vw, 19px);
  text-wrap: pretty;
}
.eyebrow, .method h2, .rep {
  font: 500 13px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* The form: one field, one button, one choice with a default. */
.join { margin: 36px 0 0; max-width: 520px; }
.join .eyebrow { display: block; margin-bottom: 12px; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--button);
  background: var(--surface);
  color: var(--text);
  font: 17px var(--body);
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible { outline-offset: 0; border-color: var(--text); border-radius: var(--button); }
.field button, .failure, .again {
  height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--button);
  background: var(--red);
  color: #fff;
  font: 700 19px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}
.field button:hover, .failure:hover, .again:hover { opacity: 0.9; }
.field button:active, .failure:active { transform: scale(0.985); }
.field button[disabled] { opacity: 0.55; cursor: default; }
.field button:focus-visible, .failure:focus-visible, .again:focus-visible { border-radius: var(--button); }
.phone { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
.phone label { position: relative; cursor: pointer; }
.phone input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.phone span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--dim);
  font-size: 15px;
}
.phone span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--faint); }
.phone input:checked + span { color: var(--text); }
.phone input:checked + span::before { border-color: var(--red); background: var(--red); }
.phone input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.fine { margin: 14px 0 0; color: var(--faint); font-size: 14px; min-height: 21px; }
.fine.good { color: var(--text); font-size: 17px; }
.fine.bad { color: var(--text); }
.join.done .field, .join.done .phone, .join.done .eyebrow { display: none; }

/* The set: the ring fills on the lift, holds full, empties on the lowering. */
.set { display: grid; justify-items: center; gap: 20px; align-content: center; }
.rep { color: var(--text); font-size: 15px; margin: 0; }
.ring { position: relative; width: min(74vw, 340px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--hairline); }
.ring .arc { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 565.49; stroke-dashoffset: 565.49; }
.count {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center;
  font-family: var(--display); font-weight: 700; line-height: 0.95;
}
.count span { font-size: clamp(26px, 6.4vw, 38px); letter-spacing: 0.06em; white-space: nowrap; }
.count b { font-size: clamp(96px, 24vw, 136px); font-variant-numeric: tabular-nums; }
.failure { width: min(74vw, 340px); height: 64px; font-size: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.failure:hover { opacity: 1; background: var(--raised); }
.cap { margin: 0; text-align: center; color: var(--dim); font-size: 15px; min-height: 45px; }

/* The method: four parts, no numbering; they are not a sequence. */
.method {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 56px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.method h2 { margin: 0 0 12px; color: var(--text); }
.method p { margin: 0; max-width: 34ch; color: var(--dim); text-wrap: pretty; }

.book { padding: 56px var(--gutter) 72px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.book .claim {
  margin: 0;
  max-width: 24ch;
  font: 400 clamp(26px, 4vw, 44px)/1.22 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  text-wrap: balance;
}
.cite { margin: 20px 0 0; max-width: 52ch; color: var(--faint); font-size: 14px; }
.cite cite { font-style: italic; }
.modes { margin: 40px 0 0; max-width: 52ch; color: var(--dim); text-wrap: pretty; }
.again { display: inline-flex; align-items: center; margin-top: 28px; text-decoration: none; }

footer { padding: 28px var(--gutter) 40px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 70ch; }
footer a { color: var(--dim); }

/* Legal page. */
.legal { padding: 40px var(--gutter) 72px; max-width: 760px; margin: 0 auto; }
.legal .home { font: 700 22px/1 var(--display); text-decoration: none; }
.legal .home i { font-style: normal; color: var(--red); }
.legal h1 { margin: 40px 0 4px; font: 700 44px/1 var(--display); text-transform: uppercase; }
.legal .date { margin: 0 0 28px; color: var(--faint); font-size: 14px; }
.legal h2 { margin: 28px 0 8px; font: 500 13px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.legal p { margin: 0 0 10px; color: var(--dim); max-width: 62ch; }

@media (min-width: 600px) {
  .method { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    min-height: min(100svh, 900px);
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .mark { font-size: clamp(120px, 13.2vw, 184px); }
  .method { grid-template-columns: repeat(4, 1fr); }
  .ring, .failure { width: min(30vw, 340px); }
}
@media (max-width: 420px) {
  .field { flex-direction: column; }
  .field button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field button, .failure, .again { transition: none; }
}
