/* 00 — Reset and accessibility baseline. Values come from theme.json custom properties. */

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

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

body {
	overflow-wrap: break-word;
}

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

/* Visible focus on everything interactive: ink on paper surfaces, paper on dark ones. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--ink);
	outline-offset: var(--wp--custom--focus--offset);
}

:where(.has-forest-background-color, .has-ink-background-color) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--paper);
}

/* Inputs and buttons get the 2px radius; images and cards stay square. */
:where(input, select, textarea, button) {
	border-radius: var(--wp--custom--radius);
	font: inherit;
}

/* Never centre running text (Process Book 2.2). */
p {
	text-align: start;
}

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