/**
 * Self-hosted Inter and Rubik (variable, woff2).
 * Source: Google Fonts css2 API (subsets latin, latin-ext, cyrillic, cyrillic-ext).
 * Licence: SIL OFL 1.1, see assets/fonts/OFL.txt. Replaces the fonts.googleapis.com stylesheet.
 */

/* Inter italic cyrillic-ext */
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-italic-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter italic cyrillic */
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-italic-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter italic latin-ext */
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter italic latin */
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-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;
}

/* Inter normal cyrillic-ext */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-normal-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter normal cyrillic */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-normal-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter normal latin-ext */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter normal latin */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-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;
}

/* Rubik italic cyrillic-ext */
@font-face {
	font-family: "Rubik";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/rubik-italic-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

/* Rubik italic latin-ext */
@font-face {
	font-family: "Rubik";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rubik italic latin */
@font-face {
	font-family: "Rubik";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/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;
}

/* Rubik normal cyrillic-ext */
@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/rubik-normal-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

/* Rubik normal latin-ext */
@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

/*
 * Metric-matched fallbacks (QA 6, docs/qa/6-css-fixes.md). While Inter/Rubik are still loading
 * (font-display: swap; on slow 4G the woff2 arrives after the first paint) the text is drawn with a
 * local Arial-compatible font scaled to the web font: lines wrap the same way, so the swap does not
 * shift the layout. Once Inter/Rubik are loaded these faces are never used for their glyphs, and the
 * unicode-range (the union of the subsets above) keeps every other character on the plain sans-serif.
 *
 * Values are computed from the woff2 files of this theme, per weight (Inter and Rubik are variable,
 * Arial has only Regular and Bold): size-adjust = average advance of the web font / average advance
 * of Arial, weighted by the character frequency of the site's own text (Estonian, English, Ukrainian,
 * Russian); ascent/descent/line-gap overrides = the web font's metrics / size-adjust.
 *
 * src order: Arial (Windows, macOS, iOS; the metrics are computed against it), Helvetica (Apple systems
 * without Arial; same advance widths, vertical metrics are overridden anyway), Liberation Sans (Linux;
 * metric-compatible clone of Arial, widths and vertical metrics identical), Roboto (Android/ChromeOS,
 * the only one that is not width-identical, so it is the last resort). Full and PostScript names both
 * listed: browsers match local() by either.
 */
/* Inter 400 over Arial Regular */
@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 100 449;
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular");
	size-adjust: 106.13%;
	ascent-override: 91.28%;
	descent-override: 22.73%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Inter 500 over Arial Regular */
@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 450 549;
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular");
	size-adjust: 107.60%;
	ascent-override: 90.04%;
	descent-override: 22.42%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Inter 600 over Arial Bold */
@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 550 649;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold");
	size-adjust: 101.09%;
	ascent-override: 95.83%;
	descent-override: 23.86%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Inter 700 over Arial Bold */
@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 650 900;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold");
	size-adjust: 102.45%;
	ascent-override: 94.56%;
	descent-override: 23.54%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Rubik 400 over Arial Regular */
@font-face {
	font-family: "Rubik Fallback";
	font-style: normal;
	font-weight: 100 449;
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular");
	size-adjust: 104.43%;
	ascent-override: 89.54%;
	descent-override: 23.94%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Rubik 500 over Arial Regular */
@font-face {
	font-family: "Rubik Fallback";
	font-style: normal;
	font-weight: 450 549;
	src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular");
	size-adjust: 108.20%;
	ascent-override: 86.41%;
	descent-override: 23.10%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Rubik 600 over Arial Bold */
@font-face {
	font-family: "Rubik Fallback";
	font-style: normal;
	font-weight: 550 649;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold");
	size-adjust: 101.99%;
	ascent-override: 91.68%;
	descent-override: 24.51%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/* Rubik 700 over Arial Bold */
@font-face {
	font-family: "Rubik Fallback";
	font-style: normal;
	font-weight: 650 900;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold");
	size-adjust: 103.82%;
	ascent-override: 90.06%;
	descent-override: 24.08%;
	line-gap-override: 0%;
	unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-02FF, U+0301, U+0304, U+0308, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
}

/*
 * The Inter files have an optical-size axis (opsz 14-32). The site was always
 * drawn with the static weights of the Google Fonts stylesheet (opsz fixed at 14),
 * so the axis stays at its default and the text keeps its widths and line breaks.
 */
body {
	font-optical-sizing: none;
}
