/*
This reset was taken from the video about css by Kevin Powell 
*/

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

/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* dark mode user-agent-styles */
/* improves punctuation in supported browsers */
html {
  color-scheme: dark light;
  hanging-punctuation: first last;
}

/* min body height */
body {
  min-height: 100svh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Open Sans";
  font-size: 16px;
}

/* responsive images/videos */
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  vertical-align: middle;
  font-style: italic;
  height: auto;
  background-repeat: no-repeat;
  background-size: cover;
  max-width: 100%;
}

/* Improved heading in supported browsers */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* improve readability with max-width on paragraphs and lists */
/* prevent orphans in supported browsers */
p,
li {
  max-width: 65ch;
  text-wrap: pretty;
}

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

button {
  outline-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
  }
}
