/* Geist Pixel (variante Square), licencia SIL OFL 1.1: ver fonts/OFL.txt */
@font-face {
  font-family: "Geist Pixel";
  src: url("fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --mute: #9a9a9a;
  --line: #5a5a5a;
  --font: "Geist Pixel", "Noto Sans Mono", Monaco, Menlo, "SF Mono", Consolas, "Lucida Console", "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.28);
}

/* Líneas de barrido, muy sutiles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
}

main {
  max-width: 78ch;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus-visible {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
  outline: none;
}

.cabecera {
  margin: 0 0 40px;
  text-align: right;
  color: var(--mute);
}
.cabecera a:hover, .cabecera a:focus-visible { background: none; color: var(--fg); }

h1 {
  margin: 0 0 40px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Portada */
.lista {
  list-style: none;
  margin: 0 0 40px;
  padding: 0 0 0 4ch;
}
.lista li { margin: 0 0 4px; }
.ext { margin: 0; padding: 0 0 0 4ch; }

/* Registro */
.texto p {
  margin: 0 0 1.4em;
}

.nav {
  margin: 40px 0 0;
}

/* Imagen: va al final de la página, sin marco ni texto */
figure {
  margin: 56px 0 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
/* Línea de comandos */
.prompt {
  display: flex;
  align-items: baseline;
  gap: 1ch;
  margin: 48px 0 0;
}
.prompt label {
  white-space: nowrap;
}
.prompt input {
  flex: 1;
  min-width: 4ch;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  color: var(--fg);
  font: inherit;
  text-shadow: inherit;
  caret-color: var(--fg);
  caret-shape: block;
}
.estado {
  margin: 8px 0 0;
  min-height: 1.75em;
  color: var(--mute);
}

.clave {
  display: inline-block;
  margin: 0 0 1.4em;
  padding: 2px 1ch;
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
}

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  .lista, .ext { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .prompt input { caret-shape: auto; }
}
