@import url('./fonts/font-face.css');

/* Applied to published prose and its headline, independently of navigation type. */
@layer rxzGlass {
  :root {
    --story-serif: Georgia,"Songti SC","STSong","SimSun","Noto Serif CJK SC","Noto Serif SC","RXZ Reading Serif",serif;
  }
  :is(.article-reading,.rg-feature-story),
  :is(.article-reading,.rg-feature-story) :where(p,div,span,strong,b,em,i,u,s,a,blockquote,li,ul,ol,th,td,table,h1,h2,h3,h4,h5,h6,figcaption,small,sup,sub),
  :is(.cut-poster,.essay-header) h1,
  .cut-poster h1 :where(span,em,strong) {
    font-family:var(--story-serif) !important;
  }
  :is(.cut-poster,.essay-header) h1, .cut-poster h1 :where(span,em),
  :is(.article-reading,.rg-feature-story) {
    font-weight:400 !important;
  }
  :is(.article-reading,.rg-feature-story) :where(p,li,blockquote):not([style*="font-weight"]) {
    font-weight:400 !important;
  }
  @media screen {
    :is(.article-reading,.rg-feature-story) {
      --reading-leading:1.875;
      --reading-size:calc(1.125rem * var(--reader-enlargement,1));
      font-size:var(--reading-size) !important;
      line-height:var(--reading-leading) !important;
    }
    :is(.article-reading,.rg-feature-story):not(.word-fidelity) :where(p,li,td,blockquote) {
      font-size:var(--reading-size) !important;
      line-height:var(--reading-leading) !important;
    }
    :is(.article-reading,.rg-feature-story):not(.word-fidelity) p {
      margin-block:0 1.55556em !important;
    }
    html:is([data-a11y~="line-height"],[data-a11y~="elderly"],[data-a11y~="blind"]) :is(.article-reading,.rg-feature-story) {--reading-leading:2.15}
  }
}
