/**
 * Design Tokens - Intendent Application
 * Single source of truth for all design values
 */

:root {
  /* ================================
     COLOR SYSTEM
     ================================ */

  /* Primary Brand Colors */
  --color-primary: #4E4E9C;
  --color-primary-dark: #3a3a75;
  --color-primary-light: #e8e8f5;

  /* Text Colors */
  --color-text-primary: #2c3e50;
  --color-text-secondary: #7f8c8d;
  --color-text-tertiary: #95a5a6;
  --color-text-inverse: #ffffff;

  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f5f5;
  --color-bg-tertiary: #f8f9fa;
  --color-bg-hover: #34495e;

  /* Border Colors */
  --color-border: #ddd;
  --color-border-light: #e9ecef;

  /* State Colors */
  --color-success: #27ae60;
  --color-success-dark: #229954;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;

  --color-error: #e74c3c;
  --color-error-dark: #c0392b;
  --color-error-bg: #f8d7da;
  --color-error-text: #721c24;

  --color-warning: #f39c12;
  --color-warning-bg: #fff3cd;
  --color-warning-text: #856404;
  --color-warning-border: #ffc107;

  --color-info: #3498db;
  --color-info-bg: #d1ecf1;
  --color-info-text: #0c5460;

  /* ================================
     SPACING SCALE
     ================================ */

  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */

  /* ================================
     TYPOGRAPHY
     ================================ */

  /* Font Families */
  --font-family-base: 'Franklin Gothic Medium', 'Franklin Gothic', 'ITC Franklin Gothic', 'Arial Narrow', Arial, sans-serif;
  --font-family-heading: Garamond, 'EB Garamond', 'Adobe Garamond Pro', 'Cormorant Garamond', Georgia, serif;
  --font-family-mono: 'Courier New', Courier, monospace;

  /* Font Sizes */
  --font-size-xs: 0.85rem;    /* 13.6px */
  --font-size-sm: 0.9rem;     /* 14.4px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* ================================
     LAYOUT
     ================================ */

  /* Container Widths */
  --container-max-width: 1200px;
  --container-max-width-lg: 1400px;
  --container-padding: 2rem;
  --container-padding-sm: 1rem;

  /* ================================
     BORDERS & RADIUS
     ================================ */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-thick: 2px;

  /* ================================
     SHADOWS
     ================================ */

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* ================================
     Z-INDEX SCALE
     ================================ */

  --z-base: 0;
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;

  /* ================================
     TRANSITIONS
     ================================ */

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ================================
     FUTURE: DARK MODE TOKENS
     (Placeholder for Phase 3)
     ================================ */

  /*
  @media (prefers-color-scheme: dark) {
    :root {
      --color-text-primary: #ecf0f1;
      --color-text-secondary: #bdc3c7;
      --color-bg-primary: #2c3e50;
      --color-bg-secondary: #34495e;
      ... additional dark mode overrides ...
    }
  }
  */
}
