/* ============================================================
   SecDim — Spacing, sizing, radii, z-index
   4px base grid.
   ============================================================ */
:root {
  --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 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */
  --space-32: 8rem;     /* 128 */

  /* -- Radii -- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);
  --radius-control: var(--radius-md);

  /* -- Container widths -- */
  --width-prose: 68ch; /* @kind spacing */
  --width-content: 1120px; /* @kind spacing */
  --width-wide: 1280px; /* @kind spacing */

  /* -- Control heights -- */
  --control-sm: 32px; /* @kind spacing */
  --control-md: 40px; /* @kind spacing */
  --control-lg: 48px; /* @kind spacing */

  /* -- Z-index scale -- */
  --z-base: 0; /* @kind other */
  --z-sticky: 100; /* @kind other */
  --z-dropdown: 200; /* @kind other */
  --z-overlay: 300; /* @kind other */
  --z-modal: 400; /* @kind other */
  --z-toast: 500; /* @kind other */
}
