/**
 * Modern CSS reset — predictable defaults without fighting WordPress content.
 * References: Andy Bell (piccalil.li), Josh Comeau, MDN baseline guidance.
 */

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

/* Document */
html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100%;
}

/* Remove default spacing on common flow elements; lists keep markers for a11y */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin-block: 0;
	margin-inline: 0;
}

/* Set up core defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	cursor: pointer;
}

textarea {
	resize: vertical;
	min-height: 1lh;
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

/* Tables */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Stronger default for line breaks in code / pre when used */
pre {
	overflow: auto;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
