/* ==== Modern CSS Reset ==== */

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

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

/* Remove list styles */
ul[role='list'],
ol[role='list'],
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Button reset */
button {
  cursor: pointer;
  padding: 0;
  background: none;
}

/* Make sure elements don't overflow */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Reset quotes */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}

/* Prevent text overflows */
textarea {
  resize: vertical;
}

/* Set anchor hover color only when needed */
a:hover {
  text-decoration: underline;
}
