/**
 * BalticCommerce — Slaugita Design System CSS Tokens
 * Single Source of Truth for Theme Design System
 *
 * @package bc-theme
 */

:root {
  color-scheme: light;

  /* ---- Brand Palette ---- */
  --navy: #012245;
  --navy-dark: #011c3a;
  --teal: #0d908e;
  --teal-dark: #0a7370;
  --teal-light: #e6f3f2;
  --amber: #e8985a;
  --amber-light: #fdf1e6;
  --red: #dc3a52;
  --red-light: #fdecef;
  --green: #2e9e5b;
  --green-light: #eaf7ee;
  --ink: #1c2b3a;
  --gray: #4e5a6a;
  --gray-accessible: #4e5a6a;
  /* 5.8:1 on white — WCAG AA */
  --gray-light: #a6b0bb;
  --count-text: #5a6575;
  /* 4.8:1 on white — WCAG AA */
  --line: #e5e9ee;
  --bg: #f7f9fb;
  --white: #ffffff;

  /* ---- Semantic Mappings ---- */
  --color-primary: var(--teal);
  --color-primary-hover: var(--teal-dark);
  --color-primary-soft: var(--teal-light);
  --color-accent: var(--amber);
  --color-accent-soft: var(--amber-light);
  --color-danger: var(--red);
  --color-danger-soft: var(--red-light);
  --color-success: var(--green);
  --color-success-soft: var(--green-light);
  --color-text: var(--ink);
  --color-text-muted: var(--gray);
  --color-heading: var(--navy);
  --color-border: var(--line);
  --color-surface: var(--white);
  --color-surface-alt: var(--bg);

  /* ---- Typography ---- */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --fs-xs: 0.75rem;                       /* 12px */
  --fs-sm: 0.8125rem;                     /* 13px */
  --fs-base: 1rem;                        /* 16px */
  --fs-md: 1.0625rem;                     /* 17px */
  --fs-lg: 1.125rem;                      /* 18px */
  --fs-xl: 1.25rem;                       /* 20px */
  --fs-2xl: 1.5rem;                       /* 24px */
  --fs-3xl: 2rem;                         /* 32px */
  --fs-4xl: 2.625rem;                     /* 42px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --lh-tight: 1.16;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* ---- Spacing Scale (4px base) ---- */
  --space-1: 0.25rem;                     /* 4px */
  --space-2: 0.5rem;                      /* 8px */
  --space-3: 0.75rem;                     /* 12px */
  --space-4: 1rem;                        /* 16px */
  --space-5: 1.25rem;                     /* 20px */
  --space-6: 1.5rem;                      /* 24px */
  --space-8: 2rem;                        /* 32px */
  --space-10: 2.5rem;                     /* 40px */
  --space-12: 3rem;                       /* 48px */
  --space-16: 4rem;                       /* 64px */

  /* ---- Border Radii ---- */
  --radius-sm: 0.25rem;                   /* 4px */
  --radius-md: 0.375rem;                  /* 6px */
  --radius-lg: 0.5rem;                    /* 8px */
  --radius-xl: 0.875rem;                  /* 14px */
  --radius-2xl: 1.25rem;                  /* 20px */
  --radius-full: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(1, 34, 69, .06);
  --shadow-md: 0 14px 32px rgba(1, 34, 69, .09);
  --shadow-lg: 0 24px 48px rgba(1, 34, 69, .14);

  /* ---- Transitions ---- */
  --ease-fast: .15s ease;
  --ease-base: .2s ease;
  --ease-slow: .28s ease;

  /* ---- Layout ---- */
  --container-max: 87.5rem;               /* 1400px */
  --touch-target-min: 2.75rem;            /* 44px */
}