/* Locally hosted variable fonts. Licenses are included beside the font files. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Italic-Variable.woff2') format('woff2');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Italic-Variable.woff2') format('woff2');
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
}

/* Override legacy block fonts and editor styles without changing sizes/weights.
   Pseudo-elements are intentionally excluded: Fontello renders icons there. */
body,
body :where(*) {
    font-family: 'Inter', Arial, sans-serif !important;
}

/* Inline links, spans, strong and em must keep their parent heading's font. */
body :is(h1, h2, h3, h4, h5, h6),
body :is(h1, h2, h3, h4, h5, h6) :where(*) {
    font-family: 'Playfair Display', Georgia, serif !important;
}
