/* Wordpup site — tokens copied from soul.md → Brand Tokens (the app's DesignSystem.swift).
   Light-first; dark follows the system. Ink is never pure black. */
@font-face { font-family: "Titan One"; src: url("/fonts/TitanOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Reddit Mono"; src: url("/fonts/RedditMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --arena: #EAF2FA; --surface: #F7FAFD; --card: #FFFFFF;
  --ginger: #E27A3F; --tunnel: #2F5BD3; --clean: #2E9E6B; --fault: #D8433B;
  --contact: #F2C94C; --ink: #1C2230; --muted: #5F6878; --tile: #FFF8EE; --tile-ink: #1C2230;
  --on-accent: #FFFFFF;
  /* Text colours, measured like the app's: ink on ginger (white is 2.96:1), tunnel-blue TEXT that
     lightens in dark mode, and the linking letter on a cream tile (tiles stay cream). */
  --on-ginger: #1C2230; --tunnel-text: #2F5BD3; --tile-link: #2F5BD3;
  --fault-text: #B8352E; --clean-text: #237A53;
  --shadow: 0 4px 12px rgba(28, 34, 48, 0.10);
  --r-card: 18px; --r-tile: 12px;
  --display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --mono: "Reddit Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --arena: #121826; --surface: #182033; --card: #1F2940; --ink: #EDF1F7; --muted: #98A2B5;
    --ginger: #E68C5A; --tunnel: #486FD8; --clean: #35B67B; --fault: #DD5B55; --shadow: 0 4px 12px rgba(0,0,0,0.35);
    --tunnel-text: #7B96E6; --fault-text: #E8776F; --clean-text: #35B67B; }
}

* { box-sizing: border-box; }
/* `hidden` must win over any display rule (.btn is flex, and flex beats the browser default). */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--arena); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.45;
  -webkit-text-size-adjust: 100%; }
a { color: var(--tunnel-text); font-weight: 700; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
header.top { padding: 16px 0 4px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark { font-family: var(--display); font-size: 30px; color: var(--ink); text-decoration: none; letter-spacing: 0.3px; }
.mark span { color: var(--ginger); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0.2em 0 0.35em; }
h1 { font-size: clamp(30px, 8vw, 42px); }
h2 { font-size: 26px; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--on-accent);
  background: var(--tunnel); border-radius: 999px; padding: 4px 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0;
  border-radius: 12px; background: var(--ginger); color: var(--on-ginger); font: 700 18px var(--body); cursor: pointer;
  text-decoration: none; margin: 8px 0; padding: 0 16px; }
.btn.blue { background: var(--tunnel); color: var(--on-accent); }
.btn.ghost { background: var(--card); color: var(--tunnel-text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tunnel) 35%, transparent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--contact); outline-offset: 2px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.pip { width: 120px; height: 120px; object-fit: contain; flex: none; }
.big { font-family: var(--display); font-size: clamp(44px, 14vw, 64px); line-height: 1; }
.mono { font-family: var(--mono); font-weight: 700; }
ul.rules { padding-left: 1.1em; margin: 8px 0; }
ul.rules li { margin: 4px 0; }
.note { display: flex; gap: 8px; color: var(--muted); font-weight: 700; font-size: 15px; margin: 12px 0; }
.badge-soon { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--ink); color: var(--arena);
  border-radius: 12px; padding: 8px 16px; font-weight: 700; line-height: 1.2; }
.badge-soon small { font-weight: 400; font-size: 13px; }
footer { padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Headings focused by script (tabindex=-1) move the screen-reader cursor; no ring needed. */
h1[tabindex="-1"]:focus { outline: none; }
