@font-face {
  font-family: 'Storebrand Symbols';
  src:
    url('./fonts/Symbols/StorebrandSymbols.eot') format('eot'),
    url('./fonts/Symbols/StorebrandSymbols.woff') format('woff'),
    url('./fonts/Symbols/StorebrandSymbols.woff2') format('woff2'),
    url('./fonts/Symbols/StorebrandSymbols.ttf') format('truetype');
  /* stylelint-disable-next-line at-rule-descriptor-no-unknown */
  text-rendering: optimizelegibility;
}

/*
  Taking control of the <i> tag
  for icon purposes, and removing
  the natural italic behavior.

  Keeping regular behavior for
  <i> tags with classes, because of
  collisions with storebrand icons
*/
i {
  font-family: 'Storebrand Symbols' !important;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;
  font-weight: normal;
  line-height: 1rem;
}

/*
  Old system-icon font for <i class="legacy"> and <body data-legacy-icons="true"> <i>,
  Note: will not load any font-files until actually used in markup
*/
@font-face {
  font-family: 'System-Icons';
  src:
    url('./fonts/System-Icons/System-Icons.eot') format('eot'),
    url('./fonts/System-Icons/System-Icons.woff') format('woff'),
    url('./fonts/System-Icons/System-Icons.woff2') format('woff2'),
    url('./fonts/System-Icons/System-Icons.ttf') format('truetype');
  /* stylelint-disable-next-line at-rule-descriptor-no-unknown */
  text-rendering: optimizelegibility;
}

i.legacy,
body[data-legacy-icons='true'] i {
  font-family: 'System-Icons' !important;
}
