/* Called It
   The site is a fan's concert journal: a dot-grid page with things stuck in.
   Receipts are taped down, rounds are ticket stubs, notes are in biro,
   and buttons are label-maker tape. */

@font-face { font-family: 'Londrina Solid'; src: url('/fonts/londrina-solid-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Londrina Solid'; src: url('/fonts/londrina-solid-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Reenie Beanie'; src: url('/fonts/reenie-beanie-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-400-800.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --page: #efe6d3;
  --page-dot: #cdbf9f;
  --ink: #241d16;
  --ink-soft: #6d6253;
  --paper: #fffdf6;
  --paper-2: #f3eddd;
  --line: rgb(36 29 22 / 0.28);
  --biro: #2b41b3;
  --red: #d63f2e;
  --red-deep: #b93022;
  --pink: #f5a9c2;
  --yellow: #f8d24f;
  --mint: #9ed9c5;
  --lilac: #c3b3ee;
  --hl: #ffef5e;
  --label: #1e1915;

  --display: 'Londrina Solid', 'Arial Black', 'Helvetica Neue', sans-serif;
  --hand: 'Reenie Beanie', 'Bradley Hand', 'Segoe Print', cursive;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --tooth: 12px;
  --stuck: drop-shadow(0 1px 1px rgb(70 48 20 / 0.22)) drop-shadow(0 10px 16px rgb(70 48 20 / 0.16));
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--page);
  /* paper grain over a bullet-journal dot grid */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 1.5px 1.5px, var(--page-dot) 1.2px, transparent 0);
  background-size: 220px 220px, 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}

main { flex: 1; outline: none; }
img, canvas, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--hl); color: var(--ink); }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--label); color: #fff; padding: 8px 14px; font-weight: 700; z-index: 50; }
.skip:focus { left: 8px; }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- top and bottom of the page ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter) 10px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.wordmark__tick {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  border: 2.5px solid var(--red);
  border-radius: 50%;
  rotate: -12deg;
}
.top__nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
.top__nav a:not(.btn) { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--biro); text-decoration: none; }
.top__nav a:not(.btn):hover { text-decoration: underline wavy; text-underline-offset: 4px; }
@media (max-width: 430px) { .top__nav a:not(.btn) { display: none; } }

