/**
 * Global base styles (intentionally minimal).
 * Layout, colors, and typography come from theme.json; this file only
 * contains what cannot be expressed there (accessibility helpers etc.).
 */

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

html {
	scroll-behavior: smooth;
}

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

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #2563eb);
	outline-offset: 2px;
}

/* Screen-reader-only text (used by the skip link and image captions). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1.5rem;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #15181d);
	border-radius: 0.375rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}
