:root {
  /* Typography */
  --font-family-base: "Inter", "PingFang SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;

  --font-weight-hero: 900;
  --font-weight-section: 800;
  --font-weight-card: 600;
  --font-weight-body: 400;
  --font-weight-button: 700;
  --font-weight-footnote: 300;

  --font-hero-size: 24px;
  --font-section-title-size: 24px;
  --font-card-title-size: 17px;
  --font-body-size: 14px;
  --font-small-size: 12px;
  --font-button-size: 16px;
  --font-footnote-size: 12px;

  --line-height-hero: 1.3;
  --line-height-section: 1.4;
  --line-height-card: 1.4;
  --line-height-body: 1.6;
  --line-height-small: 1.5;
  --line-height-button: 1.4;
  --line-height-footnote: 1.5;

  /* ── Layer 1: Raw palette (never reference directly in components) ── */
  --blue-700: #1457B5;
  --blue-600: #1763CB;
  --blue-50: #F3F7FF;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --raw-black: #000;
  --raw-gray-800: #333;
  --raw-gray-500: #666;
  --raw-gray-200: #E5E5E5;
  --raw-gray-100: #F5F5F5;
  --raw-white: #fff;

  /* ── Layer 2: Semantic tokens (components reference only this layer) ── */
  --color-bg-base: var(--raw-white);
  --color-bg-section: var(--blue-50);
  --color-bg-soft: var(--raw-gray-100);
  --color-bg-card: var(--raw-white);
  --color-bg-footer: var(--blue-600);

  --color-text-primary: var(--raw-black);
  --color-text-secondary: var(--raw-gray-800);
  --color-muted: var(--raw-gray-500);
  --color-text-link: var(--blue-700);
  --color-text-on-footer: rgba(255, 255, 255, .88);
  --color-text-on-footer-strong: var(--raw-white);
  --color-border-footer: rgba(255, 255, 255, .20);

  --color-brand: var(--blue-600);
  --color-brand-dark: var(--blue-700);
  --color-white: var(--raw-white);
  --color-black: var(--raw-black);
  --color-dark: #111111;
  --color-dark-blue: #0F2A5C;
  --color-border: var(--raw-gray-200);
  --color-overlay: rgba(17, 17, 17, 0.62);
  --color-brand-faint: rgba(23, 99, 203, 0.1);
  --color-brand-soft: rgba(23, 99, 203, 0.08);
  --color-brand-soft-2: rgba(23, 99, 203, 0.12);
  --color-brand-line: rgba(23, 99, 203, 0.2);
  --color-brand-line-strong: rgba(23, 99, 203, 0.3);

  --btn-primary-bg: var(--blue-600);
  --btn-primary-bg-hover: var(--blue-700);
  --btn-primary-text: var(--raw-white);

  --btn-cta-bg: var(--amber-500);
  --btn-cta-bg-hover: var(--amber-400);
  --btn-cta-text: var(--raw-black);

  --accent-brand: var(--blue-600);
  --color-hero-accent: var(--amber-400);

  /* Interaction */
  --transition-base: all .2s ease-in-out;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, .08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .12);
  --focus-ring: 0 0 0 2px rgba(23, 99, 203, .3);

  /* Spacing Tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 16px;
  --gutter: 16px;
  --section-space: var(--space-8);
  --grid-columns: 12;

  /* Header */
  --header-height: 80px;
  /* Sticky category breadcrumb on the six product category pages.
     Owner: docs/VERIBATH_NAV_IA.md. Keep in sync with .cat-crumb padding. */
  --cat-crumb-height: 44px;

  /* Hero */
  --hero-min-height: 480px;
  --hero-title-max: 22ch;
  --hero-lead-max: 40ch;

  /* Hero height tiers: XL home / LG pillar / MD deep / SM utility.
     Width-driven (vw) so the band keeps a controlled aspect ratio instead of
     turning into a thin letterbox on wide monitors (which crops key subjects).
     XL holds ~3.0-3.2:1, LG ~3.6:1 across common desktop widths; XL always
     taller than LG, preserving the tier hierarchy. */
  --hero-h-xl: clamp(440px, 33vw, 600px);
  --hero-h-lg: clamp(360px, 28vw, 540px);
  --hero-h-md: clamp(240px, 30vh, 300px);
  --hero-h-sm: clamp(160px, 22vh, 200px);

  /* Cards (homepage + shared patterns) */
  --card-radius: var(--radius-md);
  --card-border: 1px solid var(--color-border);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.08);
  --card-padding: var(--space-5);

  /* Buttons */
  --btn-min-height: 48px;
  --btn-min-height-lg: 52px;

  /* Common widths */
  --content-max: 760px;
  --text-measure: 66ch;
  --section-heading-max: 40rem;
}

@media (min-width: 576px) {
  :root {
    --font-hero-size: 26px;
    --font-section-title-size: 26px;
    --font-body-size: 15px;
    --font-small-size: 12px;
  }
}

@media (min-width: 768px) {
  :root {
    --font-hero-size: 28px;
    --font-section-title-size: 28px;
    --font-card-title-size: 18px;
    --font-body-size: 16px;
    --font-small-size: 13px;
    --container-padding: 24px;
    --gutter: 24px;
    --section-space: calc(var(--space-8) + var(--space-2));
    --hero-min-height: 520px;
    --hero-title-max: 24ch;
  }
}

@media (min-width: 1024px) {
  :root {
    --font-hero-size: clamp(30px, 2.8vw, 38px);
    --font-section-title-size: 30px;
    --font-card-title-size: 19px;
    --font-body-size: 16px;
    --container-padding: 32px;
    --gutter: 32px;
    --section-space: var(--space-9);
    --hero-min-height: 560px;
    --hero-title-max: 26ch;
    --hero-lead-max: 42ch;
  }
}

@media (min-width: 1280px) {
  :root {
    --font-hero-size: 34px;
    --font-section-title-size: 32px;
    --font-card-title-size: 20px;
    --font-body-size: 16px;
  }
}
