/**
 * Japanese-only typography.
 *
 * The bundled variable webfont is a page-corpus subset of Noto Sans CJK JP.
 * It is served locally, uses swap to avoid render blocking, and is never
 * enqueued on English Wiki routes.
 */
@font-face {
	font-family: "TWWJ Japanese Sans";
	src: url("fonts/twwj-noto-sans-jp-vf-subset.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

html[lang^="ja"] {
	--twwj-font-ja: "TWWJ Japanese Sans", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

html[lang^="ja"] body,
html[lang^="ja"] body :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, summary, label, button, input, select, textarea) {
	font-family: var(--twwj-font-ja);
}
