/* Tilt Together — Split Signal design tokens v1.0 (August 2026)
   The web rendering of the same system as
   App/TiltTogether/Sources/Brand/Theme.swift. Change one, change both.

   Dark only, deliberately. The game is played on a lit board in a dark room,
   and every sibling site (Mute, Zenith) is dark too. */

:root {
  /* colour */
  --tt-ground: #12152a;
  --tt-surface: #1b2040;
  --tt-surface-raised: #242b52;
  --tt-field: #0e1130;

  --tt-ink: #edeffb;
  --tt-ink-dim: #8d93b8;

  --tt-a: #ff8f5e;           /* Player A — Coral, top of the phone */
  --tt-a-soft: rgba(255, 143, 94, 0.14);
  --tt-b: #45e0c4;           /* Player B — Mint, bottom of the phone */
  --tt-b-soft: rgba(69, 224, 196, 0.14);
  --tt-hazard: #ff5e7a;

  --tt-line: rgba(237, 239, 251, 0.10);
  --tt-line-strong: rgba(237, 239, 251, 0.18);

  /* type — Nunito is the web stand-in for SF Pro Rounded, which is not a
     licensable web font. Both are geometric rounded sans; the voice survives. */
  --tt-font-display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --tt-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tt-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --tt-size-hero: clamp(40px, 9vw, 68px);
  --tt-size-title: clamp(26px, 4.5vw, 36px);
  --tt-size-heading: 21px;
  --tt-size-body: 16px;
  --tt-size-small: 14px;
  --tt-size-kicker: 11px;

  /* space — 4pt base, same as the app */
  --tt-space-1: 4px;
  --tt-space-2: 8px;
  --tt-space-3: 12px;
  --tt-space-4: 16px;
  --tt-space-5: 24px;
  --tt-space-6: 32px;
  --tt-space-7: 48px;
  --tt-space-8: 72px;

  /* radius */
  --tt-radius-control: 14px;
  --tt-radius-card: 18px;
  --tt-radius-pill: 999px;

  /* motion */
  --tt-motion: 220ms cubic-bezier(0.2, 0, 0, 1);
  --tt-motion-spring: 340ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tt-motion: 1ms;
    --tt-motion-spring: 1ms;
  }
}
