/* Element defaults that theme.json can't express. */
*,
*::before,
*::after {
	box-sizing: border-box;
	border-color: var(--wp--preset--color--border);
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	border: var(--wp--custom--frame-width) solid var(--wp--preset--color--border);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

small {
	font-size: var(--wp--preset--font-size--small);
}

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

button {
	font: inherit;
	color: inherit;
}

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

a:hover {
	text-underline-offset: 2px;
}

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

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

/* Page shell: the centred column every template uses. */
.site {
	width: 100%;
	max-width: 64rem;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--5);
}

.site__main {
	margin-bottom: var(--wp--preset--spacing--24);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 10000;
	transform: translateY(-200%);
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--bg);
	border-radius: var(--wp--custom--button--radius, 0.5rem);
}

.skip-link:focus {
	transform: translateY(0);
	outline: 3px solid var(--wp--preset--color--bg);
	outline-offset: 2px;
}
