/* 2A Ventures — design tokens.
   One background (Carbon) for every page and every section. Five colours, two type families. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/Archivo.woff2") format("woff2-variations"), url("../assets/fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/PlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/PlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour — the five brand colours */
  --carbon: #0F0F0E;    /* background, everywhere   rgb(15, 15, 14)   */
  --paper: #F2F0EB;     /* primary: logo, headlines rgb(242, 240, 235) */
  --ash: #A3A19A;       /* secondary text           rgb(163, 161, 154) */
  --graphite: #262624;  /* neutral: plates, fields  rgb(38, 38, 36)    */
  --volt: #D4FF3A;      /* the one accent           rgb(212, 255, 58)  */

  --bg: var(--carbon);
  --text: var(--paper);
  --text-2: var(--ash);
  --surface: var(--graphite);
  --accent: var(--volt);
  --on-accent: var(--carbon);
  --error: #FF8A7A;     /* form errors only (7.9:1 on Carbon) */

  /* Type */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wide: 112%;         /* headline width — echoes the wide, square wordmark */
  --semi: 106%;

  --fs-display: clamp(3rem, 1.6rem + 6.4vw, 8rem);
  --fs-h1: clamp(2.625rem, 1.6rem + 4.6vw, 6rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-stat: clamp(3rem, 2rem + 4vw, 6rem);

  --lh-tight: 0.98;
  --lh-head: 1.08;
  --lh-body: 1.65;

  /* Space — 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;
  --s-10: 8rem;
  --section: clamp(5.5rem, 3rem + 9vw, 11rem);

  /* Grid */
  --container: 1360px;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --col-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);

  /* Shape and motion */
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 240ms;
  --dur-slow: 800ms;

  --header-h: 76px;
}
