/* ============================================================================
   Self-hosted type. The .woff2 files are copied from
   source-code/web-app/src/root/shared/ui/design-system/fonts/ - the same
   subsets the product ships, so the help centre and the app render in the same
   metrics rather than in two builds of the same family.

   Inter and JetBrains Mono are SIL OFL 1.1: redistribution and web embedding
   are permitted, which is what makes a copy in this repository legitimate.
   Latin + latin-ext only; English is the only supported locale.

   Self-hosted rather than fetched from Google Fonts so the site makes no
   third-party request at all, which is also what lets docker/security-headers
   .conf drop fonts.googleapis.com and fonts.gstatic.com from the policy.

   Weights are exactly the three the type scale uses, nothing more: 400, 500,
   600 for the sans, 400 and 500 for the mono.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin_latin-ext-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin_latin-ext-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin_latin-ext-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-v24-latin_latin-ext-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-v24-latin_latin-ext-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  With `font: false` the theme stops emitting these two, but keeps building its
  own --md-text-font-family / --md-code-font-family on top of them, with a
  system stack behind. Declaring them here is the whole of what the theme's
  font setting used to do, minus the request to Google.
*/
:root {
  --md-text-font: "Inter";
  --md-code-font: "JetBrains Mono";
}
