/* BDMUSR brand faces — Cinzel Bold (display) + Montserrat Light (sans), the two
   the registry's brand guide names.

   This file is deliberately NOT @import-ed into static/css/input.css. Everything
   imported there is compiled into the single output.css that EVERY society's
   visitors download; this is linked per-society from base.templ via
   branding.font_css, so only bdmusr.pedigree.dev pays for it.

   The .woff2 files are built from the variable TTFs in static/fonts/ and are not
   the same thing as those TTFs, which stay for the PDF renderer (gopdf reads
   TrueType, not woff2). Each one is pinned to a single weight and subset to
   Basic Latin + the punctuation the site actually types, which is what takes the
   pair from 815 KB of TTF to 17 KB:

     fonttools varLib.instancer static/fonts/Cinzel-VariableFont_wght.ttf \
       wght=700 -o /tmp/cinzel700.ttf
     pyftsubset /tmp/cinzel700.ttf \
       --unicodes=U+0020-007E,U+00A0,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D \
       --layout-features='kern,liga,calt' --no-hinting --desubroutinize \
       --flavor=woff2 --output-file=static/fonts/bdmusr/cinzel-700.woff2

   (same for Montserrat at wght=300). Rebuild both if the wordmark ever needs a
   character outside that range — a missing glyph falls back to the system face
   mid-word rather than failing loudly.

   font-display: swap so the header text is readable while the face loads; these
   are small enough that the swap is rarely visible. */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/bdmusr/cinzel-700.woff2') format('woff2');
}

/* Montserrat is the brand guide's text face. Nothing references it yet — the
   header wordmark is Cinzel on both lines, matching the logo artwork — so this
   rule costs ~120 bytes of CSS and NO download: a browser fetches a font file
   only when something actually renders in that family. Kept declared so body
   typography can adopt it without another build. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/bdmusr/montserrat-300.woff2') format('woff2');
}
