/**
 * PARNIVA Design System Tokens
 * Strict adherence to 60-30-10 rule and Brand Design Guidelines
 */

:root {
  /* ==========================================================================
     COLOR SYSTEM (60-30-10 Balance)
     60% Mineral Canvas | 30% Forest Structural | 10% Moss Accent & Badges
     ========================================================================== */

  /* 60% Dominant Canvas (Warm mineral tones, architectural light surfaces) */
  --color-ivory: #F2EFE5;          /* Dominant page background */
  --color-canvas-light: #FAF9F5;   /* Elevated card surface, soft off-white */
  --color-bone: #E7E5E4;           /* Secondary card/panel tier */
  --color-vellum: #DFDCD5;         /* Hairline borders & subtle dividers */

  /* 30% Structural Form (Deep architectural grounding & high-contrast text) */
  --color-forest: #203D32;         /* Primary brand structural green */
  --color-forest-dark: #172D25;    /* Deep forest room / footer */
  --color-charcoal: #242824;       /* Primary text color - WCAG AAA contrast */
  --color-graphite: #595855;       /* Muted secondary text & architectural labels */

  /* 10% Biological Accent (The living spore & focal callouts) */
  --color-moss: #667C52;           /* Brand spore green from logo "i" dot */
  --color-moss-light: #7E9666;     /* Interactive hover state */
  --color-accent-stone: #A28B6A;   /* Earthy stone - used sparingly */
  --color-accent-subtle: #D8CEBE;  /* Subtle warm mineral border */

  /* Pure Reverse */
  --color-paper: #FFFFFF;          /* Pure white for reverse text on dark surfaces */

  /* ==========================================================================
     TYPOGRAPHY TOKENS
     Display: Architectural Geometric Sans | Body: High-Legibility Grotesk
     ========================================================================== */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.375rem;    /* 22px */
  --text-2xl: 1.625rem;   /* 26px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 2.75rem;    /* 44px */
  --text-5xl: 3.5rem;     /* 56px */
  --text-6xl: 4.5rem;     /* 72px */

  /* Line Heights */
  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ==========================================================================
     SPACING & RADIUS
     Derived from Brand Guidelines (Base 4px, 28.8px pill buttons, 9px cards)
     ========================================================================== */
  --radius-sm: 4px;
  --radius-card: 9px;
  --radius-pill: 28.8px;

  /* Clear Space Unit for Logo (X = stem thickness ~ 24px) */
  --logo-clear-space: 48px; /* 2X clear space */
  --logo-min-width: 96px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
