/* =========================================
   1. BOX SIZING
========================================= */

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

/* =========================================
   2. REMOVE DEFAULT SPACING
========================================= */

* {
  margin: 0;
  padding: 0;
}

/* =========================================
   3. DOCUMENT DEFAULTS
========================================= */

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

body {
  min-height: 100vh;
  line-height: 1.5;
}

/* =========================================
   4. MEDIA ELEMENTS
========================================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* =========================================
   5. FORM ELEMENTS
========================================= */

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

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* =========================================
   6. LINKS
========================================= */

a {
  color: inherit;
}

/* =========================================
   7. LISTS
========================================= */

ul,
ol {
  list-style: none;
}

/* =========================================
   8. HEADINGS
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font: inherit;
}

/* =========================================
   9. TABLES
========================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================================
   10. ACCESSIBILITY
========================================= */

:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
