/*
 * Design tokens and self-hosted fonts.
 * Vazirmatn and Noto Serif are SIL Open Font License. See assets/fonts.
 * Material Symbols Outlined is Apache 2.0. See assets/fonts/material-symbols.
 *
 * Breakpoints (repeat rem values in @media; custom properties do not work there):
 *   sm 40rem | md 48rem | lg 64rem | xl 80rem
 */

@font-face {
	font-family: "Material Symbols Outlined";
	font-style: normal;
	font-weight: 100 700;
	font-display: block;
	src: url("../fonts/material-symbols/MaterialSymbolsOutlined.woff2") format("woff2");
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-300-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-400-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-500-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-600-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-700-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/vazirmatn/latin-800-normal.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: "Vazirmatn";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-300-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-400-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-500-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-600-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-700-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/vazirmatn/arabic-800-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
	font-family: "Noto Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-400-normal.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: "Noto Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-400-italic.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: "Noto Serif";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-600-normal.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: "Noto Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-700-normal.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: "Noto Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-ext-400-normal.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: "Noto Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-ext-400-italic.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: "Noto Serif";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-ext-600-normal.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: "Noto Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/noto-serif/latin-ext-700-normal.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 {
	/* Color */
	--color-primary: #0f2447;
	--color-primary-hover: #162b4e;
	--color-navy-dark: #000f2a;
	--color-gold: #c5a059;
	--color-gold-accent: #b48a3c;
	--color-gold-deep: #8c6721;
	--color-gold-light: #fdf8ee;
	/* Archive badge / chip wash (prototype #fbf7ee) */
	--color-gold-wash: #fbf7ee;
	--color-gold-border: #e8dcbe;
	--color-secondary: #775a19;
	--color-surface: #f8fafc;
	--color-surface-ivory: #f9f9f9;
	--color-surface-subtle: #f1f5f9;
	--color-white: #ffffff;
	--color-text: #0f172a;
	--color-text-body: #334155;
	--color-text-secondary: #475569;
	--color-text-muted: #64748b;
	--color-outline: #94a3b8;
	--color-border: #e2e8f0;
	--color-surface-highest: #cbd5e1;

	/* Fixed chrome clearance (mobile default; md+ raises offset) */
	--topbar-height: 0rem;
	/* Header row + menu; keep close to the real chrome height so the hero sits flush. */
	--header-offset: 5.25rem;

	/* Type stacks — Persian headlines fall back to Vazirmatn */
	--font-body: "Vazirmatn", system-ui, sans-serif;
	--font-display: "Noto Serif", "Vazirmatn", serif;

	/* Type scale */
	--text-label-sm: 0.625rem;
	--leading-label-sm: 1rem;
	--tracking-label-sm: 0.04em;
	--text-label-md: 0.75rem;
	--leading-label-md: 1.125rem;
	--text-label-lg: 0.875rem;
	--leading-label-lg: 1.375rem;
	--text-body-sm: 0.75rem;
	--leading-body-sm: 1.375rem;
	--text-body-md: 0.875rem;
	--leading-body-md: 1.625rem;
	--text-body-lg: 1rem;
	--leading-body-lg: 1.875rem;
	--text-title-md: 1rem;
	--leading-title-md: 1.75rem;
	--text-title-lg: 1.125rem;
	--leading-title-lg: 1.875rem;
	--text-headline-sm: 1.25rem;
	--leading-headline-sm: 2rem;
	--text-headline-md: 1.5rem;
	--leading-headline-md: 2.375rem;
	--text-headline-lg: 2.25rem;
	--leading-headline-lg: 3.25rem;
	--text-headline-lg-mobile: 1.625rem;
	--leading-headline-lg-mobile: 2.5rem;
	--text-display: 3rem;
	--leading-display: 4.25rem;
	--tracking-display: -0.02em;
	--text-display-mobile: 2rem;
	--leading-display-mobile: 3rem;
	--tracking-display-mobile: -0.01em;

	/* Spacing */
	--space-xs: 0.375rem;
	--space-sm: 0.75rem;
	--space-md: 1.25rem;
	--space-lg: 2rem;
	--space-xl: 3.5rem;
	--gutter: 1.5rem;
	--gutter-mobile: 1rem;

	/*
	 * Radius values match the prototype CSS. Its Tailwind config remaps utilities.
	 * Do NOT map by name suffix: rounded-xl is --radius-lg, not --radius-xl.
	 *   rounded      0.125rem (--radius-sm)
	 *   rounded-lg   0.25rem  (--radius-md)
	 *   rounded-xl   0.5rem   (--radius-lg)
	 *   rounded-full 0.75rem  (--radius-xl)
	 *   rounded-2xl  1rem     (stock Tailwind, not remapped)
	 * Rules in the prototype stylesheet that set rem directly are not remapped.
	 */
	--radius-sm: 0.125rem;
	--radius-md: 0.25rem;
	--radius-lg: 0.5rem;
	--radius-xl: 0.75rem;
	/* Alias for prototype rounded-xl surfaces (cards, panels, hero) */
	--radius-card: 0.5rem;
	--radius-panel: 1.5rem;

	/*
	 * Elevation. sm / md / inner match Tailwind defaults from utilities.css.
	 * xs is the light chip/badge shadow used where the prototype writes shadow-xs.
	 */
	--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
	--shadow-card: 0 12px 28px -10px rgba(15, 36, 71, 0.12);
	--shadow-drawer: -16px 0 36px -4px rgba(15, 36, 71, 0.12);
	--shadow-focus: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-gold);
}

@media (min-width: 48rem) {
	:root {
		--topbar-height: 2.25rem;
		/* py-3 + gap-2 + 5rem logo + menu pt-2 ≈ 9.25rem; was 9.75 and left a visible band. */
		--header-offset: 9.25rem;
	}
}
