/**
 * Rosha Supply — design tokens.
 * Single source of truth for color, type, and spacing. Component styles
 * (rosha.css) must reference these variables, never a literal hex/px value.
 */

@font-face {
	font-family: "IRANYekan";
	src: url("../fonts/iranyekan/iranyekanwebregular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IRANYekan";
	src: url("../fonts/iranyekan/iranyekanwebmedium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IRANYekan";
	src: url("../fonts/iranyekan/iranyekanwebbold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

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

@font-face {
	font-family: "RoshaPersian";
	src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Dark theme (default): black/navy with a controlled gold accent. */
	--rosha-bg: #050507;
	--rosha-bg-secondary: #09111A;
	--rosha-surface: #101923;
	--rosha-surface-raised: #152231;

	--rosha-gold: #C9A24E;
	--rosha-gold-light: #F0D58A;
	--rosha-turquoise: #547A92;
	--rosha-turquoise-light: #8EB7C8;
	--rosha-accent-contrast: #F8F5EA;

	--rosha-text: #F8F5EA;
	--rosha-text-muted: #AEB4B8;

	--rosha-border: rgba(248, 245, 234, 0.1);
	--rosha-border-gold: rgba(201, 162, 78, 0.38);
	--rosha-border-turquoise: rgba(84, 122, 146, 0.32);

	--rosha-overlay: rgba(5, 5, 7, 0.78);
	--rosha-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	--rosha-shadow-elevated: 0 18px 54px rgba(0, 0, 0, 0.48);

	/* Layout */
	--rosha-container: 1320px;
	--rosha-gutter: clamp(16px, 4vw, 32px);
	--rosha-section-space: clamp(48px, 8vw, 96px);

	--rosha-radius-sm: 4px;
	--rosha-radius: 10px;
	--rosha-radius-lg: 18px;

	--rosha-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--rosha-speed: 200ms;
	--rosha-speed-slow: 340ms;

	--rosha-font-body: "IRANSansWeb", "IRANYekan", "RoshaPersian", Tahoma, "Segoe UI", system-ui, sans-serif;
	--rosha-font-display: "IRANSansWeb", "IRANYekan", "RoshaPersian", Tahoma, "Segoe UI", system-ui, sans-serif;

	--rosha-text-display: clamp(2rem, 1.5rem + 2vw, 3.25rem);
	--rosha-text-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	--rosha-text-h2: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
	--rosha-text-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
	--rosha-text-body: 1rem;
	--rosha-text-small: 0.875rem;
	--rosha-text-meta: 0.75rem;
	--rosha-text-button: 0.9375rem;
}

[data-theme="light"] {
	--rosha-bg: #F7F1E6;
	--rosha-bg-secondary: #EFE6D8;
	--rosha-surface: #FFFDF8;
	--rosha-surface-raised: #FFFFFF;

	--rosha-gold: #9E742D;
	--rosha-gold-light: #C29545;
	--rosha-turquoise: #385C73;
	--rosha-turquoise-light: #547A92;
	--rosha-accent-contrast: #F8F5EA;

	--rosha-text: #17140E;
	--rosha-text-muted: #68645B;

	--rosha-border: rgba(23, 20, 14, 0.12);
	--rosha-border-gold: rgba(158, 116, 45, 0.34);
	--rosha-border-turquoise: rgba(56, 92, 115, 0.24);

	--rosha-overlay: rgba(23, 20, 14, 0.42);
	--rosha-shadow: 0 10px 28px rgba(23, 20, 14, 0.08);
	--rosha-shadow-elevated: 0 18px 54px rgba(23, 20, 14, 0.13);
}
