@use 'sass:map';

html {
  font-size: $html-font-size;
}

body {
  background-color: $black;
  color: white;
  line-height: 1.5;
  font-family: $font-body;

  @if $visual-grid == true {
    &::before {
      z-index: 999;
    }
  }
}

a {
  text-decoration: none;
}

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

p {
  margin-top: map.get($margins, 'typography');
  margin-bottom: map.get($margins, 'typography');

  &:first-child {
    margin-top: 0;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

blockquote {
  margin: 0;
}

cite {
  font-style: inherit;
}

@include media($md-min) {
  html {
    font-size: $html-font-size-md;
  }
}

@include media($lg-min) {
  html {
    font-size: $html-font-size-lg;
  }
}
