/*
 * KHC Clear: design tokens (brand system v1).
 * Source: brand-system/SPEC.md and the token block in site-pages/build.py.
 * Don't change the palette. Dark text on turquoise and yellow; turquoise text never on white.
 */

/* ---------- Fonts: self-hosted Montserrat (variable, 200–800) and Sacramento. OFL, see assets/fonts. ---------- */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/montserrat-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/montserrat-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Sacramento";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/sacramento-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sacramento";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/sacramento-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Palette (SPEC §3). Turquoise leads; teal is a rare accent. */
	--khc-turquoise: #72d3c5;
	--khc-yellow: #f3c427;
	--khc-orange: #f18c4f;
	--khc-coral: #fb6f69;
	--khc-teal: #5b9294;
	--khc-blue: #5a6090;
	--khc-purple: #7a59a2;
	--khc-black: #111111;
	--khc-charcoal: #525860;
	--khc-light: #f5f5f4;
	--khc-gray: #d9d9d9;
	--khc-white: #ffffff;
	--khc-muted: #aeb2b8;   /* footer fine print, from the boards */
	--khc-hairline: #ececec; /* the dropdown's link-row rule */

	/* Offer colors: self-assessment, then steps one to three. */
	--khc-offer-assess: var(--khc-yellow);
	--khc-offer-audit: var(--khc-turquoise);
	--khc-offer-system: var(--khc-orange);
	--khc-offer-advisory: var(--khc-purple);

	/* Type */
	--khc-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--khc-script-font: "Sacramento", cursive;

	/* Sizes scale down from the 1440px boards to phones. The max is the board value. */
	--khc-fs-display: clamp(2.5rem, 4.6vw + 1rem, 5.25rem);  /* 84 */
	--khc-fs-h1: clamp(2.375rem, 3.2vw + 1rem, 4rem);         /* 64 (Kate, Oct. 1: was 72) */
	--khc-fs-h2-lg: clamp(2.125rem, 2.4vw + 0.9rem, 3.25rem); /* 52, section heads (was 60) */
	--khc-fs-h2: clamp(1.875rem, 1.9vw + 0.9rem, 3rem);       /* 48 */
	--khc-fs-h3: clamp(1.375rem, 0.6vw + 1.1rem, 1.5rem);     /* 24 */
	--khc-fs-lead: 1.125rem;    /* 18 (Kate, Oct. 1: was 20) */
	--khc-fs-body: 1rem;        /* 16 (Kate, Oct. 1: was 18) */
	--khc-fs-small: 0.9375rem;  /* 15 */
	--khc-fs-eyebrow: 0.8125rem; /* 13 */

	--khc-track-display: -0.035em;
	--khc-track-eyebrow: 0.18em;

	/* Lines: one weight for every mark (SPEC round 2). List and table rules stay thin and gray. */
	--khc-line: 4px;
	--khc-rule: 1px;

	/* Layout: boards are 1440 wide with 100px side padding, so content is 1240. */
	--khc-content: 1240px;
	--khc-measure: 760px;
	--khc-pad: clamp(20px, 6.9vw, 100px);
	--khc-section-y: clamp(56px, 6vw, 88px);
	--khc-nav-h: 96px;

	--khc-radius-sm: 12px;
	--khc-radius: 20px;
	--khc-radius-lg: 28px;
}

@media (max-width: 1180px) {
	:root {
		--khc-nav-h: 76px;
	}
}
