/* Playrest design tokens — lifted verbatim from the design payload's
   Design System.dc.html (§9.1 of the copy deck / payload README §5).
   Do not hand-tune these values; if a value looks wrong, check the payload
   before changing this file. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* Warm neutrals — the paper (light, default) */
  --paper: #F7F3EC;
  --card: #FFFDF8;
  --sink: #EFE9DE;
  --ink: #26221D;
  --ink-2: #544E45;
  --ink-3: #8A8377;
  --line: #E4DDD0;
  --line-strong: #D5CCBB;

  /* Accent — ember terracotta (the only saturated color) */
  --accent: #BF572E;
  --accent-ink: #9C4420;
  --accent-wash: #F6E7DD;
  --accent-fg: #fff;

  /* Status — used sparingly, never decoratively */
  --ok: #3F7A57;
  --warn: #9C7420;
  --danger: #A23B2C;

  /* Elevation — warm-tinted, whisper */
  --shadow-sm: 0 1px 2px rgba(58,45,32,.06), 0 1px 1px rgba(58,45,32,.04);
  --shadow-md: 0 4px 14px rgba(58,45,32,.08), 0 1px 3px rgba(58,45,32,.05);
  --shadow-lg: 0 18px 44px rgba(58,45,32,.12), 0 4px 12px rgba(58,45,32,.06);
  --glow: 0 8px 20px rgba(191,87,46,.26);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 999px;

  /* Type families */
  --display: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Source Code Pro", monospace;
}

body[data-theme="dark"] {
  --paper: #211D18;
  --card: #2B2621;
  --sink: #171410;
  --ink: #F1EBDF;
  --ink-2: #C7BEAF;
  --ink-3: #948B7D;
  --line: #39332B;
  --line-strong: #4A4238;

  --accent: #CF6537;
  --accent-ink: #ED9E70;
  --accent-wash: #3A2A20;
  --accent-fg: #fff;

  --ok: #66A87F;
  --warn: #C79A4E;
  --danger: #D2705F;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 18px rgba(0,0,0,.34);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.46);
  --glow: 0 8px 22px rgba(207,101,55,.4);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }

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