/**
 * Plus Jakarta Sans -- bundled locally.
 *
 * Copyright 2020 The Plus Jakarta Sans Project Authors
 * (https://github.com/tokotype/PlusJakartaSans)
 * Licensed under the SIL Open Font License, Version 1.1.
 * Full licence text: ./LICENSE-Plus-Jakarta-Sans.txt
 *
 * This file replaces the fonts.googleapis.com stylesheet the plugin used to
 * register. That stylesheet made every front-end page load fetch the font from
 * Google, sending the visitor's IP address to a third party with no consent or
 * disclosure -- and WordPress.org does not permit loading assets from external
 * CDNs. Serving the font from the plugin removes the request entirely.
 *
 * These are the upstream Google Fonts woff2 subsets, unmodified. Each is a
 * VARIABLE font covering the 300-700 weight axis in a single file, which is why
 * one file per subset replaces the five static weights (300;400;500;600;700)
 * the old CDN URL requested. The `font-weight: 300 700` range descriptor is
 * what tells the browser this face answers for every weight in between.
 *
 * Two subsets are shipped, and `unicode-range` means the browser downloads only
 * the ones a page actually needs:
 *   - latin      -- the base set (also carries U+0131, dotless i).
 *   - latin-ext  -- required: it carries the Turkish letters (ğ ş ç ö ü and
 *                   their capitals). Dropping it would silently fall back to a
 *                   system font mid-word on Turkish text.
 * Google's cyrillic-ext and vietnamese subsets are deliberately NOT bundled --
 * the plugin ships no content in those scripts and they would be dead weight.
 *
 * font-display: swap preserves the previous behaviour: text paints immediately
 * in the fallback face rather than blocking on the font.
 */

/* latin-ext */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("plus-jakarta-sans-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: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("plus-jakarta-sans-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;
}
