/*
 * PDFRaj Engine — proprietary.
 * Copyright (c) 2026 Aditya Raj. All rights reserved.
 * Author: Aditya Raj. Unauthorized copying, distribution, or resale of this
 * source, in whole or in part, is prohibited.
 */
/*
 * Self-hosted UI faces — Epilogue + Rubik.
 *
 * These used to come from fonts.googleapis.com. Two reasons they no longer do:
 * the product tells people their documents never leave their browser, and a
 * stylesheet plus font files fetched from Google on every page view made that
 * claim untrue for the page itself; and an external font host is the single
 * thing that stops `script-src`/`style-src` from being tightened, because a CSP
 * strict enough to be worth having cannot also allowlist Google.
 *
 * Both families are SIL Open Font License 1.1, so redistribution is fine as long
 * as the licence travels with them — see assets/fonts/LICENSES.md, which is
 * generated from the fonts' own name tables by workers/scripts/make-font-notices.py.
 *
 * Variable fonts: one file spans weight 100-900, so the whole UI scale costs two
 * requests per family rather than one per weight. latin and latin-ext only. The
 * other five subsets Google serves (cyrillic, greek, hebrew, arabic, vietnamese)
 * are weight on every page load for glyphs this interface never renders; a
 * document whose NAME needs them falls through to the stack below, which is what
 * the system faces are there for.
 */

@font-face {
	font-family: 'Epilogue';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/epilogue-normal-latin.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: 'Epilogue';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/epilogue-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Epilogue';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/epilogue-italic-latin.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: 'Epilogue';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/epilogue-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/rubik-normal-latin.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: 'Rubik';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/rubik-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Rubik';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/rubik-italic-latin.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: 'Rubik';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/ui/rubik-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
