/* The site as text (docs/machines.md): the front page with scripts off, which loads this inside
   <noscript>, and the PC's own pages, which the build writes (scripts/machine-pages.ts). The 404
   page's colours and type. Each rule starts at :root, so that on the front page it outranks
   style.css whichever of the two comes last. */

:root {
  color-scheme: dark;
  height: auto;
  overflow: auto;
  background: #050805;
  color: #4dff7a;
  font: 1rem/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

:root body {
  height: auto;
  margin: 0;
  padding: 2rem clamp(1rem, 6vw, 4rem);
  overflow: visible;
  background: none;
}

/* With scripts off there is no room, and nothing to type into: the text takes their place. */
:root #view,
:root #kbd {
  display: none;
}

:root main {
  display: block;
  max-width: 72ch;
}

:root p {
  margin: 0 0 1.5em;
}

/* The PC's screen. Its lines keep their spaces, and one too long for the window wraps, as it does
   on the PC's own 80 columns. */
:root pre {
  max-width: 80ch;
  margin: 0 0 1.5em;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* On the front page a set block (a table, a shelf of spines) keeps its lines whole: a narrow window
   scrolls it sideways. */
:root main pre {
  margin-left: 4ch;
  overflow-x: auto;
  white-space: pre;
}

:root a {
  color: inherit;
}

/* The front page's last line, set apart. */
:root main p:last-child {
  margin: 4em 0 0;
  color: #39b85c;
}
