/* Ads Runner design tokens. Single source of truth for web and for the later presentation. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour: surfaces */
  --ivory: #FAF8F4;
  --ivory-deep: #F1EEE8;
  --charcoal: #1C1B19;
  --white: #FFFFFF;

  /* Colour: text and lines */
  --grey-warm: #5B5852;       /* supporting text on light */
  --grey-on-dark: #A39E93;    /* supporting text on dark */
  --hairline: #E3DFD6;        /* decorative rule on light */
  --hairline-dark: #3A3834;   /* decorative rule on dark */

  /* Colour: accent */
  --red: #EC1C24;             /* large display type and marks only */
  --red-text: #C9141B;        /* small text, links and focus on light */
  --red-on-dark: #F5474D;     /* small red text on dark */
  --orange: #F16522;          /* dark surfaces only */

  /* Type */
  --font: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-display: clamp(min(3.5rem, 15vw), 8.9vw, 8.5rem);
  --fs-h1: clamp(min(2.875rem, 12.5vw), 7.2vw, 6.5rem);
  --fs-h2: clamp(min(2.25rem, 10vw), 4.6vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 2.25vw, 2rem);
  --fs-h4: clamp(1.25rem, 1.6vw, 1.4375rem);
  --fs-lead: clamp(1.1875rem, 1.5vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-figure: clamp(min(4.5rem, 24vw), 9vw, 8.5rem);
  --lh-display: 0.94;
  --lh-head: 1.04;
  --lh-sub: 1.22;
  --lh-body: 1.65;
  --track-display: -0.046em;
  --track-head: -0.034em;
  --track-sub: -0.018em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semi: 600;

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-section: clamp(4rem, 8vw, 7.5rem);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --col-gap: clamp(1rem, 2.2vw, 2rem);
  --measure: 34rem;
  --radius: 2px;
  --header-h: 5rem;
}

@media (max-width: 599px) {
  :root { --header-h: 4.25rem; }
}
