$c-link: $c-primary !default;
$c-link-negative: $c-white !default;

$c-link-hover: $c-primary-dark !default;
$c-link-negative-hover: $c-white !default;

$ff-link: $ff-sans-serif !default;
$lh-link: $lh-l !default;

@mixin link($negative: false) {
  color: if($negative, $c-link-negative, $c-link);
  font-family: $ff-link;
  font-stretch: normal;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: $lh-link;
  text-align: left;

  &:hover,
  &:active {
    color: if($negative, $c-link-negative-hover, $c-link-hover);
    text-decoration: underline;
  }
}

@mixin h1 {
  font-size: $fz-h1;
  font-weight: $fw-bold;
  margin: 0 0 $m-v;
}

@mixin h2 {
  font-size: $fz-h2;
  font-weight: $fw-bold;
  margin: 0 0 $m-v;
}

@mixin h3 {
  font-size: $fz-h3;
  font-weight: $fw-bold;
  margin: 0 0 $m-v-small;
}

@mixin h4 {
  font-size: $fz-h4;
  font-weight: $fw-bold;
  margin: 0 0 $m-v-small;
}

@mixin h5 {
  font-size: $fz-h5;
  font-weight: $fw-bold;
  margin: 0 0 $m-v-small;
}

@mixin text-link {
  color: $c-text-link;
  font-size: $fz-text-link;
  text-decoration: $td-text-link;

  &:hover {
    text-decoration: $td-hover-text-link;
  }
}

@mixin text-highlighted {
  background-color: $c-highlighted;
}

@mixin font-rendering {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
