/**
 * base.css: font faces, reset, and typography shared by every page.
 * The font files live under fonts/, a subdirectory of the pages, because Firefox only loads
 * file:// fonts from the page's directory or below (docs/decisions/0007-bundled-font.md).
 */
@font-face {
  font-family: 'FiraCode Nerd Font';
  src: url('../fonts/FiraCodeNerdFont-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FiraCode Nerd Font';
  src: url('../fonts/FiraCodeNerdFont-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-mono: 'FiraCode Nerd Font', 'Fira Code', ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  /* Ligatures would change how keys and operators look in data; the code drawer turns them on. */
  font-variant-ligatures: none;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
