/* wihme.com, waitlist page. One stylesheet for the whole site (Interface Design SOP §13).
 *
 * DESIGN LANGUAGE, written before any of the CSS below (SOP §2):
 * A ticket from the merch table. Off-white ticket stock and black ink, with one highlighter
 * that only ever marks two things: the thing you can do, and the number you hold. Condensed
 * gig-poster capitals for display, a plain grotesque for reading, and a receipt-printer mono
 * for every price, tier and place in line, because the tiers and your place are the product.
 * Perforations instead of borders, no shadows, no gradients, 2px radius. The signature motif
 * is the stub: the waitlist issues you a numbered ticket, and the tier list reads like one.
 *
 * This is a third archetype by the SOP's method, not A or B. A is for pages people admire and
 * B for screens people work in; this is a consumer page for creators and fans, so it keeps A's
 * paper, ink and hairlines and drops its serif, grain and terminal motion.
 *
 * The highlighter (--mark) has exactly two jobs: the primary button and the number you hold.
 * It never carries text colour on paper (lime on off-white is about 1.1:1), only fills that
 * ink sits on (about 16:1).
 */

/* ---------- tokens: light ---------- */
:root {
  --paper: #F3F1EA;
  --paper-2: #E8E5DB;
  --card: #FBFAF6;
  --ink: #12110F;
  --ink-2: #46433D;
  --ink-3: #65615A;
  --rule: #CBC6BA;
  --rule-hard: #12110F;
  --mark: #D9FF3E;
  --on-mark: #12110F;
  /* Focus ring is ink in light mode: the highlighter would vanish against the paper. */
  --focus: #12110F;
  --stop: #A8261C;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 2px;
  --gut: 20px;
  --maxw: 1180px;
  color-scheme: light;
}

/* ---------- tokens: dark (system setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --paper-2: #1A1917;
    --card: #1E1D1A;
    --ink: #F1EEE6;
    --ink-2: #BEB9AE;
    --ink-3: #979287;
    --rule: #36342F;
    --rule-hard: #F1EEE6;
    --mark: #D9FF3E;
    --on-mark: #12110F;
    --focus: #D9FF3E;
    --stop: #FF8F85;
    color-scheme: dark;
  }
}

/* ---------- tokens: dark (explicit, third place per SOP §15) ---------- */
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1A1917;
  --card: #1E1D1A;
  --ink: #F1EEE6;
  --ink-2: #BEB9AE;
  --ink-3: #979287;
  --rule: #36342F;
  --rule-hard: #F1EEE6;
  --mark: #D9FF3E;
  --on-mark: #12110F;
  --focus: #D9FF3E;
  --stop: #FF8F85;
  color-scheme: dark;
}

/* ---------- tokens: the reversed band ----------
 * The band flips the page: ink ground in light mode, paper ground in dark mode. Its tokens live
 * up here with the others so no raw colour exists below the reset. */
.band {
  --paper: #12110F; --paper-2: #1A1917; --card: #1E1D1A;
  --ink: #F1EEE6; --ink-2: #C9C4B9; --ink-3: #A39E93;
  --rule: #3A3833; --rule-hard: #F1EEE6; --focus: #D9FF3E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band {
    --paper: #F3F1EA; --paper-2: #E8E5DB; --card: #FBFAF6;
    --ink: #12110F; --ink-2: #46433D; --ink-3: #65615A;
    --rule: #CBC6BA; --rule-hard: #12110F; --focus: #12110F;
  }
}
:root[data-theme="dark"] .band {
  --paper: #F3F1EA; --paper-2: #E8E5DB; --card: #FBFAF6;
  --ink: #12110F; --ink-2: #46433D; --ink-3: #65615A;
  --rule: #CBC6BA; --rule-hard: #12110F; --focus: #12110F;
}

/* ---------- reset ---------- */
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/bigshouldersdisplay.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
/* Components set display: grid/flex, which beats the browser's own [hidden] rule; without this
 * the form stayed on screen after joining and the empty ticket panel showed before it (5 Oct 2026). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.03rem/1.55 var(--sans);
  /* Body clips sideways overflow; wide content scrolls inside its own panel (SOP §11). */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
