/* Eleven genuine text roles. All sizes and language/viewport exceptions live here.
   Existing SVG geometry is graphic sizing, never a substitute for text roles.
   Families and weights remain authored in component CSS; no shrink-to-fit. */
:root{
 --font-size-hero:clamp(40px,4.25vw,67px);
 --font-size-display:clamp(38px,4.8vw,76px);
 --font-size-section:clamp(28px,3.4vw,48px);
 --font-size-heading:23px;
 --font-size-product:clamp(30px,3.3vw,45px);
 --font-size-lead:17px;
 --font-size-body:15px;
 --font-size-caption:13px;
 --font-size-label:12px;
 --font-size-data:clamp(32px,4vw,54px);
 --font-size-result:clamp(58px,7vw,110px);
}
@media(max-width:1100px){:root{--font-size-hero:44px;--font-size-product:32px}}
@media(max-width:800px){:root{
 --font-size-hero:clamp(30px,8.2vw,36px);
 --font-size-display:clamp(40px,11vw,54px);
 --font-size-section:28px;--font-size-heading:22px;--font-size-product:30px;
 --font-size-lead:16px;--font-size-caption:14px;--font-size-label:14px;
 --font-size-data:38px;--font-size-result:76px;
}}
@media(max-width:800px){
 html[lang=en]{--font-size-display:clamp(34px,8.7vw,46px)}
 html[lang=ja]{--font-size-display:clamp(31px,8vw,43px)}
}
body{font-size:var(--font-size-body)}
h1{font-size:var(--font-size-hero)}h2{font-size:var(--font-size-section)}h3,h4{font-size:var(--font-size-heading)}
button,input,select,textarea{font-size:inherit}
small,figcaption{font-size:var(--font-size-caption)}
h1,h2,h3{overflow-wrap:break-word}
.desktop-nav a,.chapter-nav a{overflow-wrap:anywhere}
