/* Play in Phone · Bezel / Console v3 tokens
 * token -> role
 *   --color-console .. -4        fill   (ground ladder: ground, case, raised key, key top/hover)
 *   --color-console-line         line   (hairline on dark)
 *   --color-console-lip          fill   (box-shadow value: 1px top highlight)
 *   --shadow-case / -raise       fill   (box-shadow values: drop)
 *   --color-console-glow         fill   (top lamp)
 *   --color-console-text/-muted  text   (on console ladder)
 *   --color-accent               fill   (power LED pink; text on dark ok)
 *   --color-accent-deep          fill   (pressed / edge)
 *   --color-accent-text          text   (accent as text on LIGHT paper only)
 *   --color-led-glow             fill   (box-shadow value)
 *   --color-led-amber            fill / focus (played, new, focus ring on dark)
 *   --color-ink / --color-paper  text / fill (light pages; dark scopes re-point them)
 *   --color-rule                 line
 *   --color-focus(-dark)         focus
 * Text on --color-accent, mint and lavender fills is always --color-ink.
 * Accent as text: on dark = --color-accent, on light = --color-accent-text.
 * Dark scopes (body.pip-home, body[data-pip-frame], body.pip-prose) re-point paper/ink/rule/focus.
 * Body/font-smoothing rules live in site.css, not here.
 */
@font-face {
  font-family: "Doto";
  src: url("../assets/fonts/doto-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* light paper (store / account / looks) */
  --color-paper: oklch(94.8% 0.003 326);
  --color-paper-2: oklch(97.4% 0.002 326);
  --color-paper-3: oklch(90.7% 0.006 318);
  --color-ink: oklch(19.4% 0.025 337);
  --color-ink-2: var(--color-ink);
  --color-muted: oklch(40.5% 0.019 298);
  --color-rule: oklch(81.7% 0.012 313);
  --color-dim: oklch(46% 0.018 302);
  --color-well: oklch(99% 0.003 326);

  /* accent + LEDs */
  --color-accent: oklch(68% 0.223 3);
  --color-accent-deep: oklch(58.7% 0.211 5);
  --color-accent-text: oklch(50% 0.2 5);
  --color-led-glow: 0 0 10px oklch(68% 0.223 3 / 0.55);
  --color-led-amber: oklch(82% 0.16 80);
  --color-mint: oklch(82% 0.2 150);
  --color-lavender: oklch(76% 0.2 320);
  --color-coral-band: oklch(90.9% 0.053 354);

  /* console ladder */
  --color-console: oklch(12.5% 0.016 337);
  --color-console-2: oklch(19% 0.026 338);
  --color-console-3: oklch(26% 0.034 339);
  --color-console-4: oklch(34% 0.04 340);
  --color-console-line: oklch(100% 0 0 / 0.09);
  --color-console-lip: inset 0 1px 0 oklch(100% 0 0 / 0.08);
  --shadow-case: 0 14px 28px -14px oklch(0% 0 0 / 0.7);
  --shadow-raise: 0 10px 24px -12px oklch(0% 0 0 / 0.6);
  --color-console-glow: oklch(48% 0.14 350 / 0.38);
  --color-console-text: oklch(96% 0.004 337);
  --color-console-muted: oklch(78% 0.017 335);

  /* focus */
  --color-focus: var(--color-ink);
  --color-focus-dark: var(--color-led-amber);
  --focus-ring-outline: 2px solid var(--color-focus);
  --focus-ring-offset: 3px;

  /* retired names, aliased (never deleted) */
  --color-accent-2: var(--color-accent-deep);
  --color-accent-3: var(--color-accent);
  --color-cyan-band: var(--color-paper-3);
  --color-blob-1: transparent;
  --color-blob-2: transparent;
  --color-blob-3: transparent;
  --color-blob-4: transparent;
  --pour-sun: oklch(86% 0.18 95);
  --pour-sea: oklch(66% 0.18 235);
  --pour-coral: oklch(68% 0.24 18);
  --pour-leaf: oklch(72% 0.16 150);
  --pour-violet: oklch(74% 0.16 305);
  --pour-ink: oklch(32% 0.06 250);
  --pour-glass: oklch(98% 0.008 95 / 0.42);
  --pour-lip: oklch(20% 0.012 250 / 0.28);
  --pour-hatch: oklch(20% 0.012 250 / 0.18);
  --pour-sheen: oklch(100% 0 0 / 0.28);

  /* functional */
  --color-gold: oklch(80% 0.15 85);
  --color-gold-deep: oklch(55% 0.11 80);
  --color-danger: oklch(62% 0.22 25);
  --color-success: oklch(72% 0.16 150);

  /* fonts */
  --font-display: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-label: "Doto", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lg: 1.3125rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2.25rem, 9vw, 3.5rem);
  --text-hero: clamp(2.75rem, 12vw, 5.25rem);
  --text-display: var(--text-lg);
  --measure: 62ch;
  --label-tracking: 0.06em;

  /* spacing */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --page-max: 72rem;
  --shell: var(--page-max);
  --section-gap: var(--space-xl);
  --sec-gap: clamp(28px, 6vw, 56px);

  /* shape */
  --radius-card: 14px;
  --radius-pill: 12px;
  --radius-input: 12px;
  --radius-key: 10px;
  --key-edge: 3px;
  --rule-hair: 1px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --dur-key: 90ms;
  --dur-hover: 160ms;

  --z-base: 0;
  --z-bar: 20;
  --z-nav: 40;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
