/**
 * CourseJournal typography system.
 *
 * Manrope provides the editorial hierarchy; Source Sans 3 is used for
 * long-form reading and interface copy. Both families are self-hosted as
 * variable WOFF2 files so only the styles the browser uses are instantiated.
 */
/*
 * Manrope is served as a Latin subset. The upstream file carries Cyrillic and
 * Greek that this site never renders, which made it 52 KB against 24 KB here.
 * The range below is the Source Sans 3 Latin range plus the arrow and star
 * glyphs the UI actually uses; it was checked against every character rendered
 * across the site, so nothing falls back. Regenerate with:
 *
 *   python -m fontTools.subset Manrope-VariableFont_wght.woff2 \
 *     --output-file=Manrope-VariableFont_wght-latin.woff2 --flavor=woff2 \
 *     --layout-features='*' --name-IDs='*' --unicodes="<the range below>"
 */
@font-face {
	font-display: swap;
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	src: url("../fonts/manrope/Manrope-VariableFont_wght-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+2190-2193, U+2212, U+2215, U+25B2-25BC, U+2605-2606, U+FEFF, U+FFFD;
}

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	src: url("../fonts/source-sans-3/SourceSans3-VariableFont_wght-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-display: swap;
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 200 900;
	src: url("../fonts/source-sans-3/SourceSans3-Italic-VariableFont_wght-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;
}

:root {
	--coursejournal-font-heading: "Manrope", "Segoe UI", sans-serif;
	--coursejournal-font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--coursejournal-weight-body: 400;
	--coursejournal-weight-medium: 600;
	--coursejournal-weight-heading: 700;
	--coursejournal-weight-display: 800;
}

body,
button,
input,
select,
textarea,
.wp-site-blocks,
.editor-styles-wrapper {
	font-family: var(--coursejournal-font-body);
	font-optical-sizing: auto;
}

body,
.editor-styles-wrapper {
	color: var(--coursejournal-color-body);
	font-weight: var(--coursejournal-weight-body);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.wp-block-post-title,
.wp-block-site-title {
	color: var(--coursejournal-color-heading);
	font-family: var(--coursejournal-font-heading);
	font-optical-sizing: auto;
	font-weight: var(--coursejournal-weight-heading);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

h1,
h2,
.wp-block-post-title {
	font-weight: var(--coursejournal-weight-display);
	letter-spacing: -0.03em;
}

b,
strong {
	font-weight: 700;
}
