/* ==========================================================================
   DoAIKnowYou Design System - Tokens
   Design Philosophy: Dark, minimal, scholarly. Evidence speaks for itself.
   ========================================================================== */

:root {
    /* ========================================================================
       COLOR SYSTEM - Deep, Scholarly Dark Theme
       ======================================================================== */
    
    /* Background Colors */
    --color-bg: #0d1117;
    --color-bg-elevated: #111820;
    --color-bg-surface: #161d26;
    --color-bg-surface-elevated: #1c242e;
    --color-bg-overlay: rgba(13, 17, 23, 0.97);
    
    /* Text Colors */
    --color-text-primary: #e6e1dc;
    --color-text-secondary: #9aa5b4;
    --color-text-tertiary: #6b7a8c;
    --color-text-muted: #4a5568;
    --color-text-inverse: #0d1117;
    
    /* Brand Colors - Muted Brass (used sparingly) */
    --color-brand-gold: #a89860;
    --color-brand-gold-light: #c4b580;
    --color-brand-gold-dark: #8a7a48;
    --color-brand-gold-subtle: rgba(168, 152, 96, 0.08);
    
    /* Accent Colors - Steel Blue for Data */
    --color-accent-blue: #5a7ba8;
    --color-accent-blue-light: #7a9bc0;
    --color-accent-blue-dark: #4a6590;
    --color-accent-blue-subtle: rgba(90, 123, 168, 0.10);
    
    /* Evidence Highlight - Used for disparity comparisons */
    --color-disparity-high: #b87070;
    --color-disparity-low: #70a080;
    --color-disparity-neutral: #808890;
    
    /* Semantic Colors */
    --color-success: #5a9a7a;
    --color-warning: #b89860;
    --color-error: #a86a6a;
    --color-info: #5a7ba8;
    
    /* Literature Citation Colors */
    --color-citation: #7a90a8;
    --color-citation-hover: #9ab0c8;
    
    /* Data Visualization Palette */
    --color-data-1: #5a8ab0;
    --color-data-2: #b87070;
    --color-data-3: #70a080;
    --color-data-4: #a89860;
    --color-data-5: #8a7aa0;
    
    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-strong: rgba(255, 255, 255, 0.10);
    --color-border-subtle: rgba(255, 255, 255, 0.03);
    --color-border-focus: var(--color-brand-gold);
    
    /* ========================================================================
       TYPOGRAPHY
       ======================================================================== */
    
    /* Font Families */
    --font-heading: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-data: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-ui: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --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;
    
    /* ========================================================================
       SPACING
       ======================================================================== */
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* ========================================================================
       LAYOUT
       ======================================================================== */
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    
    --content-width: 68ch;
    --content-width-wide: 85ch;
    
    /* ========================================================================
       BORDERS & RADIUS
       ======================================================================== */
    
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* ========================================================================
       SHADOWS
       ======================================================================== */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.35);
    
    /* ========================================================================
       TRANSITIONS
       ======================================================================== */
    
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ========================================================================
       Z-INDEX
       ======================================================================== */
    
    --z-base: 0;
    --z-sticky: 100;
    --z-modal: 500;
    --z-tooltip: 700;
}
