/* Ornamental calligraphy throughout the academy; both fonts are hosted locally. */
:root {
  --flourish: "Imperial Script", "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  --serif: var(--flourish);
  --sans: var(--flourish);
}
/* Includes late-rendered account/admin forms, dialogues and native controls. */
body, body *, body *::before, body *::after {
  font-family: var(--flourish) !important;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "swsh" 1;
}
input::placeholder, textarea::placeholder { font-family: var(--flourish); }
.brand-sub { font-size: 20px; letter-spacing: .035em; line-height: 1.3; margin-top: 2px; }
.brand-year, .brand-main em { font-size: 1.12em; letter-spacing: .035em; }
.hall .ticket-en { font-size: clamp(11px, 1.05vw, 17px); letter-spacing: .025em; line-height: 1.3; margin-top: 3px; }
.eyebrow, .paper-page .eyebrow { font-size: 16px; letter-spacing: .04em; text-transform: none; }
.modal-header .eyebrow { font-size: 12px; }
.ticket-heading span:last-child, .sidebar-label, .speaker small { font-size: 12px; letter-spacing: .04em; }
.ticket-stub small { font-size: 10px; letter-spacing: .025em; }
.dialogue-text small { font-size: clamp(12px, 1vw, 16px); letter-spacing: .02em; }
.page-title, .modal-header h2, .ticket-title { font-weight: 400; }
.paper-page :is(p, input, textarea, select, label, th, td),
.paper-page :is(.btn, .tab, .source-box, .strip, .chat-bubble, .qa-message p),
.modal-body :is(p, input, textarea, select, label) { font-size: 14px; }
@media (max-width: 700px) {
  .brand-sub { font-size: 13px; margin-top: 2px; letter-spacing: .025em; }
  .hall .ticket-en { font-size: 9px; margin-top: 2px; line-height: 1.2; letter-spacing: .015em; }
  .ticket-stub small { font-size: 7px; }
  .dialogue-text small { font-size: 11px; }
  .speaker small { font-size: 9px; }
}

