/* ============================================================
   PICKLIST DESIGN TOKENS
   ------------------------------------------------------------
   These are the site's --pk-* custom properties. Every colour,
   font size, spacing value, radius and z-index used in theme.css
   should reference one of these tokens rather than a hard-coded
   value, so the whole site can be re-themed from this one file.

   Values are pulled from Design-System.md and cross-checked
   against the hi-fi HTML wireframes (Picklist_Homepage_HiFi.html,
   Picklist_Static_HiFi.html, Picklist_404_HiFi.html), which are
   the source of truth for this build. The older
   Design Tokens/design-tokens.css file was used only as a
   structural reference (primitives, then semantic, then type
   scale, then spacing, then radius, then z-index) and NOT for
   its values, some of which are out of date (for example it had
   H2 at 28px, the hi-fi build and Design-System.md both use 22px).
   ============================================================ */

:root {

  /* --- 1. PRIMITIVES: raw brand colours, named after the colour
     itself, not what it is used for. Nothing outside this file
     should reference these directly, use the semantic tokens
     below instead. --- */
  --pk-navy: #15294B;
  --pk-ink: #0E1C36;
  --pk-teal: #0E7C8C;
  --pk-teal-dark: #0A6270;
  --pk-aqua: #DCEFF1;
  --pk-aqua-pale: #EDF6F7;
  --pk-gold: #C9992B;
  --pk-gold-sand: #F6EDD8;
  --pk-paper: #F1F0EA;
  --pk-slate: #55606E;
  --pk-line: #E3E7EA;
  --pk-white: #FFFFFF;

  /* functional colours (positive / negative / caution states) */
  --pk-leaf: #3E7A5E;
  --pk-leaf-dark: #2C5A45;
  --pk-leaf-pale: #E9F1EC;
  --pk-red: #B4372F;
  --pk-red-dark: #8F2C25;
  --pk-red-pale: #F6E9E8;
  --pk-amber: #9A5B00;
  --pk-amber-pale: #F6EFE0;

  /* trust pill colours (used only for the Top Pick / Editor's Pick /
     Tried & Tested pills, see COMPONENTS.md when that is built) */
  --pk-toppick-border: #C9992B;
  --pk-toppick-bg: #FBF6EA;
  --pk-toppick-text: #8a6d1f;
  --pk-editorspick-border: #0A6270;
  --pk-editorspick-bg: #EDF6F7;
  --pk-editorspick-text: #0A6270;
  --pk-triedtested-border: #15294B;
  --pk-triedtested-bg: #E8EBF2;
  --pk-triedtested-text: #15294B;

  /* --- 2. SEMANTIC: what each colour is USED for. Theme.css should
     reference these, not the primitives above, so a future rebrand
     only has to change this block. --- */
  --pk-color-bg: var(--pk-paper);
  --pk-color-surface: var(--pk-white);
  --pk-color-text: var(--pk-ink);
  --pk-color-text-secondary: var(--pk-slate);
  --pk-color-heading: var(--pk-navy);
  --pk-color-border: var(--pk-line);
  --pk-color-link: var(--pk-teal);
  --pk-color-link-hover: var(--pk-teal-dark);
  --pk-color-brand: var(--pk-teal);
  --pk-color-brand-hover: var(--pk-teal-dark);
  --pk-color-focus: var(--pk-teal-dark);
  --pk-color-accent: var(--pk-gold); /* marks only, dark grounds, never text on light background */

  /* --- 3. TYPE: two font families (Source Serif 4 for headlines,
     Inter for UI/body text) and the fixed type scale from
     Design-System.md. --- */
  --pk-font-headline: "Source Serif 4", Georgia, serif;
  --pk-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pk-text-h1: 32px;
  --pk-text-h2: 22px; /* uniform across index/hub/article pages */
  --pk-text-standfirst: 17px;
  --pk-text-body: 16px; /* never go below this for running text */
  --pk-text-bullets: 15px; /* FAQ / Highlights bullets */
  --pk-text-nav: 13px; /* spec tables, nav, cards */
  --pk-text-small: 12px; /* byline, captions, disclosures */
  --pk-text-eyebrow: 11px; /* uppercase eyebrows */
  --pk-text-pill: 10px; /* pills, badges, uppercase bold */

  --pk-line-height-body: 1.55;
  --pk-letter-spacing-heading: -0.015em;

  /* --- 4. SPACING: 4px base scale, matches the hi-fi's 24px page
     padding, 8px gaps, 32px section rhythm, etc. --- */
  --pk-space-1: 4px;
  --pk-space-2: 8px;
  --pk-space-3: 12px;
  --pk-space-4: 16px;
  --pk-space-5: 20px;
  --pk-space-6: 24px;
  --pk-space-8: 32px;
  --pk-space-10: 40px;
  --pk-space-12: 48px;

  /* --- 5. RADIUS --- */
  --pk-radius: 8px; /* cards, buttons, images, tiles, panels, inputs, Finder box */
  --pk-radius-sm: 6px; /* small chips and tags */
  --pk-radius-pill: 999px; /* Finder search pill, badges */

  /* --- 6. LAYOUT WIDTHS --- */
  --pk-width-outer: 1320px; /* outer .docwrap max width */
  --pk-width-frame: 1280px; /* white .frame max width */
  --pk-width-contained: 1120px; /* grid/landing pages inside the frame */
  --pk-width-article: 900px; /* article reading column (widened from 760px per Simon, 2026-08-12: too much white space either side) */
  --pk-width-widecol: 1080px; /* buying guide two-wide-callout column */
  --pk-width-utility: 420px; /* auth/utility pages: sign up, log in, 404 */

  /* --- 7. Z-INDEX --- */
  --pk-z-mast: 50;
  --pk-z-finder: 60;
  --pk-z-mobile-finder: 200;
  --pk-z-skip-link: 300;

  /* --- 8. BREAKPOINT (documented here for reference; CSS custom
     properties cannot be used inside @media queries, so theme.css
     still writes 768px directly, but this token records the value
     so it stays in one place conceptually) --- */
  --pk-breakpoint-mobile: 768px;
}
