/* ====== Box sizing normalization ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ====== Remove default margin ====== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

/* ====== Set core body defaults ====== */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== Remove list styles on ul, ol elements ====== */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* ====== Remove default anchor styling ====== */
a {
  text-decoration: none;
  color: inherit;
}

/* ====== Make images easier to work with ====== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ====== Inherit fonts for form elements ====== */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

/* ====== Remove built-in form padding/appearance on some browsers ====== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  appearance: none;
  background: none;
  cursor: pointer;
}

/* ====== Remove all animations/transitions for people that prefer that ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ====== Reset table elements ====== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ====== HTML5 semantic elements block display ====== */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}