/*
 * RESET — neutralización mínima y moderna. Especificidad cero con :where()
 * para que cualquier componente gane sin pelear.
 */

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

:where(html) {
	-webkit-text-size-adjust: 100%;
	hanging-punctuation: first last;
}

:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul) {
	margin: 0;
}

:where(ol, ul):where([class]) {
	padding: 0;
	list-style: none;
}

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

:where(input, button, textarea, select) {
	font: inherit;
	color: inherit;
}

:where(button) {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

:where(a) {
	color: inherit;
}

:where(h1, h2, h3, h4, h5, h6) {
	overflow-wrap: break-word;
	text-wrap: balance;
}

:where(p, li, figcaption) {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

:target {
	scroll-margin-block: 5rem;
}
