/* ============================================================
   WSC · Spacing, radii, elevation, borders, motion
   4px base grid. Heritage = restrained radii, soft warm shadows.
   ============================================================ */
:root {
  /* ---- Spacing scale (4px base) ----------------------------- */
  --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.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6rem;     /* 96 */
  --space-12: 8rem;     /* 128 */

  /* ---- Radii (squared heritage feel; soft, never pill-y) ---- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Border widths ---------------------------------------- */
  --border-thin: 1px;
  --border-med: 1.5px;
  --border-thick: 2px;
  --hairline: 1px solid var(--border-hairline);
  --rule: 1px solid var(--border-default);

  /* ---- Elevation (warm-tinted, understated) ----------------- */
  --shadow-xs: 0 1px 2px rgba(33, 22, 19, 0.06);
  --shadow-sm: 0 1px 3px rgba(33, 22, 19, 0.07), 0 1px 2px rgba(33, 22, 19, 0.05);
  --shadow-md: 0 4px 12px rgba(33, 22, 19, 0.08), 0 2px 4px rgba(33, 22, 19, 0.05);
  --shadow-lg: 0 12px 30px rgba(33, 22, 19, 0.10), 0 4px 10px rgba(33, 22, 19, 0.05);
  --shadow-xl: 0 28px 60px rgba(33, 22, 19, 0.14), 0 10px 22px rgba(33, 22, 19, 0.07);
  --shadow-brand: 0 10px 28px rgba(110, 11, 11, 0.22);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --ring-focus: 0 0 0 3px var(--focus-ring);

  /* ---- Motion (measured, no bounce) ------------------------- */
  --ease-standard: cubic-bezier(0.32, 0.72, 0.32, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* @kind other */
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);           /* @kind other */
  --dur-fast: 120ms;        /* @kind other */
  --dur-base: 200ms;        /* @kind other */
  --dur-slow: 360ms;        /* @kind other */
  --dur-deliberate: 600ms;  /* @kind other */
  --transition-base: all var(--dur-base) var(--ease-standard); /* @kind other */

  /* ---- Layout ------------------------------------------------ */
  --container-sm: 42rem;
  --container-md: 60rem;
  --container-lg: 75rem;
  --container-xl: 84rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);  /* @kind spacing */

  /* ---- Z-index ---------------------------------------------- */
  --z-base: 0;        /* @kind other */
  --z-raised: 10;     /* @kind other */
  --z-sticky: 100;    /* @kind other */
  --z-overlay: 1000;  /* @kind other */
  --z-modal: 1100;    /* @kind other */
  --z-toast: 1200;    /* @kind other */
}
