/**
 * Air Market typeface override - HAND-OWNED, safe to edit.
 *
 * Why this file exists instead of an edit to tokens.css or fonts.css:
 * both of those are generated. tokens.css is rebuilt from
 * tokens/air-ds.tokens.json by `npm run build:tokens`, that JSON is re-pulled
 * from Figma by /sync-figma, and fonts.css is rewritten by
 * tools/fetch-fonts.mjs. A font change made in any of them is one rebuild away
 * from disappearing. This layer loads after both and outlives every re-sync.
 *
 * What it does: swaps the sans face from Manrope to af Another Sans, the
 * licensed foundry face in "font - af Another Sans/". Mono is untouched -
 * JetBrains Mono stays, and the repo's rule that mono is reserved for machine
 * identifiers a reader compares character by character still holds.
 *
 * Source file: font - af Another Sans/Variable/af Another Sans - Variable.woff2
 * copied verbatim to assets/fonts/. Two axes: wght 100-900, ital 0-1. One
 * 91KB file covers every weight the design system asks for, which is why the
 * eighteen static cuts in WOFF/ are not shipped.
 *
 * Coverage note: Latin basic, Latin-1 Supplement and Latin Ext-A (123/128) are
 * complete. There is no Cyrillic, Greek or Hebrew in this font. Manrope stays
 * in the fallback stack below so any codepoint the foundry face lacks still
 * lands on the previous face rather than on a system default.
 */

@font-face {
  font-family: 'af Another Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/af-another-sans-variable.woff2') format('woff2-variations'),
       url('../fonts/af-another-sans-variable.woff') format('woff-variations');
}

/* The italic is the same file with the ital axis pinned to 1. A binary ital
   axis is not driven by font-style on its own, so the descriptor does it here.
   Only two rules in the whole app ask for italic (store.css and
   store-v6-collection.css), so if a browser ignores the descriptor it
   synthesizes an oblique and nothing important is lost. */
@font-face {
  font-family: 'af Another Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  font-variation-settings: 'ital' 1;
  src: url('../fonts/af-another-sans-variable.woff2') format('woff2-variations'),
       url('../fonts/af-another-sans-variable.woff') format('woff-variations');
}

/* Most consumers write `font-family: var(--font-main)` with no fallback of
   their own, so the whole stack has to live inside the token value. */
:root {
  --font-main: 'af Another Sans', Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-display-family: var(--font-main);
  --text-h1-family: var(--font-main);
  --text-h2-family: var(--font-main);
  --text-h3-family: var(--font-main);
  --text-h4-family: var(--font-main);
  --text-title-family: var(--font-main);
  --text-body-l-family: var(--font-main);
  --text-body-m-family: var(--font-main);
  --text-body-s-family: var(--font-main);
  --text-caption-family: var(--font-main);
  --text-micro-family: var(--font-main);
}
