.font-switch {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  padding: 4px;
  border: 1px solid #54554e;
  border-radius: 14px;
  background: #1d1d1b;
  box-shadow: 0 4px 20px #0003;
  color: white;
  font: 600 14px/1.2 system-ui, sans-serif;
  white-space: nowrap;
}

.font-switch a { padding: 12px 20px; border-radius: 10px; }
.font-switch a[aria-current] { background: #e7e6db; color: #1d1d1b; }
.font-switch a:focus-visible { outline: 3px solid #95bd65; }
body:has(.font-switch) footer { padding-bottom: 94px; }

/* Keep both comparisons on the same content and responsive layout. */
html[data-font="1"] {
  --display: "Inter Tight", Inter, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
}

[data-font="1"] body { font-size: 16px; }
[data-font="1"] :is(h1,h2,h3,h4) { font-weight: 600; }
[data-font="1"] :is(.pill,.live,.vbtn,.fg h4,.fg a,.meta) {
  text-transform: none;
  letter-spacing: normal;
}
[data-font="1"] .mark { font-weight: 600; letter-spacing: .14em; }
[data-font="1"] .pill { font-size: 16px; font-weight: 400; }
[data-font="1"] .pills.r .pill:not(.hide) { letter-spacing: normal; }
[data-font="1"] .lead h1 {
  font-size: clamp(34px,2.9vw,58px);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: wrap;
}
[data-font="1"] .field h2 { font-size: 26px; letter-spacing: -.012em; }
[data-font="1"] :is(.field p,.card p) { font-size: 16px; font-weight: 400; line-height: 1.5; }
[data-font="1"] .meta { font-size: 16px; font-weight: 400; }
[data-font="1"] .feature h2 {
  font-size: clamp(24px,1.6vw,30px);
  line-height: 1.2;
  letter-spacing: -.012em;
  margin-bottom: 34px;
  text-wrap: wrap;
}
[data-font="1"] .feature p { font-size: 18px; font-weight: 400; }
[data-font="1"] .feature .live { font: 500 16px var(--body); letter-spacing: normal; }
[data-font="1"] .feature .art .vbtn { font: 500 13px var(--body); letter-spacing: normal; }
[data-font="1"] .card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.008em; }
[data-font="1"] .bhead h2 { font-size: clamp(26px,2vw,34px); letter-spacing: -.015em; }
[data-font="1"] .bchart text { font-size: 14px; }
[data-font="1"] .fg h4 { font: 600 15px/1.5 var(--body); margin-bottom: 12px; }
[data-font="1"] .fg a:not(.mark) { font: 400 15px/1.5 var(--body); margin-bottom: 8px; }
[data-font="1"] .fg p { font: 400 15px/1.5 var(--body); }