section[id], :target { scroll-margin-top: 88px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
}
/* Balanced so a heading never strands its last word ("TABS." alone at 320px). */
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h3 { font: 600 1.12rem/1.3 var(--sans); }
/* Each sentence of a headline is its own block so it never breaks mid-thought (SOP §11). */
.line { display: block; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.label {
  font: 500 0.74rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
mark {
  background: var(--mark);
  color: var(--on-mark);
  padding: 0 0.12em;
  /* Each wrapped line keeps its own highlighter stroke instead of one ragged box. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 700px) { :root { --gut: 32px; } }
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.stack > * + * { margin-top: 20px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
/* Padding brings the wordmark link to the 44px tap floor; it measured 30px without it. */
.brand { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; text-decoration: none; }
.wordmark { font: 900 1.9rem/1 var(--display); letter-spacing: 0.01em; text-transform: lowercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  font: 600 1rem/1.1 var(--sans);
  color: var(--on-mark); background: var(--mark);
  border: 2px solid var(--rule-hard); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; background: var(--paper-2); color: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.top .btn { min-height: 44px; padding: 8px 14px; font-size: 0.94rem; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 72px; }
@media (min-width: 900px) { .hero { padding: 64px 0 104px; } }
/* The headline runs the full width above the form and ticket. Its size comes from the column
 * width, measured once: the longer sentence, "Fans don't want to fund you.", is 11.17 times the
 * font size wide in this face (measured in the browser, 5 Oct 2026). At 11.8 each sentence fits on one line with room to spare
 * wherever that still gives a headline-sized font; on phones the floor wins and each sentence
 * wraps once, balanced, so a word is never left alone on a line (it was "YOU." at 800px). */
.hero-head { container-type: inline-size; display: grid; gap: 18px; margin-bottom: 36px; }
.hero h1 { font-size: clamp(2.6rem, calc(100cqi / 11.8), 6.6rem); }
.hero h1 { line-height: 0.98; }
.hero h1 .line { text-wrap: balance; }
/* The highlighter box on the second sentence touched the first sentence's baseline at 0.92. */
.hero h1 .line + .line { margin-top: 0.08em; }
.hero-grid { display: grid; gap: 40px; }
.hero-grid > * { min-width: 0; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
}
.hero h1 mark { padding: 0 0.06em; }

/* ---------- form ---------- */
.join { display: grid; gap: 18px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font: 500 0.74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.field .hint { font-size: 0.86rem; color: var(--ink-3); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.05rem/1.3 var(--sans); color: var(--ink);
  background: var(--card); border: 2px solid var(--rule-hard); border-radius: var(--radius);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input[aria-invalid="true"] { border-color: var(--stop); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.roles { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--rule-hard); border-radius: var(--radius); }
.roles label {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 12px; cursor: pointer;
  font: 600 1rem/1.2 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink);
  background: var(--card);
}
.roles label + label { border-left: 2px solid var(--rule-hard); }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles label:has(input:checked) { background: var(--mark); color: var(--on-mark); }
.roles label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -5px; }
/* Before a role is picked, both halves read the same; the choice is what turns one on. */
.js .handle-field[data-hidden="true"] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--ink-3); }
.form-error { font-size: 0.95rem; color: var(--stop); font-weight: 500; min-height: 1.4em; }
.form-error:empty { min-height: 0; }

/* ---------- the ticket (signature motif) ---------- */
.ticket {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 128px;
  background: var(--card);
  border: 2px solid var(--rule-hard); border-radius: var(--radius);
  max-width: 460px;
}
.ticket-main { padding: 22px 22px 20px; display: grid; gap: 14px; min-width: 0; }
.ticket-main .wordmark { font-size: 2.2rem; }
.ticket-title { font: 800 clamp(2.2rem, 5vw, 2.8rem)/0.9 var(--display); text-transform: uppercase; }
.ticket-rows { display: grid; gap: 6px; }
.ticket-rows li { display: flex; justify-content: space-between; gap: 12px; font: 400 0.8rem/1.3 var(--mono); color: var(--ink-2); border-top: 1px dotted var(--rule); padding-top: 6px; }
.ticket-rows li span:last-child { text-align: right; color: var(--ink); }
.stub {
  position: relative;
  padding: 22px 14px 20px; display: grid; align-content: start; gap: 6px; text-align: center;
  /* The perforation: a dotted tear line, not a border. */
  border-left: 2px dotted var(--rule-hard);
}
.stub-no { font: 600 2.1rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.stub-no.blank, .stub-code.blank { color: var(--ink-3); }
.stub-no.filled { background: var(--mark); color: var(--on-mark); padding: 4px 2px; }
.stub-code { font: 500 0.9rem/1.2 var(--mono); letter-spacing: 0.12em; }
/* Notches where the perforation meets the edges: half circles of page colour. Each is a full
 * circle with only two quarters of its border inked, rotated so the inked half sits inside the
 * ticket; the other half is paper on paper and disappears. No gradients or masks needed. */
.notch {
  position: absolute; left: calc(100% - 138px); width: 22px; height: 22px;
  border-radius: 50%; background: var(--paper);
  border: 2px solid transparent;
}
.notch.n-top { top: -12px; border-bottom-color: var(--rule-hard); border-left-color: var(--rule-hard); transform: rotate(-45deg); }
.notch.n-bottom { bottom: -12px; border-top-color: var(--rule-hard); border-right-color: var(--rule-hard); transform: rotate(-45deg); }
/* Below 480px the full stub left the rows about 200px, and "Creators and fans" broke onto two
 * lines at 390px. A narrower stub and padding keep every row on one line down to 360px; below
 * that (320px phones) each row stacks its label over its value instead of breaking mid-phrase. */
@media (max-width: 480px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 104px; }
  .ticket-main { padding: 18px 16px 16px; }
  .notch { left: calc(100% - 114px); }
  .stub { padding: 18px 10px 16px; }
  .stub-no { font-size: 1.7rem; }
}
@media (max-width: 359px) {
  .ticket-rows li { flex-direction: column; gap: 2px; }
  .ticket-rows li span:last-child { text-align: left; }
}

/* ---------- after joining ---------- */
.joined { display: grid; gap: 16px; max-width: 520px; }
/* Focus moves here after joining so screen readers announce the ticket; it isn't a control,
 * so it shouldn't draw a ring like one. */
.joined:focus { outline: none; }
.joined h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; border: 2px solid var(--rule-hard); border-radius: var(--radius); background: var(--card); }
.share input { min-width: 0; border: 0; background: transparent; padding: 12px 14px; font: 500 0.95rem/1.3 var(--mono); color: var(--ink); }
.share .btn { border-width: 0 0 0 2px; border-radius: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- the example page ---------- */
.page-head { display: grid; gap: 14px; max-width: 760px; }
.mock { margin-top: 40px; border: 2px solid var(--rule-hard); border-radius: var(--radius); background: var(--card); }
.mock-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 800 1.4rem/1 var(--display); border-radius: var(--radius); }
.mock-name { font: 600 1.05rem/1.2 var(--sans); }
.mock-tag { margin-left: auto; }
.tabs { display: flex; border-bottom: 2px solid var(--rule-hard); overflow-x: auto; }
.tab {
  flex: 0 0 auto; min-height: 48px; padding: 12px 18px;
  font: 600 1rem/1 var(--sans); color: var(--ink-2);
  background: transparent; border: 0; border-right: 1px solid var(--rule); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--on-mark); background: var(--mark); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"]:hover { color: var(--on-mark); }
/* With scripting off every panel shows, one after another; the tabs only enhance (SOP §12). */
.no-js .tabs { display: none; }
.panel { padding: 24px 18px 28px; display: grid; gap: 18px; }
.panel + .panel { border-top: 1px solid var(--rule); }
.js .panel + .panel { border-top: 0; }
.panel-title { font: 800 clamp(1.9rem, 4vw, 2.6rem)/0.95 var(--display); text-transform: uppercase; }
.panel p { color: var(--ink-2); max-width: 40em; }
.tiers { border-top: 2px solid var(--rule-hard); }
.tiers li { display: grid; grid-template-columns: 6ch minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 2px dotted var(--rule); }
.tiers .num { font-size: 1.15rem; font-weight: 600; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 0.8rem/1 var(--mono); padding: 8px 10px; border: 1px solid var(--rule-hard); border-radius: var(--radius); }
.chip.on { background: var(--ink); color: var(--paper); }
.threads li, .items li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.threads li:first-child, .items li:first-child { border-top: 1px solid var(--rule); }
.threads .label, .items .label { white-space: nowrap; }
.facts { margin-top: 40px; display: grid; border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) {
  .facts > div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
.facts p { color: var(--ink-2); }

/* ---------- reversed band ---------- */
.band { background: var(--paper); color: var(--ink); }
.band .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; } }
.band p { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-2); max-width: 34em; }
.band p + p { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; border-top: 2px solid var(--rule-hard); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; min-height: 44px; font: 600 1.08rem/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.2rem/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ---------- closing call ---------- */
.closing .wrap { display: grid; gap: 20px; justify-items: start; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--rule-hard); padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.foot .wordmark { font-size: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; }
.foot nav a { display: inline-block; padding: 10px 0; min-height: 44px; }

/* ---------- legal + plain pages ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin: 8px 0 18px; }
.doc h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 40px; }
.doc p, .doc li { color: var(--ink-2); max-width: 40em; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { margin-top: 10px; }
.doc ul li { padding-left: 18px; position: relative; margin-top: 8px; }
.doc ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--ink-3); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc th { font: 500 0.74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.table-scroll { overflow-x: auto; }

/* ---------- motion ---------- */
/* The stub prints its number in four steps, like a receipt printer. Deterministic, CSS only. */
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stub-no.filled, .stub-code.filled { animation: print 520ms steps(4, end) both; }
.stub-code.filled { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
