/* ==========================================================================
   alejandro de la fuente — versión "1988"
   Monitor monocromático verde fósforo (P1). Fuente: VT323.
   Hoja de estilos exclusiva de /1988/, no se comparte con la raíz.
   ========================================================================== */

:root {
  --green: #33FF33;
  --green-dim: rgba(51, 255, 51, 0.55);
  --green-faint: rgba(51, 255, 51, 0.28);
  --black: #0a0a0a;
  --maxw: 700px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--black);
  color: var(--green);
}

body {
  font-family: 'VT323', ui-monospace, monospace;
  font-size: 21px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-shadow: 0 0 1px rgba(51,255,51,0.9), 0 0 6px rgba(51,255,51,0.35);
}

/* leve efecto de líneas de escaneo (scanlines) del CRT */
body::after {
  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.18) 3px
  );
  z-index: 50;
}

a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible {
  background: var(--green);
  color: #000;
  text-shadow: none;
  outline: none;
}

h1, h2 {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1.1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

.cursor {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Header / prompt ---------- */

.term-header {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--green-faint);
}

.path { font-size: 1rem; }

.term-nav a::before { content: '['; }
.term-nav a::after { content: ']'; }
.term-nav a { margin-left: 0.9rem; font-size: 1rem; }
.term-nav a:first-child { margin-left: 0; }

/* ---------- Boot overlay ---------- */

.boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--green);
  z-index: 100;
  padding: 2rem;
  font-size: 19px;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.boot-overlay.hide { opacity: 0; }
.boot-overlay pre {
  max-width: 700px;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  font-family: 'VT323', monospace;
}

.content-1988 {
  opacity: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.content-1988.revealed {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ---------- Home ---------- */

.home-1988 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1.2rem;
  padding: 1.5rem;
  text-align: center;
}
.home-1988 h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin: 0;
  text-transform: none;
}

/* ---------- Main content ---------- */

main.page-1988 { flex: 1; padding: 2rem 0 4rem; }

.eyebrow-1988 {
  display: block;
  font-size: 1rem;
  color: var(--green-dim);
  margin-bottom: 0.3rem;
}

.section-1988 {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px dashed var(--green-faint);
}
.section-1988:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.term-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.term-list li { padding: 0.3rem 0; }
.term-list li::before { content: '> '; color: var(--green-dim); }

.dim { color: var(--green-dim); }

/* ---------- Sitemap ---------- */

.sitemap-node-1988 { margin-bottom: 2rem; }
.sitemap-node-1988 h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.sitemap-node-1988 ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0 0 0 1.2rem;
}
.sitemap-node-1988 li { padding: 0.2rem 0; }
.sitemap-node-1988 li::before { content: '- '; color: var(--green-dim); }

/* ---------- Footer ---------- */

footer.term-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--green-faint);
  font-size: 0.95rem;
  color: var(--green-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}
footer.term-footer a { color: var(--green-dim); }
footer.term-footer a:hover { color: #000; background: var(--green-dim); }

@media (max-width: 560px) {
  body { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
  .boot-overlay, .content-1988 { transition: none; }
}
