/**
 * Seekde Base Design Tokens, Resets & Accessibility Styles
 * Derived directly from approved frontend mock: seekde_frontend_mock.html
 *
 * @package Seekde
 * @since 2.0.0
 */

:root {
	/* Palette */
	--bg: #f5f4ef;
	--paper: #fffef9;
	--ink: #11120f;
	--muted: #666861;
	--line: #d8d8d0;
	--accent: #b8ff43;
	--accent-ink: #152100;
	--violet: #6f64ff;
	--cyan: #49d8ff;
	--soft: #e9e8e0;
	--danger: #ff6b6b;
	--shadow: 0 16px 50px rgba(20, 20, 16, 0.09);

	/* Metrics */
	--radius: 18px;
	--radius-sm: 12px;
	--max: 1240px;

	/* Typography */
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
	--bg: #0d0f0d;
	--paper: #141713;
	--ink: #f3f3eb;
	--muted: #a8aca2;
	--line: #30342e;
	--soft: #20241f;
	--shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
	--accent-ink: #122000;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	color: inherit;
}

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

/* Layout Utilities */
.container {
	width: min(calc(100% - 36px), var(--max));
	margin-inline: auto;
}

/* Skip link */
.skip {
	position: fixed;
	left: 14px;
	top: -60px;
	background: var(--accent);
	color: #132000;
	padding: 10px 14px;
	z-index: 999;
	border-radius: 8px;
	font-weight: 800;
	transition: top 0.2s ease;
}

.skip:focus {
	top: 14px;
	outline: 3px solid var(--violet);
}

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--violet);
	outline-offset: 2px;
}

/* Reduced Motion */
@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;
	}
}
