/* Brand fonts of the public site, self-hosted */

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-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;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-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: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-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;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-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;
}

/* Metric-matched fallbacks: Times New Roman for Instrument Serif, Arial for Manrope. */
@font-face {
	font-family: "Instrument Serif Fallback";
	font-style: normal;
	src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times");
	size-adjust: 83%;
	ascent-override: 119%;
	descent-override: 37%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Instrument Serif Fallback";
	font-style: italic;
	src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times Italic");
	size-adjust: 87%;
	ascent-override: 114%;
	descent-override: 36%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Manrope Fallback";
	src: local("Arial"), local("ArialMT"), local("Helvetica");
	size-adjust: 99%;
	ascent-override: 108%;
	descent-override: 30%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext-wght.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;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght.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;
}

/* Noto Sans Arabic (W9b): the Arabic block in one file (66 kB), the rarer extended letters and presentation forms in
   another that only a page using them downloads. Cut from Google Fonts' arabic subset with fontTools:
   pyftsubset <arabic.woff2> --unicodes="<range below>" --layout-features='*' --flavor=woff2 */
@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-core-wght.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}

@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-ext-wght.woff2") format("woff2");
	unicode-range: U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EEF1;
}

/* Metric-matched fallbacks of Noto Sans Arabic (W9b): the text set in the system face before the brand face arrives
   takes the same room, so the swap moves nothing (Arabic pages showed layout shifts up to 0.2). Widths measured in
   Chromium per weight on Arabic and Latin samples (Noto Sans Arabic widens with its weight); the vertical metrics are
   Noto Sans Arabic's (137.4 % / 73.8 %) divided by the size adjustment, which scales them too. Each weight range has
   an Arabic and a Latin face with the same descriptors, so the browser combines them by unicode-range. */
@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 400 549;
	src: local("Segoe UI"), local("SegoeUI"), local("Tahoma");
	size-adjust: 99.5%;
	ascent-override: 138.1%;
	descent-override: 74.2%;
	line-gap-override: 0%;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 400 549;
	src: local("Arial"), local("ArialMT"), local("Helvetica");
	size-adjust: 103.5%;
	ascent-override: 132.8%;
	descent-override: 71.3%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 550 749;
	src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Tahoma Bold"), local("Tahoma-Bold");
	size-adjust: 107.1%;
	ascent-override: 128.3%;
	descent-override: 68.9%;
	line-gap-override: 0%;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 550 749;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
	size-adjust: 101.7%;
	ascent-override: 135.1%;
	descent-override: 72.6%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 750 900;
	src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Tahoma Bold"), local("Tahoma-Bold");
	size-adjust: 111.8%;
	ascent-override: 122.9%;
	descent-override: 66.0%;
	line-gap-override: 0%;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Noto Sans Arabic Fallback";
	font-weight: 750 900;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
	size-adjust: 104.1%;
	ascent-override: 132.0%;
	descent-override: 70.9%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* Latin pages (W9b): the only Arabic they print is the language name « العربية » (switcher, footer); a 5 kB face holds
   just its letters, weights 400-600 (pyftsubset of the core file with --text="العربية" after
   fonttools varLib.instancer wght=400:600), so the Arabic face itself is never downloaded there (main.css). */
@font-face {
	font-family: "Noto Sans Arabic Label";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-label-wght.woff2") format("woff2");
}

@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-symbols-wght.woff2") format("woff2");
	unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+1F000-1FBFF;
}

@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-latin-ext-wght.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;
}

@font-face {
	font-family: "Noto Sans Arabic";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-latin-wght.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;
}