.foot {
  margin-top: 90px;
  padding: 34px var(--gutter) 46px;
  border-top: 2px dashed var(--line);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.foot__line { font-family: var(--hand); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; color: var(--biro); rotate: -1deg; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.95rem; }
.foot__nav a { color: var(--ink-soft); }
.foot__nav a:hover { color: var(--ink); }
.foot__small { font-size: 0.82rem; color: var(--ink-soft); max-width: 46ch; }

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

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(2.5rem, 8.5vw, 4.4rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.display--hero { font-size: clamp(3.2rem, 14vw, 7.6rem); line-height: 0.92; }
.display--sm { font-size: clamp(1.7rem, 5vw, 2.3rem); }

/* a swipe of highlighter, uneven at the ends like a real pen */
.hl { background: linear-gradient(100deg, transparent 0.5%, var(--hl) 3%, var(--hl) 95%, transparent 99.5%); border-radius: 0.5em 0.15em 0.4em 0.2em; padding: 0 0.18em; margin: 0 -0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.red { color: var(--red); }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.lede strong { color: var(--ink); font-weight: 700; }
.eyebrow { font-family: var(--hand); font-size: 1.7rem; line-height: 1; color: var(--biro); rotate: -1.5deg; transform-origin: left; }
.hand { font-family: var(--hand); color: var(--biro); line-height: 1; }
.mono { font-family: var(--mono); }
.soft { color: var(--ink-soft); }

/* letters cut out of magazines and glued down, each on its own scrap */
.cutout { font-size: 0.88em; display: inline-flex; flex-wrap: nowrap; gap: 0.03em; vertical-align: baseline; white-space: nowrap; }
.cut { display: inline-block; padding: 0.02em 0.13em 0; line-height: 1.02; box-shadow: 0 1px 1px rgb(70 48 20 / 0.3), 0 3px 5px rgb(70 48 20 / 0.14); }
.cut:nth-child(6n + 1) { background: var(--pink); rotate: -4deg; }
.cut:nth-child(6n + 2) { background: var(--paper); rotate: 3deg; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 0.86em; translate: 0 -0.03em; }
.cut:nth-child(6n + 3) { background: var(--yellow); rotate: -2deg; translate: 0 0.04em; }
.cut:nth-child(6n + 4) { background: var(--label); color: var(--paper); rotate: 4deg; font-family: var(--mono); font-weight: 700; font-size: 0.8em; }
.cut:nth-child(6n + 5) { background: var(--mint); rotate: -3deg; translate: 0 -0.02em; }
.cut:nth-child(6n + 6) { background: var(--lilac); rotate: 2deg; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 0.88em; }

/* ---------- layout ---------- */

.page { width: min(100%, 1100px); margin-inline: auto; padding: clamp(22px, 5vw, 48px) var(--gutter) 0; }
.page--narrow { width: min(100%, 600px); }
.page--mid { width: min(100%, 780px); }
.stack { display: grid; gap: 18px; }
.stack > * { min-width: 0; }
.stack--lg { display: grid; gap: 38px; }
.stack--lg > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.back { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--biro); text-decoration: none; justify-self: start; }
.back:hover { text-decoration: underline wavy; text-underline-offset: 4px; }

/* ---------- buttons: embossing-label tape ---------- */

.btn {
  --tape: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 38%, rgb(0 0 0 / 0.12)),
    var(--tape);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.35), 0 -1px 0 rgb(255 255 255 / 0.25);
  line-height: 1.1;
  cursor: pointer;
  rotate: -1.2deg;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 2px 2px rgb(70 48 20 / 0.3), 0 8px 14px rgb(70 48 20 / 0.2);
  transition: rotate 120ms ease, translate 120ms ease, box-shadow 120ms ease;
  touch-action: manipulation;
}
.btn:hover { rotate: 0.6deg; translate: 0 -2px; box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 3px 3px rgb(70 48 20 / 0.3), 0 14px 20px rgb(70 48 20 / 0.22); }
.btn:active { translate: 0 1px; box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 1px 1px rgb(70 48 20 / 0.4); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn--small { min-height: 42px; padding: 8px 14px; font-size: 0.82rem; letter-spacing: 0.12em; }
.btn--ink { --tape: var(--label); }
.btn--line, .btn--ghost { background: var(--paper); color: var(--ink); text-shadow: none; box-shadow: 0 0 0 1.5px var(--ink) inset, 0 2px 2px rgb(70 48 20 / 0.2); rotate: 0.8deg; }
.btn--line:hover, .btn--ghost:hover { box-shadow: 0 0 0 1.5px var(--ink) inset, 0 6px 10px rgb(70 48 20 / 0.2); }
.btn--wide { width: 100%; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; text-align: left; }
.link:hover { color: var(--red-deep); }

/* ---------- washi tape ---------- */

.taped { position: relative; }
.taped::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 118px;
  height: 30px;
  translate: -50% 0;
  rotate: -3deg;
  z-index: 3;
  background: repeating-linear-gradient(45deg, var(--tape-a, rgb(245 169 194 / 0.9)) 0 9px, var(--tape-b, rgb(245 169 194 / 0.62)) 9px 18px);
  clip-path: polygon(0 12%, 3% 0, 6% 14%, 9% 2%, 12% 12%, 100% 0, 97% 16%, 100% 34%, 97% 50%, 100% 68%, 97% 84%, 100% 100%, 0 100%, 3% 82%, 0 64%, 3% 46%, 0 30%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tape-mint { --tape-a: rgb(158 217 197 / 0.95); --tape-b: rgb(158 217 197 / 0.6); }
.tape-yellow { --tape-a: rgb(248 210 79 / 0.92); --tape-b: rgb(248 210 79 / 0.6); }
.tape-lilac { --tape-a: rgb(195 179 238 / 0.95); --tape-b: rgb(195 179 238 / 0.62); }
.tape-left::before { left: 22%; rotate: 5deg; }
.tape-right::before { left: 76%; rotate: 4deg; }

/* ---------- the receipt ---------- */

.receipt-wrap { position: relative; filter: var(--stuck); }
.receipt {
  overflow: clip; /* the stamp scales up as it lands; keep that from widening the page */
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 3px, rgb(36 29 22 / 0.02) 3px 4px);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 28px clamp(18px, 4.5vw, 30px) calc(26px + var(--tooth));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.receipt h2, .receipt h3 { font-weight: 700; }
.receipt__head { text-align: center; display: grid; gap: 2px; }
.receipt__brand { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.15; margin-right: -0.22em; }
.receipt__meta { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tear { border: 0; border-top: 2px dashed var(--line); margin: 16px 0; }
.kv { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.kv > :first-child { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; flex-shrink: 0; }
.kv > :last-child { text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.barcode {
  height: 42px;
  margin-top: 16px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 9px, transparent 9px 11px, var(--ink) 11px 12px, transparent 12px 17px);
  opacity: 0.85;
}
.tilt-l { rotate: -1.8deg; }
.tilt-r { rotate: 1.6deg; }
.answer-line { line-height: 1.5; margin-top: 6px; }
.answer { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.stamp {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
  border: 4px solid var(--red-deep);
  border-radius: 6px;
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
  padding: 6px 14px 4px;
  rotate: -9deg;
  mix-blend-mode: multiply;
  opacity: 0.88;
  white-space: nowrap;
}
.stamp--sm { font-size: 1rem; border-width: 3px; outline-width: 1.5px; outline-offset: 2px; padding: 4px 9px 3px; rotate: -6deg; }
.stamp--void { color: var(--ink-soft); border-color: var(--ink-soft); outline-color: var(--ink-soft); }
.stamp--miss { color: var(--ink-soft); border-color: transparent; outline-color: transparent; text-decoration: line-through; rotate: 0deg; font-family: var(--mono); font-weight: 400; letter-spacing: 0.1em; font-size: 0.74rem; }
.stamp--thump { animation: thump 420ms cubic-bezier(0.2, 1.4, 0.3, 1) both; }
@keyframes thump {
  0% { scale: 2.6; opacity: 0; }
  55% { scale: 0.94; opacity: 0.95; }
  100% { scale: 1; opacity: 0.88; }
}

/* ---------- other stuck-in things ---------- */

.sticky {
  position: relative;
  background: linear-gradient(175deg, #fbe07a, var(--yellow) 70%);
  padding: 18px 18px 22px;
  font-family: var(--hand);
  font-size: 1.75rem;
  line-height: 1.02;
  color: var(--biro);
  box-shadow: 0 1px 1px rgb(70 48 20 / 0.2), 0 14px 14px -8px rgb(70 48 20 / 0.35);
  border-bottom-right-radius: 40px 8px;
}
.sticky--pink { background: linear-gradient(175deg, #f9c0d3, var(--pink) 70%); }

.stub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--stub, var(--pink));
  color: var(--ink);
  filter: var(--stuck);
  overflow: hidden;
}
/* punched notches where the stub tears off */
.stub::before, .stub::after { content: ''; position: absolute; right: calc(var(--tear, 84px) - 10px); width: 18px; height: 18px; border-radius: 50%; background: var(--page); }
.stub::before { top: -10px; }
.stub::after { bottom: -10px; }
.stub__main { padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.stub__end { width: var(--tear, 84px); border-left: 2px dashed rgb(36 29 22 / 0.45); display: grid; place-items: center; padding: 8px 6px; font-family: var(--mono); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; line-height: 1.25; }
.stub__small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.stub__big { font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; line-height: 1; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.card {
  position: relative;
  background-color: var(--paper);
  background-image: linear-gradient(transparent 31px, rgb(43 65 179 / 0.22) 31px 32px), linear-gradient(90deg, transparent 0 38px, rgb(214 63 46 / 0.4) 38px 39.5px, transparent 39.5px);
  background-size: 100% 32px, 100% 100%;
  background-position: 0 14px, 0 0;
  padding: 22px 20px 26px 54px;
  filter: var(--stuck);
}
.card__line { font-size: 1.7rem; line-height: 32px; }
.card__sealed { font-family: var(--mono); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); line-height: 32px; }
.step__stamp { display: grid; place-items: center; padding: 16px 0 4px; }
.sticker { width: 74px; height: 74px; filter: drop-shadow(0 2px 2px rgb(70 48 20 / 0.3)); }
.doodle { color: var(--biro); overflow: visible; }

/* ---------- home ---------- */

.hero { display: grid; gap: clamp(30px, 6vw, 56px); align-items: center; padding-top: clamp(8px, 3vw, 30px); }
@media (min-width: 920px) { .hero { grid-template-columns: 1.1fr 0.9fr; } }
.hero__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__note { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--biro); rotate: -2deg; }

.collage { position: relative; width: min(100%, 400px); margin-inline: auto; padding: 34px 14px 128px; }
.collage__stub { position: absolute; top: 4px; right: 16px; width: 70%; rotate: 4deg; --stub: var(--mint); }
.collage__receipt { position: relative; width: 84%; rotate: -2.5deg; margin-top: 44px; }
.collage__note { position: absolute; right: 12px; bottom: 8px; width: 54%; rotate: 3deg; z-index: 4; }
.collage__star { position: absolute; left: 4px; bottom: 104px; rotate: -14deg; z-index: 4; }
.collage .stamp-spot { display: grid; place-items: center; margin: 20px 0 12px; min-height: 60px; }
.collage .stamp { animation: thump 420ms cubic-bezier(0.2, 1.4, 0.3, 1) 900ms both; }

.band { margin-top: clamp(64px, 10vw, 110px); }
.band__head { display: grid; gap: 4px; justify-items: start; }
.steps { display: grid; gap: 34px; margin-top: 34px; align-items: start; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps > :nth-child(2) { margin-top: 46px; }
  .steps > :nth-child(3) { margin-top: 14px; }
}
.step { display: grid; gap: 12px; }
.step__n { font-family: var(--hand); font-size: 2.6rem; line-height: 0.8; color: var(--biro); justify-self: start; border: 2.5px solid var(--biro); border-radius: 50% 46% 52% 48% / 48% 54% 46% 52%; padding: 8px 14px 4px; rotate: -6deg; }
.step h3 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.step p { font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
.step .card__line { font-family: var(--hand); font-size: 1.7rem; line-height: 32px; color: var(--biro); }
.step .card__sealed { font-family: var(--mono); font-size: 0.7rem; line-height: 32px; }
.step--a { rotate: -1.6deg; }
.step--b { rotate: 1.2deg; }
.step--c { rotate: -0.8deg; }

.notebook { margin-top: 30px; rotate: 0.6deg; max-width: 640px; }
.notebook ul { display: grid; gap: 0; }
.notebook li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; min-height: 64px; }
.notebook li svg { width: 28px; height: 28px; margin-top: 4px; }
.notebook h3 { font-family: var(--display); font-weight: 900; font-size: 1.45rem; text-transform: uppercase; line-height: 32px; }
.notebook p { font-size: 0.98rem; line-height: 32px; color: var(--ink-soft); }
.notebook p.notebook__more { margin-top: 6px; font-family: var(--hand); font-size: 1.6rem; line-height: 32px; color: var(--biro); }

.closer { text-align: center; display: grid; gap: 22px; justify-items: center; }

.mine { display: grid; gap: 14px; margin-top: 18px; max-width: 560px; }
.mine a { text-decoration: none; transition: rotate 140ms ease, translate 140ms ease; --stub: var(--yellow); }
.mine a:nth-child(3n + 2) { --stub: var(--pink); rotate: 0.8deg; }
.mine a:nth-child(3n + 3) { --stub: var(--mint); rotate: -0.6deg; }
.mine a:hover { translate: 4px 0; rotate: -0.6deg; }

/* ---------- forms ---------- */

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, .field > legend { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--mono); font-weight: 700; }
.field .hint, .hint { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-soft); line-height: 1.35; }
.input, .select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  background: rgb(36 29 22 / 0.045);
  border: 0;
  border-bottom: 2px dashed var(--ink);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.input::placeholder { color: rgb(36 29 22 / 0.4); font-weight: 400; }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--biro); outline-offset: 0; background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 0.95rem; line-height: 1.35; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--biro); flex-shrink: 0; }
.form-error { font-family: var(--sans); font-weight: 700; color: var(--red-deep); font-size: 0.95rem; }
.form-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 3px; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }
.chip input:checked + span { background: var(--hl); box-shadow: 2px 2px 0 var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--biro); outline-offset: 2px; }
.chip--btn { background: none; border: 2px solid var(--ink); border-radius: 3px; min-height: 44px; padding: 8px 14px; font-family: var(--mono); font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.chip--btn:hover { background: rgb(36 29 22 / 0.06); }
.chip--btn[aria-pressed='true'] { background: var(--hl); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- league ---------- */

.league-head { display: grid; gap: 12px; justify-items: start; }
.tag { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; }
.tag--open { background: var(--yellow); }
.tag--wait { background: var(--pink); }
.tag--done { background: transparent; color: var(--ink-soft); border-color: var(--ink-soft); }

.grid-2 { display: grid; gap: 40px; align-items: start; }
.grid-2 > * { min-width: 0; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 46px; } }

.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; text-align: right; padding: 0 0 8px 8px; }
.table th:first-child, .table td:first-child { text-align: left; padding-left: 0; }
.table td { padding: 9px 0 9px 8px; text-align: right; border-top: 1px dashed var(--line); vertical-align: baseline; }
.table .who { display: flex; gap: 8px; align-items: baseline; font-weight: 700; overflow-wrap: anywhere; }
.table .rank { color: var(--ink-soft); font-weight: 400; min-width: 2ch; }
.table .pts { font-weight: 700; font-size: 1.2rem; }
.table tr.is-me .who span:last-child { background: var(--hl); padding: 0 5px; border-radius: 0.5em 0.15em 0.4em 0.2em; }
.table .first .pts { color: var(--red-deep); }

