///////////////////////////////////////////////////////////////////////////////
//
//  Base Typographic Styles
//
///////////////////////////////////////////////////////////////////////////////

@include font-face (fontello, 'fontello/fontello', normal, $asset-pipeline: true);

/* merriweather-regular - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: font-url('merriweather-v8-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Merriweather'),
       font-url('merriweather-v8-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('merriweather-v8-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('merriweather-v8-latin-regular.woff') format('woff'), /* Modern Browsers */
       font-url('merriweather-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('merriweather-v8-latin-regular.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* merriweather-italic - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  src: font-url('merriweather-v8-latin-italic.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Italic'), local('Merriweather-Italic'),
       font-url('merriweather-v8-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('merriweather-v8-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('merriweather-v8-latin-italic.woff') format('woff'), /* Modern Browsers */
       font-url('merriweather-v8-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('merriweather-v8-latin-italic.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* merriweather-700 - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: font-url('merriweather-v8-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Bold'), local('Merriweather-Bold'),
       font-url('merriweather-v8-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('merriweather-v8-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('merriweather-v8-latin-700.woff') format('woff'), /* Modern Browsers */
       font-url('merriweather-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('merriweather-v8-latin-700.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* merriweather-700italic - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 700;
  src: font-url('merriweather-v8-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local('Merriweather Bold Italic'), local('Merriweather-BoldItalic'),
       font-url('merriweather-v8-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('merriweather-v8-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('merriweather-v8-latin-700italic.woff') format('woff'), /* Modern Browsers */
       font-url('merriweather-v8-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('merriweather-v8-latin-700italic.svg#Merriweather') format('svg'); /* Legacy iOS */
}

/* open-sans-regular - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: font-url('open-sans-v13-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Open Sans'), local('OpenSans'),
       font-url('open-sans-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: font-url('open-sans-v13-latin-italic.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Italic'), local('OpenSans-Italic'),
       font-url('open-sans-v13-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-italic.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-600 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: font-url('open-sans-v13-latin-600.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'),
       font-url('open-sans-v13-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-600.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-600.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-600italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: font-url('open-sans-v13-latin-600italic.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'),
       font-url('open-sans-v13-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-600italic.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-600italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: font-url('open-sans-v13-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
       font-url('open-sans-v13-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-700.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: font-url('open-sans-v13-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
       font-url('open-sans-v13-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-700italic.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-800 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: font-url('open-sans-v13-latin-800.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'),
       font-url('open-sans-v13-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-800.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-800.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-800italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: font-url('open-sans-v13-latin-800italic.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'),
       font-url('open-sans-v13-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       font-url('open-sans-v13-latin-800italic.woff2') format('woff2'), /* Super Modern Browsers */
       font-url('open-sans-v13-latin-800italic.woff') format('woff'), /* Modern Browsers */
       font-url('open-sans-v13-latin-800italic.ttf') format('truetype'), /* Safari, Android, iOS */
       font-url('open-sans-v13-latin-800italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}


// Font Stack
$sans-serif: 'Open Sans', $helvetica;
$serif: 'Merriweather', $georgia;

$base-font-family: $sans-serif;
$header-font-family: $base-font-family;

// Font Sizes
$base-line-height: $base-font-size * 1.375;

body {
  font-family: $base-font-family;
  font-size: $base-font-size;
  line-height: $base-line-height;
  color: $base-font-color;
  // -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  text-rendering: optimizelegibility; // Fix the character spacing for headings
}

h1 {
  font-size: em(26, 15);
  line-height: $base-line-height * 2;
  // margin: $base-line-height * 0;
  margin: ($base-line-height * .75) 0;
}

h2 {
  font-size: em(26, 15);
  line-height: $base-line-height * 1.75;
  margin: ($base-line-height * .75) 0;
}

h3 {
  font-size: em(24, 15);
  line-height: $base-line-height * 1.5;
  margin: ($base-line-height * .5) 0;
}

h4 {
  font-size: em(20, 15);
  line-height: $base-line-height * 1.25;
  margin: ($base-line-height * .25) 0;
}

h5 {
  font-size: em(18, 15);
  line-height: $base-line-height;
  margin: 0;
}

h6 {
  font-size: $base-font-size;
  line-height: $base-line-height;
  margin: 0;
}

p {
  font-size: $base-font-size;
  font-weight: 400;
  margin: 0 0 ($base-line-height * .5);
}

a:link, a:visited {
  color: $base-link-color;
  text-decoration: underline;
  @include transition(color 0.1s linear);

  &:hover {
    color: $hover-link-color;
  }

  &:active, &:focus {
    color: $hover-link-color;
    outline: none;
  }
}

hr {
  border-top: none;
  border-right: none;
  border-left: none;
  margin: $base-line-height 0;
  border-bottom: 1px solid $base-border-color;
}

img {
  margin: 0;
}

abbr, acronym {
  border-bottom: 1px dotted $base-border-color;
  cursor: help;
}

address {
  display: block;
  margin: 0 0 ($base-line-height * .5);
}

hgroup {
  margin-bottom: $base-line-height * .5;
}

del {
  color: lighten($base-font-color, 15%);
}

blockquote {
  border-left: 2px solid $base-border-color;
  color: lighten($base-font-color, 15%);
  font-style: italic;
  margin: $base-line-height 0;
  padding-left: $base-line-height * .5;
}

cite {
  font-style: italic;
  font-size: smaller;
  color: lighten($base-font-color, 25%);

  &:before {
    content: '\2014 \00A0';
  }
}

strong {
  font-weight: bolder;
}

pre, code {
  font-family: 'andale mono', 'monotype.com', 'lucida console', monospace, serif;
  line-height: $base-line-height;
  margin: ($base-line-height * .5) 0;
}
