/* Home hero headline (2026-11-28, owner's request): smaller and on one line on desktop, every theme.
   Loaded after theme.css so it wins over per-theme sizes. --hl = headline width in em (set by the em_len filter);
   the font is sized so the whole headline fits the hero column: max 40px, min 28px on desktop. */
.hero>div:first-child{container-type:inline-size;min-width:0;max-width:100%}
html .hero h1.hl,html.hero-wide .hero h1.hl{font-size:clamp(28px,calc(100cqi / var(--hl,14)),40px)!important;
  line-height:1.15!important;letter-spacing:-.01em!important;white-space:nowrap;margin:var(--s4) 0}
html .hero h1.hl .grad{display:inline!important}
/* jade's vertical (竖排) hero stays vertical, one column, same 28-40px scale */
html.hero-vertical .hero h1.hl{font-size:clamp(28px,2.8vw,40px)!important;letter-spacing:.06em!important;white-space:nowrap;margin:0}
/* phones / narrow screens: may wrap, never overflow */
@media (max-width:880px){
  html .hero h1.hl,html.hero-wide .hero h1.hl,html.hero-vertical .hero h1.hl{writing-mode:horizontal-tb;white-space:normal;overflow-wrap:anywhere;
    font-size:clamp(24px,7vw,34px)!important;letter-spacing:-.01em!important;max-width:100%}
}
/* neon sets the headline in uppercase (wider glyphs) */
html.theme-neon .hero h1.hl{font-size:clamp(28px,calc(100cqi / var(--hl,14) * .8),40px)!important}
@media (max-width:880px){html.theme-neon .hero h1.hl{font-size:clamp(22px,6vw,32px)!important}}
