/* Display fonts shipped in /static/library/fonts/ — used by the live
   designer's SVG preview. Family names match generator.py FONTS[].family.
   font-display: block so the SVG measurement (used for client-side autofit)
   doesn't fall back to a metric-mismatched system font on first paint. */

/* Libre Franklin Black is a static weight-900 face; the weight range stops the
   browser from synthesizing bold when a style asks for 800 or 900. */
@font-face {
  font-family: "LibreFranklinBlack";
  src: url("/static/library/fonts/LibreFranklin-Black.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "BebasNeue";
  src: url("/static/library/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Anton";
  src: url("/static/library/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "LeagueGothic";
  src: url("/static/library/fonts/LeagueGothic.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/library/fonts/Oswald.ttf") format("truetype");
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "ArchivoBlack";
  src: url("/static/library/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-display: block;
}
@font-face {
  font-family: "AlfaSlabOne";
  src: url("/static/library/fonts/AlfaSlabOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}

/* Display-name aliases. text_styles.font_family stores the human-readable name
   ("Libre Franklin Black") while the families above are space-free. CSS family
   matching is space-SENSITIVE, so without these aliases any surface that uses
   the stored display name as a CSS family (the designer preview, the admin
   text-style live preview + chips) silently falls back to Impact — printing the
   real TTF while showing a metric-mismatched substitute. Aliasing the spaced
   names to the same TTFs keeps every preview on the exact print font. Single-
   word fonts (Anton, Oswald) already match by name and need no alias. */
@font-face {
  font-family: "Libre Franklin Black";
  src: url("/static/library/fonts/LibreFranklin-Black.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}
/* Retired Franklin Gothic Heavy names, mapped to its replacement so cached
   pages and any style row that still names it keep showing the print font. */
@font-face {
  font-family: "FranklinGothicHeavy";
  src: url("/static/library/fonts/LibreFranklin-Black.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "Franklin Gothic Heavy";
  src: url("/static/library/fonts/LibreFranklin-Black.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/static/library/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "League Gothic";
  src: url("/static/library/fonts/LeagueGothic.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Archivo Black";
  src: url("/static/library/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-display: block;
}
@font-face {
  font-family: "Alfa Slab One";
  src: url("/static/library/fonts/AlfaSlabOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
