@font-face {
    font-family: Urbanist;
    src: url('/fonts/urbanist/Urbanist-Variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Urbanist;
    src: url('/fonts/urbanist/Urbanist-Italic-Variable.woff2') format('woff2');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sauce Two';
    src: url('/fonts/open-sauce-two/OpenSauceTwo-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --group-display: 'Open Sauce Two', Urbanist, system-ui, sans-serif;
    --group-ui: Urbanist, system-ui, sans-serif;
}

:where(nav, button, input, select, textarea, label) {
    font-family: var(--group-ui);
}

/* Some migrated panels set an important font shorthand. Only the display family and
   weight change here so their responsive type sizes and line heights still apply. */
@layer group-display {
    :is(h1, h2, h3, h4, h5, h6, [role="heading"], .h2, .h3, .font-display,
        .admin-title, .mega-title, .kgb-mega-title, .f-h, .publication-cover-title,
        .kq-story-card-title, .kq-e-copy strong, .kq-doc-t, .r-t, .sg-t) {
        font-family: var(--group-display) !important;
        font-weight: 500 !important;
    }
}
