/* ============================================================
   PureLife Vet Design System, design tokens
   v2.0.0 · 2026-09-10
   GENERATED FILE, edit tokens/tokens.json then run tokens/build.py
   All chromatic tokens sit between 4deg and 47deg. Nothing in 60-300deg. The brand book's teal (#B4DBDB / #3C6768) is deliberately excluded.
   ============================================================ */

:root {
  /* ---- raw palette ---- */
  --c-bone-50: #FEFBF9;
  --c-bone-100: #FBF3F0;
  --c-bone-200: #F5EBE4;
  --c-bone-300: #EFE3D9;
  --c-bone-0: #FFFFFF;
  --c-greige-200: #E0DAD5;
  --c-greige-300: #D3C8BF;
  --c-greige-400: #BCADA1;
  --c-tan-300: #E2CBB6;
  --c-tan-400: #D2A584;
  --c-tan-500: #CBA78C;
  --c-tan-600: #A9866A;
  --c-brown-500: #8A6743;
  --c-brown-700: #7D5C3B;
  --c-brown-800: #4C3826;
  --c-brown-900: #3A2D21;
  --c-ink-600: #6B5E52;
  --c-ink-800: #413A33;
  --c-ink-900: #2B2521;
  --c-ink-950: #1A1512;
  --c-ink-500: #857B73;
  --c-clay-300: #EFBEA4;
  --c-clay-500: #C2603F;
  --c-clay-600: #A94D2E;
  --c-clay-700: #8A3D23;
  --c-semantic-success: #7D5C3B;
  --c-semantic-successTint: #EDE2D6;
  --c-semantic-warning: #C58A2E;
  --c-semantic-warningTint: #F8EDD6;
  --c-semantic-danger: #A83226;
  --c-semantic-dangerTint: #F7E1DD;
  --c-semantic-info: #A9866A;
  --c-semantic-infoTint: #F2E8E0;
  --c-semantic-rx: #8A3D23;

  /* ---- spacing (4pt base) ---- */
  --sp-0: 0px;
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 20px;
  --sp-7: 24px;
  --sp-8: 32px;
  --sp-9: 40px;
  --sp-10: 48px;
  --sp-11: 64px;
  --sp-12: 80px;
  --sp-13: 104px;
  --sp-14: 136px;
  --sp-15: 180px;

  /* ---- radius ---- */
  --r-xs: 0px;
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --r-xl: 0px;
  --r-2xl: 0px;
  --r-pill: 0px;

  /* ---- elevation (warm-tinted) ---- */
  --sh-sm: 0 1px 2px rgba(43,37,33,0.05);
  --sh-lg: 0 18px 44px rgba(43,37,33,0.13);

  /* ---- motion ---- */
  --mo-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --mo-base: 300ms cubic-bezier(0.4,0,0.2,1);
  --mo-slow: 620ms cubic-bezier(0.16,1,0.3,1);

  /* ---- families ---- */
  --ff-display: Avenir Black, Nunito, system-ui, sans-serif;
  --ff-editorial: Rubik, system-ui, sans-serif;
  --ff-text: Manrope, system-ui, sans-serif;
  --ff-accent: Sarina, cursive;
  --ff-arabic: 'SF Arabic', 'Geeza Pro', 'IBM Plex Sans Arabic', Rubik, sans-serif;

  /* ---- grid ---- */
  --grid-desktop-frame: 1440px;
  --grid-desktop-columns: 12px;
  --grid-desktop-margin: 64px;
  --grid-desktop-gutter: 24px;
  --grid-desktop-content: 1312px;
  --grid-desktop-maxText: 640px;
  --grid-tablet-frame: 834px;
  --grid-tablet-columns: 8px;
  --grid-tablet-margin: 40px;
  --grid-tablet-gutter: 20px;
  --grid-tablet-content: 754px;
  --grid-mobile-frame: 390px;
  --grid-mobile-columns: 4px;
  --grid-mobile-margin: 20px;
  --grid-mobile-gutter: 16px;
  --grid-mobile-content: 350px;

  /* ---- type scale (desktop) ---- */
  --fs-hero: 72px;  --lh-hero: 1.0;  --tr-hero: -0.035em;
  --fs-display: 44px;  --lh-display: 1.06;  --tr-display: -0.03em;
  --fs-h1: 34px;  --lh-h1: 1.12;  --tr-h1: -0.025em;
  --fs-h2: 26px;  --lh-h2: 1.18;  --tr-h2: -0.02em;
  --fs-h3: 19px;  --lh-h3: 1.28;  --tr-h3: -0.012em;
  --fs-h4: 16px;  --lh-h4: 1.35;  --tr-h4: -0.008em;
  --fs-lede: 21px;  --lh-lede: 1.5;  --tr-lede: -0.01em;
  --fs-body: 16px;  --lh-body: 1.6;  --tr-body: 0;
  --fs-bodySm: 14px;  --lh-bodySm: 1.55;  --tr-bodySm: 0;
  --fs-label: 14px;  --lh-label: 1.3;  --tr-label: 0;
  --fs-caption: 12.5px;  --lh-caption: 1.45;  --tr-caption: 0;
  --fs-overline: 11px;  --lh-overline: 1.2;  --tr-overline: 0.16em;
  --fs-price: 22px;  --lh-price: 1.1;  --tr-price: -0.02em;
}

