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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ewh-color-white);
	color: var(--ewh-color-charcoal);
	font-family: var(--ewh-font-body);
	font-size: var(--ewh-font-size-body);
	line-height: var(--ewh-line-height-body);
	-webkit-font-smoothing: antialiased;
}

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

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

figure {
	margin: 0;
}

hr {
	margin-block: var(--ewh-space-6);
	border: 0;
	border-top: var(--ewh-border);
}

::selection {
	background: var(--ewh-color-navy);
	color: var(--ewh-color-white);
}

:target {
	scroll-margin-block-start: var(--ewh-space-4);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
