/* Shared front/admin typography. Keep font URLs in fonts.css stable across pages. */
:root {
  --serif: 'Xinfa Songti', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Xinfa Heiti', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimHei', sans-serif;
  font-family: var(--sans);
}
body, button, input, select, textarea { font-family: var(--sans); }
/* Short controls, annotations and numbers use Heiti as well. */
.blue-button, .gold-button, .nav, .ritual-caption span, .ritual-slot > span,
.ritual-slot strong, .ritual-bottom p, .scroll-card strong, .library-card strong,
.detail-tabs button, .row-name, .node, .paper-tier,
.workspace-bar nav button, .tier-tabs button {
  font-family: var(--sans);
}
/* A real 900-weight Songti file, not a simulated bold system font. */
h1, h2, h3, h4, .brand-brush, .wordmark, .paper-title,
.ritual-caption h1, .preview-name, .section-label, .paper-identity h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-synthesis: none;
}
h1 small, h2 small, h3 small, h4 small, .wordmark span, .brand-small,
.paper-title .help, .section-label small {
  font-family: var(--sans);
  font-weight: 400;
}
