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

html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

body {
	margin: 0;
	background: var(--ac-color-background);
	color: var(--ac-color-text);
	font-family: var(--ac-font-body);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

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

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

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

:focus-visible {
	outline: var(--ac-focus-ring);
	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;
}

.screen-reader-text:focus {
	z-index: 100000;
	inset-block-start: var(--ac-space-sm);
	inset-inline-start: var(--ac-space-sm);
	width: auto;
	height: auto;
	padding: var(--ac-space-xs) var(--ac-space-sm);
	clip: auto;
	background: var(--ac-color-background);
	color: var(--ac-color-text);
	font-weight: 700;
	white-space: normal;
}
