/*
 * Base: the few element defaults theme.json cannot express.
 * Everything here uses tokens; no colours or sizes are written by hand.
 */

html {
	scroll-behavior: smooth;
}

/* No block gap between the page regions (header, main, footer) or between full-width sections:
   each section carries its own padding, and a gap would show as a strip of body colour. */
body .wp-site-blocks > *,
body .wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

:where(:focus-visible) {
	outline: var(--wp--custom--border--width-strong) solid var(--wp--custom--color--border--focus);
	outline-offset: var(--wp--custom--border--width-strong);
}

:where(::selection) {
	background: var(--wp--custom--color--bg--brand);
	color: var(--wp--custom--color--text--on-brand);
}

:where(a, button, .wp-block-button__link) {
	transition:
		color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		background-color var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out),
		box-shadow var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--ease--out);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
