/* Reset + base typography */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--primary);
	line-height: var(--lh-tight);
	font-weight: 500;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1.1em; text-wrap: pretty; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

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

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

svg { max-width: 100%; height: auto; }

/* Icon guardrail — hard server-side ceiling so a stray SVG never fills the screen */
.icon {
	width: 1.4em;
	height: 1.4em;
	max-width: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	vertical-align: middle;
	color: currentColor;
}
.icon--sm { width: 1.1em; height: 1.1em; max-width: 20px; max-height: 20px; }
.icon--flip { transform: scaleX(-1); }

.container {
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--primary);
	color: var(--on-primary);
	padding: 0.8em 1.2em;
	z-index: 1000;
	border-radius: var(--radius);
}
.skip-link:focus {
	left: var(--container-pad);
	top: var(--container-pad);
}

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

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