/* OFL 1.1; license shipped with editor/assets/fonts/yuji/OFL.txt.
   No preload: each font is fetched only when selected for poetry preview. */
@font-face {
  font-family: 'LeafYui Yuji Syuku';
  src: url('./assets/fonts/yuji/YujiSyuku-Regular.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: block;
}
@font-face {
  font-family: 'LeafYui Yuji Mai';
  src: url('./assets/fonts/yuji/YujiMai-Regular.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: block;
}

/* Poetry body uses a legacy Mincho override. Only opt-in brush presets
   inherit the selected family; default documents keep their old appearance. */
#preview.poetry-preview:is([data-font-preset="brush-syuku"], [data-font-preset="brush-mai"]) .poetry-work-body,
#viewer-content.poetry-preview:is([data-font-preset="brush-syuku"], [data-font-preset="brush-mai"]) .poetry-work-body {
  font-family: inherit;
}


/* Brush font for poetry attribution (author name).
   Keep the seal's traditional stamp typography unchanged. */
#preview.poetry-preview:is(
  [data-font-preset="brush-syuku"],
  [data-font-preset="brush-mai"]
) .poetry-author,
#viewer-content.poetry-preview:is(
  [data-font-preset="brush-syuku"],
  [data-font-preset="brush-mai"]
) .poetry-author {
  font-family: inherit;
}
