/**
 * Design tokens from the Figma style guide "Styleguide v2" (node 3022:1337).
 * See docs/figma-inventory.md. Breakpoints (not usable in media queries as
 * custom properties): tablet 768px, desktop 1024px; the layout is fluid in between.
 */

/*
 * Fonts (only the weights the design uses).
 *   Mont 600 ("Regular" in Figma)  mont-600.woff2      from MONT-REGULAR.TTF
 *   Mont 800 ("Bold" in Figma)     mont-800.woff2      from MONT-BOLD.TTF
 *   Mont 400 / 700                 Mont BG files       (the site's existing web fonts)
 *   Gilroy 400 / 500               gilroy-400/500.woff2; Gilroy Bold in the design uses 500
 * Mont 600 has no umlauts or Cyrillic. "Mont BG" follows "Mont" in the font stack,
 * so those characters come from Mont BG instead of a system font.
 */
@font-face {
	font-family: "Mont";
	src: url("../fonts/mont-bg-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mont";
	src: url("../fonts/mont-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mont";
	src: url("../fonts/mont-bg-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mont";
	src: url("../fonts/mont-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mont BG";
	src: url("../fonts/mont-bg-regular.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mont BG";
	src: url("../fonts/mont-bg-bold.woff2") format("woff2");
	font-weight: 700 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gilroy";
	src: url("../fonts/gilroy-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gilroy";
	src: url("../fonts/gilroy-500.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Colour variables (Figma "Color/…") */
	--color-soft-ivory: #fbf9f4;
	--color-pale-oat: #eee8de;
	--color-pale-sage: #dfe6e0;
	--color-dark-sage: #506653;
	--color-deep-slate: #22333c;
	--color-body-gray: #444444;
	--color-warm-off-white: #fefdfd;
	--color-natural-oat: #ded3c2;
	/* Drawn in the header layers, not in the palette */
	--color-announcement: #647a67;
	--color-light-oat: #f5f2ec;
	/* Drawn in the form-field layers, not in the palette */
	--color-input-border: #a2aaa3;
	--color-placeholder: #667068;
	/* Not in the design: error text, 7.9:1 on Soft Ivory */
	--color-error: #9b2c2c;

	/* Roles */
	--color-page: var(--color-warm-off-white);
	--color-surface: var(--color-soft-ivory);
	--color-text: var(--color-body-gray);
	--color-heading: var(--color-deep-slate);
	--color-primary: var(--color-dark-sage);
	--color-primary-hover: var(--color-deep-slate);
	--color-on-primary: var(--color-warm-off-white);
	--color-border: var(--color-natural-oat);
	--color-focus: var(--color-dark-sage);

	/* Families */
	--font-heading: "Mont", "Mont BG", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Weights: design names -> CSS weights */
	--weight-mont-regular: 600;
	--weight-mont-bold: 800;
	--weight-gilroy-regular: 400;
	--weight-gilroy-medium: 500;

	/* Type, mobile values first (375 frames) */
	--text-h1: 42px;
	--leading-h1: 56px;
	--text-h2: 26px;
	--leading-h2: 36px;
	--text-h3: 20px;
	--leading-h3: 26px;
	--text-h4: 20px;
	--leading-h4: 26px;
	--text-h5: 18px;
	--leading-h5: 26px;
	--text-question: 16px;
	--leading-question: 26px;
	--text-eyebrow: 14px;
	--leading-eyebrow: 20px;
	--text-body-l: 16px;
	--leading-body-l: 26px;
	--text-body: 14px;
	--leading-body: 20px;
	--text-small: 12px;
	--leading-small: 20px;
	--text-tag: 10px;
	--leading-tag: 20px;
	--text-button: 16px;
	--leading-button: 24px;

	/* Radius */
	--radius-card: 20px;
	--radius-option: 14px;
	--radius-option-image: 10px;
	--radius-control: 5px;
	--radius-card-button: 32px;
	--radius-pill: 100px;

	/* Spacing (values used in the designs) */
	--space-1: 6px;
	--space-2: 10px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 18px;
	--space-6: 24px;
	--space-7: 28px;
	--space-8: 30px;
	--space-9: 32px;
	--space-10: 40px;

	/* Controls */
	--control-height: 48px;
	--input-height: 47px;
	--button-height: 52px;
	--card-button-height: 44px;
	--tag-height: 22px;
	--tag-padding: 10px;
	--focus-ring: 2px solid var(--color-focus);
}

@media (min-width: 768px) {
	:root {
		--text-h1: 58px;
		--leading-h1: 68px;
		--text-h2: 40px;
		--leading-h2: 46px;
		--text-h3: 30px;
		--leading-h3: 44px;
		--text-h4: 24px;
		--leading-h4: 34px;
		--text-h5: 22px;
		--leading-h5: 34px;
		--text-question: 18px;
		--leading-question: 34px;
		--text-body-l: 18px;
		--leading-body-l: 30px;
		--text-body: 16px;
		--leading-body: 24px;
		--text-small: 14px;
		--leading-small: 20px;
		--text-tag: 12px;
		--leading-tag: 24px;
		--tag-height: 26px;
		--tag-padding: 12px;
	}
}
