/* Minimal base — extend as the theme grows */

/* Layout tokens live in global.css (:root). Header may override --header-pad-x locally. */

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

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

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding-inline: var(--page-pad-x);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	color: #231f20;
	background-color: #e8e8e8;
}

.site-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--section-gap);
	/* Space before first / after last section; flex gap only applies between siblings inside main. */
	padding-block: var(--section-gap);
}

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

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

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: #231f20;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
}
