/* Forge — spacing, radius, shadow, motion.
   Apple-clean: generous radii, hairline borders, very soft layered shadows. */
:root {
  /* ── Spacing scale (4px base) ── */
  --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;
  --space-24: 96px;

  /* ── Radii — card 22px is the Forge signature; inputs 10px; pill 999px ── */
  --radius-xs: 8px;
  --radius-sm: 10px;     /* inputs, small controls */
  --radius: 14px;        /* default panels */
  --radius-card: 22px;   /* signature card rounding */
  --radius-lg: 20px;
  --radius-xl: 28px;     /* modals, large surfaces */
  --radius-pill: 999px;

  /* ── Soft shadow system — two-layer, low alpha, blue-tinted black ──
     Favour hairline border + soft shadow over heavy elevation. */
  --shadow-xs: 0 1px 2px rgba(10, 10, 26, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 10, 26, 0.05);
  --shadow-soft: 0 1px 3px rgba(10, 10, 26, 0.04), 0 12px 32px rgba(10, 10, 26, 0.06);  /* the signature */
  --shadow-card: 0 1px 3px rgba(10, 10, 26, 0.04), 0 12px 32px rgba(10, 10, 26, 0.06);  /* alias — default card elevation */
  --shadow-md: 0 8px 24px rgba(10, 10, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 10, 26, 0.18);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);

  /* ── Motion — quick, Apple-style easing. Fades & gentle slides, no bounce. ── */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);      /* @kind other */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1); /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 180ms;   /* @kind other */
  --dur-slow: 240ms;   /* @kind other */

  /* ── Blur — translucent panels / overlays ── */
  --blur-panel: 8px;

  /* ── Control heights ── */
  --control-sm: 26px;
  --control: 30px;
  --control-md: 32px;
  --control-lg: 40px;
}

[data-theme="dark"] {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}
