/* ==========================================================================
   SETTINGS
   Global variables: color, type, spacing, layout. No selectors that
   output CSS directly — this layer only defines the vocabulary used
   by every layer below it.

   Light editorial system: warm off-white base, carbon text, brand
   espresso and tan/taupe as accents.
   ========================================================================== */

:root {
  /* — Base palette — */
  --color-ink: #262421;            /* Carbon Black — primary text */
  --color-ink-soft: #4c4741;       /* derived: body text */

  --color-espresso-900: #3f261d;
  --color-espresso-800: #5b372a;   /* Espresso */

  --color-taupe-500: #a88373;      /* Dusty Taupe */
  --color-tan-500: #bb8b6e;        /* Tan — primary accent */
  --color-tan-400: #c99f85;
  --color-tan-900: #99613f;        /* Darkened tan — nav hover/active link text only. Lightest brown that still clears 4.5:1 against the linen nav bg, not for general use */

  --color-grey-200: #d9cfd1;       /* Dust Grey — hairlines */
  --color-blush-100: #eddcdc;      /* Soft Blush — accent only */
  --color-snow-50: #fff6f6;        /* Snow */
  --color-cream-50: #faf6f1;       /* derived: warm page base */
  --color-linen: #faf6f1;          /* alias for cream-50 — used in section backgrounds */
  --color-white: #ffffff;

  /* — Semantic — */
  --bg: var(--color-cream-50);
  --text: var(--color-ink);
  --text-soft: var(--color-ink-soft);
  --text-dim: rgba(38, 36, 33, 0.55);
  --text-muted: rgba(38, 36, 33, 0.45);
  --text-accent: var(--color-espresso-800);
  --border-faint: rgba(38, 36, 33, 0.08);
  --border-subtle: rgba(38, 36, 33, 0.16);
  --border-strong: rgba(38, 36, 33, 0.35);

  /* — Typography —
     Matches negroni.tonicsiteshop.com: Newsreader Display
     (Light 300 / ExtraLight 200, true italics) for all serif display,
     Karla at 0.1em tracking for nav/eyebrows/labels,
     Libre Franklin 19px/1.8 for body copy. */
  --font-heading: 'Newsreader', ui-serif, Georgia, serif;
  --font-sub: 'Karla', ui-sans-serif, -apple-system, sans-serif;
  --font-body: 'Libre Franklin', ui-sans-serif, -apple-system, sans-serif;

  /* The reference's static "Light"/"Extra Light" files render heavier
     than the same nominal values on the variable weight axis — match
     visually, not by name. */
  --fw-display: 400;        /* ≈ Newsreader Display Light (static) */
  --fw-display-xlight: 300; /* ≈ Newsreader Display Extra Light (static) */

  --fs-xs: 0.875rem;   /* 14px — labels, meta, tags, category */
  --fs-sm: 0.875rem;   /* 14px — labels, meta, tags, category */
  --fs-md: 1rem;       /* 16px — mobile nav links, compact list titles */
  --fs-base: 1.25rem;  /* 20px — body copy */
  --fs-lg: 1.25rem;    /* 20px — italic serif links */
  --fs-xl: 1.5rem;     /* 24px — largest body: blockquotes, logo, subheads */
  --fs-2xl: 2.25rem;   /* 36px */
  --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3.125rem);   /* → 50px section h2s */
  --fs-4xl: clamp(2.3rem, 1.5rem + 2.8vw, 3.45rem);  /* → 55px hero, like the reference */

  /* 4-level heading scale — desktop max / mobile min */
  --fs-h1: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);      /* 72px / 40px */
  --fs-h2: clamp(2.25rem, 1.35rem + 2.8vw, 4.25rem); /* 68px / 36px */
  --fs-h3: clamp(2rem, 1.2rem + 2.2vw, 3.5rem);      /* 56px / 32px */
  --fs-h4: clamp(1.75rem, 1.05rem + 1.9vw, 3rem);    /* 48px / 28px */

  --lh-tight: 1.15;
  --lh-base: 1.8;

  /* — Spacing scale (4px base) — */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* — Layout — */
  --container-max: 85vw;

  --radius-sm: 4px;

  --shadow-md: 0 12px 32px rgba(38, 36, 33, 0.1);
  --shadow-lg: 0 20px 48px rgba(38, 36, 33, 0.15);

  --transition-base: 200ms ease;
}

/* Mobile phones only — body copy (--fs-base) reduced from 20px to 18px.
   Redefining the token here means every element using var(--fs-base)
   picks it up automatically, sitewide, rather than needing per-page or
   per-selector overrides. --fs-lg is deliberately left untouched even
   though it's numerically the same 20px — it's also used by h4
   headings and italic serif links, not just body paragraphs. */
@media (max-width: 700px) {
  :root {
    --fs-base: 1.125rem;
  }
}
