/**
 * Porter Brand Design Tokens
 * Version: 1.0
 * Last updated: 2025-12-08
 *
 * CSS Custom Properties for consistent brand implementation
 */

:root {
  /* ========================================
     COLOR PALETTE - Option A (Terracotta Primary)
     ======================================== */

  /* Primary Colors */
  --color-primary: #C96941;              /* Warm Terracotta */
  --color-primary-hover: #8B4A2F;        /* Burnt Sienna */
  --color-secondary: #7A9B76;            /* Sage Green */
  --color-accent: #B89968;               /* Dusty Gold */

  /* Text Colors */
  --color-text-primary: #3A2618;         /* Deep Walnut Brown */
  --color-text-secondary: #4A5F7F;       /* Slate Blue */
  --color-text-muted: #6B6B6B;           /* Slate Gray */

  /* Background Colors */
  --color-background: #F5F1E8;           /* Cream Ivory */
  --color-surface: #FFFFFF;              /* White */
  --color-surface-hover: #FAFAF8;        /* Off-white */

  /* Border & Dividers */
  --color-border: #2D2D2D;               /* Charcoal Grey */
  --color-border-light: rgba(45, 45, 45, 0.15);

  /* State Colors */
  --color-success: #7A9B76;              /* Sage Green */
  --color-warning: #C96941;              /* Warm Terracotta */
  --color-error: #B8483C;                /* Alert Red */
  --color-info: #4A5F7F;                 /* Slate Blue */

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

  /* Font Families */
  --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

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

  /* Font Sizes (Desktop) */
  --font-size-h1: 3rem;                  /* 48px */
  --font-size-h2: 2rem;                  /* 32px */
  --font-size-h3: 1.5rem;                /* 24px */
  --font-size-h4: 1.25rem;               /* 20px */
  --font-size-body-large: 1.125rem;      /* 18px */
  --font-size-body: 1rem;                /* 16px */
  --font-size-body-small: 0.875rem;      /* 14px */
  --font-size-caption: 0.75rem;          /* 12px */

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.1em;

  /* ========================================
     SPACING SYSTEM (8px base)
     ======================================== */

  --space-1: 0.5rem;     /* 8px */
  --space-2: 1rem;       /* 16px */
  --space-3: 1.5rem;     /* 24px */
  --space-4: 2rem;       /* 32px */
  --space-5: 2.5rem;     /* 40px */
  --space-6: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-10: 5rem;      /* 80px */
  --space-12: 6rem;      /* 96px */
  --space-16: 8rem;      /* 128px */

  /* ========================================
     LAYOUT & GRID
     ======================================== */

  --container-max-width: 1200px;
  --container-padding: 3rem;             /* 48px */
  --grid-gutter: 1.5rem;                 /* 24px */

  /* Breakpoints (for reference in media queries) */
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1280px;

  /* ========================================
     BORDER RADIUS
     ======================================== */

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

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

  --shadow-sm: 0 2px 8px rgba(43, 91, 132, 0.15);
  --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 44, 44, 0.12);
  --shadow-focus: 0 0 0 3px rgba(201, 105, 65, 0.2);

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

  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 400ms ease-out;

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

  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
  --z-tooltip: 4000;
}

/* ========================================
   MOBILE OVERRIDES
   ======================================== */

@media (max-width: 768px) {
  :root {
    /* Adjust font sizes for mobile */
    --font-size-h1: 2.25rem;             /* 36px */
    --font-size-h2: 1.75rem;             /* 28px */
    --font-size-h3: 1.375rem;            /* 22px */
    --font-size-h4: 1.125rem;            /* 18px */

    /* Reduce spacing */
    --container-padding: 1.25rem;        /* 20px */
    --grid-gutter: 1rem;                 /* 16px */
  }
}

/* ========================================
   DARK MODE VARIABLES (Future Use)
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Uncomment and adjust when implementing dark mode
    --color-background: #2C2C2C;
    --color-surface: #3A2618;
    --color-text-primary: #F5F1E8;
    */
  }
}
