/**
 * Minimal global behavior not represented by theme.json.
 * Components and page-specific rules belong in separate files when needed.
 */

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

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

body {
	min-height: 100vh;
	margin: 0;
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
	max-width: 100%;
	font: inherit;
}

:where(.wp-element-button, button, input[type="button"], input[type="reset"], input[type="submit"]) {
	min-height: 2.75rem;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 0.1875rem solid var(--wp--preset--color--petrol);
	outline-offset: 0.1875rem;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

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

:where(.wp-block-site-title, .wp-block-site-title a) {
	text-decoration: none;
}

.wp-site-blocks {
	min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
	html:focus-within {
		scroll-behavior: smooth;
	}

	:where(a, button, input, select, textarea) {
		transition-duration: var(--wp--custom--transition--fast);
		transition-property: color, background-color, border-color, outline-color;
		transition-timing-function: ease;
	}
}

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