/*
 * Self-hosted webfonts.
 *
 * The theme loads these two families from fonts.googleapis.com, which means
 * every visitor's IP address is sent to Google before they have been asked
 * anything - the practice a Munich court found unlawful under GDPR in 2022.
 * Gating the fonts behind consent would leave the site in a fallback typeface
 * for everyone who has not answered yet, so they are served from this domain
 * instead. No consent needed, because nothing leaves the site.
 *
 * It is also faster: two fewer DNS lookups and TLS handshakes on the critical
 * path, and the files are covered by the same cache headers as everything else.
 *
 * Only what the theme actually asks for is here (see __custom.css):
 *   Work Sans 400 and 500, plus italic - body copy, menu and buttons
 *   Trirong 400, plus italic          - every heading and the logo
 *
 * Work Sans is a variable font, so one file per subset covers 100-900 and the
 * 400 and 500 the theme uses are the same download. Latin and latin-ext only:
 * Google also offers Thai and Vietnamese for these families, which a
 * Lincolnshire clinic has no use for and which would double the payload.
 *
 * To add a weight or a family: add the @font-face here and drop the .woff2
 * alongside it. To re-download, see the note in inc/fonts.php.
 */

/* ---------- Work Sans (variable, 100-900) ---------- */

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(work-sans-variable-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: 'Work Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(work-sans-variable-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: 'Work Sans';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(work-sans-variable-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: 'Work Sans';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(work-sans-variable-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;
}

/* ---------- Trirong 400 ---------- */

@font-face {
	font-family: 'Trirong';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(trirong-400-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: 'Trirong';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(trirong-400-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: 'Trirong';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(trirong-400i-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: 'Trirong';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(trirong-400i-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;
}