.invite { max-width: 520px; rotate: -0.8deg; display: grid; gap: 12px; }
.invite h2 { font-family: var(--hand); font-size: 2.2rem; line-height: 0.95; }
.invite__link { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; user-select: all; background: rgb(255 255 255 / 0.5); padding: 8px 10px; }
.invite p:not(.invite__link) { font-family: var(--sans); font-size: 0.92rem; line-height: 1.35; color: var(--ink); }

.tickets { display: grid; gap: 16px; }
.ticket { text-decoration: none; --stub: var(--yellow); --tear: 96px; transition: rotate 140ms ease, translate 140ms ease; }
.ticket:nth-child(odd) { rotate: -0.6deg; }
.ticket:nth-child(even) { rotate: 0.5deg; }
.ticket:hover { translate: 4px -1px; rotate: 0deg; }
.ticket--wait { --stub: var(--pink); }
.ticket--done { --stub: #ddd3bf; }
.ticket--done .stub__main { opacity: 0.8; }

.empty { border: 2px dashed var(--line); border-radius: 6px; padding: 28px 20px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--ink-soft); }
.empty p { font-family: var(--hand); font-size: 1.8rem; line-height: 1; color: var(--biro); max-width: 22ch; }

.settings { border-top: 2px dashed var(--line); padding-top: 20px; font-size: 0.95rem; color: var(--ink-soft); }
.settings summary { cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.settings ul { display: grid; gap: 8px; max-width: 420px; }
.settings li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(70 48 20 / 0.2); }
.settings__body { display: grid; gap: 14px; margin-top: 14px; max-width: 60ch; }

