:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #d0d0d0;
  --dim: #5a5a5a;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Regular.a9cb1cd82332.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.5;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

main { text-align: center; }

.t-line {
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.t-cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1em;
  background: currentColor;
  margin-left: 0.15ch;
  vertical-align: -0.1em;
  animation: blink 1.06s steps(1) infinite;
}

@keyframes blink { 50% { background: transparent; } }

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

.t-error {
  text-align: left;
  max-width: min(38rem, 90vw);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  margin: 0;
  white-space: pre-wrap;
}

.t-error__prompt { color: var(--dim); }
.t-error__msg    { display: block; margin-top: 0.4rem; }

.doc {
  align-self: start;
  justify-self: center;
  text-align: left;
  width: 100%;
  max-width: 70ch;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
}

.doc__title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 0 0 0.25rem;
  font-weight: 400;
}

.doc section { margin-bottom: 1.5rem; }
.doc h2 { font-size: 1rem; font-weight: 400; margin: 0 0 0.5rem; color: var(--dim); }
.doc p  { margin: 0; line-height: 1.65; }
.doc a  { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.doc .doc__meta {
  color: var(--dim);
  margin: 0 0 2rem;
}
