/*
 * Stimeo UI — spacing, radii, shadows, layout, motion tokens.
 */

:root {
  /* ── Spacing scale (4px base) ────────────────────────────────────── */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */

  /* ── Radii ───────────────────────────────────────────────────────── */
  --radius-xs: 0.25rem;  /* 4  — chips, code inline */
  --radius-sm: 0.375rem; /* 6  — buttons, inputs */
  --radius-md: 0.5rem;   /* 8  — cards, code blocks */
  --radius-lg: 0.75rem;  /* 12 — surfaces, demo cards */
  --radius-xl: 1rem;     /* 16 — hero panels */
  --radius-pill: 999px;  /* tags, switches, badges */

  /* ── Borders ─────────────────────────────────────────────────────── */
  --border-width: 1px;
  --border-width-strong: 2px;

  /* ── Shadows (soft, low, cool-tinted) ────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 50px -12px rgba(15, 23, 42, 0.25);
  /* Vital-tinted glow — for primary CTAs / "alive" emphasis only. */
  --shadow-vital: 0 8px 24px -8px rgba(var(--vital-rgb), 0.45);

  /* ── Layout ──────────────────────────────────────────────────────── */
  --sidebar-width: 16rem;
  --content-max: 56rem;
  --reading-max: 42rem;

  /* ── Motion (lively but controlled — Stimeo "brings HTML to life") ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */ /* subtle overshoot */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 180ms; /* @kind other */
  --duration-slow: 280ms; /* @kind other */
}
