/* ============================================================
   Munchkin — Spacing, radius, elevation & motion tokens
   4px base grid. Generous, calm whitespace.
   ============================================================ */
:root {
  /* Spacing scale (4px base) */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius — 16px default; rounded & soft throughout */
  --radius-sm:   10px;   /* chips, small controls */
  --radius:      16px;   /* default — cards, inputs, buttons */
  --radius-lg:   22px;   /* large cards, sheets */
  --radius-xl:   28px;   /* modals, hero panels */
  --radius-pill: 999px;  /* status pills, tags, toggles */

  /* Minimum tap target (mobile) */
  --tap-min: 44px; /* @kind spacing */

  /* Elevation — soft, warm-tinted shadows (never harsh) */
  --shadow-xs: 0 1px 2px rgba(50, 44, 58, 0.06);
  --shadow-sm: 0 2px 6px rgba(50, 44, 58, 0.07);
  --shadow-md: 0 6px 18px rgba(50, 44, 58, 0.10);
  --shadow-lg: 0 16px 40px rgba(50, 44, 58, 0.16);
  --shadow-focus: 0 0 0 3px rgba(44, 106, 94, 0.30);  /* focus ring halo */

  /* Layout */
  --content-max: 1200px;   /* @kind spacing */
  --sidebar-w:   264px;    /* @kind spacing */
  --topbar-h:    64px;     /* @kind spacing */
  --bottomnav-h: 64px;     /* @kind spacing */

  /* Motion — gentle, never jarring */
  --ease-soft:  cubic-bezier(0.32, 0.72, 0.32, 1); /* @kind other */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);     /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur:        200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */
}

:root[data-theme="dark"] {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-focus: 0 0 0 3px rgba(143, 211, 197, 0.34);
}
