/**
 * Self-hosted typefaces.
 *
 * These are the exact WOFF2 files Google serves, copied into the
 * theme rather than linked from fonts.googleapis.com. A Google Fonts
 * <link> means every visitor's browser opens a connection to Google
 * on every page view, and that request necessarily carries the
 * visitor's IP address and a Referer naming the page they are on. On
 * a candidate's campaign site that would hand a third party a list of
 * everyone who read the election themes — a needlessly high price for
 * a typeface. Serving the files from deniseniemi.fi removes it, and
 * lets the tietosuojaseloste say plainly that no visitor data leaves
 * the server.
 *
 * Both families are OFL 1.1 licensed, which permits self-hosting.
 *
 * Both are VARIABLE fonts: one file per subset covers the whole
 * weight axis, so font-weight 500 and font-weight 800 render from the
 * same download. That is why each @font-face declares a weight range
 * rather than a single value.
 *
 * Two subsets, not the six Google returns. The site is Finnish and
 * Swedish: latin covers both alphabets including a-ring and umlauts,
 * and latin-ext is kept only for the occasional foreign name. Greek,
 * Cyrillic and Vietnamese are dropped. The unicode-range on each face
 * is what makes this cheap — a Finnish page downloads latin only and
 * never requests the latin-ext file at all.
 */

/* Playfair Display — headings. High-contrast display serif, the
   closest open-licence equivalent to the Canva template headline
   face Denise picked. Used at 700-800 only; lighter weights lose the
   drama that makes it work as a display face. */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — body text, navigation, buttons. Geometric grotesque with
   a generous x-height; stays readable at the small sizes the footer
   and form labels use. */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
