/* ==========================================================================
   variables.css — design tokens
   Mirror these 1:1 as Webflow Variables (see WEBFLOW-MIGRATION.md §2).
   ========================================================================== */

:root {
  /* ---- Colour: ink on paper ----
     A broadsheet palette. The warm tones from the earlier palette are kept,
     but only as category marks and spot art, never as page furniture. ---- */
  --color-ink: #121212;
  --color-navy: #121212;            /* kept as a token name; now ink */
  --color-navy-secondary: #2B2420;
  --color-background: #FFFFFF;      /* bone white */
  --color-white: #FFFFFF;
  --color-paper: #FBF8F3;           /* alternating band */
  --color-accent: #8A2B14;          /* a single editorial red, for links */
  --color-accent-hover: #6A1F0E;
  --color-text-secondary: #595247;
  --color-rule: #D8D2C7;            /* hairline */
  --color-border: #D8D2C7;

  /* ---- Colour: derived (contrast-checked) ---- */
  --color-text: var(--color-ink);
  --color-surface: var(--color-white);
  --color-surface-muted: #F3EFE8;
  --color-border-strong: #B4ABA0;
  --color-on-dark: #F4F1EA;
  --color-on-dark-muted: #CBB9A4;
  --color-border-on-dark: #4A3F36;
  --color-accent-on-dark: #E6B9A4;
  --color-error: #9A3412;
  --color-success: #2F6B3F;
  --color-notice-bg: #F6EFE2;
  --color-notice-border: #D9C49E;

  /* ---- Typography: an editorial, magazine setting ----
     Lora                  → headlines (a contemporary serif with brushed curves)
     Source Serif 4        → body and deks, set at a reading size, not a UI size
     Jost                  → eyebrows, labels and metadata only, in small caps
     ---- */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --font-size-display: clamp(2.75rem, 1.5rem + 4.6vw, 5.25rem);   /* 44 → 84px */
  --font-size-h1: clamp(2.125rem, 1.4rem + 3.2vw, 4rem);          /* 34 → 64px */
  --font-size-h2: clamp(1.875rem, 1.45rem + 1.8vw, 3.125rem);     /* 30 → 50px */
  --font-size-h3: clamp(1.4375rem, 1.3rem + 0.6vw, 1.875rem);     /* 23 → 30px */
  --font-size-h4: 1.3125rem;
  --font-size-h5: 1.0625rem;
  --font-size-large: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);  /* 19 → 22px */
  --font-size-regular: 1.1875rem;                                 /* 19px — editorial body */
  --font-size-small: 1rem;                                        /* 16px */
  --font-size-tiny: 0.8125rem;                                    /* 13px — labels */

  --line-height-tight: 1.04;
  --line-height-heading: 1.12;
  --line-height-body: 1.6;

  --letter-spacing-display: -0.015em;
  --letter-spacing-heading: -0.01em;
  --letter-spacing-eyebrow: 0.14em;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 700;

  /* ---- Rules: the page is held together by hairlines, never by shadows ---- */
  --rule-hair: 1px solid var(--color-rule);
  --rule-heavy: 2px solid var(--color-ink);

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --padding-global: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --padding-section-small: clamp(3rem, 2.4rem + 2vw, 4rem);
  --padding-section-medium: clamp(4rem, 3rem + 3.5vw, 6rem);
  --padding-section-large: clamp(5rem, 3.5rem + 5vw, 8rem);

  /* ---- Layout ---- */
  --container-large: 80rem;   /* 1280px */
  --container-medium: 64rem;  /* 1024px */
  --container-small: 46rem;   /* 736px – comfortable reading measure */
  --grid-columns: 12;
  --grid-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);

  /* ---- Borders & radii (hierarchy: controls < cards < media) ---- */
  --border-width: 1px;
  --border: var(--border-width) solid var(--color-border);
  --border-strong: var(--border-width) solid var(--color-border-strong);
  --radius-small: 3px;   /* buttons, inputs, tags */
  --radius-medium: 6px;  /* cards */
  --radius-large: 10px;  /* large media */

  /* ---- Motion ---- */
  --duration-fast: 150ms;
  --duration-medium: 280ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- Elevation (used sparingly: hover only) ---- */
  --shadow-hover: 0 12px 32px -16px rgba(16, 24, 40, 0.28);
}
