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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: var(--leading);
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a,
button,
.btn,
[type="button"],
[type="submit"],
[type="reset"] {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

@media (any-hover: hover) {
  a:hover {
    text-decoration: underline;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-serif);
}

p {
  margin: 0 0 var(--space-sm);
}

ul,
ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.5em;
}
