@import "../settings.fonts";

// Mixins for fonts

// Pratt
@mixin font-pratt {
  font-family: "Pratt", $font-serif-stack;
  font-weight: normal;
  font-style: normal;
  @if $font-mode == complex {
    em, i {
      @include font-pratt-italic;
    }
    strong, b {
      @include font-pratt-bold;
    }
  }
}

@mixin font-pratt-italic {
  font-family: "Pratt-Italic", $font-serif-stack;
  font-weight: normal;
  font-style: normal;
  @if $font-mode == complex {
    strong, b {
      @include font-pratt-bold-italic;
    }
  }
}

@mixin font-pratt-bold {
  font-family: "Pratt-Bold", $font-serif-stack;
  font-weight: normal;
  font-style: normal;
  @if $font-mode == complex {
    em, i {
      @include font-pratt-bold-italic;
    }
  }
}

@mixin font-pratt-bold-italic {
  font-family: "Pratt-BoldItalic", $font-serif-stack;
  // Intentionally do not set font-weight or font-style.
  // See: https://jira.theglobeandmail.com/browse/ARC-3662
}

// GM Sans
@mixin font-gm-sans {
  font-family: "GMsanC-Regular", $font-sans-stack;
  font-weight: normal;
  font-style: normal;
  @if $font-mode == complex {
    em, i {
      // No italic variant of this font
      font-style: normal;
    }
    strong, b {
      @include font-gm-sans-bold;
    }
  }
}

@mixin font-gm-sans-bold {
  font-family: "GMsanC-Bold", $font-sans-stack;
  font-weight: normal;
  font-style: normal;
  @if $font-mode == complex {
    em, i {
      // No italic variant of this font
      font-style: normal;
    }
  }
}
