/* self-hosted, latin subset only; the page is one English sentence */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --bg: #14100c;
  --amber: #ffb54d;
  --dim: #8a6b41;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 8vmin;
  background: var(--bg);
  color: var(--amber);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* faint phosphor bloom off the middle of the tube */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(85% 70% at 50% 45%, rgba(255,181,77,0.07), transparent 70%);
}

/* scanlines, kept very low contrast so the text stays readable */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.16) 0 1px,
    transparent 1px 3px
  );
}

main {
  width: 100%;
  max-width: 22ch;
}

.prompt {
  display: block;
  margin-bottom: 0.9em;
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  color: var(--dim);
}

.line {
  margin: 0;
  font-size: clamp(1.5rem, 6.5vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 0 14px rgba(255,181,77,0.35);
}

/* block cursor sits on the baseline and blinks forever */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255,181,77,0.5);
  animation: blink 1.05s steps(1) infinite;
}

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

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