/* EMG VC: design tokens. One background (Paper) everywhere. */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

/* Metric-matched fallbacks: while the web fonts load, the system faces take the same width and
   line height, so text does not re-wrap when the brand fonts swap in (CLS). Ratios were measured
   in Chrome against Arial/Georgia on 24 Nov 2026; vertical metrics are Poppins 1050/350/100 and
   Source Serif 4 1036/335/0 per 1000 units, divided by the size-adjust. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("ArialMT");
  font-weight: 400 500; size-adjust: 112.4%; ascent-override: 93.4%; descent-override: 31.1%; line-gap-override: 8.9%; }
@font-face { font-family: "Poppins Fallback"; src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700; size-adjust: 106.2%; ascent-override: 98.9%; descent-override: 33%; line-gap-override: 9.4%; }
@font-face { font-family: "Source Serif Fallback"; src: local("Georgia");
  size-adjust: 96.1%; ascent-override: 107.8%; descent-override: 34.9%; line-gap-override: 0%; }

:root {
  /* Five core colours */
  --paper: #F5F3EF;      /* the only background */
  --charcoal: #231F20;   /* text, primary buttons, built tiers */
  --red: #ED1D26;        /* mark, active tier, large highlights only */
  --graphite: #5F5A57;   /* secondary text */
  --fog: #E6E2DC;        /* neutral fills */

  --bg: var(--paper);
  --text: var(--charcoal);
  --text-2: var(--graphite);

  /* Type */
  --font-sans: "Poppins", "Poppins Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;

  --fs-display: clamp(3.25rem, 1.6rem + 6.6vw, 7rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.2vw, 5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  --fs-statement: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-lead: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --lh-tight: 1.02;
  --lh-head: 1.12;
  --lh-body: 1.6;

  --track-display: -0.035em;
  --track-head: -0.02em;
  --track-label: 0.12em;

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

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --col-gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  --header-h: 84px;

  /* Shape and motion */
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
  --dur-reveal: 700ms;
}
