/* typography.css — editorial voice: Instrument Serif display, Inter Tight text,
   IBM Plex Mono for data coordinates only. */
body {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" 0;
}

h1, h2, h3 { font-weight: 640; letter-spacing: -.01em; line-height: 1.04; }
h4, h5, h6 { font-weight: 600; line-height: 1.2; }

.num, .metric-val, .swatch-hex, .formula {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
}

/* every section/page title is the display serif — a section heading must never
   read as lighter-weight than the serif finding titles nested beneath it */
.serif, .identity-name, .page-title, .finding-title, .reel-meta-name,
.scene-head h2, .method-section h2, .chapter-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  letter-spacing: -.012em;
}
/* large display cuts carry more contrast — let them breathe a touch lighter */
.identity-name, .page-title { font-weight: var(--display-weight); }
.finding-title, .reel-meta-name, .scene-head h2, .chapter-title { font-weight: var(--display-weight-strong); letter-spacing: -.006em; }

/* every other Fraunces surface: optical sizing on, wonk off, sturdier weight */
.index-name, .ledger-name, .colophon-line, .hit-name, .atlas-card-name,
.nav-name, .cmp-name, #search-input {
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: var(--display-weight-strong);
  letter-spacing: -.008em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.34;
  font-weight: 460;
  max-width: 46ch;
  text-wrap: pretty;
}

p { max-width: var(--measure); text-wrap: pretty; }

.micro-h {
  font-size: var(--t-micro);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-muted);
  margin: var(--s-4) 0 var(--s-2);
}

.fig-note, .figure-note, .cmp-note {
  font-size: var(--t-caption);
  color: var(--ink-muted);
  line-height: 1.5;
}
.fig-note > span:first-child {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: .05em .45em;
  margin-right: .5em;
  white-space: nowrap;
}

.disclosure {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px dashed var(--rule-strong);
  padding: .1em .5em;
  white-space: nowrap;
}
@media (max-width: 740px) {
  .disclosure { white-space: normal; display: inline; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
