/* ==========================================================================
   Paper Boy Biz — Design tokens (Brand Board v2)
   Load first on every page. Components use these variables, never raw hex.
   Breakpoints (mobile-first, used as min-width media queries):
     tablet  >= 768px
     desktop >= 1024px
     wide    >= 1280px
   ========================================================================== */

:root {
  /* ---- Color ----------------------------------------------------------- */
  --color-primary: #0019D4;          /* category menu, trust strip, tiles, links */
  --color-primary-dark: #000F7A;     /* utility bar, footer, link hover */
  --color-action: #FFF200;           /* Add to Cart / checkout buttons (logo yellow) */
  --color-action-hover: #F2D600;
  --color-action-border: #8A7A00;    /* 4.3:1 edge so yellow holds on white */
  --color-text: #111318;
  --color-price: #000F7A;           /* prices: Primary dark, 15:1 on white */
  --color-text-muted: #565C68;
  --color-text-inverse: #FFFFFF;
  --color-text-inverse-muted: #DDE2FF;
  --color-border: #D9DCE3;           /* decorative lines, card borders */
  --color-border-strong: #8A909C;    /* inputs, selects, steppers (3.2:1) */
  --color-bg: #FFFFFF;
  --color-bg-light: #F4F5F8;
  --color-success: #137A3A;
  --color-success-bg: #E7F5EC;
  --color-error: #C8102E;
  --color-error-bg: #FDECEF;
  --color-info-bg: #E8EBFF;
  --color-badge-bg: #E8EBFF;
  --color-badge-text: #000F7A;
  --color-disabled-bg: #E4E6EB;
  --color-disabled-text: #5F6570;
  --color-logo-blue: #0000FF;        /* logo file only, never UI */

  /* ---- Typography ------------------------------------------------------ */
  --font-heading: 'Red Hat Display', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Mobile sizes (default). Tablet/desktop overrides below. */
  --fs-h1: 1.875rem;     /* 30 */
  --fs-h2: 1.625rem;     /* 26 */
  --fs-h3: 1.375rem;     /* 22 */
  --fs-h4: 1.1875rem;    /* 19 */
  --fs-h5: 1.0625rem;    /* 17 */
  --fs-h6: 0.9375rem;    /* 15 */
  --fs-body: 1rem;       /* 16 */
  --fs-small: 0.875rem;  /* 14 */
  --fs-xs: 0.75rem;      /* 12 */
  --fs-price: 1.0625rem;   /* 17 */
  --fs-price-lg: 1.5rem;   /* 24 */
  --fs-badge: 0.75rem;   /* 12 */
  --fs-button: 1rem;     /* 16 */

  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.6;

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

  /* ---- Spacing (4px base) --------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;

  /* ---- Shape ----------------------------------------------------------- */
  --radius-0: 0;
  --radius-sm: 4px;      /* buttons, inputs */
  --radius-md: 6px;      /* cards, tiles */
  --radius-pill: 999px;  /* badges */
  --border-width: 1px;

  /* ---- Elevation & focus ---------------------------------------------- */
  --shadow-none: none;
  --shadow-sm: 0 2px 6px rgba(17, 19, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 19, 24, 0.12);
  --focus-ring: 0 0 0 3px rgba(0, 25, 212, 0.35);

  /* ---- Layout ---------------------------------------------------------- */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: 16px;
  --section-gap: var(--space-9);
  --header-utility-h: 36px;
  --header-main-h: 72px;
  --header-nav-h: 48px;
  --tap-target: 44px;

  /* ---- Motion ---------------------------------------------------------- */
  --duration: 150ms;
  --ease: ease-out;
}

/* Tablet ---------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --fs-h1: 2.125rem;   /* 34 */
    --fs-h2: 1.75rem;    /* 28 */
    --fs-h3: 1.5rem;     /* 24 */
    --fs-h4: 1.25rem;    /* 20 */
    --fs-h5: 1.125rem;   /* 18 */
    --fs-h6: 1rem;       /* 16 */
    --fs-price: 1.125rem;    /* 18 */
    --fs-price-lg: 1.625rem; /* 26 */
    --gutter: 24px;
    --section-gap: var(--space-10);
    --header-main-h: 80px;
  }
}

/* Desktop --------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --fs-h1: 2.5rem;     /* 40 */
    --fs-h2: 2rem;       /* 32 */
    --fs-h3: 1.625rem;   /* 26 */
    --fs-h4: 1.375rem;   /* 22 */
    --fs-h5: 1.125rem;   /* 18 */
    --fs-h6: 1rem;       /* 16 */
    --fs-price: 1.25rem;     /* 20 */
    --fs-price-lg: 1.75rem;  /* 28 */
    --gutter: 32px;
    --header-main-h: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}
