/* Satoshi, self-hosted from Fontshare (https://www.fontshare.com/fonts/satoshi),
   ITF Free Font License 2.0 (LICENSE.txt in this directory). The three WOFF2
   files are the unmodified official ones, byte for byte: the license allows
   self-hosting through @font-face for our own application and forbids
   subsetting or converting the Font Software, so none is done. Kept in sync
   with the same faces in src/index.css. Satoshi has no Cyrillic, Greek or
   most Vietnamese, no italics and no no-break space: Inter (public/fonts/inter)
   draws the scripts, and the faux oblique draws italics. */

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

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

/* Bold covers 600 and 800 too: Satoshi has no Semi Bold or Extra Bold, so
   font-semibold and font-extrabold draw Bold, as they do in the Figma file. */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi/Satoshi-Bold.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-override fallback. `font-display: swap` shows a fallback font until
   Satoshi loads; without matched metrics that swap reflows text (line-height +
   width change) and adds layout shift (CLS). This face wraps a locally
   installed Arial and re-declares Satoshi-Regular's own metrics (unitsPerEm
   1000; ascent 1010, descent 240, lineGap 100; xAvgCharWidth 544) so the
   pre-swap box matches Satoshi. Listed immediately after 'Satoshi' in the font
   stack (src/index.css / tailwind.config.js), the swap-in is then
   metric-neutral, no reflow.
   Overrides computed against Arial (unitsPerEm 2048, xAvgCharWidth 1038):
   size-adjust = (544/1000) / (1038/2048); ascent/descent/line-gap overrides
   are Satoshi's values / (1000 * size-adjust).
   The unicode-range keeps this face to Latin text. A local Arial has Cyrillic,
   Greek and Vietnamese too, and without the range it would draw them in Arial
   before Inter (the next family) was asked. It still catches the characters
   Satoshi lacks inside Latin: the no-break space and the thin and narrow
   spaces, so they cost no download. */
@font-face {
  font-family: 'Satoshi Fallback';
  src: local('Arial');
  font-weight: 100 900;
  font-style: normal;
  size-adjust: 107.33%;
  ascent-override: 94.1%;
  descent-override: 22.36%;
  line-gap-override: 9.32%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
