/* ==========================================================================
   22B1 Design System - Tokens
   Design Philosophy: Research Institute aesthetic - authoritative, accessible
   ========================================================================== */

:root {
    /* ========================================================================
       COLOR SYSTEM
       ======================================================================== */
    
    /* Background Colors - Dark Theme */
    --color-bg: #0a0f14;
    --color-bg-elevated: #0f1419;
    --color-bg-surface: #141b22;
    --color-bg-surface-elevated: #1a232d;
    --color-bg-overlay: rgba(10, 15, 20, 0.95);
    
    /* Text Colors */
    --color-text-primary: #e8edf2;
    --color-text-secondary: #9aa8b8;
    --color-text-tertiary: #6b7a8a;
    --color-text-muted: #4a5668;
    --color-text-inverse: #0a0f14;
    
    /* Brand Colors */
    --color-brand-gold: #c9a227;
    --color-brand-gold-light: #e0be4a;
    --color-brand-gold-dark: #a6841f;
    --color-brand-gold-subtle: rgba(201, 162, 39, 0.12);
    
    /* Accent Colors - For Sub-brands */
    --color-accent-blue: #3b82f6;
    --color-accent-blue-light: #60a5fa;
    --color-accent-blue-dark: #2563eb;
    --color-accent-blue-subtle: rgba(59, 130, 246, 0.12);
    
    --color-accent-violet: #7c3aed;
    --color-accent-violet-light: #a78bfa;
    --color-accent-violet-subtle: rgba(124, 58, 237, 0.12);
    
    --color-accent-cyan: #06b6d4;
    --color-accent-cyan-light: #22d3ee;
    --color-accent-cyan-subtle: rgba(6, 182, 212, 0.12);
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-success-subtle: rgba(16, 185, 129, 0.12);
    
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-warning-subtle: rgba(245, 158, 11, 0.12);
    
    --color-error: #ef4444;
    --color-error-light: #f87171;
    --color-error-subtle: rgba(239, 68, 68, 0.12);
    
    --color-info: #3b82f6;
    --color-info-light: #60a5fa;
    --color-info-subtle: rgba(59, 130, 246, 0.12);
    
    /* Status Colors - Research Progress */
    --color-status-pending: #64748b;
    --color-status-in-review: #f59e0b;
    --color-status-validated: #10b981;
    --color-status-published: #3b82f6;
    --color-status-hypothesis: #7c3aed;
    
    /* Chart Palette - Colorblind-safe */
    --color-chart-1: #0088cc;
    --color-chart-2: #ee7733;
    --color-chart-3: #009988;
    --color-chart-4: #cc3311;
    --color-chart-5: #33bbee;
    --color-chart-6: #ee3377;
    
    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    --color-border-subtle: rgba(255, 255, 255, 0.04);
    --color-border-focus: var(--color-brand-gold);
    
    /* Link Colors */
    --color-link: var(--color-accent-blue);
    --color-link-hover: var(--color-accent-blue-light);
    --color-link-visited: var(--color-accent-violet-light);
    
    /* ========================================================================
       TYPOGRAPHY
       ======================================================================== */
    
    /* Font Families */
    --font-heading: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-ui: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes - Modular Scale (1.25 ratio) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-md: 1.125rem;     /* 18px */
    --text-lg: 1.25rem;      /* 20px */
    --text-xl: 1.5rem;       /* 24px */
    --text-2xl: 1.875rem;    /* 30px */
    --text-3xl: 2.25rem;     /* 36px */
    --text-4xl: 3rem;        /* 48px */
    --text-5xl: 3.75rem;     /* 60px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;
    
    /* Letter Spacing */
    --tracking-tighter: -0.02em;
    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ========================================================================
       SPACING
       ======================================================================== */
    
    --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 */
    
    /* ========================================================================
       LAYOUT
       ======================================================================== */
    
    --container-xs: 480px;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    
    --content-width: 65ch;  /* Optimal reading width */
    --content-width-wide: 80ch;
    
    /* ========================================================================
       BORDERS & RADIUS
       ======================================================================== */
    
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* ========================================================================
       SHADOWS
       ======================================================================== */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.45);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    /* Glow shadows for accents */
    --shadow-glow-gold: 0 0 20px rgba(201, 162, 39, 0.15);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
    
    /* ========================================================================
       TRANSITIONS
       ======================================================================== */
    
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
    
    --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-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* ========================================================================
       Z-INDEX SCALE
       ======================================================================== */
    
    --z-below: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

/* ==========================================================================
   MEDIA QUERY BREAKPOINTS (for reference - use in media queries)
   ==========================================================================
   
   --breakpoint-sm: 640px
   --breakpoint-md: 768px
   --breakpoint-lg: 1024px
   --breakpoint-xl: 1280px
   --breakpoint-2xl: 1536px
   
   ========================================================================== */
