/* 3737 North Capital — design tokens.
   One background (Chart) for every page and every section. Five core colours, no more.
   Ink and Chart come from the logo and the map paper; North Red is the needle — one mark per view. */

@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette — the five brand colours */
  --chart: #F5F6F4;        /* map paper: the only background colour */
  --ink: #1A1A1A;          /* the tile; primary text, buttons */
  --slate: #5A5F63;        /* secondary text, captions */
  --north-red: #D52B1E;    /* the needle: one accent mark at a time */
  --contour: #A3A8AA;      /* contour lines and graphics only — never text */

  /* Semantic roles */
  --bg: var(--chart);
  --text: var(--ink);
  --text-2: var(--slate);
  --accent: var(--north-red);
  --line: var(--contour);
  --on-ink: var(--chart);  /* text on Ink buttons */
  --error: #A8231A;        /* functional only: form errors (a deeper North Red, 6.4:1) */

  /* Type */
  --font-sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: clamp(3rem, 1.55rem + 6.4vw, 7.5rem);   /* 48 → 120 */
  --fs-h1: clamp(2.5rem, 1.55rem + 4.2vw, 5.25rem);     /* 40 → 84 */
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);        /* 32 → 56 */
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);    /* 22 → 28 */
  --fs-h4: 1.25rem;                                     /* 20 */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5625rem);/* 20 → 25 */
  --fs-body: 1.125rem;                                  /* 18 */
  --fs-small: 1rem;                                     /* 16 */
  --fs-label: 0.8125rem;                                /* 13, mono, uppercase */
  --fs-figure: clamp(3rem, 2rem + 4.2vw, 5.75rem);

  --lh-tight: 0.98;
  --lh-heading: 1.08;
  --lh-body: 1.6;

  --track-display: -0.045em;
  --track-heading: -0.03em;
  --track-label: 0.08em;     /* mono labels: +8% */

  /* Spacing — 8px base */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section: clamp(5rem, 3rem + 7vw, 10rem);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --measure: 38rem;

  /* Shape and motion — square like the tile; corners barely softened */
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
  --dur-slow: 900ms;
  --header-h: 5rem;
}
