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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

body.nav-open {
	overflow: hidden;
}

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

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

button {
	font: inherit;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.section {
	padding: var(--space-xl) 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 10000;
	background: var(--color-white);
	color: var(--color-dark);
	padding: .75rem 1rem;
	border-radius: .5rem;
	box-shadow: var(--shadow);
}

.skip-link:focus {
	left: 1rem;
}

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

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