html {
  color: $base-font-color;
  font-family: $base-font-family;
  font-size: 18px;
  line-height: $base-line-height;
}

@include media($mobile) {
  html {
    font-size: 16px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $heading-font-family;
  font-size: modular-scale(1);
  font-weight: normal;
  line-height: $heading-line-height;
  margin: 0 0 $magic-number/2;
}

h1 {
  font-size: modular-scale(4);
  line-height: $magic-number*2;
}

h2 {
  font-size: modular-scale(3);
  line-height: $magic-number*2;
}

h3 {
  font-size: modular-scale(2);
  line-height: $magic-number*1.25;
}

h4 {
  font-size: modular-scale(1);
}

p {
  margin: 0 0 $magic-number/2;
}

p + h2,
p + h3,
p + h4 {
  margin-top: $magic-number;
}

a {
  color: $action-color;
  text-decoration-skip: ink;
  transition: color $base-duration $base-timing;

  &:hover {
    color: shade($action-color, 25%);
  }

  &:focus {
    outline: $focus-outline;
    outline-offset: $focus-outline-offset;
  }
}

hr {
  border-bottom: $base-border;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin: $base-spacing 0;
}