/* hushmallow design system — colour, space, shape, depth and motion tokens.
   Typography lives in type.css (faces + --type-* tokens) and type.js.
   Night-ink surfaces let the Mallows and realms carry the colour; controls
   stay quiet and precise.  One warm accent ("moonmilk gold") marks the
   primary action everywhere. */

:root {
  /* surfaces */
  --ink-0: #0a0818;
  --ink-1: #141130;
  --ink-2: #1e1a44;
  --ink-3: #2a2560;
  --glass: rgba(20, 16, 48, 0.64);   /* ≥4.5:1 for 15px chip text over the brightest realm (Sunpop) */
  --glass-strong: rgba(16, 12, 40, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* text */
  --text-1: #f7f3ff;
  --text-2: #cdc6ea;
  --text-3: #918ab6;
  --text-on-accent: #23140a;

  /* accent + feedback */
  --accent: #ffd98a;
  --accent-2: #ffb86b;
  --accent-glow: rgba(255, 217, 138, 0.35);
  --calm: #8fe3ff;
  --care: #ff9ccf;
  --danger: #ff8a8a;

  /* type — the old names, kept as aliases of the type.css families so older
     modules keep working; new code uses --ff-* / --type-* (type.css). */
  --font-display: var(--ff-voice, ui-rounded, system-ui, sans-serif);
  --font-ui: var(--ff-ui, system-ui, -apple-system, "Segoe UI", sans-serif);
  --fs-hero: clamp(34px, 9vw, 52px);
  --fs-h1: clamp(26px, 6.6vw, 34px);
  --fs-h2: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 13px;

  /* space (4pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --gutter: 20px;

  /* shape */
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px;

  /* depth */
  --shadow-1: 0 6px 18px rgba(4, 2, 16, 0.35);
  --shadow-2: 0 18px 50px rgba(4, 2, 16, 0.5);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms; --t-med: 280ms; --t-slow: 620ms;

  /* safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-med: 120ms; --t-slow: 200ms; }
}

*, *::before, *::after { box-sizing: border-box; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
