/* ==========================================================================
   22B1 Design System - Tokens
   Design Philosophy: Minimal, restrained research aesthetic
   ========================================================================== */

:root {
    /* ========================================================================
       COLOR SYSTEM - Muted, Darker Palette
       ======================================================================== */
    
    /* Background Colors - Deep Dark Theme */
    --color-bg: #080b0e;
    --color-bg-elevated: #0c1015;
    --color-bg-surface: #10151a;
    --color-bg-surface-elevated: #151b22;
    --color-bg-overlay: rgba(8, 11, 14, 0.97);
    
    /* Text Colors */
    --color-text-primary: #d8dde2;
    --color-text-secondary: #8a98a8;
    --color-text-tertiary: #5b6a7a;
    --color-text-muted: #3a4658;
    --color-text-inverse: #080b0e;
    
    /* Brand Colors - Muted Brass */
    --color-brand-gold: #a89860;
    --color-brand-gold-light: #c4b580;
    --color-brand-gold-dark: #8a7a48;
    --color-brand-gold-subtle: rgba(168, 152, 96, 0.10);
    
    /* Accent Colors - Muted, Restrained */
    --color-accent-blue: #5a7ba8;
    --color-accent-blue-light: #7a9bc0;
    --color-accent-blue-dark: #4a6590;
    --color-accent-blue-subtle: rgba(90, 123, 168, 0.10);
    
    --color-accent-violet: #7a6b96;
    --color-accent-violet-light: #9a8bb0;
    --color-accent-violet-subtle: rgba(122, 107, 150, 0.10);
    
    --color-accent-cyan: #5a9aa8;
    --color-accent-cyan-light: #7ab8c0;
    --color-accent-cyan-subtle: rgba(90, 154, 168, 0.10);
    
    /* Semantic Colors - Softer */
    --color-success: #5a9a7a;
    --color-success-light: #7ab89a;
    --color-success-subtle: rgba(90, 154, 122, 0.10);
    
    --color-warning: #b89860;
    --color-warning-light: #d0b080;
    --color-warning-subtle: rgba(184, 152, 96, 0.10);
    
    --color-error: #a86a6a;
    --color-error-light: #c08888;
    --color-error-subtle: rgba(168, 106, 106, 0.10);
    
    --color-info: #5a7ba8;
    --color-info-light: #7a9bc0;
    --color-info-subtle: rgba(90, 123, 168, 0.10);
    
    /* Status Colors - Research Progress */
    --color-status-pending: #5a6878;
    --color-status-in-review: #b89860;
    --color-status-validated: #5a9a7a;
    --color-status-published: #5a7ba8;
    --color-status-hypothesis: #7a6b96;
    
    /* Chart Palette - Muted, Colorblind-safe */
    --color-chart-1: #5a8ab0;
    --color-chart-2: #c09060;
    --color-chart-3: #5a9080;
    --color-chart-4: #a06050;
    --color-chart-5: #6aa0b0;
    --color-chart-6: #b07080;
    
    /* 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 - subtle */
    --shadow-glow-gold: 0 0 20px rgba(168, 152, 96, 0.12);
    --shadow-glow-blue: 0 0 20px rgba(90, 123, 168, 0.12);
    
    /* ========================================================================
       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
   
   ========================================================================== */
