/*
 * Buffalo147 AI — typefaces
 *
 * Vazirmatn carries the Persian interface, Inter handles Latin runs inside it
 * (model names, code, numbers in ltr contexts). local() is listed first so a
 * visitor who already has the font installed downloads nothing at all.
 *
 * The files are served from jsDelivr. If you would rather host them yourself,
 * drop the .woff2 files into assets/fonts/ and change the src URLs below to
 * ../fonts/<filename>. Nothing else in the theme needs to change.
 */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Vazirmatn'),
       url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Vazirmatn Medium'),
       url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
}

/*
 * SemiBold, which the interface asks for twenty-six times and never had.
 *
 * Without the file, a browser either synthesises the weight — thickening
 * the strokes by hand, which smears Persian letterforms — or jumps to
 * 700. Either way the type was never what the stylesheet asked for, and
 * that is some of what looked wrong.
 */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Vazirmatn SemiBold'),
       url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Vazirmatn Bold'),
       url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'InterBF';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  /*
   * The local copy, and nothing fetched from elsewhere.
   *
   * That address stopped existing and every page asked for it and got a
   * 404 — harmless in itself, but it fills the console with a failure
   * that has nothing to do with whatever is being looked for, and it
   * costs a round trip on every first visit.
   *
   * `local('Inter')` uses the font where the machine already has it. Any
   * machine that does not falls back to the stack below, which is what
   * happened anyway while the fetch was failing.
   */
  src: local('Inter'), local('Inter Variable'), local('InterVariable');
}

/* =====================================================================
 * Peyda — optional, and yours to supply
 *
 * Peyda is a commercial typeface from FontIran. It has no CDN and cannot
 * be redistributed, so nothing here downloads it: these rules simply
 * describe where the files go if you have licensed them.
 *
 * To use it:
 *   1. Buy the web package from fontiran.com
 *   2. Put the .woff2 files in assets/fonts/
 *   3. Uncomment the block below
 *
 * Until then the site uses Vazirmatn, which is free, open, and by the
 * same standard of quality — so nothing is broken by not doing this.
 *
 * A note on weights. Thin (100) is lovely for large display text and
 * wrong for interface labels: a hairline stroke at 13px carries almost no
 * ink, and legibility is as much about ink on screen as it is about
 * colour contrast. The white-on-orange buttons were just corrected from
 * 2.4:1 to 4.4:1; setting them in Thin would undo that in a different
 * way. So Thin is declared here for headings, and the interface keeps a
 * weight that can be read.
 */

/*
@font-face {
  font-family: 'Peyda';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: local('PeydaWeb-Thin'), url('../fonts/PeydaWeb-Thin.woff2') format('woff2');
}

@font-face {
  font-family: 'Peyda';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('PeydaWeb-Light'), url('../fonts/PeydaWeb-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Peyda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('PeydaWeb-Regular'), url('../fonts/PeydaWeb-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Peyda';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('PeydaWeb-Medium'), url('../fonts/PeydaWeb-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Peyda';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('PeydaWeb-Bold'), url('../fonts/PeydaWeb-Bold.woff2') format('woff2');
}
*/
