/* Element defaults and the page shell. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp--custom--header-height) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizelegibility;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

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

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

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

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

.icon {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
}

/* Centred column used by sections, header and footer. */
.container {
	width: 100%;
	max-width: var(--wp--custom--container--wide);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--gutter);
}

.container--medium {
	max-width: var(--wp--custom--container--medium);
}

.container--reading {
	max-width: var(--wp--custom--container--reading);
}

.container--narrow {
	max-width: var(--wp--custom--container--narrow);
}

.site-main {
	min-height: calc(100vh - var(--wp--custom--header-height));
}

.skip-link {
	position: fixed;
	top: -50px;
	left: 16px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-weight: 700;
}

.skip-link:focus {
	top: 16px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		transition-duration: 0.01ms;
	}
}
