/*
 * Collage Maker design tokens. Light, warm and precise: warm neutral grounds, ink type, one vivid
 * orange-red accent used for actions, selection and focus, never as decoration.
 * Contrast pairs are verified by tests/unit/tokens.test.ts (WCAG AA).
 */
:root {
  color-scheme: light;

  /* Colour */
  --ground: #f8f5f1;
  --surface: #ffffff;
  --subtle: #f2ede7;
  --hairline: #e7e1d9;
  --line: #8a837a;
  --ink: #1f1b17;
  --graphite: #5e574f;
  --accent: #d63f14;
  --accent-hover: #c2380f;
  --accent-active: #ac3009;
  --on-accent: #ffffff;
  --accent-tint: #fdeee8;
  /* Accent used as text on light surfaces (links, active labels). */
  --accent-text: #b8380f;
  --danger: #b42318;
  --checker-a: #ffffff;
  --checker-b: #ece7e1;

  /* Type */
  --font-ui: 'Instrument Sans Variable', system-ui, 'Segoe UI', -apple-system, sans-serif;
  --fs-xs: 12px;
  --fs-s: 13px;
  --fs-m: 14px;
  --fs-l: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --lh-tight: 1.2;
  --lh: 1.45;

  /* Space: 4-point rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;

  /* Shape */
  --r-s: 6px;
  --r-m: 9px;
  --r-l: 14px;
  --r-pill: 999px;

  /* Elevation: floating elements and the collage only */
  --shadow-collage: 0 1px 2px rgb(31 27 23 / 0.06), 0 10px 30px rgb(31 27 23 / 0.1);
  --shadow-float: 0 1px 2px rgb(31 27 23 / 0.08), 0 12px 32px rgb(31 27 23 / 0.16);

  /* Motion: quick, no bounce */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 120ms;
  --t: 180ms;

  /* Comfortable hit target, even at 320 px */
  --hit: 36px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t: 0ms;
  }
}
