$montserrat-alternates-font-path: '/static/fonts/MontserratAlternates' !default;

@mixin montserrat-alternates-font($type, $weight, $style: normal) {
	@font-face {
		font-family: 'Montserrat Alternates';
		src: url('#{$montserrat-alternates-font-path}/MontserratAlternates-#{$type}.woff2') format('woff2'),
		     url('#{$montserrat-alternates-font-path}/MontserratAlternates-#{$type}.woff') format('woff');
		font-weight: $weight;
		font-style: $style;
	}

	@font-face {
		font-family: 'Montserrat Alternates #{$type}';
		src: url('#{$montserrat-alternates-font-path}/MontserratAlternates-#{$type}.woff2') format('woff2'),
		     url('#{$montserrat-alternates-font-path}/MontserratAlternates-#{$type}.woff') format('woff');
	}
}

@mixin montserrat-alternates-font-pair($type, $weight) {
	@include montserrat-alternates-font($type, $weight);
	@include montserrat-alternates-font(#{$type}Italic, $weight, italic);
}


@include montserrat-alternates-font-pair('Thin', 100);
@include montserrat-alternates-font-pair('ExtraLight', 200);
@include montserrat-alternates-font-pair('Light', 300);
@include montserrat-alternates-font-pair('Regular', 400);
@include montserrat-alternates-font-pair('Semibold', 600);
@include montserrat-alternates-font-pair('Bold', 700);
@include montserrat-alternates-font-pair('Black', 900);
