:root {
  /* ============================================
     workforcedatalab.com — Design Tokens
     Data-driven research blog and analytics publication
     ============================================ */

  /* ---- Color Palette: Charcoal & Electric Blue ---- */

  /* Primary Charcoal (Dark Mode Default) */
  --color-charcoal-900: #111827;
  --color-charcoal-800: #1F2937;
  --color-charcoal-700: #374151;
  --color-charcoal-600: #4B5563;

  /* Blue Accent */
  --color-blue-500: #3B82F6;
  --color-blue-600: #2563EB;
  --color-blue-400: #60A5FA;
  --color-blue-300: #93C5FD;

  /* Data Visualization Palette (8-series, colorblind-safe) */
  --color-chart-1: #3B82F6;   /* Blue — primary series */
  --color-chart-2: #10B981;   /* Green — positive trend */
  --color-chart-3: #F59E0B;   /* Amber — caution / secondary metric */
  --color-chart-4: #EF4444;   /* Red — negative trend */
  --color-chart-5: #8B5CF6;   /* Purple — tertiary series */
  --color-chart-6: #EC4899;   /* Pink — highlight series */
  --color-chart-7: #06B6D4;   /* Cyan — supplementary data */
  --color-chart-8: #F97316;   /* Orange — warning indicators */

  /* Neutrals — Light Mode */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-900: #111827;

  /* Semantic */
  --color-positive: #10B981;   /* growth, positive trend */
  --color-negative: #EF4444;   /* decline, negative trend */
  --color-neutral: #6B7280;    /* flat or unchanged */

  /* ---- Typography ---- */

  /* Font Families */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Source Code Pro", monospace;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  /* Type Scale */
  --text-h1-size: 3.0rem;     /* 48px — display headers (Space Grotesk) */
  --text-h1-weight: 700;
  --text-h1-line-height: 1.15;
  --text-h1-letter-spacing: -0.03em;

  --text-h2-size: 2.0rem;     /* 32px */
  --text-h2-weight: 600;
  --text-h2-line-height: 1.25;

  --text-h3-size: 1.5rem;     /* 24px */
  --text-h3-weight: 600;
  --text-h3-line-height: 1.3;

  --text-h4-size: 1.125rem;   /* 18px */
  --text-h4-weight: 600;
  --text-h4-line-height: 1.35;

  --text-body-m-size: 1rem;       /* 16px — standard body */
  --text-body-m-weight: 400;
  --text-body-m-line-height: 1.7;

  --text-body-l-size: 1.125rem;   /* 18px — long-form analysis */
  --text-body-l-weight: 400;
  --text-body-l-line-height: 1.75;

  --text-data-size: 0.875rem;     /* 14px — monospace data values */
  --text-data-weight: 500;
  --text-data-line-height: 1.6;

  --text-caption-size: 0.75rem;   /* 12px — labels, axis labels */
  --text-caption-weight: 500;
  --text-caption-line-height: 1.5;

  /* Large data values (KPIs) */
  --text-data-large-size: 2.5rem;     /* 40px — KPI numbers */
  --text-data-large-weight: 700;
  --text-data-large-letter-spacing: -0.03em;

  --text-data-medium-size: 1.25rem;   /* 20px — inline data emphasis */
  --text-data-medium-weight: 600;
  --text-data-medium-letter-spacing: -0.02em;

  /* ---- Spacing System (4px base) ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* ---- Layout Tokens ---- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;     /* dashboard layouts */
  --container-xl: 1280px;
  --container-xxl: 1440px;    /* wide multi-chart pages */
  --container-full: 100%;

  /* Grid */
  --grid-columns: 12;
  --grid-gap: var(--space-lg);
  --grid-column-gap: var(--space-xl);

  /* Gutters */
  --gutter-page-desktop: var(--space-xl);   /* 32px */
  --gutter-page-mobile: var(--space-md);    /* 16px */
  --gutter-card-inner: var(--space-lg);     /* 24px (32px for KPI cards) */

  /* ---- Responsive Breakpoints ---- */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* ---- Border Radius ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.25);

  /* ---- Transitions ---- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.25s ease;

  /* ---- Z-Index Scale ---- */
  --z-nav: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* ---- Dark Mode (Default for Analytics) ---- */
.sf-page {
  background: var(--color-charcoal-900);
  color: var(--color-gray-300);
}

.workforcedatalab-card {
  background: var(--color-charcoal-800);
  border-color: var(--color-charcoal-700);
}

@media (prefers-color-scheme: light) {
  .sf-page--light-mode {
    background: var(--color-white);
    color: var(--color-gray-900);
  }

  .workforcedatalab-card--light {
    background: var(--color-white);
    border-color: var(--color-gray-200);
  }
}
