/* Design tokens — Geist-inspired, original identity for Recause Store */

:root {
  color-scheme: light;

  --font-sans: "Geist", "GeistSans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono",
    "Segoe UI Mono", Consolas, monospace;

  /* Text scale */
  --text-xs: 12px;   --lh-xs: 16px;
  --text-sm: 13px;   --lh-sm: 20px;
  --text-base: 14px; --lh-base: 22px;
  --text-md: 16px;   --lh-md: 24px;
  --text-lg: 20px;   --lh-lg: 28px;
  --text-xl: 24px;   --lh-xl: 32px;
  --text-2xl: 30px;  --lh-2xl: 36px;

  /* Light theme */
  --background: #ffffff;
  --surface: #ffffff;
  --surface-secondary: #fafafa;
  --surface-tertiary: #f4f4f5;
  --surface-hover: #f4f4f5;
  --foreground: #171717;
  --foreground-secondary: #525252;
  --foreground-tertiary: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --input-border: #d4d4d4;
  --focus: #171717;
  --primary: #171717;
  --primary-foreground: #ffffff;
  --primary-hover: #383838;

  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #a16207;
  --warning-bg: #fefce8;
  --warning-border: #fde68a;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  /* Shape & metrics */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --control-height: 40px;
  --control-height-touch: 44px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Layout */
  --sidebar-width: 252px;
  --content-gutter: 32px;
  --content-max: 1600px;

  --transition-fast: 140ms ease;

  --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;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --surface: #0a0a0a;
  --surface-secondary: #111111;
  --surface-tertiary: #1a1a1a;
  --surface-hover: #1a1a1a;
  --foreground: #ededed;
  --foreground-secondary: #a3a3a3;
  --foreground-tertiary: #737373;
  --border: #262626;
  --border-strong: #404040;
  --input-border: #404040;
  --focus: #ededed;
  --primary: #ededed;
  --primary-foreground: #171717;
  --primary-hover: #d4d4d4;

  --success: #4ade80;
  --success-bg: #052e16;
  --success-border: #14532d;
  --warning: #facc15;
  --warning-bg: #27250a;
  --warning-border: #713f12;
  --danger: #f87171;
  --danger-bg: #2a0d0d;
  --danger-border: #7f1d1d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
}
