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

:root {
  /* ---- Colour: brand ----
     Warm neutral palette.
     Desert Rock #A48D78 · Soft Sandstone #CBB9A4 · Creamed Oat #E6DAC8
     Porcelain Mist #F4F1EA · Feather White #FAF9F6
     Espresso and Clay are darker tones in the same family, added because the
     five palette colours are all light and cannot carry readable text. ---- */
  --color-navy: #2B2420;           /* Espresso — headings and dark sections */
  --color-navy-secondary: #3B312A; /* raised surfaces on the dark sections */
  --color-background: #F4F1EA;     /* Porcelain Mist — page background */
  --color-white: #FAF9F6;          /* Feather White — cards and panels */
  --color-accent: #7C5C40;         /* links, focus, interactive only (5.4:1) */
  --color-accent-hover: #6B4F38;
  --color-text-secondary: #6B5B4E; /* Clay (5.8:1 on the background) */
  --color-border: #E6DAC8;         /* Creamed Oat */

  /* ---- Colour: derived (contrast-checked) ---- */
  --color-text: var(--color-navy);
  --color-surface: var(--color-white);
  --color-surface-muted: #EDE7DC;          /* quiet panels */
  --color-border-strong: #CBB9A4;          /* Soft Sandstone */
  --color-on-dark: #F4F1EA;
  --color-on-dark-muted: #CBB9A4;          /* 8.0:1 on espresso */
  --color-border-on-dark: #4A3F36;
  --color-accent-on-dark: #D8C3AC;         /* 9.0:1 on espresso */
  --color-error: #9A3412;                  /* 6.5:1 on the background */
  --color-success: #2F6B3F;
  --color-notice-bg: #F6EFE2;
  --color-notice-border: #D9C49E;

  /* ---- Typography ---- */
  --font-heading: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --font-size-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.625rem);  /* 40 → 74px */
  --font-size-h1: clamp(2rem, 1.45rem + 2.75vw, 3.75rem);         /* 32 → 60px (inner pages) */
  --font-size-h2: clamp(1.875rem, 1.45rem + 1.6vw, 3rem);         /* 30 → 48px */
  --font-size-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);      /* 22 → 28px */
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.0625rem;
  --font-size-large: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);     /* 17 → 20px */
  --font-size-regular: 1.0625rem;                                 /* 17px */
  --font-size-small: 0.9375rem;                                   /* 15px */
  --font-size-tiny: 0.8125rem;                                    /* 13px */

  --line-height-tight: 1.05;
  --line-height-heading: 1.15;
  --line-height-body: 1.65;

  --letter-spacing-display: -0.035em;
  --letter-spacing-heading: -0.02em;
  --letter-spacing-eyebrow: 0.08em;

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

  /* ---- 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);
}
