/*
 * Opt in with add_theme_support( 'agency-base-reset' ).
 * The cascade layer keeps this reset below unlayered theme and plugin styles.
 */
@layer agency.reset {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	body,
	h1, h2, h3, h4, h5, h6,
	p, figure, blockquote, dl, dd {
		margin: 0;
	}

	/* Lists that carry a class are components; a list block keeps its bullets. */
	ul[class]:not(.wp-block-list),
	ol[class]:not(.wp-block-list) {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* Core image blocks keep their own inline image model (wp-image-N). */
	img:not([class*="wp-image-"]),
	picture,
	video,
	canvas,
	svg {
		display: block;
		max-width: 100%;
	}

	/* stylelint-disable-next-line no-descending-specificity -- All images need intrinsic proportions. */
	img {
		height: auto;
	}

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