/* v1.51 — strict 3-step type scale + frosted glass nav (overrides) */
:root{--fs-l:clamp(22px,1.95vw,28px);--fs-m:16px;--fs-s:12px;--lh-l:1.25;--lh-m:1.5;--lh-s:1.4}
@media (max-width:809px){:root{--fs-l:22px;--fs-m:15px;--fs-s:12px}}

/* L — page titles, statements, intro text */
html body .qt,html body h1.qt,html body .qp,html body .qsp,html body .lc .meta h1,html body .meta h1,
html body .hov .ht,html body .nd-t,html body .nd-flow-h .qp{font-size:var(--fs-l)!important;line-height:var(--lh-l)!important}

/* M — body, project rows, descriptions */
html body .rn,html body .ry,html body .rci,html body .rcp,html body .mfacts dd,html body .stk dd,html body .stk dd a,
html body .stb p,html body .stb p a,html body .stb p b,html body .proj-body p,html body .proj-body .lead,html body .proj-body .p-s,
html body .nd-end,html body .nlc-h,html body .hov .hc,html body .cpp .v,html body .nd-clock-v,html body .nlc-f input[type=email]{font-size:var(--fs-m)!important;line-height:var(--lh-m)!important}
html body .rn,html body .ry{line-height:1.3!important}

/* S — labels, menu, links, footer, buttons, metadata labels */
html body .pcap,html body .pcap b,html body .cpp .k,html body .nd-k,html body .ft .gz,html body .skip,html body .back,html body .lab,html body .lab b,
html body .nlc-p,html body .nlc-err,html body .stack .num,html body .stl,html body .mfacts dt,html body .stk dt,html body .ft .tg,html body .qm,html body .qm a,
html body .cpb,html body .lang a,html body .mlk a,html body .pf-b,html body .pf-all,html body .mdt,html body .nl,html body .nl .t,html body .nl .t span,
html body .mcp,html body .langnote,html body .ul,html body .more a,html body .nd-clock-k,html body .rci.lab{font-size:var(--fs-s)!important;line-height:var(--lh-s)!important}

/* Frosted glass: top pill + floating contact button (light) */
html body .nb .pill,html body .cpb{
  background:rgba(255,255,255,.62)!important;
  -webkit-backdrop-filter:blur(20px) saturate(180%)!important;backdrop-filter:blur(20px) saturate(180%)!important;
  border:1px solid rgba(0,0,0,.08)!important;
  box-shadow:0 6px 24px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05)!important}
html body .cpb{color:#000!important}
html:not(.midnight) body .pill .lb{display:block!important}
html:not(.midnight) body .pill .lw{display:none!important}
html:not(.midnight) body .mtb{background:rgba(0,0,0,.06)!important}
html:not(.midnight) body .mtb svg path{stroke:#000!important}
/* Midnight */
html.midnight body .nb .pill,html.midnight body .cpb{
  background:rgba(24,24,24,.58)!important;border-color:rgba(255,255,255,.15)!important;
  box-shadow:0 6px 24px rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.3)!important}
html.midnight body .cpb{color:#fff!important}
html.midnight body .mtb{background:rgba(255,255,255,.12)!important}
html.midnight body .mtb svg path{stroke:#fff!important}
html body article.pc a p.pcap,html body article.pc a p.pcap b,html body aside.lc div.lc-top a.back.lab,html body .lc .back{font-size:var(--fs-s)!important;line-height:var(--lh-s)!important}
html body .pg.c4 .pc .pcap,html body .pg.c4 .pc .pcap b,html body .pg .pc .pcap{font-size:var(--fs-s)!important;line-height:var(--lh-s)!important}
