/* YMC Investment — design tokens.
   One background (Chalk) everywhere. Five core colours. Two typefaces. */

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/Newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/Newsreader-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched local fallbacks: while the web fonts load, text is set in Georgia/Arial
   scaled to the same width and line box, so the swap does not move the layout (CLS).
   Newsreader values are calibrated on the real h1/h2 text at display sizes (optical sizing narrows it), Manrope on body text. Measured in Chromium, 24 Nov 2026. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  font-style: normal;
  size-adjust: 98.56%; ascent-override: 75.1%; descent-override: 26.4%; line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 90.08%; ascent-override: 82.1%; descent-override: 28.9%; line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 102.92%; ascent-override: 104%; descent-override: 29.2%; line-gap-override: 0%;
}

:root {
  /* Core colours */
  --ink: #071319;        /* Primary. Text, logo, buttons. Taken from the mark. */
  --chalk: #F4F2EE;      /* The one background, on every page and section. */
  --slate: #4E5A62;      /* Secondary text. */
  --vermilion: #C23B22;  /* The single accent. Used sparingly. */
  --stone: #E4E0D8;      /* Neutral fill: fields, chips, frames. Never a section band. */

  --bg: var(--chalk);
  --text: var(--ink);
  --text-2: var(--slate);
  --accent: var(--vermilion);
  --fill: var(--stone);
  --fill-hover: #DAD5CB;

  /* Type */
  --font-display: "Newsreader", "Newsreader Fallback", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Manrope Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-hero: clamp(3rem, 1.6rem + 6vw, 7rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.4vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-stat: clamp(3rem, 2rem + 4vw, 5.5rem);

  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.65;

  --track-label: 0.09em;
  --track-head: -0.015em;

  /* Spacing (8px 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;
  --section: clamp(5rem, 3rem + 8vw, 10rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --columns: 12;
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --measure: 38rem;
  --header-h: 76px;

  /* Shape and motion */
  --radius: 2px;
  --slant: 28.4deg;      /* The angle of the strokes in the YMC mark. */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
  --dur-reveal: 700ms;
}
