:root {
	/* Colors */
	--color-primary: #18181b;
	--color-secondary: #ab5bec;
	--color-text: #222;
	--color-text-light: #64748b;
	--color-text-lighter: #94a3b8;
	--color-bg: #fff;
	--color-bg-secondary: #f8fafc;
	--color-border: #e2e8f0;
	--color-border-light: rgba(226, 232, 240, 0.3);

	/* Typography */
	--font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono:
		'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--font-size-2xl: 1.5rem;
	--font-size-3xl: 1.875rem;
	--font-size-4xl: 2.25rem;
	--font-size-5xl: 2.5rem;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.625;

	/* Spacing */
	--spacing-0: 0;
	--spacing-1: 0.25rem;
	--spacing-2: 0.5rem;
	--spacing-3: 0.75rem;
	--spacing-4: 1rem;
	--spacing-5: 1.25rem;
	--spacing-6: 1.5rem;
	--spacing-8: 2rem;
	--spacing-10: 2.5rem;
	--spacing-12: 3rem;
	--spacing-16: 4rem;
	--spacing-20: 5rem;

	/* Radius */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-2xl: 1.5rem;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-normal: 300ms ease;
	--transition-slow: 500ms ease;
	--transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

	/* Z-index scale */
	--z-dropdown: 1000;
	--z-sticky: 1020;
	--z-fixed: 1030;
	--z-modal-backdrop: 1040;
	--z-modal: 1050;
	--z-popover: 1060;
	--z-tooltip: 1070;
	--z-toast: 1080;

	/* Scroll offset constants */
	--nav-height: 60px;
	--scroll-offset-desktop: 80px;
	--scroll-offset-mobile: 85px;
}

/* Base styles */
* {
	box-sizing: border-box;
}

html {
	font-size: var(--font-size-base);
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background-color: var(--color-bg);
	line-height: var(--line-height-normal);
	min-height: 100vh;
	overflow-x: hidden;
}

/* Typography reset */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	color: var(--color-primary);
}

p {
	margin: 0;
}

a {
	color: var(--color-secondary);
	text-decoration: none;
	transition: opacity var(--transition-fast);
}

a:hover {
	opacity: 0.8;
}

/* Optimize images for performance */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Hide scrollbars */
::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}

/* Focus styles */
:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

/* Selection styles */
::selection {
	background-color: var(--color-secondary);
	color: white;
}

/* Utility classes */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	/* Disable animations for accessibility */
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
