/*
Font:     Proxima Nova
URL:      http://www.youworkforthem.com/font/T0467/proxima-nova
Foundry:  Mark Simonson
Foundry:  http://www.youworkforthem.com/designer/73/mark-simonson
Copyright:  Copyright (c) Mark Simonson, 2005. All rights reserved.
Version:  1.4
Created:  April 18, 2014
License:  http://www.youworkforthem.com/font-license
License:  The WebFont(s) listed in this document must follow the YouWorkForThem
          WebFont license rules. All other parties are strictly restricted
          from using the WebFonts(s) listed without a purchased license.
          All details above must always remain unaltered and visible in your CSS.
*/

$fonts: (
  regular:   $font-weight-normal,
  bold:      $font-weight-bold,
);

// $font-base-name: 'fonts/avvo2/proxima_nova/proxima_nova';
$font-base-name: 'avvo-styleguide/dist/fonts/proxima_nova';


// STAGE ONE:
// Load a subset version of the font, with only one weight and a limited range
// of characters
@font-face {
  font-family: 'Proxima Nova Subset';
  src: font-url("#{$font-base-name}_regular_subset.woff")  format('woff');
  font-weight: $font-weight-normal;
  font-style: normal;
  font-display: swap;
}

// STAGE TWO:
// Load the full version of the font
@each $name, $weight in $fonts {
  @font-face {
    font-family: 'Proxima Nova';
    src: font-url("#{$font-base-name}_#{$name}.woff")  format('woff');
    font-weight: $weight;
    font-style:  normal;
    font-display: swap;
  }
}
