/* Element defaults. Nothing here knows what this site is: resets, the page surface,
   links, code, the focus ring, and the reduced-motion opt-out. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* The same grain the panels carry, so the plate they sit on is not flat black. */
  background:
    url(../graphics/noise.svg) repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-2);
  color: var(--val);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

/* Anything the save reported is set in the mono face: values, tallies, IDs. */
/* Anything the save reported: values, tallies, IDs. Same face as the page, held
   apart by colour and by tabular figures rather than by a second typeface. */
code,
.ref,
.num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

[hidden] {
  display: none !important;
}

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