/*
 * Home-derived CEPA typography roles.
 *
 * These opt-in classes are the default foundation for redesigned public CEPA
 * pages. Content headings use natural casing; uppercase is allowed only with
 * .cepa-type-uppercase or an intentionally approved component convention.
 * Reuse these roles instead of introducing page-specific heading systems.
 */

@font-face {
	font-family: "CEPA Montserrat";
	src: url("../thegem/fonts/montserrat-bold.woff2") format("woff2"),
		url("../thegem/fonts/montserrat-bold.woff") format("woff");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "CEPA Source Sans Pro";
	src: url("../thegem/fonts/sourcesanspro-regular.woff2") format("woff2"),
		url("../thegem/fonts/sourcesanspro-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--cepa-font-display: "CEPA Montserrat", "Montserrat", Arial, sans-serif;
	--cepa-font-body: "CEPA Source Sans Pro", "Source Sans Pro", Arial, sans-serif;
}

/* Permanent CEPA natural-spacing rule, using the authored-case safeguard's
 * content scope. Native/theme tracking must not override standard titles. */
#main :is(h1, h2, h3, h4, h5, h6,
	.title-h1, .title-h2, .title-h3, .title-h4, .title-h5, .title-h6,
	.thegem-heading, .wpb_heading, .gem-textbox-title,
	.vc_tta-title-text, .gem-button, .vc_btn3) {
	letter-spacing: normal !important;
	font-kerning: normal;
}

.cepa-type-display,
.cepa-type-section-title,
.cepa-type-subsection-title,
.cepa-type-slogan,
.cepa-type-callout,
.cepa-type-card-title {
	font-family: var(--cepa-font-display);
	font-style: normal;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-transform: none;
}

.cepa-type-display {
	font-size: clamp(31px, 5.3vw, 54px);
	line-height: 1.04;
}

.cepa-type-section-title {
	font-size: clamp(34px, 4.9vw, 50px);
	line-height: 1.08;
}

.cepa-type-subsection-title {
	font-size: clamp(22px, 2.2vw, 26px);
	line-height: 1.18;
}

.cepa-type-subsection-title--long {
	line-height: 1.3;
}

.cepa-type-slogan {
	font-size: clamp(22px, 3vw, 42px);
	line-height: 1.12;
}

.cepa-type-callout {
	font-size: clamp(20px, 2.35vw, 30px);
	line-height: 1.16;
}

.cepa-type-card-title {
	font-size: clamp(26px, 2.8vw, 36px);
	line-height: 1.1;
}

.cepa-type-fact {
	font-family: var(--cepa-font-display);
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.33;
	text-transform: none;
}

.cepa-type-eyebrow,
.cepa-type-meta {
	font-family: var(--cepa-font-display);
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.015em;
	line-height: 1.2;
	text-transform: none;
}

.cepa-type-lead,
.cepa-type-body {
	font-family: var(--cepa-font-body);
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.58;
	text-transform: none;
}

.cepa-type-lead {
	font-size: clamp(16px, 1.2vw, 17px);
}

.cepa-type-body {
	font-size: 17px;
}

.cepa-type-small {
	font-family: var(--cepa-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
}

.cepa-type-uppercase {
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

@media (max-width: 620px) {
	.cepa-type-body {
		font-size: 16px;
	}
}
