/* Reset */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Helvetica,
		Arial,
		sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
	overflow-wrap: anywhere;
}

img,
svg {
	display: block;
	max-width: 100%;
}

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

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

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

.skip-link {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1100;
	padding: 10px 14px;
	background: var(--color-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transform: translateY(-160%);
	transition: transform .2s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

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