/*
 * Meridian Lite — Global styles
 * Layout helpers, resets, and utilities not expressible in theme.json.
 */

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

/* ----------------------------------------------------------------
   Body defaults
   ---------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   Skip link
   ---------------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	overflow: hidden;
	z-index: 9999;
}
.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--parchment);
	padding: 0.75rem 1.5rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	z-index: 9999;
}

/* ----------------------------------------------------------------
   Site header
   ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--wp--preset--color--parchment);
	border-bottom: 1px solid var(--wp--preset--color--neutral-100);
}

.site-header__inner {
	min-height: 64px;
}

/* ----------------------------------------------------------------
   Images
   ---------------------------------------------------------------- */
img,
svg {
	max-width: 100%;
	height: auto;
}

/* ----------------------------------------------------------------
   Smooth focus outlines
   ---------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Utility: screen-reader text
   ---------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
