/*
 * Design tokens - :root custom properties.
 *
 * Sourced from src/data/typography.json (sizes, weights, leading, tracking, semantic colors)
 * PLUS the palette actually used across site-chrome.js and store-pages.js. The typography.json
 * `fonts` values are stale (Bricolage/Inter); the live site uses Schibsted Grotesk (headings)
 * and Hanken Grotesk (body) per the implementation plan, so those are the token defaults.
 */
:root {
  /* --- Fonts (live truth: Schibsted + Hanken) --- */
  --font-heading: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* --- Type scale (typography.json > size) --- */
  --size-h1: 42px;
  --size-h2: 30px;
  --size-h3: 22px;
  --size-h4: 18px;
  --size-body: 16px;
  --size-small: 14px;
  --size-label: 13px;

  /* --- Weights (typography.json > weight) --- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* --- Line height (typography.json > leading) --- */
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* --- Letter spacing (typography.json > tracking) --- */
  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.16em;

  /* --- Semantic colors (typography.json > color) --- */
  --color-text: #1c1814;
  --color-muted: #5b544b;
  --color-faint: #6b655b;
  --color-accent: #e64438;
  --color-accent-dark: #c2402e;
  --color-amber: #9a520c;

  /* --- Brand palette (site-chrome.js + store-pages.js) --- */
  --cream: #fbf9f5;        /* page background */
  --cream-2: #fbf6ee;      /* pill/button text on red */
  --cream-3: #fbf4ec;
  --ink: #1c1814;          /* primary text */
  --ink-2: #3a352e;        /* nav inactive */
  --ink-3: #4a443c;
  --brand-red: #e64438;    /* accent / CTA */
  --brand-red-dark: #c2402e;
  --brand-red-hover: #c7362b;
  --brand-red-alt: #b23a28;
  --amber: #9a520c;
  --amber-bright: #f0960f; /* selection / social hover */
  --amber-mid: #d99a0b;
  --amber-dark: #8a5a12;
  --muted: #5b544b;
  --muted-2: #6b655b;
  --muted-3: #6b6459;

  /* Footer + dark surface tints */
  --foot-heading: #8a8174;
  --foot-link: #cfc7bb;
  --foot-text: #b5ada1;
  --foot-faint: #7A7268;

  /* Borders / hairlines / warm neutrals */
  --line: #ece5db;
  --line-2: #e2dbd0;
  --line-3: #e6decf;
  --sand: #ede3d3;
  --sand-2: #efe8dd;
  --sand-3: #f1ebdf;
  --sand-4: #e7decb;

  /* Status greens (open-now badges) */
  --green: #2e7d46;
  --green-2: #2e7d32;
}
