/* Contract: contracts/web/rules.md
 * Japanese, for the pages that load this stylesheet
 *
 * Part of what was style.css — 1700 lines in one file. The parts load in a fixed
 * order and MUST stay in it: the cascade is decided by source order and
 * specificity exactly as it was, because this is a split and not a rewrite.
 *
 * There are deliberately no @layer rules. Layering is the tidier shape and it
 * would have changed behaviour — a later layer beats an earlier one regardless
 * of specificity, and this stylesheet has at least one pair, `body.app > .bar`
 * written above `.bar`, where the MORE specific rule comes first and wins on
 * specificity. Putting those two in different layers silently reverses them.
 * Splitting the file is worth doing on its own; changing the cascade is a
 * separate decision that wants somebody looking at the screen.
 */
/* ---------- Japanese ----------------------------------------------------
   The kinsoku rules, the leading and the CJK face list live in lang-ja.css,
   which every page loads — including the deck editor, which does not load this
   file. What stays here is the one thing that cannot be shared: this page's own
   Latin stack, with the CJK faces put behind it.

   The Latin faces stay first and stay in the same order, so Latin metrics are
   untouched and only the characters they have no glyph for reach the CJK faces
   behind them. See I18N-DESIGN.md, phase 4. */
:lang(ja) {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui,
    var(--cjk), sans-serif;
}
