/**
 * SMYLE FASHION INSTITUTE - Design Tokens & Variables
 * Architecture: Variables, Colors, Typography, Spacing, Transitions
 * Phase 1: Editorial Visual Foundation & Motion Tokens
 */

:root {
  /* ==================================================
     1. COLOR SYSTEM (Derived from SMYLE Atelier Heritage)
     ================================================== */
  /* Canvas & Neutral Foundations */
  --color-bg-primary: #FAF8F5;       /* Warm Atelier Ivory canvas */
  --color-bg-surface: #F4EFEA;       /* Soft Sand / Studio Off-white */
  --color-bg-subtle: #EFE9E1;        /* Muted Linen for tonal section breaks */
  --color-bg-pure: #FFFFFF;          /* Pure White for popups, inputs, modals */
  --color-bg-dark: #141211;          /* Editorial Near-Black (Atelier Noir) */

  /* Text Hierarchy */
  --color-text-primary: #181615;     /* Tailor Charcoal */
  --color-text-secondary: #58534E;   /* Drafting Slate for subtitles/lead text */
  --color-text-muted: #847E77;       /* Warm neutral for captions/overlines */
  --color-text-inverse: #FAF8F5;     /* Warm Ivory text on dark surfaces */

  /* Brand Burgundy Accent Hierarchy */
  --color-primary: #6E1624;          /* Core SMYLE Brand Crimson Burgundy */
  --color-accent: #6E1624;           /* Primary Accent */
  --color-accent-deep: #4F0E18;      /* Deep Vintage Wine (Hover / Active) */
  --color-accent-hover: #540F1B;     /* Controlled Interactive Burgundy */
  --color-accent-tint: #F8ECEE;      /* Feather Burgundy tint for badges */
  --color-champagne: #D9CBBA;        /* Editorial Champagne hairline accent */

  /* Borders & Rules */
  --color-border: #E5DFD5;          /* Hairline border */
  --color-border-subtle: #EFECE6;   /* Minimal separator rule */
  --color-border-dark: #2A2624;     /* Inverse surface hairline border */

  /* Interactive Utility */
  --color-focus: #6E1624;

  /* ==================================================
     2. EDITORIAL TYPOGRAPHY SYSTEM
     ================================================== */
  --font-serif: "Playfair Display", "Cormorant Garamond", "Didot", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-serif);
  --font-body: var(--font-sans);

  /* Typographic Scales (Fluid clamp values: min, preferred, max) */
  --text-display: clamp(2.5rem, 2rem + 2.8vw, 4.75rem);
  --text-h1: clamp(2.125rem, 1.7rem + 2vw, 3.625rem);
  --text-h2: clamp(1.75rem, 1.45rem + 1.5vw, 2.75rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.8vw, 1.875rem);
  --text-h4: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-lead: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  --text-body: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  --text-overline: 0.6875rem;

  --leading-tight: 1.12;
  --leading-snug: 1.28;
  --leading-normal: 1.65;

  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.05em;
  --tracking-widest: 0.14em;

  /* ==================================================
     3. SPACING SYSTEM (8pt Proportional Grid)
     ================================================== */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --space-3xl: 112px;

  /* ==================================================
     4. CONTAINER SIZES & GUTTERS
     ================================================== */
  --container-max: 1280px;
  --container-narrow: 760px;
  --container-wide: 1440px;

  --gutter-desktop: 48px;
  --gutter-tablet: 32px;
  --gutter-mobile: 20px;

  /* ==================================================
     5. COMPONENT ELEVATIONS & RADII
     ================================================== */
  --radius-sharp: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(24, 22, 21, 0.03);
  --shadow-elevated: 0 12px 36px -8px rgba(24, 22, 21, 0.06);
  --shadow-editorial: 0 20px 48px -12px rgba(20, 18, 17, 0.08);

  /* Header & Navigation */
  --header-height-desktop: 84px;
  --header-height-mobile: 64px;
  --mobile-bottom-bar-height: 60px;

  /* ==================================================
     6. MOTION & TRANSITION TOKENS (Slow, Controlled, Editorial)
     ================================================== */
  --ease-editorial: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 220ms var(--ease-editorial);
  --transition-base: 400ms var(--ease-editorial);
  --transition-normal: 500ms var(--ease-editorial);
  --transition-slow: 750ms var(--ease-editorial);
}