/* =====================================================================
   PIRT Theme — Design Tokens
   Source: C10-prototypes/prototype-2/common/styles.css :root block,
   extended with explicit typography and spacing scales.
   Per F02 Pacific Glassmorphism design language.
   ===================================================================== */

:root {
  /* ----- Color palette: Ocean ----- */
  --pirt-blue-deep: #0a1628;
  --pirt-blue-dark: #0d2137;
  --pirt-blue-mid: #0e4d6e;
  --pirt-blue-primary: #1076a8;
  --pirt-blue-light: #38a3d4;

  /* ----- Color palette: Reef accents ----- */
  --pirt-teal: #2abfb3;
  --pirt-green: #34c47c;
  --pirt-green-light: #5fd9a0;
  --pirt-orange: #f59e0b;
  --pirt-purple: #8b5cf6;
  --pirt-red: #ef4444;

  /* ----- Color palette: Neutrals & alpha ----- */
  --pirt-white: #ffffff;
  --pirt-white-90: rgba(255, 255, 255, 0.9);
  --pirt-white-70: rgba(255, 255, 255, 0.7);
  --pirt-white-50: rgba(255, 255, 255, 0.5);
  --pirt-white-20: rgba(255, 255, 255, 0.2);
  --pirt-white-10: rgba(255, 255, 255, 0.1);
  --pirt-white-05: rgba(255, 255, 255, 0.05);

  /* ----- Glassmorphism surfaces ----- */
  --pirt-glass-bg: rgba(255, 255, 255, 0.08);
  --pirt-glass-bg-light: rgba(255, 255, 255, 0.12);
  --pirt-glass-border: rgba(255, 255, 255, 0.15);
  --pirt-glass-blur: 20px;
  --pirt-glass-blur-strong: 24px;

  /* ----- Shadows ----- */
  --pirt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --pirt-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --pirt-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --pirt-shadow-glow-teal: 0 4px 16px rgba(42, 191, 179, 0.3);
  --pirt-shadow-glow-teal-strong: 0 6px 24px rgba(42, 191, 179, 0.4);

  /* ----- Radii ----- */
  --pirt-radius-sm: 8px;
  --pirt-radius-md: 14px;
  --pirt-radius-lg: 20px;
  --pirt-radius-xl: 28px;
  --pirt-radius-pill: 9999px;

  /* ----- Typography ----- */
  --pirt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pirt-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --pirt-font-size-xs: 12px;
  --pirt-font-size-sm: 13px;
  --pirt-font-size-base: 14px;
  --pirt-font-size-md: 16px;
  --pirt-font-size-lg: 18px;
  --pirt-font-size-xl: 22px;
  --pirt-font-size-2xl: 28px;
  --pirt-font-size-3xl: 36px;
  --pirt-font-size-4xl: 48px;
  --pirt-font-size-display: clamp(40px, 6vw, 72px);

  --pirt-font-weight-light: 300;
  --pirt-font-weight-regular: 400;
  --pirt-font-weight-medium: 500;
  --pirt-font-weight-semibold: 600;
  --pirt-font-weight-bold: 700;
  --pirt-font-weight-extrabold: 800;
  --pirt-font-weight-black: 900;

  --pirt-line-height-tight: 1.2;
  --pirt-line-height-snug: 1.4;
  --pirt-line-height-base: 1.6;
  --pirt-line-height-loose: 1.8;

  /* ----- Spacing scale (4px grid) ----- */
  --pirt-space-1: 4px;
  --pirt-space-2: 8px;
  --pirt-space-3: 12px;
  --pirt-space-4: 16px;
  --pirt-space-5: 20px;
  --pirt-space-6: 24px;
  --pirt-space-8: 32px;
  --pirt-space-10: 40px;
  --pirt-space-12: 48px;
  --pirt-space-16: 64px;
  --pirt-space-20: 80px;

  /* ----- Layout ----- */
  --pirt-nav-height: 72px;
  --pirt-container-max: 1240px;
  --pirt-container-padding: 24px;

  /* ----- Breakpoints (for use in @media) ----- */
  --pirt-bp-sm: 640px;
  --pirt-bp-md: 768px;
  --pirt-bp-lg: 1024px;
  --pirt-bp-xl: 1280px;
  --pirt-bp-2xl: 1536px;

  /* ----- Z-index layers ----- */
  --pirt-z-base: 1;
  --pirt-z-dropdown: 100;
  --pirt-z-sticky: 500;
  --pirt-z-nav: 1000;
  --pirt-z-modal: 2000;
  --pirt-z-toast: 3000;

  /* ----- Motion ----- */
  --pirt-transition-fast: 150ms ease;
  --pirt-transition-base: 250ms ease;
  --pirt-transition-slow: 400ms ease;

  /* ----- Backwards-compatible aliases (match prototype variable names) ----- */
  --blue-deep: var(--pirt-blue-deep);
  --blue-dark: var(--pirt-blue-dark);
  --blue-mid: var(--pirt-blue-mid);
  --blue-primary: var(--pirt-blue-primary);
  --blue-light: var(--pirt-blue-light);
  --teal: var(--pirt-teal);
  --green: var(--pirt-green);
  --green-light: var(--pirt-green-light);
  --orange: var(--pirt-orange);
  --purple: var(--pirt-purple);
  --red: var(--pirt-red);
  --white: var(--pirt-white);
  --white-90: var(--pirt-white-90);
  --white-70: var(--pirt-white-70);
  --white-50: var(--pirt-white-50);
  --white-20: var(--pirt-white-20);
  --white-10: var(--pirt-white-10);
  --white-05: var(--pirt-white-05);
  --glass-bg: var(--pirt-glass-bg);
  --glass-bg-light: var(--pirt-glass-bg-light);
  --glass-border: var(--pirt-glass-border);
  --shadow-sm: var(--pirt-shadow-sm);
  --shadow-md: var(--pirt-shadow-md);
  --radius-sm: var(--pirt-radius-sm);
  --radius-md: var(--pirt-radius-md);
  --radius-lg: var(--pirt-radius-lg);
  --radius-xl: var(--pirt-radius-xl);
  --nav-height: var(--pirt-nav-height);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --pirt-transition-fast: 0ms;
    --pirt-transition-base: 0ms;
    --pirt-transition-slow: 0ms;
  }
}
