/* Dormir 2.0 tokens. Dark glass that recedes; saturated colour is reserved for light
   the devices emit and for marks that mean something. */
@property --live {
  syntax: "<color>";
  inherits: true;
  initial-value: #9165ff;
}

:root {
  color-scheme: dark;

  /* Ground and surfaces */
  --bg: #090b12;
  --sidebar: #111522;
  --card: #111522;
  --elevated: #191e2c;
  --raised: #20263a;
  --ink: #090b12;

  /* Ink */
  --text: #f5f7ff;
  --muted: #949cb0;
  --faint: #7d86a0;

  /* Accents: violet selects and acts, cyan is live, magenta is music */
  --violet: #9165ff;
  --violet-ink: #b9a2ff;
  --cyan: #00ddf5;
  --magenta: #ff4ac8;
  --accent: var(--violet);
  --live: #9165ff;

  /* State marks */
  --ok: #3ee0a1;
  --warn: #ffbf5a;
  --bad: #ff6b7d;
  --bad-ink: #ffa3ae;

  /* Glass */
  --glass: rgba(17, 21, 34, 0.78);
  --glass-strong: rgba(17, 21, 34, 0.92);
  --glass-solid: #111522;
  --glass-raised: rgba(25, 30, 44, 0.86);
  --blur: blur(22px) saturate(150%);
  --blur-light: blur(10px);
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.07);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-press: rgba(255, 255, 255, 0.1);
  --well: rgba(3, 5, 10, 0.42);

  /* Depth */
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --lift: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25);
  --sheet-lift: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--violet);

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --radius: var(--r-sm);
  --radius-glass: var(--r-lg);
  --radius-chip: var(--r-xs);

  /* Layout */
  --sidebar-width: 248px;
  --sidebar-rail: 72px;
  --control-width: 384px;
  --bottom-nav: 64px;
  --space: 24px;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.2, 0.85, 0.25, 1.1);
  --fast: 140ms;
  --med: 240ms;
  --slow: 420ms;
  transition: --live 420ms ease;
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--glass-solid); --glass-strong: var(--glass-solid); --glass-raised: var(--elevated); --blur: none; --blur-light: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
}
