/* Consistent native typography; explicit accessibility font choices remain in control. */
:root { --reading-font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
body { --sans:var(--reading-font)!important; --serif:var(--reading-font)!important; --mono:var(--reading-font)!important; --fx-heading:var(--reading-font)!important; font-family:var(--reading-font)!important; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
body:not([data-setting-font]), body[data-setting-font=theme] { --ui-font:var(--reading-font); }
body[data-setting-font]:not([data-setting-font=theme]) { --ui-font:var(--setting-font,var(--reading-font)); }
body :is(h1,h2,h3,h4,p,a,button,input,select,textarea,label,small,strong,summary,.tab,.resource-name,.resource-tags,.folder-tile,.eyebrow,.statusbar,.planner-footer,.calendar-toolbar,.titlebar #brand strong,.fx-caption>strong) { font-family:var(--ui-font,var(--reading-font))!important; }
body :is(h1,h2,h3,h4,#page-title,.titlebar #brand strong) { letter-spacing:-.025em!important; line-height:1.2!important; font-weight:650!important; text-shadow:none!important; }
body .titlebar #brand strong { font-size:clamp(21px,2.1vw,27px); }
body :is(.resource-name,.folder-tile strong,.tab,summary,button) { font-weight:600; letter-spacing:normal; }
body .resource-name { font-size:19px; line-height:1.4; }
body :is(.resource-description,p) { line-height:1.65; }
body :is(.resource-tags,.statusbar,.planner-footer,.eyebrow) { letter-spacing:.02em; }
body :is(.folder-tile,.folder-tile strong) { line-height:1.4; }
body :is(button,input,select,textarea) { line-height:1.4; }
body[data-setting-text=true] :is(p,.resource-description,.resource-name,.tab,.setting-row>label) { letter-spacing:var(--setting-letter)!important; }
@media(max-width:600px) { body .resource-name { font-size:17px; } body .titlebar #brand strong { letter-spacing:-.02em!important; } }
