@use 'sass:meta';

// the build process *might* inject a function, `fontPath`, that returns the
// path to where the font awesome font files will be once the app is built.
// the webpack version doesn't need an explicit font path.
$fa-font-path: if(meta.function-exists('-mm-fa-path'), -mm-fa-path(), null);
// our own fonts are relative to this file AND the built css file, so we don't
// need to get fancy with our own fonts like we do with font awesome's
$font-path: './fonts';

@forward '@fortawesome/fontawesome-free/scss/fontawesome' with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/brands' as fabrand-* with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/solid' as fasolid-* with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/regular' as faregular-* with (
  $fa-font-path: $fa-font-path
);

@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal;
  font-weight: 400;
  src: url('#{$font-path}/Euclid/EuclidCircularB-Regular-WebXL.ttf') format('truetype');
}

@font-face {
  font-family: 'Euclid Circular B';
  font-style: italic;
  font-weight: 400;
  src: url('#{$font-path}/Euclid/EuclidCircularB-RegularItalic-WebXL.ttf') format('truetype');
}

@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal;
  font-weight: 500;
  src: url('#{$font-path}/Euclid/EuclidCircularB-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Euclid Circular B';
  font-style: normal;
  font-weight: 700;
  src: url('#{$font-path}/Euclid/EuclidCircularB-Bold-WebXL.ttf') format('truetype');
}

// Brand Evolution Font Families

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-BookItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'CentraNo1';
  src: url('#{$font-path}/CentraNo1/CentraNo1-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'MM Sans';
  src: url('#{$font-path}/MMSans/MM_Sans-Variable.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

// MM Sans Vairable Font - supports: 400, 500, 600, 700, 800, 900

@font-face {
  font-family: 'MM Sans';
  src: url('#{$font-path}/MMSans/MM_Sans-Variable.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
