/**
 * Mozi self-hosted fonts.
 *
 * Lora is loaded from the theme itself (no Google Fonts request).
 * WOFF2 is used first (small, fast). TTF is kept as a fallback.
 *
 * The family is named "Lora Local" so it never clashes with the
 * Google "Lora" in Elementor's font list.
 *
 * To change the heading font everywhere, override --mozi-heading-font.
 */

@font-face {
	font-family: 'Lora Local';
	src: url('../fonts/lora/Lora-Regular.woff2') format('woff2'),
	     url('../fonts/lora/Lora-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lora Local';
	src: url('../fonts/lora/Lora-Italic.woff2') format('woff2'),
	     url('../fonts/lora/Lora-Italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Lora Local';
	src: url('../fonts/lora/Lora-Bold.woff2') format('woff2'),
	     url('../fonts/lora/Lora-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Lora Local';
	src: url('../fonts/lora/Lora-BoldItalic.woff2') format('woff2'),
	     url('../fonts/lora/Lora-BoldItalic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--mozi-heading-font: 'Lora Local', Georgia, 'Times New Roman', serif;
}

/* -------------------------------------------------------------------------
 * GLOBAL HEADINGS
 * -------------------------------------------------------------------------
 * Covers normal WordPress headings, block editor headings and the
 * Elementor Heading widget.
 *
 * The Elementor selector has a small extra "body" so it beats Elementor's
 * Global (Primary) font, but any font you set on a single widget in
 * Elementor still wins.
 * ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.editor-post-title__input,
body .elementor-widget-heading .elementor-heading-title {
	font-family: var(--mozi-heading-font);
}
