/* eighthdoor — Spacing, radius, shadow, layout tokens.
   The system is built on a 4px grid. The product reads as flat and airy:
   hairline borders do most of the work; shadows are reserved and soft. */

:root {
  /* Spacing scale (4px grid) */
  --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;

  /* Corner radii (from the components in the style sheet) */
  --radius-xs: 2px;   /* tags, micro chips */
  --radius-sm: 4px;   /* inputs, cards */
  --radius-md: 5px;   /* buttons */
  --radius-lg: 6px;   /* filter chips, larger cards */
  --radius-xl: 12px;  /* sheets, modals */
  --radius-pill: 100px;
  --radius-avatar: 24px;

  /* Hairline borders */
  --border-width: 1px;
  --border-hairline: 0.5px;

  /* Shadows — soft, low-contrast, warm-neutral */
  --shadow-sm: 0 1px 2px rgba(32, 36, 43, 0.06);
  --shadow-md: 0 4px 16px rgba(32, 36, 43, 0.08);
  --shadow-lg: 0 12px 40px rgba(32, 36, 43, 0.12);
  --shadow-focus: 0 0 0 3px rgba(183, 131, 125, 0.30); /* rose focus ring */

  /* Controls */
  --control-height: 48px;
  --control-height-sm: 36px;
  --control-pad-x: 16px;

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;

  /* Motion — restrained, ease-out, no bounce */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 320ms; /* @kind other */
}
