/**
 * GENE Blocks v3 — Bundled fonts + design tokens (LP-grade typography).
 *
 * Fonts are served LOCALLY from assets/fonts (no external requests — privacy-safe
 * and WP.org compliant). Inter is used for BOTH headings and body — one clean,
 * modern, neutral sans across the whole system (SaaS-grade, no serif quirk).
 * OFL-licensed (see assets/fonts/Inter-OFL.txt).
 *
 * The family name keeps a " GENE" suffix so the plugin's bundled subset is used
 * inside generated sections even when the active theme also loads its own Inter.
 *
 * These apply ONLY inside generated sections (.gene-palette--* wrappers carry the
 * type), so the rest of the site keeps the theme's fonts.
 *
 * @package GENE Blocks
 */

@font-face {
	font-family: "Inter GENE";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter GENE";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter GENE";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter GENE";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter GENE";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
}

/* =========================================================================
   Apply GENE typography inside generated sections only.
   The palette wrapper class is on every generated top-level block.

   All-Inter system:
   - --gene-font-serif kept as a token name for compatibility, but now maps to
     Inter too (headings are sans). Both tokens resolve to Inter GENE.
   - headings: bold (700) Inter with tight tracking for a crisp, modern look.
   - body: Inter at 1.6 leading, neutral tracking.
   ========================================================================= */

[class*="gene-palette--"] {
	--gene-font-serif: "Inter GENE", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gene-font-sans: "Inter GENE", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	font-family: var(--gene-font-sans);
	line-height: 1.6;
	letter-spacing: 0;
}

[class*="gene-palette--"] :where(h1, h2, h3, .wp-block-heading) {
	font-family: var(--gene-font-serif) !important;
	font-weight: 700 !important;
	letter-spacing: -0.018em !important;
	line-height: 1.12 !important;
}

/* Display-scale headings: confident, modern sizing. */
[class*="gene-palette--"] h1.wp-block-heading,
[class*="gene-palette--"] .wp-block-heading.has-xx-large-font-size {
	font-size: clamp(2.4rem, 4.6vw, 3.8rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.022em !important;
}

[class*="gene-palette--"] .wp-block-heading.has-x-large-font-size {
	font-size: clamp(1.8rem, 3.1vw, 2.5rem) !important;
}

[class*="gene-palette--"] :where(p) {
	font-family: var(--gene-font-sans);
}
