/*
 * Podim platform font — the only place the public font is chosen.
 * Change the family below (and the @font-face src) to change it everywhere.
 * Geist: SIL Open Font License 1.1, see OFL.txt in this folder.
 */

@font-face {
	font-family: "Geist";
	src: url("Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--podim-font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/*
 * Bricks Theme Styles set the body and heading font (a database setting, "Poppins").
 * This replaces it from code. `html body` out-ranks Bricks' plain `body` / `h1…h6` rules
 * whatever order the styles print in.
 */
html body,
html body :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--podim-font);
}

/* The [podim_steps] stepper ships an inline <style> with `font: … system-ui` (dashboard, application, …). */
html body :is(.podim-step__circle, .podim-step__label) {
	font-family: var(--podim-font);
}

/* Browsers do not inherit the font into form controls unless asked. */
html body :is(button, input, select, textarea, optgroup) {
	font-family: inherit;
}
