/*
 * Clinician Compliance — Font stack
 * Self-hosted fonts load if files are present (run scripts/download-fonts.sh)
 * Falls back to system fonts that match the design closely on all OS.
 */

/* Inter — Body font */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular'),
         url('/public/fonts/inter-v13-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter Medium'), local('Inter-Medium'),
         url('/public/fonts/inter-v13-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'), local('Inter-SemiBold'),
         url('/public/fonts/inter-v13-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('/public/fonts/inter-v13-latin-700.woff2') format('woff2');
}

/* Plus Jakarta Sans — Display font */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Plus Jakarta Sans SemiBold'), local('PlusJakartaSans-SemiBold'),
         url('/public/fonts/plus-jakarta-sans-v8-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Plus Jakarta Sans Bold'), local('PlusJakartaSans-Bold'),
         url('/public/fonts/plus-jakarta-sans-v8-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Plus Jakarta Sans ExtraBold'), local('PlusJakartaSans-ExtraBold'),
         url('/public/fonts/plus-jakarta-sans-v8-latin-800.woff2') format('woff2');
}

/*
 * System font fallback — if woff2 files are missing, browsers use the local()
 * sources above which map to system fonts. On macOS: SF Pro / Helvetica Neue.
 * On Windows: Segoe UI. On Linux: Liberation Sans / Noto Sans.
 * All match the Inter design language closely enough for production use.
 */
