/* UNI-M — design tokens.
   One solid background everywhere (Porcelain). No gradients, glass, blur or decorative shadows. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core colours (five) */
  --navy: #001D55;        /* Primary. The block in the logo. rgb(0 29 85) */
  --graphite: #323A43;    /* Primary text. The letters in the logo. rgb(50 58 67) */
  --porcelain: #F3F2EE;   /* The one background. rgb(243 242 238) */
  --signal: #2B4FD8;      /* Restrained accent: links, focus, small markers. rgb(43 79 216) */
  --stone: #E3E1DA;       /* Supporting neutral: fields, chips, image frames. rgb(227 225 218) */

  /* Derived tones (not core colours) */
  --slate: #5E6672;       /* Secondary text, 5.3:1 on Porcelain */
  --ink: #000000;         /* Logo dash only */
  --white: #FFFFFF;       /* On navy only */
  --error: #A3261B;       /* Form errors, 6.4:1 on Porcelain */

  /* Roles */
  --bg: var(--porcelain);
  --text: var(--graphite);
  --text-muted: var(--slate);
  --brand: var(--navy);
  --accent: var(--signal);
  --fill: var(--stone);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wide: 112%;           /* Archivo width for headlines: echoes the wide logo letters */
  --wider: 125%;          /* Labels */

  /* Type scale: fluid, 1.25 ratio at mobile growing to ~1.333 at desktop */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* labels */
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);   /* body */
  --step-1: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);        /* lede, h4 */
  --step-2: clamp(1.5rem, 1.33rem + 0.8vw, 2rem);           /* h3 */
  --step-3: clamp(1.875rem, 1.55rem + 1.6vw, 2.875rem);     /* h2 */
  --step-4: clamp(2.375rem, 1.8rem + 2.9vw, 4.25rem);       /* page h1 */
  --step-5: clamp(2.75rem, 1.9rem + 4.4vw, 6rem);           /* display */

  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.6;
  --track-head: -0.02em;
  --track-label: 0.12em;

  /* Spacing: 4px base */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */
  --s-9: 6rem;     /* 96 */
  --s-10: 8rem;    /* 128 */
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);      /* space between sections */
  --block-gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);  /* space inside sections */

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --columns: 12;
  --col-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --measure: 38rem;      /* comfortable reading width */
  --header-h: 4.5rem;

  /* Shape and motion */
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
  --dur-slow: 700ms;
  --focus: 0 0 0 3px var(--porcelain), 0 0 0 5px var(--signal);
}