/* Larger optical sizes keep the fine calligraphic strokes readable. */
body { font-size: 18px; }
.brand-main, .body-interior .brand-main { font-size: clamp(28px, 2.25vw, 38px); }
.brand-sub { font-size: 24px; }
.resource { font-size: 25px; }
.account-entry { font-size: 16px; }
.nav-item .nav-label, .nav-item.active .nav-label { font-size: 23px; line-height: 1.25; }
.hall .ticket-title { font-size: clamp(23px, 2.45vw, 40px); letter-spacing: 0; }
.hall .ticket-en { font-size: clamp(17px, 1.4vw, 23px); line-height: 1.15; margin-top: 2px; color: #494634; }
.hall .ticket-verb { font-size: clamp(18px, 1.65vw, 28px); letter-spacing: 0; }
.hall .ticket-copy { top: 12%; bottom: 12%; }
.hall .dialogue, .hall .dialogue[data-news] { height: auto; min-height: 132px; }
.hall .dialogue-text, .hall .dialogue[data-news] .hall-spoken { font-size: 21px; line-height: 1.55; letter-spacing: 0; }
.hall .dialogue-text small, .hall .hall-source { font-size: 14px; line-height: 1.45; margin-top: 6px; }
.hall-search-trigger { font-size: 15px; top: -27px; }
.scene-weather small { font-size: 14px; }
.scene-weather strong { font-size: 18px; }
.client-calendar { font-size: 29px; gap: 5px; }
.client-calendar small { font-size: 16px; }
.eyebrow, .paper-page .eyebrow, .modal-header .eyebrow { font-size: 23px; line-height: 1.3; }
.page-title, .modal-header h2 { font-size: 32px; }
:is(.paper-page, dialog, .auth-panel, .hall-search-shell) :is(p, input, textarea, select, label, td, th),
.paper-page :is(.btn, .tab, .text-btn, .details-list, .plain-list, .textarea, .chat-bubble, .qa-message p),
.auth-panel button, .hall-search-shell button,
.l-message, #librarianQuestion, #librarianForm>button { font-size: 18px; }
.paper-page :is(.course-card, .task-card, .team-card, .resource-card, .shop-card, .wardrobe-card) h3 { font-size: 23px; line-height: 1.45; }
.paper-page :is(.page-subtitle, .demo-strip, .small-note, .pill, .card-meta, .task-rewards, .progress-step, .team-members, .stat-label, .profile-title, .calendar-weekday, .room-group, .chat-system, .source-box, .speaker-label, .source-link, .admin-note, .evidence, .layer-caption, .search-section),
.modal-footer-note, .setting-row strong, .form-label, .toast { font-size: 16px; }
.paper-page small, dialog small, .auth-panel small,
.resource-cover .cover-code, .schedule-time, .calendar-day,
.l-portrait-heading>span, .l-portrait-heading small, .l-identity, .l-portrait-bottom,
.l-tiny-label, .l-mode-tag, .l-user>span, .l-speaker, .l-speaker small,
.l-sources button, .l-controls, .l-controls button, .l-suggestions button { font-size: 14px; }
.l-help { font-size: 14px !important; }
.l-portrait-heading, .l-conversation-head { flex-wrap: wrap; }
.l-suggestions button { padding: 8px 10px; }
.tabs>button { padding-left: 14px; padding-right: 14px; }
.btn { white-space: nowrap; flex-shrink: 0; letter-spacing: 0; min-height: 40px; }
.card-footer { flex-wrap: wrap; gap: 10px; }
.paper-page .search-field input::placeholder { font-size: 16px; }
.client-status, .client-version { font-size: 12px; letter-spacing: 0; line-height: 1.15; }
.client-pager, .client-pager .pager-label { font-size: 15px; letter-spacing: 0; }
@media (max-width: 700px) {
  .brand-main, .body-interior .brand-main { font-size: 22px; }
  .brand-sub { font-size: 18px; line-height: 1.1; }
  .account-entry { font-size: 15px; padding: 6px 7px; }
  .nav-item .nav-label, .nav-item.active .nav-label { font-size: 14px; top: 42px; line-height: 1.2; }
  .hall .ticket-title { font-size: clamp(16px, 3.9vw, 26px); line-height: 1.1; }
  .hall .ticket-en { font-size: clamp(13px, 2.7vw, 18px); margin-top: 0; line-height: 1.05; letter-spacing: 0; }
  .hall .ticket-verb { font-size: clamp(13px, 3.1vw, 20px); }
  .hall .ticket-copy { top: 9%; bottom: 9%; width: 42%; }
  .hall .dialogue, .hall .dialogue[data-news] { height: auto; min-height: 142px; padding: 16px 22px; }
  .hall .dialogue-text, .hall .dialogue[data-news] .hall-spoken { font-size: 17px; line-height: 1.5; }
  .hall .dialogue-text small, .hall .hall-source { font-size: 13px; line-height: 1.35; }
  .scene-weather small { font-size: 11px; }
  .scene-weather strong { font-size: 14px; }
  .client-calendar { width: 68px; height: 68px; padding: 6px; font-size: 20px; gap: 2px; }
  .client-calendar>span { white-space: nowrap; }
  .client-calendar small { font-size: 11px; }
  .eyebrow, .paper-page .eyebrow, .modal-header .eyebrow { font-size: 20px; }
  .page-title, .modal-header h2 { font-size: 28px; }
  .tabs>button { padding-left: 10px; padding-right: 10px; }
  .l-portrait-heading>span { font-size: 12px; letter-spacing: 0; }
  .l-portrait-heading small, .l-identity, .l-portrait-bottom { font-size: 13px; }
  .client-status, .client-version { font-size: 11px; }
  .client-pager, .client-pager .pager-label { font-size: 13px; }
}
