/* INSIDE THE CODE — TYPOGRAPHY ONLY
   Display: Space Grotesk. Editorial content: DM Sans.
   Source code and engineering instrumentation: IBM Plex Mono.

   Deliberately isolated to the Matrix page. No animation, sizing,
   component structure, motion, demo or layout rules are changed.
*/
.matrix-body{
  --e-display:"Space Grotesk","DM Sans",system-ui,sans-serif;
  --e-font:"DM Sans",system-ui,sans-serif;
  --e-mono:"IBM Plex Mono",ui-monospace,monospace;
  font-family:var(--e-font);
}

/* The identity of the page — bold, editorial and intentionally unlike a
   default terminal font, while preserving the existing heading geometry. */
.matrix-body .matrix-intro h1,
.matrix-body .matrix-dossier-identity strong,
.matrix-body .matrix-atlas .eng-panel-head h3,
.matrix-body .matrix-atlas .eng-detail-grid h4,
.matrix-body .tech-stack-layer strong,
.matrix-body .tech-companion-steps strong,
.matrix-body .tech-recording-slate h4,
.matrix-body .tech-db-description h4,
.matrix-body .tech-runtime-panels b,
.matrix-body .tech-phone-screen b{
  font-family:var(--e-display);
}

/* The highlighted packets are navigation, not code samples. Their paths
   and packet numbers stay monospaced; their names are display lettering. */
.matrix-body .matrix-hotspot-name{
  font-family:var(--e-display);
  letter-spacing:-.035em;
}

/* Reading surfaces and topic directory should not force users to read
   paragraphs and UI navigation in a programmer's monospace. */
.matrix-body .matrix-atlas .eng-index button,
.matrix-body .matrix-menu-heading span{
  font-family:var(--e-font);
}

.matrix-body .matrix-atlas .eng-index button > span,
.matrix-body .matrix-menu-heading small{
  font-family:var(--e-mono);
}

.matrix-body .matrix-atlas .eng-panel-intro,
.matrix-body .matrix-atlas .eng-detail-grid p,
.matrix-body .matrix-atlas .tech-stack-layer p,
.matrix-body .matrix-atlas .tech-companion-steps p,
.matrix-body .matrix-atlas .tech-db-description p,
.matrix-body .matrix-atlas .tech-recording-slate p,
.matrix-body .matrix-atlas .tech-detail-strip p,
.matrix-body .matrix-atlas .tech-runtime-panels p,
.matrix-body .matrix-intro > p:not(.matrix-kicker){
  font-family:var(--e-font);
}

/* Preserve the programming texture exactly where it adds meaning:
   moving binary is independently drawn in the existing IBM Plex Mono
   canvas; live/source snippets, console outputs and tiny diagnostics
   remain monospaced regardless of their surrounding editorial style. */
.matrix-body pre,
.matrix-body code,
.matrix-body kbd,
.matrix-body samp,
.matrix-body .tech-build-console pre,
.matrix-body .tech-source-sample pre,
.matrix-body .tech-api-lab pre,
.matrix-body .tech-ledger-motion,
.matrix-body .matrix-hotspot-prefix,
.matrix-body .matrix-hotspot-bracket,
.matrix-body .matrix-topbar-mid,
.matrix-body .matrix-kicker,
.matrix-body .eng-section-kicker,
.matrix-body .eng-state{
  font-family:var(--e-mono);
}
