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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 7rem;
}

body {
	display: flex;
	flex-direction: column;
	min-width: 20rem;
	min-height: 100vh;
	margin: 0;
	background: var(--page-background);
	color: var(--color-text);
}

body,
button,
input,
textarea,
select {
	font-family: var(--font-body);
}

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

figure,
h1,
h2,
h3,
p,
ul {
	margin: 0;
}

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

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

button {
	padding: 0;
	border: 0;
	color: inherit;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2000;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--color-white);
	transform: translateY(-200%);
}

@media (max-width: 768px) {
	html {
		scroll-padding-top: 5rem;
	}
}

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

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