/* ============================================================
   eazy.day — SPACING, RADIUS, SHADOW, MOTION
   Editorial pacing: generous, calm, unhurried. The scale is
   built on a 4px base but favours large steps — whitespace is
   doing the work.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base, editorial gaps) ---- */
  --space-0:   0;
  --space-1:   0.25rem;   /* 4  */
  --space-2:   0.5rem;    /* 8  */
  --space-3:   0.75rem;   /* 12 */
  --space-4:   1rem;      /* 16 — legacy --s-2 */
  --space-5:   1.5rem;    /* 24 */
  --space-6:   2rem;      /* 32 — legacy --s-3 */
  --space-8:   3rem;      /* 48 */
  --space-10:  4rem;      /* 64 — legacy --s-4 */
  --space-12:  6rem;      /* 96 */
  --space-16:  8rem;      /* 128 — section rhythm */

  /* Editorial semantic gaps */
  --gap-inline:   var(--space-3);
  --gap-stack:    var(--space-5);
  --gap-section:  var(--space-16);
  --measure:      64ch;   /* longform reading measure */
  --measure-narrow: 34rem;

  /* ---- Radii (soft, never sharp, never pill-happy) ---- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;    /* the signature soft card corner */
  --radius-xl:   28px;
  --radius-full: 999px;

  /* ---- Shadows (low, warm, atmospheric — like morning light) ---- */
  --shadow-none: none;
  --shadow-hair:  0 1px 0 oklch(0.22 0.02 50 / 0.04);
  --shadow-sm:   0 1px 2px oklch(0.30 0.03 40 / 0.05),
                 0 1px 1px oklch(0.30 0.03 40 / 0.04);
  --shadow-md:   0 4px 14px oklch(0.30 0.04 40 / 0.06),
                 0 1px 3px oklch(0.30 0.04 40 / 0.05);
  --shadow-lg:   0 12px 40px oklch(0.28 0.04 40 / 0.09),
                 0 3px 10px oklch(0.28 0.04 40 / 0.05);
  /* Focus/inset for inputs */
  --shadow-inset: inset 0 1px 2px oklch(0.30 0.03 40 / 0.05);

  /* ---- Motion — "like morning fog lifting" ----
     Gentle, unhurried, physically plausible. No elastic,
     no bounce, no cyberpunk snap. */
  --ease-dawn:   cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-inout:  cubic-bezier(0.45, 0, 0.2, 1); /* @kind other */

  --dur-fast:    140ms; /* @kind other */
  --dur-base:    240ms; /* @kind other */
  --dur-slow:    420ms; /* @kind other */
  --dur-drift:   720ms; /* @kind other */

  /* ---- Z ---- */
  --z-base: 1; /* @kind other */
  --z-raised: 10; /* @kind other */
  --z-overlay: 100; /* @kind other */
  --z-modal: 1000; /* @kind other */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms; /* @kind other */
    --dur-base: 0ms; /* @kind other */
    --dur-slow: 0ms; /* @kind other */
    --dur-drift: 0ms; /* @kind other */
  }
}
