/* ============================================================
   Impossible Moments — Spacing, Sizing & Layout Tokens
   A 4px base rhythm. Sections breathe with cinematic margins.
   ============================================================ */

:root {
  /* ---- Space scale (4px base) ---- */
  --im-space-0: 0;
  --im-space-1: 4px;
  --im-space-2: 8px;
  --im-space-3: 12px;
  --im-space-4: 16px;
  --im-space-5: 20px;
  --im-space-6: 24px;
  --im-space-8: 32px;
  --im-space-10: 40px;
  --im-space-12: 48px;
  --im-space-16: 64px;
  --im-space-20: 80px;
  --im-space-24: 96px;
  --im-space-32: 128px;
  --im-space-40: 160px;

  /* ---- Section rhythm ---- */
  --im-section-pad-y: clamp(80px, 12vh, 160px);
  --im-section-pad-x: max(40px, 6vw);
  --im-content-max: 1200px;
  --im-prose-max: 720px;

  /* ---- Radii — restrained. The brand is mostly hard-edged. ---- */
  --im-radius-none: 0;
  --im-radius-xs: 2px;
  --im-radius-sm: 4px;     /* default control radius */
  --im-radius-md: 8px;     /* image frames, large cards */
  --im-radius-pill: 999px; /* land pills, chips */
  --im-radius-circle: 50%; /* the golden circle motif */

  /* ---- Border widths ---- */
  --im-stroke-hair: 1px;    /* @kind other */
  --im-stroke: 1px;         /* @kind other */
  --im-stroke-accent: 2px;  /* @kind other */

  /* ---- Control sizing ---- */
  --im-control-h-sm: 36px;
  --im-control-h-md: 44px;
  --im-control-h-lg: 56px;

  /* ---- Z-index ladder ---- */
  --im-z-base: 1;       /* @kind other */
  --im-z-raised: 10;    /* @kind other */
  --im-z-sticky: 100;   /* @kind other */
  --im-z-overlay: 1000; /* @kind other */
  --im-z-grain: 9000;   /* @kind other */
  --im-z-gate: 9999;    /* @kind other */
}
