/* base.css — reset-lite, element defaults, utilities. No components here. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: var(--weight-regular); /* Instrument Serif has no bold; never fake it */
	line-height: var(--leading-tight);
	margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-accent-text); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
::selection { background: var(--color-ink); color: var(--color-paper); }
.site-main { display: block; min-height: 60vh; }

/* Utilities */
.u-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-skip-link {
	position: absolute; left: var(--space-4); top: -4rem; z-index: calc(var(--z-header) + 1);
	padding: var(--space-2) var(--space-4); background: var(--color-ink); color: var(--color-paper);
	border-radius: var(--radius-md);
}
.u-skip-link:focus { top: var(--space-4); }
.u-text-center { text-align: center; }
.u-muted { color: var(--color-muted); }

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