/**
 * Reset + base element styles.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--lh-tight);
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-3);
	color: var(--color-text);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
	color: inherit;
	text-decoration: none;
}
a:not([class]) {
	color: var(--color-accent);
	text-decoration: none;
}
a:not([class]):hover { color: var(--color-accent-hover); }
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

/* Accessible, visible focus state everywhere — never removed without replacement. */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--space-4);
	z-index: 200;
	background: var(--color-primary);
	color: var(--color-text-on-primary);
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-sm);
	transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

::selection { background: var(--color-accent); color: #fff; }

/* WordPress core alignment/gallery classes kept minimally functional for blog content */
.alignwide { max-width: calc(var(--container-max) - 2 * var(--container-pad)); margin-inline: auto; }
.alignfull { max-width: none; margin-inline: calc(50% - 50vw); }
.wp-caption-text { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
