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

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	background: var(--color-ink);
	color: var(--color-cream);
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: var(--lh-normal);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

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

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

button { cursor: pointer; }

a { color: inherit; }

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

table { border-collapse: collapse; width: 100%; }

/* Ankersprünge dürfen nicht unter dem festen Header landen. */
[id] { scroll-margin-top: calc(var(--header-height) + var(--space-lg)); }

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

.pe-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;
}

.pe-skip-link {
	position: absolute;
	top: -100px; left: var(--space-md);
	z-index: 100;
	padding: var(--space-sm) var(--space-md);
	background: var(--color-primary);
	color: var(--color-ink);
	font-weight: var(--weight-semibold);
	border-radius: var(--radius-sm);
	transition: top var(--transition-fast);
}

.pe-skip-link:focus { top: var(--space-md); }
