/**
 * Fixes the incorrect weight mappings of the (local) Avenir font that ships with macOS and normalizes them
 * across browsers.
 *
 * The problem this patch resolves:
 * On macOS, the local "Avenir" font labels its weights incorrectly. As a result, Chrome and Safari render
 * `font-weight: 700` as "Avenir Black" and `font-weight: 900` as "Avenir Heavy", so `font-weight: 700`
 * renders _bolder_ text than `font-weight: 900`.
 *
 * (The Chrome / Safari rendering then also doesn't match the rendering in Figma.)
 *
 * Firefox ships its own patch for these font weights, but Chrome and Safari don't. See the following links
 * for more information:
 * - https://github.com/mozilla-firefox/firefox/blob/cf103b9362d64aa14c7adc0c0e4b9469ccbf6caa/modules/libpref/init/all.js#L2482-L2486
 * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c55
 * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c66
 *
 * The patch below normalizes the font-weight behavior across all browsers as follows:
 *
 * | font-weight | Chrome / Safari | Firefox | With this fix (all browsers) |
 * | ----------- | --------------- | ------- | ---------------------------- |
 * | 100         | Light           | Book *  | Light                        |
 * | 200         | Light           | Book *  | Light                        |
 * | 300         | Light *         | Book    | Book                         |
 * | 400         | Book *          | Roman   | Roman                        |
 * | 500         | Medium          | Medium  | Medium                       |
 * | 600         | Black *         | Heavy   | Heavy                        |
 * | 700         | Black *         | Heavy   | Heavy                        |
 * | 800         | Black *         | Heavy   | Heavy                        |
 * | 900         | Heavy *         | Black   | Black                        |
 *
 * Only the installed font is used (the `local()` function), so this is not subject to copyright.
 *
 * Note that the problem described above affects only macOS. Windows doesn't ship Avenir
 * (https://learn.microsoft.com/en-us/typography/fonts/windows_11_font_list), so there the faces don't
 * load and the font stack moves on to the next family, as without them.
 */
@font-face {
  font-family: "Avenir";
  src: local("Avenir Light"), local("Avenir-Light");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Light Oblique"), local("Avenir-LightOblique");
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Book"), local("Avenir-Book");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Book Oblique"), local("Avenir-BookOblique");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Roman"), local("Avenir-Roman");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Oblique"), local("Avenir-Oblique");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Medium"), local("Avenir-Medium");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Medium Oblique"), local("Avenir-MediumOblique");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Heavy"), local("Avenir-Heavy");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Heavy Oblique"), local("Avenir-HeavyOblique");
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Black"), local("Avenir-Black");
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: "Avenir";
  src: local("Avenir Black Oblique"), local("Avenir-BlackOblique");
  font-weight: 900;
  font-style: italic;
}

/*# sourceMappingURL=avenirFontPatch.css.map */
