/* ChainPlot base: reset and typographic defaults (platform fonts, nothing to download) */


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  height: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-0); line-height: var(--lh-ui);
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Headings: the platform sans, one weight step up, slightly tight tracking */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--track-tight); line-height: var(--lh-tight); margin: 0; color: var(--ink); }
h1 { font-size: var(--fs-3); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-1); }
p { margin: 0; line-height: var(--lh-body); }
small, .small { font-size: var(--fs--1); }

/* Technical labels: mono, small caps-ish tracking, numbered */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs--1); font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3);
}
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Focus is always visible and the same everywhere */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
::selection { background: var(--selection); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
