/* Copyright (c) Fortanix, Inc.
|* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@mixin font-family-body($weight: 400) {
  font-family: var(--bk-font-family-body, 'Open Sans');
  font-weight: $weight;
}
@mixin font-family-display($weight: 400) {
  font-family: var(--bk-font-family-display, 'Montserrat');
  font-weight: $weight;
}
@mixin font-family-code($weight: 400) {
  font-family: var(--bk-font-family-code, 'Source Code Pro');
  font-weight: $weight;
}

@mixin styles {
  // NOTE: all file references must use absolute paths (with `@/path`), because vite will not resolve paths from files
  // that were referenced with `@use` (let alone styles in mixins).
  
  /*
  Open Sans
  https://google-webfonts-helper.herokuapp.com/fonts/open-sans?subsets=latin
  */
  
  /* open-sans-regular - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('@/assets/fonts/open-sans/open-sans-v23-latin-regular.woff2') format('woff2');
    font-display: block;
  }
  /* open-sans-600 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: local(''), url('@/assets/fonts/open-sans/open-sans-v23-latin-600.woff2') format('woff2');
    font-display: block;
  }
  /* open-sans-700 - latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local(''), url('@/assets/fonts/open-sans/open-sans-v23-latin-700.woff2') format('woff2');
    font-display: block;
  }
  
  
  /*
  Montserrat
  https://gwfh.mranftl.com/fonts/montserrat?subsets=latin,latin-ext
  */
  
  /* montserrat-100 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-100.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-200 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-200.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-300 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-300.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-regular - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-regular.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-500 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-500.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-600 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-600.woff2') format('woff2');
    font-display: block;
  }
  
  /* montserrat-700 - latin_latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: local(''), url('@/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-700.woff2') format('woff2');
    font-display: block;
  }
  
  
  /*
  Source Code Pro (monospace)
  https://google-webfonts-helper.herokuapp.com/fonts/source-code-pro?subsets=latin
  */
  
  /* source-code-pro-regular - latin */
  @font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('@/assets/fonts/source-code-pro/source-code-pro-v14-latin-regular.woff2') format('woff2');
    font-display: block;
  }
  
  :root {
    /* https://modernfontstacks.com */
    --bk-font-family-body: 'Open Sans', 'Optima', 'Candara', 'Noto Sans', source-sans-pro, sans-serif;
    --bk-font-family-display: 'Montserrat', 'Avenir', 'Corbel', 'URW Gothic', source-sans-pro, sans-serif;
    --bk-font-family-code: 'Source Code Pro', ui-monospace, 'Cascadia Code', 'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace;
  }
}
