/* ---------- Reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	min-height: 100vh;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: var(--lh-head);
	letter-spacing: -0.01em;
}

:where(h1) { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 800; }
:where(h2) { font-size: var(--fs-h2); font-weight: 700; }
:where(h3) { font-size: var(--fs-h3); font-weight: 700; }

p { line-height: var(--lh-body); }

strong, b { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--border); }

::selection { background: var(--accent); color: #fff; }

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

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

.skip-link {
	position: absolute;
	inset-inline-start: 8px;
	top: -60px;
	background: var(--accent);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	z-index: 999;
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; color: #fff; }

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