/**
 * Vision Event shared typefaces.
 * Yekan Bakh FaNum is a single variable file (all weights via font-weight).
 * Morabba is used for display headings (section title, ticket title/subtitle, deadline).
 */

/* ------------------------------------------------------------------ */
/* Yekan Bakh FaNum – variable (wght + dots axes in one file)         */
/* ------------------------------------------------------------------ */

@font-face {
	/* One family name for every weight; do not add per-weight files. */
	font-family: 'Yekan Bakh FaNum';
	/* Variable woff2: browser picks weight from CSS font-weight. */
	src: url('../assets/fonts/YekanBakhFaNum-VF.woff2') format('woff2');
	/* Advertise the supported weight range so font-weight 100-900 interpolates. */
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Morabba – static cuts already used in the public UI                */
/* ------------------------------------------------------------------ */

@font-face {
	/* ExtraBold cut used by ticket titles. */
	font-family: 'Morabba';
	src: url('../assets/fonts/Morabba-ExtraBold.woff2') format('woff2'),
		url('../assets/fonts/Morabba-ExtraBold.woff') format('woff');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	/* Bold cut used by the popup title and the register button. */
	font-family: 'Morabba';
	src: url('../assets/fonts/Morabba-Bold.woff2') format('woff2'),
		url('../assets/fonts/Morabba-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	/* SemiBold cut used by form labels, prices, and gateway copy. */
	font-family: 'Morabba';
	src: url('../assets/fonts/Morabba-SemiBold.woff2') format('woff2'),
		url('../assets/fonts/Morabba-SemiBold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	/* Medium cut used by ticket subtitles. */
	font-family: 'Morabba';
	src: url('../assets/fonts/Morabba-Medium.woff2') format('woff2'),
		url('../assets/fonts/Morabba-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Shared stacks                                                      */
/* ------------------------------------------------------------------ */

:root {
	/* Default UI face: Persian digits, variable weights. */
	--vision-font: 'Yekan Bakh FaNum', Tahoma, sans-serif;
	/* Display face: keep Morabba, fall back to Yekan Bakh. */
	--vision-font-morabba: 'Morabba', 'Yekan Bakh FaNum', Tahoma, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Root containers: dots axis + tracking (do not set per-weight files) */
/* ------------------------------------------------------------------ */

.vision-reg,
.vision-popup,
body.vision-form-embed,
.vision-gw,
.ve-card {
	font-family: var(--vision-font);
	/* Custom Dots axis lives on the root so children inherit it. */
	font-variation-settings: "dots" 9;
	letter-spacing: -1px;
}
