@charset "UTF-8";

/**
 * fonts.css 1.3.0
 * Author: hybrid.
 * Type: core
 *
 * Typography roles: body, titles, UI (nav, .nav, buttons, address).
 * Neutral by default: system fonts, no casing, no breakpoint.
 * All rules use :where() (specificity 0): override them by redeclaring the
 * tokens, or the rule, in styles.css / styles-fonts.css.
 * Font faces (@font-face), families, breakpoints and project selectors live in the project.
 *
 * Sections
 * CONFIG    — tokens, one :root block per subject
 * BASE      — roles (family, weight, spacing) then sizes
 *
 * Tokens
 * --font-family / --font-weight-*        body family, weight scale (100 → 900)
 * --letter-spacing                       body
 * --title-font-weight / --ui-font-weight
 *
 * Optional tokens, not declared (read at use, fallback inherit: same as the body)
 * --title-font-family / -features / -letter-spacing
 * --ui-font-family / -features / -letter-spacing / -transform
 * --main-font-size                       main content size
 * --h1-font-size → --h6-font-size
 * --small-font-size / --large-font-size
 *
 * Defined elsewhere
 * --font-size / --line-height            reset.css
 * --title-line-height / --title-transform reset.css
 *
 * Roles
 * title   h1-h6, .h1-.h6
 * ui      nav, .nav, .buttons, .button, button, input[type=submit], address
 * The project adds its own selectors to a role by repeating the :where() rule
 * in styles.css with the same tokens (see styles-fonts.css).
 */



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */


/* ============================== FAMILY ============================== */

:root {
	--font-family: system-ui, sans-serif;
}


/* ============================== WEIGHTS ============================== */

:root {
	--font-weight-thin: 100;
	--font-weight-extralight: 200;
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;
	--font-weight-black: 900;

	--title-font-weight: var(--font-weight-bold);
	--ui-font-weight: var(--font-weight-normal);
}


/* ============================== SPACING ============================== */

:root {
	--letter-spacing: normal;
}


/* ============================== SIZES ============================== */

:root {
	--main-font-size: 1em;

	--h1-font-size: 2em;
	--h2-font-size: 1.75em;
	--h3-font-size: 1.5em;
	--h4-font-size: 1.25em;
	--h5-font-size: 1.125em;
	--h6-font-size: 1em;

	--small-font-size: .75em;
	--large-font-size: 1.25em;
}



/* ================================================================================================ */
/* ============================================= BASE ============================================= */
/* ================================================================================================ */


/* ============================== FAMILY ============================== */

:where(body) {
	font-family: var(--font-family);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height, inherit);
	letter-spacing: var(--letter-spacing);
}

/* Line-height and casing of titles: reset.css */
:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
	font-family: var(--title-font-family, inherit);
	font-feature-settings: var(--title-font-features, inherit);
	font-weight: var(--title-font-weight);
	letter-spacing: var(--title-letter-spacing, inherit);
}

:where(nav, .nav, .buttons, .button, button, input[type=submit], address) {
	font-family: var(--ui-font-family, inherit);
	font-feature-settings: var(--ui-font-features, inherit);
	font-weight: var(--ui-font-weight);
	letter-spacing: var(--ui-letter-spacing, inherit);
	text-transform: var(--ui-transform, inherit);
}


/* ============================== SIZE ============================== */

:where(body) { font-size: var(--font-size); }
:where(main, #overlays) { font-size: var(--main-font-size); }

:where(h1, .h1) { font-size: var(--h1-font-size); }
:where(h2, .h2) { font-size: var(--h2-font-size); }
:where(h3, .h3) { font-size: var(--h3-font-size); }
:where(h4, .h4) { font-size: var(--h4-font-size); }
:where(h5, .h5) { font-size: var(--h5-font-size); }
:where(h6, .h6) { font-size: var(--h6-font-size); }

:where(.important) { font-size: var(--large-font-size); }

:where(sub, sup),
:where(small, .small) { font-size: var(--small-font-size); }