/*
	Design tokens — Jonathan Foong V3
	Single source of truth for color, type, spacing, motion and elevation.
*/

:root {
	/* Color: near-black surface, warm white text, muted gray secondary, indigo/blue-violet accent */
	--color-bg: #0b0d10;
	--color-bg-alt: #101317;
	--color-bg-elevated: rgba(255, 255, 255, 0.04);
	--color-text: #f3f1ec;
	--color-text-secondary: #9aa0aa;
	--color-text-tertiary: #828892;
	--color-border: rgba(255, 255, 255, 0.10);
	--color-border-strong: rgba(255, 255, 255, 0.18);
	--color-accent: #7c86f0;
	--color-accent-strong: #939cf5;
	--color-accent-soft: rgba(124, 134, 240, 0.14);
	--color-focus-ring: #a9b1ff;

	/* Typography */
	--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--fs-eyebrow: 0.8rem;
	--fs-body: 1rem;
	--fs-body-lg: 1.125rem;
	--fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
	--fs-h1: clamp(2.5rem, 1.7rem + 4.2vw, 5rem);
	--lh-tight: 1.1;
	--lh-body: 1.65;
	--tracking-eyebrow: 0.16em;
	--tracking-tight: -0.01em;

	/* Spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--space-9: 6.5rem;
	--space-10: 9rem;

	/* Layout */
	--container-max: 1200px;
	--container-pad: clamp(1.25rem, 4vw, 3rem);
	--nav-height: 4.5rem;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-pill: 999px;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
	--shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
	--glass-blur: 18px;
	--glass-bg: rgba(20, 22, 27, 0.62);
	--glass-bg-strong: rgba(20, 22, 27, 0.8);

	/* Motion */
	--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--duration-fast: 160ms;
	--duration-base: 320ms;
	--duration-slow: 560ms;

	color-scheme: dark;
}

/* Respect reduced motion: collapse durations to (near) zero everywhere */
@media (prefers-reduced-motion: reduce) {
	:root {
		--duration-fast: 0.01ms;
		--duration-base: 0.01ms;
		--duration-slow: 0.01ms;
	}
}

/* Respect reduced transparency: fall back to solid surfaces instead of glass */
@media (prefers-reduced-transparency: reduce) {
	:root {
		--glass-bg: #14161b;
		--glass-bg-strong: #14161b;
	}
}
