/* ==========================================================================
   Base — fonts, reset, page-level behaviour
   ========================================================================== */

@font-face {
  font-family: "ABC Areal Mono";
  src: url("../fonts/ABCArealMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;   /* no fallback flash: the terminal measures text width */
}

@font-face {
  font-family: "ABC Areal Semi Mono";
  src: url("../fonts/ABCArealSemiMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-semi-mono);
  font-weight: var(--nav-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--selection-bg); color: var(--selection-text); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

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

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