/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Software for Good's own mono face (AeonikFono) is licensed and cannot ship.
   Its stylesheet names Anonymous Pro as the fallback, so we self-host that
   instead — no external request, no CSP change (ADR-0027).

   The @font-face rules live here rather than in app/assets/tailwind/application.css
   because Propshaft rewrites url() in the CSS it serves, resolving against the
   asset load path; the Tailwind build would resolve relative paths from
   app/assets/builds/ instead. Propshaft flattens each asset root, so a file at
   app/assets/fonts/AnonymousPro-Regular.woff2 is referenced by bare filename. */
/* Anonymous Pro is a static family, so each weight is its own file. Both are
   needed: figures carrying font-mono AND font-semibold ask for weight 600, and
   CSS font matching resolves a desired 600 to the 700 face (for desired weights
   >= 500 the available weights >= the target are checked first, ascending). With
   400 alone the browser synthesizes bold by smearing the regular glyphs, which
   is most visible on the text-2xl figures. Do not declare a weight RANGE on
   either file — that is a variable-font declaration and would lie about a static
   face, re-enabling synthesis across the span. */
@font-face {
  font-family: "Anonymous Pro";
  src: url("/assets/AnonymousPro-Regular-509d367b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anonymous Pro";
  src: url("/assets/AnonymousPro-Bold-7446a4a9.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Satoshi is the GoodTime brand face (docs/brand.md). Like Anonymous Pro it is a
   STATIC family, so each weight is its own file and each needs its own rule — a
   single `font-weight: 500 900` declaration would lie about a static face and
   re-enable synthesis across the whole span, which is the trap the mono-face rule in CONTRIBUTING.md records.

   Two weights: Medium 500 for body styles, Bold 700 for headings and links. The
   brand's third, Black 900, is its 72px Heading 1, which the product does not use
   (ADR-0163), so the file is not vendored. There is deliberately no 400
   face — the type scale does not use one, and CSS font matching resolves a
   desired 400 up to the 500 face, so a heading that inherits a normal weight
   still gets a real file rather than a synthesized one. */
@font-face {
  font-family: "Satoshi";
  src: url("/assets/Satoshi-Medium-69101bf5.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/Satoshi-Bold-5eccfbfc.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

