/*
  Design tokens for the whole site.
  All values are PLACEHOLDERS until Adam confirms them (colours, type scale, spacing).
  Change a value here and it updates everywhere.
*/

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff") format("woff");
  font-weight: 100 900; /* variable font: one file covers every weight */
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour — placeholder palette: off-white, black, pale eucalypt */
  --colour-paper: #f3f2ee;      /* off-white page background */
  --colour-ink: #000000;        /* text and rules */
  --colour-ink-muted: #55574f;  /* labels and metadata on paper only (fails contrast on eucalypt) */
  --colour-eucalypt: #7c846a;   /* pale eucalypt (CMYK 55 35 60 14): colour fields only, never text.
                                   Black text on it passes AA (about 5.4:1); muted grey and white do not. */

  /* Type — Montserrat, placeholder scale (ratio about 1.333) */
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text-label: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.333rem;
  --text-name: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); /* name in the header */
  --text-title: clamp(1.75rem, 1.2rem + 2.4vw, 3.2rem);
  --text-display: clamp(2.75rem, 1.4rem + 6.4vw, 7.5rem);
  --leading-tight: 0.95;
  --leading-body: 1.6;
  --tracking-display: -0.05em;
  --tracking-heading: -0.03em;  /* Black weight needs a little more room than the display sizes */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-black: 900;          /* Montserrat Black: page headings (name and page titles) */

  /* Layout — placeholder grid and spacing */
  --page-max: 90rem;
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --grid-columns: 12;
  --grid-gap: clamp(0.75rem, 2vw, 1.5rem);
  --space-s: 0.75rem;
  --space-m: 1.5rem;
  --space-l: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(4rem, 10vw, 9rem);
  --rule: 1px solid var(--colour-ink);
}
