/**
 * GENE Blocks v2 — Bundled fonts + design tokens (LP-grade typography).
 *
 * Fonts are served LOCALLY from assets/fonts (no external requests — privacy-safe
 * and WP.org compliant). Fraunces = serif display for headings, Hanken Grotesk =
 * sans for body. Both OFL-licensed (see assets/fonts/*-OFL.txt).
 *
 * 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: "Fraunces GENE";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces GENE";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces GENE";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
}

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

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

[class*="gene-palette--"] {
	--gene-font-serif: "Fraunces GENE", Georgia, "Times New Roman", serif;
	--gene-font-sans: "Hanken GENE", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	font-family: var(--gene-font-sans);
	line-height: 1.55;
	letter-spacing: 0.005em;
}

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

/* Display-scale headings: big, confident LP-style sizing. */
[class*="gene-palette--"] h1.wp-block-heading,
[class*="gene-palette--"] .wp-block-heading.has-xx-large-font-size {
	font-size: clamp(2.6rem, 5.2vw, 4.4rem) !important;
}

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

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