/* WHA Rides — base: design tokens, reset, accessibility primitives.
   Palette/tokens ported 1:1 from the WHA Rides Next.js build (app/globals.css). */

:root {
	--wha-background: #050505;
	--wha-background-secondary: #111111;
	--wha-card: #181818;
	--wha-foreground: #ffffff;
	--wha-muted-foreground: #bdbdbd;
	--wha-accent: #c7a15a;
	--wha-accent-soft: #e4c988;
	--wha-accent-foreground: #050505;
	--wha-border: rgba(255, 255, 255, 0.08);
	--wha-border-strong: rgba(255, 255, 255, 0.14);
	--wha-focus-ring: rgba(199, 161, 90, 0.55);

	--wha-font-display: "Playfair Display", Georgia, serif;
	--wha-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

	--wha-radius-sm: 0.25rem;
	--wha-radius-md: 0.375rem;
	--wha-radius-lg: 0.625rem;

	--wha-container: 1160px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--wha-background);
	color: var(--wha-foreground);
	font-family: var(--wha-font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

::selection {
	background: var(--wha-accent);
	color: var(--wha-accent-foreground);
}

:focus-visible {
	outline: 2px solid var(--wha-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.wha-skip-link {
	position: fixed;
	top: -100%;
	left: 1rem;
	z-index: 1000;
	background: var(--wha-accent);
	color: var(--wha-accent-foreground);
	padding: 0.75rem 1.25rem;
	border-radius: var(--wha-radius-sm);
	font-weight: 600;
	transition: top 0.2s ease;
}

.wha-skip-link:focus {
	top: 1rem;
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
