/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* ===== COLOR PALETTE ===== */
  
  /* Primary Colors - Purple shades for modern and engaging design */
  --primary-50: #faf8ff;
  --primary-100: #f3f0ff;
  --primary-200: #e8e2ff;
  --primary-300: #d1c4ff;
  --primary-400: #b390ff;
  --primary-500: #905CFF;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;
  --primary-950: #2e1065;
  
  /* Neutral Colors - Professional grays */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;
  
  /* Accent Colors - For highlights and CTAs */
  --accent-green: #10b981;
  --accent-green-light: #34d399;
  --accent-green-dark: #059669;
  
  --accent-orange: #ffd15c;
  --accent-orange-light: #fbbf24;
  --accent-orange-dark: #d97706;
  
  --accent-red: #ef4444;
  --accent-red-light: #f87171;
  --accent-red-dark: #dc2626;
  
  /* Semantic Colors */
  --success: var(--accent-green);
  --warning: var(--accent-orange);
  --error: var(--accent-red);
  --info: var(--primary-500);
  
  /* Surface Colors */
  --white: #ffffff;
  --black: #000000;
  --background: var(--neutral-50);
  --surface: var(--white);
  --surface-elevated: var(--white);
  --border: var(--neutral-200);
  --border-light: var(--neutral-100);
  --border-dark: var(--neutral-300);

  /* Background Colors */
  --background-primary: #FAF2EB;
  --background-secondary: var(--white);
  
  /* Text Colors */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-500);
  --text-disabled: var(--neutral-400);
  --text-inverse: var(--white);
  
  /* ===== TYPOGRAPHY SCALE ===== */
  
  /* Font Families */
  --font-family-primary: 'Coustard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', serif;
  --font-family-heading: 'Poppins', var(--font-family-primary);
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
  
  /* Font Sizes - Fluid typography using clamp() */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);     /* 12px - 14px */
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);       /* 14px - 16px */
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);       /* 16px - 18px */
  --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);      /* 18px - 20px */
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);       /* 20px - 24px */
  --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);            /* 24px - 32px */
  --font-size-3xl: clamp(2rem, 1.8rem + 1.25vw, 3rem);           /* 32px - 48px */
  --font-size-4xl: clamp(2.5rem, 2.2rem + 1.5vw, 4rem);          /* 40px - 64px */
  --font-size-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);            /* 48px - 80px */
  
  /* Font Weights - Adjusted for Coustard (400, 900) */
  --font-weight-light: 400;
  --font-weight-normal: 400;
  --font-weight-medium: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 800;
  --font-weight-extrabold: 900;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  /* ===== SPACING SYSTEM ===== */
  
  /* Base spacing unit: 4px */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  --space-40: 10rem;     /* 160px */
  --space-48: 12rem;     /* 192px */
  --space-56: 14rem;     /* 224px */
  --space-64: 16rem;     /* 256px */
  
  /* Semantic spacing */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  --space-4xl: var(--space-24);
  --space-5xl: var(--space-32);
  
  /* ===== LAYOUT & GRID ===== */
  
  /* Container sizes */
  --container-xs: 20rem;     /* 320px */
  --container-sm: 24rem;     /* 384px */
  --container-md: 28rem;     /* 448px */
  --container-lg: 32rem;     /* 512px */
  --container-xl: 36rem;     /* 576px */
  --container-2xl: 42rem;    /* 672px */
  --container-3xl: 48rem;    /* 768px */
  --container-4xl: 56rem;    /* 896px */
  --container-5xl: 64rem;    /* 1024px */
  --container-6xl: 72rem;    /* 1152px */
  --container-7xl: 80rem;    /* 1280px */
  --container-full: 100%;
  
  /* Max widths for content */
  --max-width-prose: 65ch;
  --max-width-container: var(--container-7xl);
  
  /* Grid columns */
  --grid-cols-1: repeat(1, minmax(0, 1fr));
  --grid-cols-2: repeat(2, minmax(0, 1fr));
  --grid-cols-3: repeat(3, minmax(0, 1fr));
  --grid-cols-4: repeat(4, minmax(0, 1fr));
  --grid-cols-6: repeat(6, minmax(0, 1fr));
  --grid-cols-12: repeat(12, minmax(0, 1fr));
  
  /* ===== BORDER RADIUS ===== */
  
  --radius-none: 0;
  --radius-sm: 0.125rem;     /* 2px */
  --radius-base: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;     /* 6px */
  --radius-lg: 0.5rem;       /* 8px */
  --radius-xl: 0.75rem;      /* 12px */
  --radius-2xl: 1rem;        /* 16px */
  --radius-3xl: 1.5rem;      /* 24px */
  --radius-full: 9999px;
  
  /* ===== SHADOWS ===== */
  
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-2xl: 0 50px 100px -20px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-custom: 4px 4px 0px rgba(0, 0, 0);
  
  /* ===== Z-INDEX SCALE ===== */
  
  --z-index-hide: -1;
  --z-index-base: 0;
  --z-index-docked: 10;
  --z-index-dropdown: 1000;
  --z-index-sticky: 1100;
  --z-index-banner: 1200;
  --z-index-overlay: 1300;
  --z-index-modal: 1400;
  --z-index-popover: 1500;
  --z-index-skiplink: 1600;
  --z-index-toast: 1700;
  --z-index-tooltip: 1800;
  
  /* ===== TRANSITIONS & ANIMATIONS ===== */
  
  /* Durations */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 750ms;
  --duration-slowest: 1000ms;
  
  /* Easing functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Common transitions */
  --transition-fast: all var(--duration-fast) var(--ease-out);
  --transition-normal: all var(--duration-normal) var(--ease-out);
  --transition-slow: all var(--duration-slow) var(--ease-out);
  
  /* ===== BREAKPOINTS ===== */
  
  /* Mobile-first breakpoints */
  --breakpoint-xs: 20rem;     /* 320px */
  --breakpoint-sm: 48rem;     /* 768px */
  --breakpoint-md: 64rem;     /* 1024px */
  --breakpoint-lg: 90rem;     /* 1440px */
  --breakpoint-xl: 120rem;    /* 1920px */
  
  /* ===== COMPONENT-SPECIFIC VARIABLES ===== */
  
  /* Buttons */
  --btn-height-sm: 2rem;      /* 32px */
  --btn-height-md: 2.5rem;    /* 40px */
  --btn-height-lg: 3rem;      /* 48px */
  --btn-height-xl: 3.5rem;    /* 56px */
  
  --btn-padding-x-sm: var(--space-3);
  --btn-padding-x-md: var(--space-4);
  --btn-padding-x-lg: var(--space-6);
  --btn-padding-x-xl: var(--space-8);
  
  /* Forms */
  --input-height: var(--btn-height-md);
  --input-padding-x: var(--space-3);
  --input-border-width: 1px;
  --input-border-radius: var(--radius-md);
  
  /* Header */
  --header-height: 4rem;      /* 64px */
  --header-height-mobile: 3.5rem; /* 56px */
  
  /* Hero section */
  --hero-min-height: 100vh;
  --hero-padding-top: var(--header-height);
}

/* ===== LIGHT MODE ONLY ===== */
/* Dark mode support removed - website uses light theme only */

/* ===== REDUCED MOTION SUPPORT ===== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --duration-slowest: 0ms;
  }
}