/* Design tokens. Single source of truth: docs/SPEC.md §10.
   Dark-first. Uniform gap + radius is what makes a bento look designed. */

:root {
  --unit: 80px;          /* px per box; square = 4 units ≈ 320px */
  --gap: 12px;
  --radius: 14px;
  --radius-sm: 10px;
  /* Widgets get the Android-style "expressive" container: a larger radius and
     more padding than chrome, tinted per widget type. */
  --widget-radius: 24px;
  --widget-pad: 1.3846em;
  --guide: rgba(255, 255, 255, 0.08);
  --guide-square: rgba(255, 255, 255, 0.18);
  --dash: 3px dashed rgba(255, 255, 255, 0.28);
  --accent: #7c9cff;
  --danger: #ff6b6b;
  --surface: #111214;
  --surface-raised: #1a1c20;
  --fg: #e8eaee;
  --fg-muted: #8b9099;

  --motion: 120ms;
  --dock-motion: 260ms;
  --dock-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wallpaper-veil: rgba(9, 11, 15, 0.62);

  color-scheme: dark;
}

html[data-theme="light"] {
  --surface: #f2f3f6;
  --surface-raised: #ffffff;
  --fg: #16181d;
  --fg-muted: #5f6572;
  --guide: rgba(22, 24, 29, 0.08);
  --guide-square: rgba(22, 24, 29, 0.14);
  --dash: 3px dashed rgba(22, 24, 29, 0.22);
  --accent: #3b63e0;
  --danger: #d33a3a;
  --wallpaper-veil: rgba(242, 243, 246, 0.55);

  color-scheme: light;
}

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