/* Typefaces.
 *
 * Two groups, for licensing reasons documented in docs/FONTS.md:
 *
 * 1. Faces uploaded to the original account are self-hosted here.
 * 2. Faces the previous host's bundle supplied (Diatype, Favorit, Neue Haas,
 *    Gravity, Guyot, Sprat, Williams Caslon) are NOT redistributed. Each is
 *    aliased to a fallback stack chosen for similar cap height and width so
 *    layout holds until the real licenses are in place. Swap the stack for a
 *    real @font-face block once licensed and nothing else needs to change.
 */

/* ---- 1. self-hosted ---- */

@font-face {
  font-family: "Kristall Beta Actual Source";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/KristallBetaActualSource-Regular.woff") format("woff");
}
@font-face {
  font-family: "Sabon Next L T";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/SabonNextLT.woff") format("woff");
}
@font-face {
  font-family: "Sabon Next L T";
  font-weight: 400; font-style: italic; font-display: swap;
  src: url("/assets/fonts/SabonNextLTItalic.woff") format("woff");
}
@font-face {
  font-family: "Franklin Gothic Condensed";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Franklin-Gothic-Condensed.woff") format("woff");
}
@font-face {
  font-family: "Apple Garamond";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/AppleGaramond.woff") format("woff");
}
@font-face {
  font-family: "Times Condensed Epoch";
  font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/TimesCondensedEpoch-Bold.woff") format("woff");
}
@font-face {
  font-family: "Dutch801 B T";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Dutch-RomanHeadline.woff") format("woff");
}

/* ---- 2. pending license: documented fallback stacks ---- */

:root {
  /* grotesques */
  --f-diatype: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-favorit: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-neue-haas: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-unica: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-gravity: "Arial Black", "Helvetica Neue", Impact, sans-serif;

  /* serifs */
  --f-guyot: "Times New Roman", Times, serif;
  --f-williams-caslon: "Times New Roman", Times, serif;
  --f-young-serif: Georgia, "Times New Roman", serif;

  /* display */
  --f-sprat-cond: "Times Condensed Epoch", "Times New Roman", serif;
  --f-sprat-ext: Georgia, "Times New Roman", serif;
  --f-junicode: "Times New Roman", Times, serif;
  --f-murmure: "Franklin Gothic Condensed", "Arial Narrow", sans-serif;

  /* monos */
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* actually self-hosted */
  --f-franklin: "Franklin Gothic Condensed", "Arial Narrow", sans-serif;
  --f-sabon: "Sabon Next L T", "Times New Roman", serif;
  --f-garamond: "Apple Garamond", Garamond, "Times New Roman", serif;
  --f-kristall: "Kristall Beta Actual Source", "Times New Roman", serif;
  --f-dutch: "Dutch801 B T", "Times New Roman", serif;
  --f-times-cond: "Times Condensed Epoch", "Times New Roman", serif;
}

/* Alias the authored family names onto the stacks above, so the original
 * stylesheet's `font-family: "Diatype Variable"` keeps working verbatim. */
@font-face { font-family: "Diatype Variable"; src: local("Helvetica Neue"), local("Arial"); font-display: swap; }
@font-face { font-family: "Favorit Variable"; src: local("Helvetica Neue"), local("Arial"); font-display: swap; }
@font-face { font-family: "Favorit Mono Variable"; src: local("Menlo"), local("Consolas"); font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk"; src: local("Helvetica Neue"), local("Arial"); font-display: swap; }
@font-face { font-family: "Neue Haas Unica W1G"; src: local("Helvetica Neue"), local("Arial"); font-display: swap; }
@font-face { font-family: "Gravity Variable"; src: local("Arial Black"), local("Impact"); font-display: swap; }
@font-face { font-family: "Guyot Text"; src: local("Times New Roman"), local("Times"); font-display: swap; }
@font-face { font-family: "Williams Caslon Text"; src: local("Times New Roman"), local("Times"); font-display: swap; }
@font-face { font-family: "Sprat Condensed"; src: local("Times New Roman"); font-display: swap; }
@font-face { font-family: "Sprat Extended"; src: local("Georgia"); font-display: swap; }
@font-face { font-family: "Junicode Condensed"; src: local("Times New Roman"); font-display: swap; }
@font-face { font-family: "TeX Gyre Heros Condensed"; src: local("Arial Narrow"), local("Helvetica"); font-display: swap; }
@font-face { font-family: "Le Murmure"; src: local("Arial Narrow"); font-display: swap; }
@font-face { font-family: "Young Serif"; src: local("Georgia"); font-display: swap; }
@font-face { font-family: "VCR OSD Mono"; src: local("Menlo"), local("Consolas"); font-display: swap; }
@font-face { font-family: "UnifrakturMaguntia"; src: local("Papyrus"), local("Georgia"); font-display: swap; }
