/* Shared typographic system. Keep each work's art direction; unify reading rhythm. */
@font-face{font-family:'Xuemo Editorial SC';src:url('/assets/fonts/xuemo-editorial-sc.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
/* Also replaces the legacy 14 MB face on pages still referring to XChinese. */
@font-face{font-family:XChinese;src:url('/assets/fonts/xuemo-editorial-sc.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:where(:root){
  --type-latin:Georgia,'Times New Roman',serif;
  --type-display:Georgia,'Xuemo Editorial SC','Songti SC',serif;
  --type-text:'Avenir Next','Helvetica Neue','PingFang SC','Microsoft YaHei',Arial,sans-serif;
  --type-reading:Georgia,'Xuemo Editorial SC','Songti SC',serif;
  --type-leading:1.8;
  --type-heading-leading:1.22;
  --type-tracking:-.018em;
  --type-label-tracking:.12em;
  --serif:var(--type-display);--sans:var(--type-text);
  --vx-serif:var(--type-display);--vx-sans:var(--type-text);
  --editorial-title-font:var(--type-display);
}
:where(:lang(zh)){
  --type-display:'Xuemo Editorial SC','Songti SC',Georgia,serif;
  --type-reading:'Xuemo Editorial SC','Songti SC',Georgia,serif;
  --type-text:'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  --type-leading:1.95;--type-heading-leading:1.45;--type-tracking:.015em;
}
:where(:lang(zh-Hant)){
  --type-display:'Songti TC','Noto Serif CJK TC','Xuemo Editorial SC',serif;
  --type-reading:var(--type-display);--type-text:'PingFang TC','Microsoft JhengHei','Helvetica Neue',sans-serif;
}
:where(:lang(ja)){
  --type-display:'Hiragino Mincho ProN','Yu Mincho','Noto Serif CJK JP',serif;
  --type-reading:var(--type-display);--type-text:'Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans CJK JP',sans-serif;
  --type-leading:1.95;--type-heading-leading:1.5;--type-tracking:.025em;
}
:where(:lang(ko)){
  --type-display:'AppleMyungjo','Nanum Myeongjo','Noto Serif CJK KR',serif;
  --type-reading:var(--type-display);--type-text:'Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR',sans-serif;
  --type-leading:1.9;--type-heading-leading:1.45;--type-tracking:0em;
}
:where(:lang(ar),:lang(fa)){
  --type-display:'Geeza Pro','Noto Naskh Arabic',Tahoma,serif;
  --type-reading:var(--type-display);--type-text:'Geeza Pro','Noto Sans Arabic',Tahoma,sans-serif;
  --type-leading:1.95;--type-heading-leading:1.55;--type-tracking:0em;--type-label-tracking:0em;
}
:where(:lang(he)){
  --type-display:'New Peninim MT','Noto Serif Hebrew',serif;
  --type-reading:var(--type-display);--type-text:'Arial Hebrew',Arial,sans-serif;
  --type-leading:1.85;--type-heading-leading:1.4;--type-tracking:0em;--type-label-tracking:0em;
}
:where(:lang(hi)){
  --type-display:'Kohinoor Devanagari','Noto Serif Devanagari',serif;
  --type-reading:var(--type-display);--type-text:'Kohinoor Devanagari','Noto Sans Devanagari',sans-serif;
  --type-leading:1.9;--type-heading-leading:1.5;--type-tracking:0em;--type-label-tracking:0em;
}
/* Explicit English quotations and original texts retain Latin metrics. */
:where([lang='en']){--type-display:var(--type-latin);--type-reading:var(--type-latin);--type-text:'Avenir Next','Helvetica Neue',Arial,sans-serif;--type-leading:1.8;--type-heading-leading:1.22;--type-tracking:-.018em;--type-label-tracking:.12em}
html{font-size:16px;text-size-adjust:100%;-webkit-text-size-adjust:100%;font-kerning:normal}
body{font-family:var(--type-text)!important;line-height:var(--type-leading);font-synthesis:weight}
:is(h1,h2,h3,h4){font-family:var(--type-display)!important;font-style:normal;letter-spacing:var(--type-tracking)!important;text-wrap:balance;overflow-wrap:break-word;word-break:normal}
:is(h2,h3,h4){line-height:var(--type-heading-leading)!important}
:is(h1,h2,h3,h4) :is(a,button,em,i,strong,b,span):not(.sr-only){font-family:inherit!important;font-style:inherit!important;letter-spacing:inherit}
:is(h1,h2,h3,h4) :is(.title-link,a){font-weight:700!important}
:is(h1,h2,h3,h4) :is(.title-link,a) :is(em,i,strong,b,span){font-weight:inherit!important}
:is(button,input,textarea,select,summary){font-family:var(--type-text)}
/* Readable body copy, including the smaller text in cinematic work pages. */
:is(main,#x-main,#beauty-topic,.wfr) p{
  font-family:var(--type-text)!important;font-size:clamp(15px,.22vw + 13px,17px)!important;
  line-height:var(--type-leading)!important;letter-spacing:0!important;text-wrap:pretty;overflow-wrap:break-word;
}
:is(.page-intro,.source-archive-heading,.source-document-heading,.news-head,.xm-library-head) h1{
  font-size:clamp(36px,4.3vw,64px)!important;line-height:var(--type-heading-leading)!important;
  margin-block:16px 24px;text-wrap:balance;max-inline-size:24ch;
}
:is(.page-intro,.source-document-heading,.news-head,.xm-library-head)>p:not([class*='eyebrow']):not([class*='index']):not([class*='kicker']):not(.news-date),
:is(main,#x-main,#beauty-topic,.wfr) :is(p.lead,p.intro,p.hero-intro,p.editorial-page-subtitle,p.civilization-deck,p.site-about-lead){
  font-family:var(--type-reading)!important;font-size:clamp(18px,1.25vw + 3px,22px)!important;
  line-height:var(--type-leading)!important;max-inline-size:56ch;text-wrap:pretty;
}
:is(main,#x-main,#beauty-topic,.wfr) :is(p.editorial-subtitle,p.section-note,.section-head>p,.section-heading>p,.character-heading>p,.music-heading>p,.reading-heading>p){
  line-height:var(--type-leading)!important;max-inline-size:58ch;text-wrap:pretty;
}
:is(.hero,.vx-hero) :is(p.hero-line,p.hero-english,p.vx-hero-deck){
  font-family:var(--type-reading)!important;font-size:clamp(17px,1.3vw,21px)!important;line-height:1.7!important;
}
/* Shared section hierarchy; dramatic poster titles keep their existing scale. */
:is(.section-head,.section-heading,.vx-section-heading,.section-title,.character-heading,.reading-heading,.music-heading) h2,
:is(.author-film,.author-spread,.civilization-article)>h2{
  font-size:clamp(28px,3.15vw,46px)!important;line-height:var(--type-heading-leading)!important;
}
:is(.book-card,.event-card,.source-event-copy,.news-card,.release-card) :is(h2,h3){
  font-size:clamp(22px,1.8vw,28px)!important;line-height:1.45!important;margin-block:14px 12px;
}
:is(.source-event-copy,.news-card,.book-card,.event-card)>p{max-inline-size:68ch}
:is(.source-event-copy,.news-card) :is(h2,h3){text-wrap:pretty}
:is(.source-event-copy,.news-card,.release-card) :is(h2,h3):lang(zh){line-height:1.55!important;letter-spacing:.01em!important}
/* Small information is genuinely secondary, never microscopic. */
:is(body,main,#x-main,#beauty-topic,.wfr) :is(.eyebrow,.vx-eyebrow,.vx-index,.kicker,.xm-kicker,.news-eyebrow,.hero-kicker,.civilization-kicker,.complete-drama-label,.theme-language-label){
  font-family:var(--type-text)!important;font-size:11px!important;font-weight:600;
  line-height:1.65!important;letter-spacing:var(--type-label-tracking)!important;text-wrap:pretty;
}
:is(main,#x-main,#beauty-topic,.wfr) :is(.fine-print,.source-result-count,.news-count,.news-date,.complete-drama-credit,.complete-drama-disclosure,.album-status,.reading-source-note,.original-language-note,.xm-award-caption,.world-caption,.chapter-cues>p,.theme-language-grid>p){
  font-family:var(--type-text)!important;font-size:12px!important;line-height:1.75!important;letter-spacing:.01em!important;
}
:is(figcaption,.portrait-caption,.reading-toolbar,.reading-language,.album-track-note,.album-track-kind,.album-track-duration,.source-event-date time,.source-badge){
  font-family:var(--type-text)!important;font-size:12px!important;line-height:1.65!important;
}
:is(.primary-nav,.topic-nav,.topic-return,.masthead nav,.wfr .top) :is(a,button){font-family:var(--type-text)!important;font-size:13px!important;line-height:1.6;letter-spacing:.025em}
:is(.chips,.source-filter-chips,.news-filters) button{font-size:13px;line-height:1.5;min-height:40px}
/* Comfortable line lengths for long essays, original texts and transcripts. */
:is(.source-body,.news-prose,.original-prose,.drama-original-text,.author-lamp-text,.author-spread,.author-biography,.author-biography-column,.civilization-section) p{
  font-family:var(--type-reading)!important;font-size:clamp(16px,.4vw + 12px,18px)!important;
  line-height:var(--type-leading)!important;max-inline-size:68ch;margin-block-end:1.15em;text-align:start;
}
:is(.original-prose,.drama-original-text,.news-prose,.source-body){max-inline-size:72ch}
:is(.parallel-lyrics,.text-modal,.lyrics-dialog) pre{font-family:var(--type-reading)!important;font-size:16px!important;line-height:1.9!important;white-space:pre-wrap;overflow-wrap:break-word}
.drama-original-text small{font-family:var(--type-text);font-size:11px;letter-spacing:.06em}
:is(.story-text,.story-copy,.intro-text,.prose)>p+p{margin-block-start:1.15em}
:is(.hero-audio-title,.site-home-intro h2){font-family:var(--type-text)!important;font-size:13px!important;line-height:1.7!important;letter-spacing:.08em!important}
#beauty-topic :is(.album-track-title,.original-section summary b){font-family:var(--type-display)!important;font-size:clamp(19px,1.4vw,23px)!important;line-height:1.5!important}
#beauty-topic :is(.reading-toolbar,.reading-language) button{font-size:12px;min-height:36px}
#beauty-topic .masthead nav{gap:clamp(16px,2vw,30px)}
#beauty-topic .hero-caption p{font-size:18px!important}
.wfr .catalog-row h4{font-size:clamp(21px,1.8vw,27px)!important}
:is(.footer-invitation) h2{line-height:var(--type-heading-leading)!important}
:is(.footer-journeys,.footer-company) h3{font-family:var(--type-text)!important;letter-spacing:.08em!important;line-height:1.6!important}
:is(:lang(ar),:lang(fa),:lang(he),:lang(hi)) :is(h1,h2,h3,h4,.eyebrow,.kicker,.vx-eyebrow,.vx-index,.xm-kicker,.primary-nav a){letter-spacing:0!important;text-transform:none;word-break:normal}
:lang(ko) :is(h1,h2,h3,h4,p){word-break:keep-all;overflow-wrap:break-word}
@media(max-width:760px){
  :is(main,#x-main,#beauty-topic,.wfr) p{font-size:15px!important}
  :is(.page-intro,.source-archive-heading,.source-document-heading,.news-head,.xm-library-head) h1{font-size:clamp(32px,8.4vw,44px)!important;margin-block:14px 20px}
  :is(.section-head,.section-heading,.vx-section-heading,.section-title,.character-heading,.reading-heading,.music-heading) h2{font-size:clamp(27px,7vw,36px)!important}
  :is(.page-intro,.source-document-heading,.news-head,.xm-library-head)>p:not([class*='eyebrow']):not([class*='index']):not([class*='kicker']):not(.news-date),
  :is(main,#x-main,#beauty-topic,.wfr) :is(p.lead,p.intro,p.hero-intro,p.editorial-page-subtitle,p.civilization-deck,p.site-about-lead){font-size:18px!important}
  :is(body,main,#x-main,#beauty-topic,.wfr) :is(.eyebrow,.vx-eyebrow,.vx-index,.kicker,.xm-kicker,.news-eyebrow,.hero-kicker,.civilization-kicker,.complete-drama-label,.theme-language-label){font-size:11px!important}
  :is(main,#x-main,#beauty-topic,.wfr) :is(.fine-print,.source-result-count,.news-count,.news-date,.complete-drama-credit,.complete-drama-disclosure,.album-status,.reading-source-note,.original-language-note,.xm-award-caption,.world-caption,.chapter-cues>p,.theme-language-grid>p){font-size:12px!important}
  :is(.source-body,.news-prose,.original-prose,.drama-original-text,.author-lamp-text,.author-spread,.author-biography,.author-biography-column,.civilization-section) p{font-size:16px!important}
  :is(.primary-nav,.topic-nav) {row-gap:14px}
  :is(.source-event-copy,.news-card,.book-card,.event-card) :is(h2,h3){font-size:23px!important}
  #beauty-topic .reading-toolbar{flex-wrap:wrap;gap:12px}
  #beauty-topic .reading-toolbar p{max-width:none}
  #beauty-topic .reading-group-heading{flex-wrap:wrap;row-gap:6px}
  #beauty-topic .reading-group-heading>span:last-child{font-size:11px;max-width:none}
}

/* English identity and large cover typography remain distinct from UI copy. */
.vx-hero-title,#x-header .x-wordmark{font-family:var(--type-latin)!important;letter-spacing:-.035em!important}
.wfr .hero-title:lang(zh),.hero-title h1:lang(zh){letter-spacing:.09em!important}
/* Metadata used to fall to 6–9 px on narrow screens. Keep it legible. */
#beauty-topic :is(.section-line>span,.person-line>span,.project-facts>span,.two-lives span,.reading-index nav a>span:first-child,.original-section summary>span,.film-copy>small,.footer>small,.arrow-link>span,.header-actions button),
#diamond-topic :is(.section-number,.side-note,.screen-caption>small,.screen-caption>span,.film-under>span,.episode-name small,.book-index,.cast-prologue>span,.character-name small,.track-title small),
:is(.character-caption>small,.chapter-songs small,.complete-drama-disclosure>span,.complete-drama-art figcaption>span,.hero-still-note,.film-credits>span,.audio-nav-link>span,.wfr .catalog-no,.wfr .status){
  font-family:var(--type-text)!important;font-size:11px!important;line-height:1.65!important;letter-spacing:.035em!important;
}
#beauty-topic :is(.section-line,.project-facts){gap:12px 24px;flex-wrap:wrap}
#beauty-topic .section-line>span{max-inline-size:100%;text-wrap:pretty}
#diamond-topic .story-lines small{font-family:var(--type-text)!important;font-size:11px!important;line-height:1.6;position:static;display:block;writing-mode:horizontal-tb;margin-block-start:8px;letter-spacing:.04em}
#diamond-topic .character-name small{overflow-wrap:break-word}
@media(max-width:760px){
  #beauty-topic .section-line{align-items:flex-start;row-gap:6px}
  #beauty-topic .section-line>span{flex:1 1 140px}
  #beauty-topic .project-facts>span{max-inline-size:46%;overflow-wrap:break-word}
  #diamond-topic .section-top{gap:14px;align-items:flex-start}
  #diamond-topic .side-note{max-inline-size:48%;text-wrap:pretty}
}
#beauty-topic .header-actions button{width:auto!important;min-width:max-content;white-space:nowrap}
@media(max-width:760px){#beauty-topic .project-facts{grid-template-columns:repeat(2,minmax(0,1fr))}#beauty-topic .project-facts>span{max-inline-size:none}}
