$anvil-font-path: '../fonts' !default;
$root-path: "#{$anvil-font-path}/sofia/";
$font-family-name: 'Sofia Pro';

@mixin file-src($path) {
	$full-path: "#{$root-path}#{$path}";

	src: url("#{$full-path}.eot");
	src:
		url("#{$full-path}.eot?#iefix") format("eot"),
		url("#{$full-path}.woff2") format("woff2"),
		url("#{$full-path}.woff") format("woff"),
		url("#{$full-path}.ttf") format("truetype");
}

@font-face {
	font-family: $font-family-name;
	font-style: normal;
	font-weight: 400;

	@include file-src('regular/sofia-regular');
}

@font-face {
	font-family: $font-family-name;
	font-style: italic;
	font-weight: 400;

	@include file-src('regular-italic/sofia-regular-italic');
}

@font-face {
	font-family: $font-family-name;
	font-style: normal;
	font-weight: 700;

	@include file-src('bold/sofia-bold');
}

@font-face {
	font-family: $font-family-name;
	font-style: italic;
	font-weight: 700;

	@include file-src('bold-italic/sofia-bold-italic');
}
