body {
  font-size: $font-size-base;
  line-height: $font-leading;
}

h1,
.h1 {
  margin-bottom: $spacing-unit * 2;
  font-size: $font-size-h1;
}

h2,
.h2 {
  font-size: $font-size-h2;
}

h3,
.h3 {
  font-size: $font-size-h3;
}

h4,
.h4 {
  font-size: $font-size-h4;
}

h5,
.h5 {
  font-size: $font-size-h5;
}

h6,
.h6 {
  font-size: $font-size-h6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: $spacing-unit;
  font-family: $font-family-headings;
  font-weight: $font-weight-headings;
}

strong, em, small, code, hr {
  line-height: 1;
}

strong {
  font-weight: $font-weight-bold;
}

em {
  font-style: italic;
}

a {
  color: $color-link;
  text-decoration: none;
  word-wrap: break-word;

  @if $link-underline {
    text-decoration: underline;
  }

  @if $link-active {
    &:active {
      position: relative;
      top: 1px;
    }
  }
}

sup, sub {
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -.4em;
}

sub {
  bottom: -.25em;
}

blockquote {
  padding-left: $spacing-unit;
  color: $color-muted;
  border-left: 3px solid $color-ui;

  > *:last-child {
    margin-bottom: 0;
  }
}

code {
  font-family: $font-family-monospace;
  white-space: nowrap;
}

pre code {
  white-space: pre-wrap;
}

small {
  font-size: $font-size-small;
  color: $color-small;
}

.text-small {
  font-size: $font-size-small;
}

.text-micro {
  font-size: $font-size-micro;
}

.text-lead {
  font-size: $font-size-lead;
}

.text-mono {
  font-family: $font-family-monospace;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-light {
  font-weight: $font-weight-light;
}

.text-normal {
  font-weight: $font-weight-normal;
}

.text-bold {
  font-weight: $font-weight-bold;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}
