/* 宋体承担叙事标题；无衬线承担阅读、操作与金额。 */
:root,.press-page{
  --serif:"Noto Serif SC","Songti SC","STSong","Noto Serif CJK SC",serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --type-small:14px;
  --type-dense:13px;
  --type-body:16px;
  --type-subhead:22px;
  --type-heading:clamp(30px,3.2vw,44px);
}

@media screen{
  html{-webkit-text-size-adjust:100%;font-kerning:normal}
  body,body.press-page,body.coffee-compact{font-family:var(--sans);font-size:var(--type-body);line-height:1.8;font-weight:400}
  :where(h1,h2,h3,h4){font-kerning:normal;text-wrap:balance}
  :where(p,li,dd){text-wrap:pretty}
  :where(button,input,select,textarea){font-family:var(--sans)}
  :where(strong,b){font-weight:600}

  body[data-home-scope] .hero h1,body[data-plan-home] .hero h1{
    font-family:var(--serif);font-size:clamp(48px,6.5vw,88px);font-weight:500;line-height:1.2;letter-spacing:-.025em;
  }
  body.press-page h1{font-family:var(--serif);font-size:clamp(40px,5vw,68px);font-weight:500;line-height:1.18;letter-spacing:-.03em}
  body[data-home-scope] .stitle,body[data-plan-home] .section-head h2,
  body[data-plan-home] .edition-plan h2,body.press-page h2{
    font-family:var(--serif);font-size:var(--type-heading);font-weight:500;line-height:1.35;letter-spacing:-.015em;
  }
  body[data-home-scope] :is(.sys-h3,.edition-story h3),
  body[data-plan-home] :is(.program-main h3,.culture-directions h3,.execution-heading h3,.edition-comms h3),
  body.press-page h3{font-family:var(--serif);font-size:clamp(22px,2.2vw,28px);font-weight:500;line-height:1.45;letter-spacing:0}
  body[data-home-scope] :is(.sys-tab-n,.sched-theme,.flav-name,.route-name,.stay-name,.her-item h3,.rm-title,.tk-card h3){font-family:var(--serif);font-weight:500;letter-spacing:0}
  body[data-home-scope] .closing h2{font-family:var(--serif);font-weight:500;line-height:1.3;letter-spacing:-.02em}
  body[data-home-scope] :is(.nav-brand,.ft-brand),body[data-plan-home] .nav-brand{font-weight:500;letter-spacing:.025em}
  body[data-home-scope] .nav-links{font-size:var(--type-small);letter-spacing:.015em}
  body[data-home-scope] .hero-sub,body[data-plan-home] .hero .intro{font-size:18px;font-weight:400;line-height:1.85}
  body[data-home-scope] :is(.sys-desc,.flav-desc,.slead,.her-item p,.rm-tasks,.tk-card p,.edition-story p),
  body[data-plan-home] :is(.section-head p,.program-main p,.layer p,.edition-plan p,.edition-comms p),
  body.press-page :is(.press-lead,.press-intro>p,.press-works article p,.press-partner-list p,.press-facts p){font-size:var(--type-body);line-height:1.85;font-weight:400}
  body[data-home-scope] :is(.slabel,.hero-eyebrow,.sys-stat-l,.sys-tab-t,.flav-sub,.rm-date,.hero-scroll),
  body[data-plan-home] :is(.chapter-bar,.essential-note,.margin-note,.program-aside small,.sources),
  body.press-page :is(figcaption,small,.press-status,.press-festival-name,.press-credit){font-size:var(--type-small);line-height:1.75;letter-spacing:.015em}
  body[data-home-scope] .hero-scroll{font-size:var(--type-dense)}
  body[data-plan-home] :is(.layer h3,.programme-days h3,.account h3,.story-list h3,.gate h3,.competition-paths h3,.next-inputs h3){font-family:var(--serif);font-size:24px;font-weight:500;line-height:1.45}
  body[data-plan-home] .prose{font-size:var(--type-body);line-height:1.9}
  body[data-plan-home] .prose :is(h3,h4){font-family:var(--serif);font-weight:500;line-height:1.5}
  body[data-plan-home] .edition-comms h4{font-family:var(--sans);font-size:18px;font-weight:600;line-height:1.55}
  body.press-page .press-hero .press-festival-name{font-size:var(--type-body)}
  body.press-page [lang=en]{letter-spacing:0}
  body.press-page [lang=en]:is(span){text-wrap:inherit}
  body.press-page:lang(en) .press-partners h2{font-size:clamp(22px,2.5vw,36px);line-height:1.3;align-self:start}

  body[data-type-budget] .hero h1{font-family:var(--serif);font-size:clamp(30px,3.8vw,48px);font-weight:500;line-height:1.35;letter-spacing:-.02em}
  body[data-type-budget] :is(.hero .lead,.lead){font-size:var(--type-body);font-weight:400;line-height:1.85;max-width:58em}
  body[data-type-budget] .section>h2{font-family:var(--serif);font-size:clamp(26px,2.6vw,32px);font-weight:500;line-height:1.4;letter-spacing:-.01em;margin-bottom:20px}
  body[data-type-budget] .section-fold>summary h2{font-family:var(--serif);font-size:var(--type-subhead);font-weight:500;line-height:1.45}
  body[data-type-budget] .brand{font-weight:500;letter-spacing:.025em}
  body[data-type-budget] :is(.sidebar,.site-header nav a,.sidebar a,.sidebar>p,.sidebar h2,.sidebar h3){font-size:var(--type-small);letter-spacing:.015em}
  body[data-type-budget] :is(.hero .eyebrow,.hero .meta,.meta,.note,.table-hint,.page-footer,.tag,.badge){font-size:var(--type-small);line-height:1.75;letter-spacing:0} /* taste-skill-ignore: 只放大既有辅助文字，不新增标签或装饰。 */
  body[data-type-budget] :is(.notice,.warning){font-size:var(--type-small);line-height:1.8}
  body[data-type-budget] :is(.metric .label,.metric .sub,.metric .unit,.metric .value small,.decision-status){font-size:var(--type-small);line-height:1.6;letter-spacing:0}
  body[data-type-budget] :is(.metric .value,.metric .value .tier-value,.amount,.bv-money,.rv-selected-summary dd,.scenario-comparison>strong){font-family:var(--sans);font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
  body[data-type-budget] .metric .value{font-size:clamp(28px,3vw,36px);line-height:1.3}
  body[data-type-budget] :is(table,.ledger){font-family:var(--sans);font-size:var(--type-dense);line-height:1.7;font-variant-numeric:tabular-nums}
  body[data-type-budget] table :is(th,td){font-size:var(--type-dense);line-height:1.7}
  body[data-type-budget] :is(button,.budget-actions a){font-size:var(--type-small);font-weight:500;letter-spacing:.01em;line-height:1.5}
  body[data-type-budget] :is(input,select,textarea){font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
  body[data-type-budget] :is(.duration-choice label,.duration-choice p,.duration-choice label small,.cbc-option,.cbc-option small,.budget-topnote p,.budget-topnote .duration-summary,.budget-topnote .warning,.section-fold>summary small,.baseline-fold>summary){font-size:var(--type-small);line-height:1.65}
  body[data-type-budget] .budget-controls .cbc-option small{font-size:var(--type-small);line-height:1.65}
  body[data-type-budget] .day-stepper button{font-size:22px;font-weight:400}
  body[data-type-budget] .day-stepper input{font-size:18px}
  body[data-type-budget] .decision-summary .metric :is(.label,.sub,.value small){font-size:var(--type-small);line-height:1.6}
  body[data-type-budget] .decision-summary .metric .value{font-size:clamp(26px,2.7vw,34px);font-weight:500;letter-spacing:-.03em}
  body[data-type-budget] .summary-grid:not(.decision-summary) .metric .value{font-size:28px}
  body[data-type-budget] .section-fold>summary{padding-block:18px}
  body[data-type-budget] .section{margin-top:32px}
  body[data-type-budget] .section-fold{margin-top:24px}
  body[data-type-budget] .scenario :is(.scenario-status,.scenario-controls label,.scenario-controls .note,.scenario-tools button,.scenario-live-totals .label,.ledger .section-title,.ledger summary .amount){font-size:var(--type-small);line-height:1.65}
  body[data-type-budget] .scenario .scenario-live-totals strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
  body[data-type-budget] .compact-compare :is(.reading-legend,.reading-tier-row>small,.reading-upgrades p,.reading-upgrades small){font-size:var(--type-small);line-height:1.65}
  body[data-type-budget] .compact-compare .reading-upgrades h3{font-size:18px;font-weight:500}
  body[data-type-budget] .compact-compare .reading-upgrades article>strong{font-size:18px;font-weight:500}
  body[data-type-budget] .budget-visual :is(.bv-note,.bv-scale-note,.bv-interaction-note,.bv-stage-peak,.bv-legend,.bv-cash-values dt,.bv-cash-values dd,.bv-points-equation,.bv-share){font-size:var(--type-dense);line-height:1.65}
  body[data-type-budget] .budget-visual :is(.bv-row-name,.bv-stage-name,.bv-stage .bv-stage-name,.bv-stage .bv-money,.bv-money){font-size:var(--type-small);line-height:1.6}
  body[data-type-budget] .budget-visual .bv-title{font:500 22px/1.45 var(--serif)}
  body[data-type-budget] :is(.rv-chart-unit,.rv-bar-scale,.rv-bar-label small,.rv-scale-note,.rv-selected-summary dt,.rv-selected-summary small,.rv-evidence-label,.rv-evidence-anchor small,.rv-evidence-anchor>p,.rv-evidence-type,.rv-evidence-caveat,.rv-unknown,.rv-unknown>span,.rv-takeaway-label,.rv-takeaway-fold>summary,.rv-return-nav a,.rv-evidence-link){font-size:var(--type-small);line-height:1.7;letter-spacing:0}
  body[data-type-budget] :is(.rv-fold-content>p,.rv-evidence-item>p:not(.rv-evidence-type)){font-size:var(--type-body);line-height:1.85}
  body[data-type-budget] :is(.rv-takeaway h3,.rv-evidence-item h3){font:500 22px/1.5 var(--serif)}
  body[data-type-budget] .rv-bar-label{font-size:var(--type-small)}
  body[data-type-budget] .budget-visual .bv-row-heading{flex-wrap:wrap}
  body[data-type-budget] .budget-visual .bv-stage-name{min-width:0}
  body[data-type-budget] :is(.module-title small,.activity-allocation dt,.allocation-qualifier,.module-intro>span,.module-context p,.module-context strong,.scenario-state,.reading-resource-head,.reading-account,.reading-gates summary small){font-size:var(--type-small);line-height:1.7}
  body[data-type-budget] :is(.activity-allocation dd small,.scenario-line-total){font-size:var(--type-dense);line-height:1.7;font-variant-numeric:tabular-nums}
  body[data-type-budget] small{font-size:var(--type-small);line-height:1.7}
  body[data-type-budget] :is(.scenario-badge,.bv-point,.bv-range-ends,.bv-range-indicator),
  body[data-type-budget] .scenario .scenario-line-total,
  body[data-type-budget] .scenario .scenario-line-total strong{font-size:var(--type-dense);line-height:1.65;font-variant-numeric:tabular-nums}
  body[data-type-budget] .reading-chart figcaption span{font-size:var(--type-small);line-height:1.65}
}

@media screen and (max-width:760px){
  body[data-home-scope] .hero h1,body[data-plan-home] .hero h1{font-size:clamp(42px,11vw,64px);line-height:1.25;letter-spacing:-.02em}
  body.press-page .press-hero h1{font-size:clamp(34px,9vw,52px);line-height:1.25;letter-spacing:-.02em}
  body[data-home-scope] .hero-sub,body[data-plan-home] .hero .intro{font-size:16px}
  body[data-plan-home] .nav-brand,body[data-home-scope] .nav-brand{font-size:14px;letter-spacing:0;gap:8px}
  body[data-home-scope] :is(.stitle,.closing h2),body[data-plan-home] .section-head h2,
  body[data-plan-home] .edition-plan h2,body.press-page h2{font-size:30px;line-height:1.4}
  body[data-type-budget] .budget-controls{gap:16px}
  body[data-type-budget] .budget-topnote{margin-block:12px 16px}
  body[data-type-budget] .decision-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body[data-type-budget] .decision-summary .metric:first-child{grid-column:1/-1}
  body[data-type-budget] .decision-summary .metric{padding:16px}
  body[data-type-budget] .decision-summary .metric .label{min-height:0;margin-bottom:8px}
  body[data-type-budget] .decision-summary .metric .value{font-size:26px}
  body[data-type-budget] .decision-summary .metric:first-child .value{font-size:36px}
  body[data-type-budget] .hero{padding-bottom:24px}
  body[data-type-budget] .section{margin-top:28px}
  body[data-type-budget] .compact-compare .reading-upgrades{grid-template-columns:1fr;gap:18px}
  body[data-type-budget] .compact-compare .reading-upgrades article{display:grid;grid-template-columns:1fr auto;gap:4px 16px}
  body[data-type-budget] .compact-compare .reading-upgrades :is(p,small){grid-column:1/-1}
  body[data-type-budget] .rv-evidence-item{grid-template-columns:1fr}
  body[data-type-budget] .rv-evidence-link{grid-column:1;grid-row:auto;justify-self:start}
}

@media screen and (max-width:350px){
  body[data-type-budget] .decision-summary .metric{padding:12px}
  body[data-type-budget] .decision-summary .metric .value{font-size:24px}
  body[data-home-scope] .nav-brand,body[data-plan-home] .nav-brand{font-size:13px;gap:6px}
}
