/*
 * Rubik, self-hosted (ЭТАП 6).
 *
 * Until now the family was pulled from fonts.googleapis.com, which handed every visitor's IP
 * address to Google before any consent could be given. Under BDAR that is a transfer of
 * personal data to a third-country recipient with no legal basis (the German Landgericht
 * Muenchen I ruling of 20.01.2022, 3 O 17493/20, is the reference case), so the files now live
 * on our own host and no external request is made.
 *
 * Files were taken from the Google Fonts API (Rubik v31) and are covered by the SIL Open Font
 * License 1.1 - see https://fonts.google.com/specimen/Rubik/license.
 *
 * Only the three subsets the site actually needs are shipped:
 *   latin      - English copy and the shared UI chrome
 *   latin-ext  - Lithuanian diacritics (ą č ę ė į š ų ū ž)
 *   cyrillic   - Russian copy
 * The Arabic and Hebrew subsets Google serves alongside them are deliberately omitted.
 *
 * Each file is a variable font covering the whole 300-700 range, which is why one src serves
 * every weight instead of five separate faces per subset.
 */

/* cyrillic */
@font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('rubik/rubik-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('rubik/rubik-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;
}

/* latin */
@font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('rubik/rubik-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;
}
