/* Self-hosted fonts for inntek-child. Built by scripts/build-fonts.sh (OFL, see LICENSE-*.txt). */

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2");
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro-500.woff2") format("woff2");
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro-600.woff2") format("woff2");
}

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/be-vietnam-pro-700.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
}

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

/* Icon subset built by scripts/build-icons.sh from assets/fonts/icons.txt (Apache 2.0). */
@font-face {
	font-family: "Material Symbols Rounded";
	font-style: normal;
	font-weight: 350 400;
	font-display: block;
	src: url("../fonts/material-symbols-rounded.woff2") format("woff2");
}

/*
 * Metric-matched fallback for Be Vietnam Pro, used while the web font loads, so the swap does
 * not move text (CLS). Values from be-vietnam-pro-400.woff2 (ascent 1000, descent 265 / 1000 upm,
 * average width 0.496em) against Arial (average width 0.452em): size-adjust = 0.496 / 0.452.
 */
@font-face {
	font-family: "Be Vietnam Pro Fallback";
	src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("DejaVu Sans");
	size-adjust: 109.7%;
	ascent-override: 91.16%;
	descent-override: 24.16%;
	line-gap-override: 0%;
}
