/* ==========================================================================
   SpacedOut Design Tokens
   Derived from Sources/SpacedOutApp/Design/Theme.swift & reference systems
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii (Mac squircle & bento proportions from Woday #2 & NewMinds #4) */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --radius-pill: 999px;

  /* Spacing & Container */
  --container-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-py: clamp(64px, 8vw, 112px);

  /* Motion (Josh #3 color swap + Woday #2 bounce-free spring curve) */
  --swap-duration: 350ms;
  --swap-ease: cubic-bezier(0.41, 0.1, 0.13, 1);
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Theme (Default — matches SpacedOut widget.png, alert.png & Theme.swift) */
[data-theme="dark"] {
  --bg-page: #0b1310;
  --bg-sky-top: #091813;
  --bg-sky-bottom: #112921;
  --bg-surface: rgba(255, 255, 255, 0.055);
  --bg-surface-elevated: rgba(16, 33, 27, 0.78);
  --bg-card-inset: #101e19;
  --bg-card-inset-alt: #13251f;
  --bg-chip: rgba(255, 255, 255, 0.08);
  --bg-nav-blur: rgba(11, 19, 16, 0.74);

  --ink-primary: #edf9f2;
  --ink-secondary: #b3d1c2;
  --ink-muted: #7fa191;

  --accent: #33d499;
  --accent-hover: #45e0a8;
  --accent-ink: #062117;
  --accent-soft: rgba(51, 212, 153, 0.14);
  --accent-border: rgba(51, 212, 153, 0.35);

  --amber: #fabf24;
  --coral: #fa7085;
  --sky-tint: #38bdf8;

  --border-hairline: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --dotted-rgb: 237, 249, 242;
  --dotted-alpha: 0.16;

  --shadow-card: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
  --shadow-media: 0 20px 50px -10px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 12px 32px rgba(51, 212, 153, 0.24);
}

/* Light Theme (Matches SpacedOut Theme.swift light mint glass) */
[data-theme="light"] {
  --bg-page: #f5faf7;
  --bg-sky-top: #daf4e6;
  --bg-sky-bottom: #eef9f3;
  --bg-surface: rgba(255, 255, 255, 0.78);
  --bg-surface-elevated: rgba(255, 255, 255, 0.88);
  --bg-card-inset: #e5f3eb;
  --bg-card-inset-alt: #edf7f1;
  --bg-chip: rgba(15, 41, 28, 0.055);
  --bg-nav-blur: rgba(245, 250, 247, 0.78);

  --ink-primary: #0f291c;
  --ink-secondary: #365c4a;
  --ink-muted: #5c7d6e;

  --accent: #0d9469;
  --accent-hover: #0a7b57;
  --accent-ink: #ffffff;
  --accent-soft: rgba(13, 148, 105, 0.11);
  --accent-border: rgba(13, 148, 105, 0.28);

  --amber: #d47305;
  --coral: #d92440;
  --sky-tint: #0582c7;

  --border-hairline: rgba(15, 41, 28, 0.12);
  --border-subtle: rgba(15, 41, 28, 0.07);
  --dotted-rgb: 15, 41, 28;
  --dotted-alpha: 0.16;

  --shadow-card: 0 20px 48px -14px rgba(15, 41, 28, 0.10);
  --shadow-media: 0 24px 54px -12px rgba(15, 41, 28, 0.16);
  --shadow-glow: 0 10px 26px rgba(13, 148, 105, 0.22);
}
