/*
 * Modern CSS Reset
 * Based on Josh Comeau's CSS Reset & Andy Bell's Modern Reset
 */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
	margin: 0;
	padding: 0;
}

/* 3. Sensible body defaults */
html,
body {
	height: 100%;
}

body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 4. Improved media defaults */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

/* 5. Remove built-in form typography styles */
input,
button,
textarea,
select {
	font: inherit;
}

/* 6. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 7. Remove list styles on ul, ol with a list role */
ul[role="list"],
ol[role="list"] {
	list-style: none;
}

/* 8. Smooth anchor scrolling */
html:focus-within {
	scroll-behavior: smooth;
}

/* 9. Accessible reduced motion */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

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