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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 16px;
  line-height: 1;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul {
  margin-top: 0;
  margin-block-end: 0;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

body > main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  text-wrap: pretty;
  font-weight: normal;
  font-size: inherit;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

label {
  display: block;
}

textarea:not([rows]) {
  min-height: 10em;
}

select {
  appearance: none;
  cursor: pointer;
}

hr {
  margin: 0;
}

:target {
  scroll-margin-block: 5ex;
}
