@anvil-font-path: '../fonts';
@root-path: "@{anvil-font-path}/sofia/";
@font-family-name: 'Sofia Pro';

.file-src(@path) {
	@fullPath: "@{root-path}@{path}";

	src: url("@{fullPath}.eot");
	src:
		url("@{fullPath}.eot?#iefix") format("eot"),
		url("@{fullPath}.woff2") format("woff2"),
		url("@{fullPath}.woff") format("woff"),
		url("@{fullPath}.ttf") format("truetype");
}

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

	.file-src('regular/sofia-regular');
}

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

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

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

	.file-src('semibold/sofia-semibold');
}

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

	.file-src('semibold-italic/sofia-semibold-italic');
}
