/*
 * Design tokens, read from the Figma file (page "UI v1", frames at 1440px).
 */

/*
 * Rational Display is a licensed typeface: drop the woff2 files in assets/fonts
 * with these names and the site picks them up. Until then the fallback stack is used.
 */
@font-face {
  font-family: "Rational Display";
  src: url("../fonts/RationalDisplay-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rational Display";
  src: url("../fonts/RationalDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rational Display";
  src: url("../fonts/RationalDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Temporary stand-in with near-identical widths (Readex Pro, OFL). See assets/fonts/README.md */
@font-face {
  font-family: "Rational Fallback";
  src: url("../fonts/fallback/ReadexPro-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  ascent-override: 95%;
  descent-override: 30%;
  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: "Rational Fallback";
  src: url("../fonts/fallback/ReadexPro-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  ascent-override: 95%;
  descent-override: 30%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette */
  --c-blue: #397ca7;
  --c-sky: #68bad0;
  --c-sky-tint: #d9eff4;
  --c-coral: #de7a5a;
  --c-peach: #f1b391;
  --c-yellow: #ffeea6;
  --c-ochre: #efc782;
  --c-green: #99c598;
  --c-pink: #ffc2ef;
  --c-red: #cd4631;
  --c-black: #000;
  --c-ink: #181818;
  --c-night: #101010;
  --c-white: #fff;

  --c-text: #000;
  --c-text-muted: rgba(0, 0, 0, 0.5);
  --c-text-meta: rgba(0, 0, 0, 0.52);
  --c-line: #e6e6e6;
  --c-line-strong: #d8d8d8;

  /* Type */
  --font-sans: "Rational Display", "Rational Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /*
   * Sizes are fixed from 1440px up and scale with the viewport below it,
   * so narrower desktops keep the proportions of the mockup.
   * Each max value is the Figma size; the vw value is that size at 1440px.
   */
  --fs-display: clamp(40px, 5.278vw, 76px);
  --fs-h1: clamp(34px, 3.889vw, 56px);
  --fs-h2: clamp(30px, 3.194vw, 46px);
  --fs-lead: clamp(24px, 2.5vw, 36px);
  --fs-h3: clamp(22px, 1.944vw, 28px);
  --fs-body-l: clamp(18px, 1.667vw, 24px);
  --fs-body: 18px;
  --fs-label: 16px;
  --fs-link: 14px;
  --fs-meta: 13px;

  /* Layout: 12 columns of 85px, 20px gutters, 100px margins at 1440px */
  --margin: clamp(20px, 6.944vw, 100px);
  --container: 1240px;
  --gutter: 20px;
  --header-h: 100px;

  --ease: cubic-bezier(0.65, 0, 0.2, 1);
}
