/**
 * Self-hosted type for the cover-title presets.
 *
 * The desktop build leaned on macOS system fonts — Didot, Bodoni 72,
 * Baskerville, Rockwell, Futura, Copperplate, Snell Roundhand. On the web
 * almost no visitor has them, so every preset would have quietly degraded to
 * Georgia or Arial and the covers would look nothing like their previews.
 * These are open substitutes, one per preset slot, served from this origin so
 * they work offline and render identically for everyone.
 *
 * `font-display: block` rather than `swap` on purpose: Fabric caches text
 * metrics the first time it measures, so a face arriving late shifts every
 * text layer and the export stops matching the screen. Blocking briefly is
 * better than a layout that silently drifts. app.js also gates `Editor.init`
 * on `document.fonts.ready`.
 *
 * All nine are SIL Open Font License 1.1.
 * Latin subset only, variable-weight wherever the family offers one.
 */

/* display — was Impact / Haettenschweiler */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('anton.woff2') format('woff2');
}

/* serifHigh — was Didot / Bodoni 72 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url('playfair.woff2') format('woff2-variations'), url('playfair.woff2') format('woff2');
}

/* serifClassic — was Baskerville / Hoefler Text */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url('ebgaramond.woff2') format('woff2-variations'), url('ebgaramond.woff2') format('woff2');
}

/* serifSlab — was Rockwell / American Typewriter */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('zillaslab-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('zillaslab-700.woff2') format('woff2');
}

/* geo — was Futura / Avenir Next */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url('jost.woff2') format('woff2-variations'), url('jost.woff2') format('woff2');
}

/* grotesk — was Helvetica Neue */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url('inter.woff2') format('woff2-variations'), url('inter.woff2') format('woff2');
}

/* engraved — was Copperplate / Optima */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url('cinzel.woff2') format('woff2-variations'), url('cinzel.woff2') format('woff2');
}

/* script — was Snell Roundhand / Zapfino */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('greatvibes.woff2') format('woff2');
}

/* mono — was Menlo */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url('jetbrainsmono.woff2') format('woff2-variations'), url('jetbrainsmono.woff2') format('woff2');
}
