/**
 * Font face declarations.
 *
 * WordPress also auto-generates @font-face rules from theme.json's
 * typography.fontFamilies[].fontFace entries. These explicit rules exist as a
 * safety net for contexts that don't pick up theme.json output (isolated
 * iframes, plugin-rendered previews, email templates, etc.) and give a single
 * canonical source to tweak later (e.g. unicode-range subsetting).
 */

/* DM Sans — variable font (weight 100–1000, opsz 9–40) */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: normal;
    font-display: swap;
    src: url("../fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf") format("truetype-variations"),
         url("../fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 1000;
    font-stretch: normal;
    font-display: swap;
    src: url("../fonts/dm-sans/DMSans-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations"),
         url("../fonts/dm-sans/DMSans-Italic-VariableFont_opsz,wght.ttf") format("truetype");
}

/* DM Serif Text — static single weight (400) */
@font-face {
    font-family: "DM Serif Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/dm-serif-text/DMSerifText-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "DM Serif Text";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/dm-serif-text/DMSerifText-Italic.ttf") format("truetype");
}

/**
 * Let DM Sans use its optical-size axis automatically based on rendered size
 * and enable common OpenType features for cleaner rendering.
 */
:root {
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
