/*
 * Bundled fonts.
 *
 * The live site uses fonts licensed to Cargo for Cargo-hosted sites only
 * (Neue Haas Grotesk, Favorit, Sprat, Guyot, Gravity, Diatype, …), so they
 * are not redistributed here. tools/build.mjs keeps every original family
 * name in the CSS and appends a fallback stack (see FONT_FALLBACKS there):
 * the real font is used when installed, otherwise a close free substitute.
 *
 * To serve licensed webfonts, add the files to assets/fonts/ and declare
 * them below with the original family name.
 */

/* TeX Gyre Heros — GUST Font License (see tex-gyre-heros/GUST-FONT-LICENSE.txt) */
@font-face { font-family: "TeX Gyre Heros Condensed"; src: url("../fonts/tex-gyre-heros/texgyreheroscn-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "TeX Gyre Heros Condensed"; src: url("../fonts/tex-gyre-heros/texgyreheroscn-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "TeX Gyre Heros Condensed"; src: url("../fonts/tex-gyre-heros/texgyreheroscn-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "TeX Gyre Heros Condensed"; src: url("../fonts/tex-gyre-heros/texgyreheroscn-bolditalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: block; }

/* Helvetica-class fallback for visitors without Helvetica Neue installed */
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/tex-gyre-heros/texgyreheros-regular.otf") format("opentype"); font-weight: 100 450; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/tex-gyre-heros/texgyreheros-italic.otf") format("opentype"); font-weight: 100 450; font-style: italic; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/tex-gyre-heros/texgyreheros-bold.otf") format("opentype"); font-weight: 451 900; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../fonts/tex-gyre-heros/texgyreheros-bolditalic.otf") format("opentype"); font-weight: 451 900; font-style: italic; font-display: swap; }

/* Fonts uploaded to the Cargo site by the YAB team */
@font-face { font-family: "Times Condensed Epoch"; font-weight: 700; font-style: normal; src: url("../fonts/TimesCondensedEpoch-Bold.woff") format("woff"); }
@font-face { font-family: "Dutch801 B T"; font-weight: 400; font-style: normal; src: url("../fonts/Dutch-RomanHeadline.woff") format("woff"); }

/*
 * Favorit is set at weights 300–400 (body copy is 325). Helvetica Neue only
 * has Light (300) and Regular (400), so map the in-between weights the way
 * Favorit renders them: ≤312 light, 313–449 regular, ≥450 medium. Falls back
 * to the bundled TeX Gyre Heros when Helvetica Neue isn't installed.
 */
@font-face { font-family: "Favorit Variable"; src: local("ABCFavoritVariable"), local("HelveticaNeue-Light"), local("Helvetica Neue Light"), url("../fonts/tex-gyre-heros/texgyreheros-regular.otf") format("opentype"); font-weight: 1 312; font-style: normal; }
@font-face { font-family: "Favorit Variable"; src: local("ABCFavoritVariable"), local("HelveticaNeue"), local("Helvetica Neue"), url("../fonts/tex-gyre-heros/texgyreheros-regular.otf") format("opentype"); font-weight: 313 449; font-style: normal; }
@font-face { font-family: "Favorit Variable"; src: local("ABCFavoritVariable"), local("HelveticaNeue-Medium"), local("Helvetica Neue Medium"), url("../fonts/tex-gyre-heros/texgyreheros-bold.otf") format("opentype"); font-weight: 450 1000; font-style: normal; }
@font-face { font-family: "Favorit Variable"; src: local("HelveticaNeue-LightItalic"), url("../fonts/tex-gyre-heros/texgyreheros-italic.otf") format("opentype"); font-weight: 1 312; font-style: italic; }
@font-face { font-family: "Favorit Variable"; src: local("HelveticaNeue-Italic"), url("../fonts/tex-gyre-heros/texgyreheros-italic.otf") format("opentype"); font-weight: 313 1000; font-style: italic; }
