/* the one pixelated field — covers the whole document, behind everything.
   absolute (not fixed) so carved headings line up with the flow. */
#commons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  display: block;
}

/* everything sits in a centred, fixed-width reading column over the field */
body {
  margin: 0 auto;
  max-width: 50ch;
  padding: 6vh 1.5rem 8vh;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: #f1fff1;
  line-height: 1.6;
}

/* readable body text, legible over the moving noise via a dark outline
   (no boxes — it's all one layer) */
body p,
blockquote,
li {
  text-shadow:
    0 0 4px rgba(0, 20, 0, 0.95),
    0 1px 2px rgba(0, 20, 0, 0.95);
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid #ffeb3b;
}

a { color: #ffeb3b; }

/* a heading is now just a transparent spacer — its words are carved into the
   field behind it. JS sets the height to match the pixel text. */
.pixel-heading-host {
  margin: 1.5rem 0;
  padding: 0;
  color: transparent;
  overflow: hidden;
}

/* keep heading text in the DOM for screen readers, hidden visually */
.pixel-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* keep images from spilling past the text column; 80% of the body width,
   centred, aspect ratio preserved */
img {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 1rem auto;
}

hr {
  border-color: black;
}
