/*
 * XTON design tokens. Values mirror xton-theme: src/scss/_variables.scss and _tokens.scss.
 * Fluid sizes scale between 580px and 1440px viewports.
 */
:root {
	--color-accent: #ffd600;
	--color-accent-strong: #ffa600;
	--color-accent-soft: #ffee00;
	/* XTON decision: differs from #7a5900 in xton-theme. */
	--color-accent-on-light: var(--color-gray-950);

	--color-gray-950: #171717;
	--color-gray-900: #222222;
	--color-gray-600: #4f4f4f;
	--color-gray-400: #a3a3a3;
	--color-gray-300: #cdcdcd;
	--color-gray-200: #e5e5e5;
	--color-gray-100: #ededed;
	--color-gray-50: #fafafa;

	--color-danger: #b30000;
	--color-danger-on-dark: #ff6b6b;
	--color-success-on-dark: #7ed957;

	--color-dark: var(--color-gray-950);
	/* XTON decision: pure white, some product images have white backgrounds. */
	--color-light: #ffffff;

	--gradient-accent: linear-gradient(180deg, var(--color-accent), var(--color-accent-strong));
	--gradient-light: linear-gradient(180deg, var(--color-accent-soft), var(--color-accent));
	--gradient-dark: linear-gradient(180deg, var(--color-gray-950), transparent);

	--font-base: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-heading: 'Russo One', sans-serif;

	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-base: var(--font-weight-light);
	--font-weight-heading: var(--font-weight-normal);

	--tracking-tight: -0.02em;
	--tracking-normal: 0;
	--tracking-wide: 0.02em;
	--tracking-wider: 0.08em;

	--line-height-base: 1.5;
	--line-height-heading: 1.2;

	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: clamp(16px, calc(13.302px + 0.4651vw), 20px);
	--text-xl: clamp(20px, calc(16.628px + 0.5814vw), 25px);
	--text-2xl: clamp(24px, calc(19.279px + 0.814vw), 31px);
	--text-3xl: clamp(28px, calc(20.581px + 1.2791vw), 39px);
	--text-4xl: clamp(32px, calc(20.535px + 1.9767vw), 49px);
	--text-5xl: clamp(34px, calc(15.791px + 3.1395vw), 61px);

	--space-xl: clamp(24px, calc(18.605px + 0.9302vw), 32px);
	--space-2xl: clamp(32px, calc(21.209px + 1.8605vw), 48px);
	--space-3xl: clamp(32px, calc(10.419px + 3.7209vw), 64px);
	--space-4xl: clamp(48px, calc(26.419px + 3.7209vw), 80px);
	--space-5xl: clamp(48px, calc(15.628px + 5.5814vw), 96px);

	--radius-sm: 2px;
	--radius-md: 5px;
	--radius-lg: 8px;
	--radius-full: 9999px;

	--focus-ring-width: 2px;
	--focus-ring-offset: 2px;
	--focus-ring-color: var(--color-accent);

	--shadow-sm: 0 0 4px color-mix(in srgb, var(--color-dark) 30%, transparent);
	--shadow-card: 0 0 12px rgb(0 0 0 / 75%);
	--shadow-dropdown: 0 12px 24px rgb(0 0 0 / 30%);
	--shadow-glow: 0 0 12px color-mix(in srgb, var(--color-accent) 60%, transparent);
	--shadow-glow-sm: 0 0 4px color-mix(in srgb, var(--color-accent) 30%, transparent);

	--duration-fast: 0.2s;
	--duration-base: 0.3s;
	--ease-standard: ease;
}
