/* ============================================
   RenDS — Primitive Spacing Tokens
   ============================================
   Based on 8pt grid system (Apple HIG).
   All spacing derives from multiples of 8,
   with 4px as a half-unit for tight spaces.

   Usage: margins, padding, gap, positioning.
   ============================================ */

:root {
  /* ─── Base Unit ─── */
  --space-unit: 0.5rem; /* 8px — the fundamental unit */

  /* ─── Scale ─── */
  --space-0:   0;
  --space-px:  1px;
  --space-0-5: 0.125rem;  /* 2px  — hairline */
  --space-1:   0.25rem;   /* 4px  — half unit, tight */
  --space-2:   0.5rem;    /* 8px  — 1 unit */
  --space-3:   0.75rem;   /* 12px — 1.5 units */
  --space-4:   1rem;      /* 16px — 2 units, standard */
  --space-5:   1.25rem;   /* 20px — 2.5 units */
  --space-6:   1.5rem;    /* 24px — 3 units */
  --space-7:   1.75rem;   /* 28px — 3.5 units */
  --space-8:   2rem;      /* 32px — 4 units */
  --space-9:   2.25rem;   /* 36px */
  --space-10:  2.5rem;    /* 40px — 5 units */
  --space-12:  3rem;      /* 48px — 6 units */
  --space-14:  3.5rem;    /* 56px — 7 units */
  --space-16:  4rem;      /* 64px — 8 units */
  --space-20:  5rem;      /* 80px — 10 units */
  --space-24:  6rem;      /* 96px — 12 units */
  --space-32:  8rem;      /* 128px */
  --space-40:  10rem;     /* 160px */
  --space-48:  12rem;     /* 192px */
  --space-56:  14rem;     /* 224px */
  --space-64:  16rem;     /* 256px */

  /* ─── Aliases (fractional) ─── */
  --space-0-25: 0.0625rem; /* 1px */
  --space-1-5:  0.375rem;  /* 6px */
}
