/*
 * Self-hosted Source Serif 4 and Source Sans 3.
 *
 * Both are variable fonts: one file per unicode subset carries the whole
 * 200-900 weight axis, which is why three weights point at one file. Only
 * the latin and latin-ext subsets are shipped; MPF covers the US and
 * Canada, so the Cyrillic, Greek and Vietnamese subsets Google serves
 * would never be requested. latin-ext downloads only if a page actually
 * uses a character in its range.
 *
 * Source Serif 4 also carries an optical-size axis (opsz 8..60). No
 * font-variation-settings is declared for it on purpose: browsers apply
 * optical sizing automatically, which is exactly what Google Fonts was
 * doing, so rendering matches what the site had before.
 *
 * Both families are SIL Open Font License 1.1. Satoshi is ITF Free Font
 * License, which permits self-hosting outright. See LICENSE.txt in
 * assets/fonts/ for all three notices.
 *
 * With Satoshi here too, the site loads no third-party fonts at all.
 */

/* Satoshi — body text
 *
 * Served as Fontshare's official files, byte for byte. The ITF Free
 * Font License permits self-hosting outright ("permitted and
 * recommended", Section 01) but forbids subsetting, format conversion,
 * re-compression, renaming and metadata changes without written
 * consent. So unlike the Source families below, these carry no
 * unicode-range: the official files are full-charset and narrowing them
 * would change which characters the face covers.
 *
 * Four weights, matching what the theme actually asks for. Adding
 * weights nothing uses would be pure download cost.
 */
@font-face {
	font-family: 'Satoshi';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Satoshi';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/satoshi-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Satoshi';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/satoshi-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Satoshi';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('../fonts/satoshi-900.woff2') format('woff2');
}

/* Source Serif 4 — headlines */
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-serif-4-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: 'Source Serif 4';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-serif-4-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;
}

/* Source Sans 3 — body fallback behind Satoshi, and UI text */
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-sans-3-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: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-sans-3-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;
}
