/* PhoenixCore — Self-hosted accessibility fonts (Phase 5c)
 *
 * Three OFL-licensed, accessibility-focused families, self-hosted so the
 * client portal has NO dependency on Google Fonts / any external CDN.
 * Operator-selectable per business via BusinessConfig.theme_font; the resolved
 * font stack is injected as --theme-font in base.html (client portal only —
 * the operator backend keeps the PhoenixCore brand and never loads this file).
 *
 * The family names below MUST match the stacks in app/utils/theme.py THEME_FONTS:
 *   'Atkinson Hyperlegible'  (atkinson)
 *   'OpenDyslexic'           (opendyslexic)
 *   'Lexend'                 (lexend)
 *
 * Georgia and Verdana are web-safe system fonts and need no @font-face.
 * font-display: swap — text renders immediately in the fallback, then upgrades.
 * License + attribution: see app/static/fonts/LICENSES.md
 */

/* ─── Atkinson Hyperlegible (Braille Institute) ─────────────────────────── */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible/atkinson-hyperlegible-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible/atkinson-hyperlegible-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible/atkinson-hyperlegible-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible/atkinson-hyperlegible-700-italic.woff2') format('woff2');
}

/* ─── OpenDyslexic (Abelardo Gonzalez) ──────────────────────────────────── */
@font-face {
    font-family: 'OpenDyslexic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/opendyslexic/opendyslexic-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'OpenDyslexic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/opendyslexic/opendyslexic-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'OpenDyslexic';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/opendyslexic/opendyslexic-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'OpenDyslexic';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/opendyslexic/opendyslexic-700-italic.woff2') format('woff2');
}

/* ─── Lexend (Bonnie Shaver-Troup / Thomas Jockin) ──────────────────────── */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lexend/lexend-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lexend/lexend-700-normal.woff2') format('woff2');
}
