/*
 * Amsi Pro — self-hosted @font-face declarations.
 *
 * THIS FILE IS THE ONLY PLACE Amsi Pro IS DECLARED. It deliberately lives in
 * public/ rather than src/assets/fonts/ because CRA content-hashes anything
 * imported through webpack (e.g. Gotham-Black.2a2fc44b7091f409a774.woff), and
 * a hashed filename cannot be named by a runtime string. The print window, the
 * template srcDoc iframes and the PNG exporter all need a stable URL, so the
 * files are served verbatim from /fonts/ instead.
 *
 * Shipping the font as a STYLESHEET (rather than pointing consumers at raw
 * font files) makes a self-hosted face shape-identical to a Google Font: every
 * consumer already knows how to append a <link rel="stylesheet">, so nothing
 * needs a special case for "custom" fonts.
 *
 * WOFF2 ONLY, DELIBERATELY — NO .otf FALLBACK.
 *
 * The supplied files were OpenType/CFF .otf, which browsers accept
 * inconsistently as webfonts. They were converted to .woff2 (universally
 * supported, ~70% smaller) AND renamed: each source .otf declared its own
 * family ("AmsiPro-Light", "AmsiPro-Regular", "AmsiPro-Bold") with an empty
 * subfamily, i.e. three unrelated families with no weight relationship.
 *
 * Listing those un-normalized .otf files as a src fallback is what made an
 * unstyled `font-family: 'Amsi Pro'` resolve to the LIGHT face instead of
 * Regular: the fallback entries pulled conflicting family/weight metadata into
 * the same @font-face group. The .woff2 files carry correct, consistent naming
 * (family "Amsi Pro", weight in the subfamily, usWeightClass 300/400/700), so
 * they are used on their own. Every browser this portal supports handles woff2.
 *
 * Amsi Pro is a commercial font (Stawix). The files here are licensed; do not
 * copy them to a third-party publish path.
 *
 * Paths are absolute (/fonts/...) so they resolve identically from the app,
 * from a window.open() print document, and from an iframe.
 */

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

@font-face {
  font-family: 'Amsi Pro';
  src: url('/fonts/AmsiPro-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amsi Pro';
  src: url('/fonts/AmsiPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
