/* ============================================================
   Bettermode — Spacing, radii, shadows, layout
   The brand is geometric and toggle-driven: pill radii dominate,
   surfaces are crisp with soft elevation.
   ============================================================ */

: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;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---- Radii — the toggle is a pill, so pills lead ---- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 999px;   /* the toggle shape */
  --radius-circle: 50%;

  /* ---- Border widths ---- */
  --border-width: 1.5px;
  --border-width-strong: 2px;

  /* ---- Shadows — soft, low-contrast elevation ---- */
  --shadow-xs: 0 1px 2px rgba(24,35,66,0.06);
  --shadow-sm: 0 2px 6px rgba(24,35,66,0.08);
  --shadow-md: 0 8px 24px rgba(24,35,66,0.10);
  --shadow-lg: 0 18px 48px rgba(24,35,66,0.14);
  --shadow-focus: 0 0 0 3px rgba(154,104,255,0.35);

  /* ---- Layout ---- */
  --container-max: 1200px;
  --gutter: var(--space-6);

  /* ---- Motion — calm, confident easing; no bounces ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 320ms; /* @kind other */
}
