/*
 * UndanganKu by Bacaunduh — brand typography.
 *
 * The palette declared "Playfair Display" and "DM Sans" as the brand faces, but
 * neither was ever delivered: there was no @font-face rule, no font file in the
 * project, and no external stylesheet. Every page fell through to the local
 * fallbacks, so headings rendered in Georgia and body text in the operating
 * system's default sans. The brand had a typeface on paper only.
 *
 * The files are self-hosted here. No CDN is introduced, so no third party sees
 * a visitor's request and the Content-Security-Policy needs no new origin.
 *
 * Both families are licensed under the SIL Open Font License 1.1, which permits
 * redistribution alongside this application.
 *
 * Weights are declared, not bundled into one request: a browser downloads only
 * the weights a page actually uses. A public invitation that never renders
 * semibold body text never fetches that file.
 */

/* Display face — headings and the brand wordmark. */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/brand/fonts/playfair-display-latin-600.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;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/brand/fonts/playfair-display-latin-700.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;
}

/* Body face — everything else. */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/brand/fonts/dm-sans-latin-400.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;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/brand/fonts/dm-sans-latin-500.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;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/brand/fonts/dm-sans-latin-600.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;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/brand/fonts/dm-sans-latin-700.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;
}

/*
 * Optical corrections. Playfair is a high-contrast Didone: at heading sizes its
 * default spacing reads loose, and its lining figures sit taller than the
 * lowercase. These are the settings that make it look typeset rather than
 * merely applied.
 */
h1, h2, h3,
.font-display,
.bdu-page-title {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

/* DM Sans renders tabular figures by default in some stacks; proportional
   figures read better in prose, and tabular ones only where numbers align. */
body {
    font-variant-numeric: proportional-nums;
}

table,
.bdu-table,
.bdu-stat-value,
.bdu-metric-value {
    font-variant-numeric: tabular-nums;
}
