/* ==========================================================================
   Uncommissioned — typography
   --------------------------------------------------------------------------
   Manon is a classic theme with no theme.json, so WordPress never prints an
   @font-face for anything installed through the Font Library. The two weights
   are therefore bundled in this child theme (/fonts/) and declared here.

   Manon and Manon Core hard-code "Oswald" and "Open Sans" in roughly 160 CSS
   rules. Rather than fight all of them with !important — which would also
   break the icon fonts, since pseudo-elements inherit font-family — both
   families are re-pointed at the Atkinson files below. Every existing theme
   rule then renders Atkinson Hyperlegible Mono, and Ionicons, ElegantIcons,
   FontAwesome and linea-arrows are left alone.

   Google Fonts loading is switched off in functions.php, so nothing upstream
   can reclaim those two family names.
   ========================================================================== */

/* 1. The real family ------------------------------------------------------ */

@font-face {
	font-family: "Atkinson Hyperlegible Mono";
	src: url("../../fonts/atkinson-hyperlegible-mono-500.woff2") format("woff2");
	font-weight: 100 599;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Atkinson Hyperlegible Mono";
	src: url("../../fonts/atkinson-hyperlegible-mono-700.woff2") format("woff2");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

/* 2. Aliases for the theme's hard-coded stacks ----------------------------- */

@font-face {
	font-family: "Oswald";
	src: url("../../fonts/atkinson-hyperlegible-mono-500.woff2") format("woff2");
	font-weight: 100 599;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Oswald";
	src: url("../../fonts/atkinson-hyperlegible-mono-700.woff2") format("woff2");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Open Sans";
	src: url("../../fonts/atkinson-hyperlegible-mono-500.woff2") format("woff2");
	font-weight: 100 599;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Open Sans";
	src: url("../../fonts/atkinson-hyperlegible-mono-700.woff2") format("woff2");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

/* 3. Baseline ------------------------------------------------------------- */

:root {
	--uc-font: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html body,
body input,
body textarea,
body select,
body button,
body .edgtf-page-header,
body .edgtf-mobile-header {
	font-family: var(--uc-font);
	font-weight: 500;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
	font-family: var(--uc-font);
	font-weight: 500;
}

body strong,
body b,
body h1 strong,
body h2 strong,
body h3 strong,
body h4 strong,
body h5 strong,
body h6 strong {
	font-weight: 700;
}
