/* The site font and page-wide defaults: one typeface, uppercase, no page
   margin, smooth in-page scrolling. */

@font-face {
  font-family: 'VCR OSD Mono';
  src:
    url('../fonts/vcr-osd-mono.woff2') format('woff2'),
    url('../fonts/vcr-osd-mono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  /* No gray flash over a tapped control: each shows its own pressed look
     instead (css/controls.css). */
  -webkit-tap-highlight-color: transparent;
  /* iOS enlarges text it judges too small, in landscape especially; the type
     scale is set already, and pinch zoom still works. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'VCR OSD Mono', 'Helvetica Neue', Arial, monospace;
  text-transform: uppercase;
}

/* Read by screen readers, not shown: the panel headings */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus: one ring in the element's own text color, so it reads on
   paper (ink) and on ink cards (white). Pointer clicks show no ring. */
:focus-visible {
  outline: var(--focus-ring-width) solid currentColor;
  outline-offset: var(--focus-ring-offset);
}
