/*
 * Base CSS - CSS Custom Properties (Variables)
 * Purpose: Define global design tokens for colors, typography, spacing, etc.
 *
 * Color system uses OKLCH for perceptual uniformity.
 * Equal steps in lightness look equal — unlike HSL.
 * Neutrals are tinted toward the brand gold hue (65°) for subconscious cohesion.
 */

:root {
  /* ===== Colors ===== */

  /* Primary - Amber Gold */
  --color-primary: #ffd700;
  --color-primary-dark: #e6c200;
  --color-primary-light: #ffed4e;

  /* Secondary accent - Deep Crimson */
  --color-accent: #c0392b;
  --color-accent-light: #e74c3c;
  --color-accent-dark: #922b21;

  /* Summit Blue — brand color for logo alignment */
  --color-summit-blue: #5b8db8;
  --color-summit-blue-light: #7aaed4;
  --color-summit-blue-dark: #3d6b8f;

  /* Background colors */
  --color-background: #0f0f1a;
  --color-bg-dark: #0a0a10;
  --color-surface: #16213e;
  --color-secondary: #1a1a2e;
  --color-secondary-light: #2a2a3e;
  --color-surface-hover: #1e2a4a;

  /* Text colors */
  --color-text: #ffffff;
  --color-text-primary: #ffffff;
  --color-text-secondary: #e0e0e0;
  --color-text-muted: #a0a0a0;
  --color-text-disabled: #606060;

  /* Status colors */
  --color-success: oklch(62% 0.155 148);
  --color-success-dark: oklch(50% 0.145 148);
  --color-error: oklch(55% 0.190 22);
  --color-error-dark: oklch(43% 0.170 22);
  --color-warning: oklch(80% 0.140 72);
  --color-warning-dark: oklch(68% 0.130 72);
  --color-info: oklch(64% 0.130 240);
  --color-info-dark: oklch(52% 0.120 240);

  /* Border colors */
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-light: rgba(255, 255, 255, 0.05);
  --color-border-dark: rgba(255, 255, 255, 0.20);
  --color-border-gold: rgba(255, 215, 0, 0.20);

  /* ===== Typography ===== */

  /* Font families */
  --font-display: "Almendra", Georgia, "Times New Roman", serif;
  --font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-mono: "Fira Code", ui-monospace, "Courier New", monospace;

  /* Font sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ===== Spacing ===== */

  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */

  /* ===== Border Radius ===== */

  --border-radius-sm: 0.25rem;   /* 4px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 0.75rem;   /* 12px */
  --border-radius-xl: 1rem;      /* 16px */
  --border-radius-full: 9999px;  /* Fully rounded */

  /* ===== Shadows ===== */

  --shadow-sm: 0 1px 2px oklch(5% 0.01 65 / 0.20);
  --shadow-md: 0 4px 6px oklch(5% 0.01 65 / 0.30);
  --shadow-lg: 0 10px 15px oklch(5% 0.01 65 / 0.30);
  --shadow-xl: 0 20px 25px oklch(5% 0.01 65 / 0.40);

  /* ===== Transitions ===== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* ===== Z-index Layers ===== */

  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;

  /* ===== Breakpoints (for reference in JS) ===== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}
