/* ==========================================================================
   MFL Flooring — design tokens
   Every colour, size and timing used by styles.css lives here.
   ========================================================================== */

:root {
  /* ---- Colour ---------------------------------------------------------- */
  --color-bg: #ffffff;
  --color-surface: #f4f4f3;          /* warm neutral card grey */
  --color-surface-hover: #eeeeec;
  --color-text: #141414;             /* near-black charcoal */
  --color-text-muted: #6b6b68;       /* 5.3:1 on white, 4.8:1 on surface */
  --color-line: #e2e1de;             /* hairlines on white */
  --color-line-strong: #c9c7c2;      /* line-art, input borders */
  --color-placeholder: #e6e5e2;      /* image placeholder blocks */

  --color-dark: #1b1a18;             /* espresso / warm charcoal */
  --color-dark-raised: #252421;
  --color-on-dark: #f4f3f0;
  --color-on-dark-muted: #a3a19c;    /* 6.8:1 on dark */
  --color-line-on-dark: #3a3834;

  --color-accent: #8a6a4a;           /* walnut / bronze: 4.9:1 on white */
  --color-accent-on-dark: #b8946e;   /* lighter bronze: 6.2:1 on dark */
  --color-focus: #8a6a4a;

  --color-brand-red: #ed1c24;        /* Mercantile logo red */
  --color-cta: #d3161e;              /* deeper red for the CTA: white text 5.3:1 */
  --color-cta-hover: #b01218;

  /* ---- Type ------------------------------------------------------------ */
  --font-sans: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* Fluid scale: min @ 390px viewport → max @ 1440px viewport */
  --text-display: clamp(2.625rem, 1.55rem + 4.4vw, 5.5rem);   /* 42 → 88 */
  --text-h2: clamp(2rem, 1.45rem + 2.25vw, 3.5rem);           /* 32 → 56 */
  --text-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);       /* 22 → 30 */
  --text-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);      /* 18 → 22 */
  --text-stat: clamp(3.5rem, 2.3rem + 4.9vw, 6.75rem);        /* 56 → 108 */
  --text-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);    /* 17 → 19 */
  --text-body: 1rem;                                           /* 16 */
  --text-small: 0.875rem;                                      /* 14 */
  --text-label: 0.8125rem;                                     /* 13 */

  --leading-tight: 1.04;
  --leading-snug: 1.15;
  --leading-body: 1.6;

  --tracking-display: -0.04em;
  --tracking-heading: -0.025em;
  --tracking-body: -0.005em;
  --tracking-label: 0.01em;

  --measure: 34rem;                  /* max paragraph width (~65ch at 16px) */
  --measure-narrow: 26rem;

  /* ---- Space (4px base) ---------------------------------------------- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */

  /* Fluid rhythm */
  --section-gap: clamp(6rem, 3.9rem + 8.6vw, 11.5rem);   /* 96 → 184 */
  --block-gap: clamp(3rem, 2.25rem + 3vw, 5rem);         /* 48 → 80 */

  /* ---- Layout -------------------------------------------------------- */
  --container-max: 100rem;                               /* 1600 */
  --margin: clamp(1.25rem, 0.3rem + 5.3vw, 6rem);        /* 20 → 96 */
  --gutter: clamp(1rem, 0.75rem + 1vw, 1.5rem);          /* 16 → 24 */
  --header-h: 4.5rem;                                    /* 72 */

  /* ---- Shape & lines ------------------------------------------------- */
  --radius: 2px;
  --hairline: 1px solid var(--color-line);
  --hairline-dark: 1px solid var(--color-line-on-dark);

  /* ---- Motion -------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 450ms;
  --dur-slow: 900ms;
  --dur-image: 1400ms;
  --rise: 1.5rem;
}
