/* BUG-041: self-hosted OFL 1.1 subsets (tools/fonts.py). Renamed families (no Reserved Font Name on modified versions); licences in fonts/OFL-*.txt.
   font-display: swap → text (and {name}) renders immediately in the system font, then swaps. Every stack ends in system fallbacks. */
@font-face{font-family:"BH Title";src:url(../fonts/bh-title.woff2) format("woff2");font-display:swap}
@font-face{font-family:"BH Hand";src:url(../fonts/bh-hand.woff2) format("woff2");font-display:swap;unicode-range:U+0020-007E}
@font-face{font-family:"BH Body";src:url(../fonts/bh-body.woff2) format("woff2");font-display:swap}
/* Metric-matched fallbacks (less layout jump when the subset swaps in): system fonts re-scaled to the subset's vertical metrics
   (ascent/descent from the font files via tools/fonts.py) and, for the Latin hand font, avg-width ratio vs Arial (0.431/0.441 → 98%). */
@font-face{font-family:"BH Title FB";src:local("PingFang SC"),local("Microsoft YaHei"),local("Noto Sans CJK SC"),local("Hiragino Sans GB");ascent-override:88%;descent-override:12%;line-gap-override:0%}
@font-face{font-family:"BH Body FB";src:local("PingFang SC"),local("Microsoft YaHei"),local("Noto Sans CJK SC"),local("Hiragino Sans GB");ascent-override:92.8%;descent-override:24.4%;line-gap-override:0%}
@font-face{font-family:"BH Hand FB";src:local("Arial"),local("Helvetica"),local("Liberation Sans");size-adjust:98%;ascent-override:106%;descent-override:32%;line-gap-override:0%;unicode-range:U+0020-007E}
:root{--sys:system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
 --font-title:"BH Title","BH Hand","BH Hand FB","BH Title FB","Kaiti SC","STKaiti","KaiTi",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
 --font-body:"BH Body","BH Hand","BH Hand FB","BH Body FB","Kaiti SC","STKaiti","KaiTi",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
