/* Canonical @font-face declarations for the PLATFORM_FONTS canvas library.
 *
 * SINGLE SOURCE OF TRUTH — referenced by BOTH:
 *   - the buyer SPA            (sales/index.html, served from sales/public/fonts)
 *   - the headless render page (sales/render/index.html, served by the worker
 *     from RENDER_FONTS_DIR — see internal/render/render.go).
 * Both point at /fonts/<file>.ttf, so the editor preview and the printed PDF
 * use the exact same outlines. No third-party request at runtime.
 *
 * TTFs are subset to latin + latin-ext (covers all PT diacritics) with every
 * OpenType layout feature kept, so connected scripts still join. The worker
 * waits for document.fonts.ready before rasterizing, so font-display: swap is
 * safe on the render side too.
 *
 * To ADD a font, see fonts/README.md (drop the .ttf here, add a block below,
 * register it in packages/editor-core/src/fonts.ts + internal/schema/schema.go).
 */

/* ── Serifadas ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* ── Sem serifa ────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/fonts/Oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}

/* ── Manuscritas / script ──────────────────────────────────────────────── */
@font-face {
  font-family: "Great Vibes";
  src: url("/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Sacramento";
  src: url("/fonts/Sacramento-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Parisienne";
  src: url("/fonts/Parisienne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("/fonts/Tangerine-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("/fonts/Tangerine-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Alex Brush";
  src: url("/fonts/AlexBrush-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* ── Decorativas / display ─────────────────────────────────────────────── */
@font-face {
  font-family: "Abril Fatface";
  src: url("/fonts/AbrilFatface-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Poiret One";
  src: url("/fonts/PoiretOne-Regular.ttf") format("truetype");
  font-display: swap;
}

/* ── Arredondada (infantil) ────────────────────────────────────────────── */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

/* ── Slab (boho/rústico) ───────────────────────────────────────────────── */
@font-face {
  font-family: "Bitter";
  src: url("/fonts/Bitter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("/fonts/Bitter-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