/* ---------- round ---------- */

.countdown { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.countdown--soon { color: var(--red); }

.item { display: grid; gap: 12px; min-width: 0; }
.item__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item__q { font-family: var(--display); font-weight: 900; font-size: 1.55rem; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.item__pts { font-size: 0.74rem; letter-spacing: 0.1em; white-space: nowrap; color: var(--ink-soft); font-weight: 700; }
.item__stamp { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.item__stamp b { color: var(--ink); }

.calls { display: grid; gap: 0; }
.calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-top: 1px dashed var(--line); align-items: center; }
.calls li:first-child { border-top: 0; }
.calls .name { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.calls .said { font-weight: 700; overflow-wrap: anywhere; grid-column: 1; justify-self: start; }
.calls .side { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: grid; gap: 4px; justify-items: end; }
.calls .is-hit .said { background: linear-gradient(100deg, transparent 0.5%, var(--hl) 3%, var(--hl) 95%, transparent 99.5%); padding: 0 6px; border-radius: 0.5em 0.15em 0.4em 0.2em; }
.calls .early { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.calls .gain { font-weight: 700; font-size: 1.15rem; color: var(--red-deep); }

.result { background: var(--paper-2); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.result__line { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.result__answer { font-family: var(--display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; line-height: 1.02; overflow-wrap: anywhere; }
.result .soft { font-family: var(--sans); font-size: 0.92rem; }
.signs { display: flex; gap: 6px; align-items: center; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sign-dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.sign-dot.is-on { background: var(--red-deep); border-color: var(--red-deep); }

.sealed { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.sealed::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border: 2px solid var(--red-deep); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 9px var(--red-deep); }

.roll { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.roll li { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; padding: 5px 10px; background: var(--paper); color: var(--ink-soft); box-shadow: 0 1px 2px rgb(70 48 20 / 0.25); }
.roll li:nth-child(odd) { rotate: -1.5deg; }
.roll li:nth-child(even) { rotate: 1.2deg; }
.roll li.is-in { color: var(--ink); background: var(--mint); }

.savebar { position: sticky; bottom: 0; z-index: 10; margin-inline: calc(var(--gutter) * -1); padding: 18px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgb(239 230 211 / 0), var(--page) 36%); display: grid; gap: 8px; justify-items: center; }
.savebar .btn { width: min(100%, 420px); }
.savebar__note { font-family: var(--hand); font-size: 1.45rem; line-height: 1; color: var(--biro); text-align: center; }

.builder { display: grid; gap: 14px; }
.builder__item { background: var(--paper-2); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.builder__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 3px; }
.seg button { background: none; border: 0; min-height: 40px; padding: 6px 11px; font-family: var(--mono); font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--hl); }

/* ---------- partner portal ---------- */

.doodle--red { color: var(--red); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.4; font-weight: 400; }
.plain { display: grid; gap: 10px; counter-reset: plain; font-family: var(--sans); font-size: 0.98rem; line-height: 1.35; }
.plain li { counter-increment: plain; display: grid; grid-template-columns: 26px 1fr; }
.plain li::before { content: counter(plain) '.'; font-family: var(--mono); font-weight: 700; color: var(--ink-soft); }
.plain li > * { grid-column: 2; }
.plain li > strong { grid-row: 1; }
.steps--four { gap: 30px; }
@media (min-width: 820px) {
  .steps.steps--four { grid-template-columns: repeat(4, 1fr); }
  .steps.steps--four > :nth-child(n) { margin-top: 0; }
  .steps.steps--four > :nth-child(even) { margin-top: 26px; }
}
.collage--partner .collage__stub { --stub: var(--yellow); }
.note { max-width: 520px; rotate: -0.8deg; }
.enquiry { margin-top: 22px; }
.stub--btn { width: 100%; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; --stub: var(--yellow); transition: rotate 140ms ease, translate 140ms ease; }
.stub--btn:hover { translate: 4px 0; rotate: -0.6deg; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 34%) 4ch; gap: 10px; align-items: center; font-size: 0.86rem; }
.bar span { overflow-wrap: anywhere; font-weight: 700; }
.bar b { text-align: right; }
.bar progress { width: 100%; height: 14px; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--ink); background: transparent; }
.bar progress::-webkit-progress-bar { background: transparent; }
.bar progress::-webkit-progress-value { background: var(--hl); border-right: 1.5px solid var(--ink); }
.bar progress::-moz-progress-bar { background: var(--hl); }
.settings li a { color: var(--biro); }

/* ---------- words pages ---------- */

.prose { display: grid; gap: 14px; font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
.prose h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin-top: 12px; }
.prose ul { list-style: square; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--biro); font-weight: 700; }
.draft { background: var(--hl); padding: 10px 14px; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; }

/* ---------- toasts and dialog ---------- */

.toasts { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); translate: -50% 0; z-index: 60; display: grid; gap: 8px; width: min(92vw, 400px); pointer-events: none; }
.toast { background: linear-gradient(175deg, #fbe07a, var(--yellow) 70%); color: var(--ink); font-family: var(--sans); font-size: 0.98rem; font-weight: 700; padding: 14px 16px; rotate: -1deg; box-shadow: 0 1px 1px rgb(70 48 20 / 0.2), 0 14px 18px -6px rgb(70 48 20 / 0.4); animation: toast-in 240ms cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.toast--bad { background: linear-gradient(175deg, #f9c0d3, var(--pink) 70%); }
@keyframes toast-in { from { translate: 0 -18px; opacity: 0; rotate: 3deg; } }

.dialog { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(94vw, 430px); max-height: 94dvh; box-shadow: 0 30px 80px rgb(40 26 8 / 0.55); }
.dialog::backdrop { background: rgb(60 44 24 / 0.6); backdrop-filter: blur(3px); }
.dialog__body { padding: 16px; display: grid; gap: 14px; justify-items: center; }
.dialog__img { width: 100%; max-height: 60dvh; object-fit: contain; }
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.dialog__note { font-family: var(--sans); font-size: 0.86rem; color: var(--ink-soft); text-align: center; }

.loading { display: grid; place-items: center; min-height: 40vh; font-family: var(--hand); font-size: 2rem; color: var(--biro); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
