/**
 * DESIGN TOKENS SYSTEM
 * Candidate: Trần Bùi Hoàng Kim
 * Aesthetic: Swiss Editorial Minimalist · Deep Navy & Neutral · Engineering Precision
 */

:root {
  /* Color Palette - Navy & Neutral Ratio (~78% White/Neutral, ~18% Navy/Dark, <4% Accent) */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F1F5F9;
  --color-bg-card-hover: #F8FAFC;

  /* Primary Deep Navy */
  --color-navy-primary: #0B1739;   /* Main headings, brand monogram, primary CTAs */
  --color-navy-secondary: #173B70; /* Subheadings, active states, hover links */
  --color-navy-muted: #243B53;

  /* Text Colors (Strict WCAG AAA Contrast) */
  --color-text-primary: #0F172A;   /* Slate 900 */
  --color-text-secondary: #475569; /* Slate 600 */
  --color-text-muted: #8091A7;     /* Slate 400 */
  --color-text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --color-border-subtle: #E2E8F0;  /* 1px clean neutral border */
  --color-border-medium: #CBD5E1;
  --color-border-strong: #0B1739;

  /* Controlled Accents (<4% total area) */
  --color-accent-blue: #0284C7;    /* Sky 600 - subtle technical highlight */
  --color-accent-blue-subtle: rgba(2, 132, 199, 0.08);
  --color-accent-emerald: #0D9488; /* Teal 600 - verified / production tags */
  --color-accent-emerald-subtle: rgba(13, 148, 136, 0.08);
  --color-accent-amber: #D97706;   /* Amber 600 - academic / lab tags */
  --color-accent-amber-subtle: rgba(217, 119, 6, 0.08);
  --color-accent-red: #DC2626;     /* Red 600 - high risk / critical flag */

  /* Typography Scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-hero: clamp(2.35rem, 5.2vw, 3.85rem);
  --text-h1: clamp(1.85rem, 3.8vw, 2.75rem);
  --text-h2: clamp(1.45rem, 2.6vw, 2rem);
  --text-h3: 1.25rem;
  --text-h4: 1.1rem;
  --text-body: 1.0625rem; /* 17px */
  --text-body-sm: 0.9375rem; /* 15px */
  --text-caption: 0.8125rem; /* 13px */
  --text-code: 0.875rem; /* 14px */

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing Scale (4px / 8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout Widths */
  --container-max: 1180px;
  --content-max: 760px;
  --container-padding: 24px;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Shadows - Minimalist tonal elevation */
  --shadow-subtle: 0 1px 2px rgba(11, 23, 57, 0.04), 0 2px 6px rgba(11, 23, 57, 0.02);
  --shadow-card: 0 2px 8px rgba(11, 23, 57, 0.04), 0 1px 2px rgba(11, 23, 57, 0.02);
  --shadow-hover: 0 8px 24px rgba(11, 23, 57, 0.07), 0 2px 6px rgba(11, 23, 57, 0.03);

  /* Transitions & Motion */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition-fast: 150ms var(--ease-out-cubic);
  --transition-normal: 220ms var(--ease-out-cubic);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms !important;
    --transition-normal: 0.01ms !important;
  }
}
