/* HAIL TO THE KING — 1990s terminal aesthetic, deliberately single-look dark. */

:root {
  --bg: #0a0a12;
  --bg-panel: #0e0e1a;
  --fg: #c8c8d8;
  --dim: #7a7a92;
  --pink: #ff71ce;
  --magenta: #ff00ff;
  --cyan: #01cdfe;
  --purple: #b967ff;
  --green: #05ffa1;
  --amber: #ffcb47;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.45;
}

main {
  max-width: 76ch;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* CRT scanline suggestion, cheap and cheerful */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  z-index: 2;
}

pre {
  margin: 1.2rem 0;
  font-family: inherit;
  font-size: 0.86em;
  line-height: 1.25;
}

.scroll, pre { overflow-x: auto; max-width: 100%; }

.banner { font-weight: bold; text-shadow: 0 0 8px currentColor; }

.term { color: var(--fg); }

.ad {
  color: var(--fg);
  border: none;
  padding: 0;
  text-shadow: 0 0 6px currentColor;
}

.roo { line-height: 1.15; }

.pink   { color: var(--pink); }
.cyan   { color: var(--cyan); }
.purple { color: var(--purple); }
.green  { color: var(--green); }
.amber  { color: var(--amber); }
.dim    { color: var(--dim); }

h2, h3 {
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 0.08em;
}

h3 { margin: 1.6rem 0 0.5rem; }

.body-copy { max-width: 68ch; }
.body-copy p { margin: 0.9rem 0; }

em { color: var(--amber); font-style: normal; }

blockquote.q {
  margin: 1.1rem 0 1.1rem 1rem;
  padding: 0.5rem 0.9rem;
  border-left: 3px solid var(--purple);
  color: var(--fg);
  white-space: pre-wrap;
}

blockquote.q .attr {
  display: block;
  margin-top: 0.4rem;
  color: var(--dim);
  font-size: 0.85em;
  white-space: pre-wrap;
}

blockquote.big-q {
  border-left-color: currentColor;
  text-shadow: 0 0 6px currentColor;
}
blockquote.big-q .attr { text-shadow: none; }

a {
  color: var(--cyan);
  text-decoration: underline;
}
a:visited { color: var(--purple); }
a:hover, a:focus {
  color: var(--bg);
  background: var(--pink);
  text-decoration: none;
}

.center-ish { text-align: center; }
.links { letter-spacing: 0.02em; }

.cursor::after {
  content: "█";
  color: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor::after { animation: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: var(--magenta); color: var(--bg); }
