$largest-font: toRem(64px);
$larger-font: toRem(44px);
$large-font-size: toRem(34px);
$slightly-large-font-size: toRem(24px);
$regular-font-size: toRem(18px);
$slightly-small-font-size: toRem(16px);
$small-font-size: toRem(14px);
$tiny-font-size: toRem(11px);

@mixin main-title {
  font-family: $sans-serif-font-family;
  font-weight: 800;
  font-size: $largest-font;
}

@mixin heading-1 {
  font-family: $sans-serif-font-family;
  font-weight: 600;
  font-size: $larger-font;
}

@mixin heading-2 {
  font-family: $sans-serif-font-family;
  font-weight: 600;
  font-size: $large-font-size;
}

@mixin heading-3 {
  font-family: $sans-serif-font-family;
  font-weight: 600;
  font-size: $slightly-large-font-size;
}

@mixin heading-4 {
  font-family: $sans-serif-font-family;
  font-weight: 600;
  font-size: $regular-font-size;
}

@mixin sub-heading {
  font-family: $sans-serif-font-family;
  font-weight: 400;
  font-size: $slightly-small-font-size;
}

@mixin modal-heading {
  @include heading-2;
  margin-bottom: 0;
  line-height: 1.5;
}

@mixin regular-text {
  font-family: $sans-serif-font-family;
  font-weight: 400;
  font-size: $regular-font-size;
}

@mixin small-text {
  font-family: $sans-serif-font-family;
  font-weight: 400;
  //font-size: toRem(16px); todo: did this really change or is this only for the subnavigation
  font-size: $small-font-size;
}

@mixin tiny-text {
  font-size: $tiny-font-size;
  font-family: $sans-serif-font-family;
  font-weight: $font-weight-regular;
  color: $color-silver-dark;
}

@mixin aside-text {
  @include regular-text;
  font-size: $small-font-size;
}

@mixin aside-with-cheese {
  @include aside-text;
  font-weight: 600;
}

@mixin navigation-link {
  font-family: $sans-serif-font-family;
  color: $color-charcoal-dark;
  font-size: $regular-font-size;
  font-weight: 600;
}

@mixin large-link {
  font-family: $sans-serif-font-family;
  font-size: $regular-font-size;
  font-weight: 400;
}

@mixin meta-title {
  color: $color-silver-dark;
  font-size: $large-font-size;
  font-weight: 300;
  font-family: $serif-font-family;
  line-height: $default-heading-line-height;
}

@mixin inline-title {
  @include regular-text;
  color: $color-silver-dark;
}

@mixin lead-paragraph {
  font-family: $serif-font-family;
  line-height: 1.4;
  font-size: $regular-font-size;
  @include desktop {
    font-size: $slightly-large-font-size;
  }
}

@mixin regular-paragraph {
  font-family: $serif-font-family;
  font-size: $regular-font-size;
}

@mixin link-base {
  font-size: $slightly-small-font-size;
  font-family: $sans-serif-font-family;
  font-weight: $font-weight-regular;
  cursor: pointer;
}

@mixin default-link {
  @include link-base;

  &--active {
    color: $color-brand;
  }
}

@mixin page-form-input-heading {
  display: block;
  margin-bottom: $medium-spacing;
  @include heading-3;
}

@mixin popover-link {
  @include large-link;
  padding: $small-spacing 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  flex-shrink: 0;
}
