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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  font-weight: var(--font-weight-normal);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.3rem;
}

::selection {
  background: var(--color-primary-light);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}