/* ---- type scale (mobile override) ---- */
@media (max-width: 768px) {
  :root {
    --fs-hero: 40px;
    --fs-display: 30px;
    --fs-h1: 26px;
    --fs-h2: 22px;
    --fs-h3: 18px;
    --fs-h4: 16px;
    --fs-lede: 18px;
    --fs-body: 16px;
    --fs-bodySm: 14px;
    --fs-label: 14px;
    --fs-caption: 12.5px;
    --fs-overline: 10.5px;
    --fs-price: 20px;
  }
}

/* ============ semantic layer: LIGHT (default) ============ */
:root, [data-theme='light'] {
  --bg-canvas: #FEFBF9;   /* bone.50 */
  --bg-surface: #FFFFFF;   /* bone.0 */
  --bg-subtle: #FBF3F0;   /* bone.100 */
  --bg-inset: #F5EBE4;   /* bone.200 */
  --bg-inverse: #2B2521;   /* ink.900 */
  /* The accent was clay #C2603F, which reads as orange and appears nowhere in
     PURE LIFE VET_BRAND_v3.ai: it came in with the first design system commit
     and was never checked against the file. The accent is the brand's own
     brown #7D5C3B now, 295+ fills in the .ai, 5.53:1 on the page background.
     The clay scale is left defined but unused. */
  --bg-accentTint: #E2CBB6;   /* tan.300, the warm tint under the brown accent */
  --border-hair: #E0DAD5;   /* greige.200 */
  --border-default: #D3C8BF;   /* greige.300 */
  --border-strong: #BCADA1;   /* greige.400 */
  --border-focus: #7D5C3B;   /* brown.700 */
  --text-primary: #2B2521;   /* ink.900 */
  --text-secondary: #6B5E52;   /* ink.600 */
  --text-muted: #857B73;   /* ink.500 */
  --text-onInverse: #FBF3F0;   /* bone.100 */
  --text-onAccent: #FEFBF9;   /* bone.50 */
  --text-accent: #7D5C3B;   /* brown.700 */
  /* The brand teal, measured off the brand book's own stories mockup. Applied
     through .home only, so it cannot leak onto the rest of the site. */
  --c-teal-600: #3C6768;
  --c-teal-700: #2F5152;
  --c-teal-300: #CBD9D9;
  --text-brand: #7D5C3B;   /* brown.700 */
  /* Buttons are the brand's dark brown, not the near-black ink. The ink stays
     the colour of type and of the dark bands, where it is a surface rather
     than something you press. 11:1 against the bone text on top. */
  --action-primary: #4C3826;   /* brown.800 */
  --action-primaryHover: #3A2D21;   /* brown.900 */
  --action-accent: #7D5C3B;   /* brown.700 */
  --action-accentHover: #4C3826;   /* brown.800 */
}

/* This design is light-only by decision. */
:root { color-scheme: light; }
