/*
 * Type (design draft V2): Marcellus, a classical inscriptional serif, for
 * headings, statements and figures; Montserrat for text, labels and UI.
 * Self-hosted, no third-party requests (DSGVO).
 */
@font-face {
	font-family: "Marcellus";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../fonts/marcellus-latin-400-normal.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: "Marcellus";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../../fonts/montserrat-latin-wght-normal.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: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--font-heading: "Marcellus", Georgia, "Times New Roman", serif;
	--font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;

	/*
	 * Each size comes with a line height on the 4px grid (an absolute rem
	 * value, never a ratio), so text blocks stack in multiples of 4px.
	 */

	/* Opener headline: 36/40 → 48/56 → 52/60 → 60/68 */
	--type-display-size: 2.25rem;
	--type-display-line: 2.5rem;

	/* Section heading (h2): 30/40 → 36/44 → 40/48 */
	--type-h2-size: 1.875rem;
	--type-h2-line: 2.5rem;

	/* Statement / feature heading: 24/32 → 30/40 */
	--type-h3-size: 1.5rem;
	--type-h3-line: 2rem;

	/* Card title: 22/30 → 26/34 */
	--type-h4-size: 1.375rem;
	--type-h4-line: 1.875rem;

	/* Small title (list items): 18/28 → 20/28 */
	--type-h5-size: 1.125rem;
	--type-h5-line: 1.75rem;

	--type-body-size: 0.9375rem;
	--type-body-line: 1.75rem;
	--type-small-size: 0.875rem;
	--type-small-line: 1.5rem;
	--type-lead-size: 1rem;
	--type-lead-line: 1.75rem;

	/* Standfirst: lead paragraph under a heading, sans (15/28) */
	--type-standfirst-size: 0.9375rem;
	--type-standfirst-line: 1.75rem;

	/* Caption: captions, sources, notes */
	--type-caption-size: 0.75rem;
	--type-caption-line: 1.25rem;

	/* Eyebrow: a short rule, then the label in sentence case */
	--type-eyebrow-size: 1.125rem;
	--type-eyebrow-line: 1.5rem;

	/* Category label: small, widely spaced capitals in burgundy */
	--type-label-size: 0.6875rem;
	--type-label-line: 1rem;
	--type-label-tracking: 0.32em;

	/* Buttons and text links: capitals */
	--type-button-size: 0.75rem;
	--type-button-line: 1rem;
	--type-button-tracking: 0.06em;

	--measure: 40rem;
}

@media (min-width: 40rem) {
	:root {
		--type-display-size: 3rem;
		--type-display-line: 3.5rem;
		--type-h2-size: 2.25rem;
		--type-h2-line: 2.75rem;
	}
}

@media (min-width: 64rem) {
	:root {
		--type-display-size: 3.25rem;
		--type-display-line: 3.75rem;
		--type-h2-size: 2.5rem;
		--type-h2-line: 3rem;
		--type-h3-size: 1.875rem;
		--type-h3-line: 2.5rem;
		--type-h4-size: 1.625rem;
		--type-h4-line: 2.125rem;
		--type-h5-size: 1.25rem;
		--type-h5-line: 1.75rem;
	}
}

@media (min-width: 80rem) {
	:root {
		--type-display-size: 3.75rem;
		--type-display-line: 4.25rem;
	}
}
