/* Le Chantier: self-hosted fonts, the same files as lepetitatelier.nz (website/public/fonts).
   Latin subset, variable where available. Import before the app's own rules:
     @import url("/fonts/fonts.css");

   Licences: Fraunces (Undercase Type), Inter (Rasmus Andersson) and JetBrains Mono (JetBrains)
   are all under the SIL Open Font License 1.1 (https://openfontlicense.org; full texts in
   OFL-Fraunces.txt, OFL-Inter.txt, OFL-JetBrainsMono.txt next to this file). They may be used,
   embedded and redistributed freely; they may not be sold on their own. */

@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin-var.v1.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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';
  src: url('inter-latin-var.v1.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'JetBrains Mono';
  src: url('jetbrains-mono-latin-400.v1.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks: less layout shift while the web fonts swap in (same as the website). */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
