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

:where(html) {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

:where(body) {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
}

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-heading);
	color: var(--color-heading);
	text-wrap: balance;
}

:where(p, li, figcaption) {
	text-wrap: pretty;
}

:where(a) {
	color: var(--color-primary);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

:where(a:hover) {
	color: var(--color-primary-hover);
}

:where(img, picture, video, canvas, svg) {
	max-width: 100%;
	height: auto;
}

:where(img, picture, video, canvas) {
	display: block;
}

:where(button, input, textarea, select) {
	font: inherit;
}

:where(button, [type="button"], [type="submit"], [type="reset"]) {
	cursor: pointer;
}

:where(button, input, textarea, select, summary, a):focus-visible {
	outline: var(--focus-ring-width) solid var(--color-focus);
	outline-offset: var(--focus-ring-offset);
}

:where([disabled], [aria-disabled="true"]) {
	cursor: not-allowed;
}

:where(table) {
	width: 100%;
	border-collapse: collapse;
}

:where(th) {
	text-align: left;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
