/*
 * Restora typography — Arabic in Almarai (المراعي), everything else in SF Pro.
 *
 * - 'Restora Arabic' is Almarai (OFL, self-hosted in static/fonts/almarai) limited
 *   to the Arabic code points, so in mixed text only Arabic letters use it.
 * - Latin, digits and symbols fall through to the system UI font: SF Pro on
 *   Apple devices (-apple-system / BlinkMacSystemFont). SF Pro's licence only
 *   allows it on Apple platforms, so it is not served as a web font; other
 *   devices use Inter / Segoe UI / Roboto, the closest metrics.
 */
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-300-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-400-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-400-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-700-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-700-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
    font-family: 'Restora Arabic';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/almarai/almarai-arabic-800-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

:root {
    --rf-font: 'Restora Arabic', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'SF Pro',
        'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}

/* Every text element, whatever older rules or inline styles said; icon fonts and code keep theirs */
html body,
html body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(code):not(pre):not(kbd):not(samp):not(.font-monospace):not([class*="material-icons"]):not([class*="material-symbols"]) {
    font-family: var(--rf-font) !important;
}
html body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
