/**
 * Japanese typography and line-breaking (RFP 4.1).
 *
 * - line-break: strict  → kinsoku rules; no small kana or closing brackets at line start.
 * - word-break: auto-phrase → break at natural phrase (bunsetsu) boundaries in
 *   supporting browsers (Chromium). Others fall back to normal breaking.
 * - overflow-wrap: anywhere → long URLs/Latin strings never overflow on mobile.
 * - palt → proportional kana spacing on headings only; body text stays full-width
 *   for readability. Confirm against the Figma type specs.
 */

body {
	line-break: strict;
	overflow-wrap: anywhere;
	font-feature-settings: normal;
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
	word-break: auto-phrase;
	font-feature-settings: "palt" 1;
	text-wrap: balance;
}

:where(p, li, dd) {
	text-wrap: pretty;
}

/* Latin text inside Japanese copy should not inherit the wide tracking. */
:where(code, kbd, samp, [lang="en"]) {
	letter-spacing: normal;
}
