/* variables.css -- DeeplCad Design Tokens */
/* Load this file FIRST in every HTML page, before all other CSS. */
/* All new components must use var(--xxx), never raw hex values. */

:root {
  /* ===== Colors — Warm Clay & Craft ===== */

  /* Primary (Terracotta) */
  --primary: #D97A5E;
  --primary-light: #E6B17E;
  --primary-dark: #C06449;

  /* Accent (Golden) */
  --accent: #E6B17E;
  --accent-light: #F0CFA0;

  /* Backgrounds (Warm cream) */
  --bg-dark: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F0E8;

  /* Text */
  --text: #3A322F;
  --text-muted: #7A6E66;
  --text-dim: #A39890;

  /* Borders */
  --border: rgba(58, 50, 47, 0.1);
  --border-light: rgba(58, 50, 47, 0.05);

  /* Semantic */
  --success: #6B9E78;
  --error: #C45B5B;
  --warning: #D4945A;
  --info: #6B8DAE;

  /* ===== Spacing (4px base) ===== */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ===== Border Radius ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ===== Typography ===== */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 36px;
  --text-3xl: 48px;

  /* ===== Shadows ===== */
  --shadow-card: 0 8px 32px rgba(217, 122, 94, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(217, 122, 94, 0.1);
  --shadow-lg: 0 12px 40px rgba(217, 122, 94, 0.12);

  /* ===== Transitions ===== */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);

  /* ===== Z-index scale ===== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}
