body, div {
  font-family: $font-family-base;
}

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

.font-weight-semibold {
  font-weight: $font-weight-semibold;
}

.font-size-sm {
  font-size: $font-size-sm;
}

.label {
  font-size: $font-size-label;
  color: $label-default-color;
  line-height: 1.3;
}

.text-label {
  font-size: $font-size-label;
  line-height: 1.3;
}

.subheadline {
  font-size: $font-size-label;
  font-weight: $font-weight-semibold;
  text-transform: uppercase;
}

.label-sm {
  font-size: $font-size-xs;
}

.label-md {
  font-size: $font-size-label;
}

pre.code {
  font-family: $font-family-monospace;
  font-size: $font-size-sm;
  margin-bottom: 0;
}


// Text classes

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

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

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

.display-1 {
  line-height: 3.75rem;
}

.font-weight-base {
  font-weight: $font-weight-base;
}

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

.line-height-xs {
  line-height: $line-height-xs;
}

.line-height-sm {
  line-height: $line-height-sm;
}



// Links //

a {
  outline: 0;
  cursor: pointer;
  &.headline-link {
    color: $body-color;

    @include hover-focus {
      color: $link-hover-color;
    }

    &.active {
      color: $blue;
    }
  }
}

.link-inverse a {
  color: $blue;

  @include hover-focus {
    color: $link-color;
  }
}


.link-with-icon,
a.link-with-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: start;
  color: $primary;
  line-height: 1.1;
  padding-top: 3px;
  .icon,
  .status-icon {
    margin-top: -3px;
    margin-right: $icon-spacing;
    color: $primary;
  }
  &:hover {
    color: $link-hover-color;
  }
  &:hover .icon {
    color: $link-hover-color;
  }
}

.linked-icon {
  cursor: pointer;
  display: inline-flex;
  color: $primary;
  &:hover .icon,
  &:hover .status-icon {
    color: $link-hover-color;
  }
}



// Special typographic elements //

.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;

  .icon {
    display: inline-block;
    margin-left: $spacing-xxs;
    margin-right: 0;
  }
}

.counter.counter-lg {

  height: $font-size-icon-lg;
  font-size: $h1-font-size;
  font-weight: $headings-font-weight;
}

.counter.counter-sm {

  height: $font-size-icon-sm;
  margin-right: calc($icon-spacing / 2);
  font-size: $font-size-base;
  font-weight: $font-weight-base;
}

.quote-for-block {
  @include io-icomoon('quotes');

  &::before {
    top: 6px;
    margin-right: $icon-spacing;
    font-size: 10px;
  }
}

.text-with-icon {
  display: inline-flex;
  align-items: start;
  line-height: 1.1;
  padding-top: 3px;
}

.text-with-icon .icon,
.text-with-icon .status-icon {
  margin-top: -3px;
  margin-right: $icon-spacing;
}

.text-disabled {
  color: $disabled;
}

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

.font-semibold {
  font-weight: $font-weight-semibold;
}


// highlighted diff

.highlighted-diff {
  padding: 0.1rem 0.3rem;
  background-color: $info;
  color: $white;
  border-radius: $border-radius;
  line-height: 1.8;
}

.highlighted-diff.success {
  background-color: $success;
  color: $black;
}

.highlighted-diff.danger {
  background-color: $danger;
}
