/* Sitio provisorio de Cyberpunk Papers. Paleta y tipografías tomadas de la tapa. */
:root {
  --bg: #050506;
  --ink: #ecebe8;
  --muted: #9a9a9d;
  --line: rgba(236, 235, 232, .18);
  --red: #e3202c;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

/* la tapa, desenfocada y oscurecida, como fondo de toda la pantalla */
.bg {
  position: fixed; inset: -40px; z-index: -1;
  background: url("img/fondo.jpg") center / cover no-repeat;
  filter: blur(30px) brightness(.45);
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
}

.top, .foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.lang { display: flex; border: 1px solid var(--line); }
.lang a { padding: 6px 12px; letter-spacing: .12em; transition: color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(8px, 3vh, 40px) 0;
}

.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--red);
  margin-bottom: clamp(20px, 4vh, 40px);
}
.status::before { content: ""; width: 2px; height: 28px; background: var(--red); box-shadow: 0 0 14px var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.title {
  font: 400 clamp(56px, 9.5vw, 168px)/.92 var(--display);
  letter-spacing: .01em; text-transform: uppercase;
}
.subtitle { margin-top: clamp(16px, 3vh, 32px); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; max-width: 24ch; }
.meta { margin-top: 14px; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .22em; color: var(--muted); }
.author { margin-top: clamp(28px, 6vh, 64px); padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .16em; width: fit-content; white-space: nowrap; }

/* la tapa siempre entera: su tamaño lo limita la altura disponible */
.cover { margin: 0; }
.cover img {
  display: block;
  height: min(80svh, 900px); width: auto; max-width: 44vw;
  aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}

/* tablet vertical y móvil: tapa arriba, texto debajo */
@media (orientation: portrait) {
  .stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; padding-bottom: 32px; }
  .cover { order: -1; }
  .cover img { height: auto; width: min(100%, 52svh, 520px); max-width: none; }
  .subtitle, .author { margin-inline: auto; }
  .title { font-size: clamp(44px, 13vw, 96px); }
}

/* móvil chico: la tapa ocupa todo el ancho, sin márgenes */
@media (orientation: portrait) and (max-width: 520px) {
  .cover { margin-inline: calc(var(--gutter) * -1); }
  .cover img { width: 100vw; box-shadow: none; }
  .foot { flex-direction: column; gap: 6px; text-align: center; }
}

/* pantallas apaisadas muy bajas (móvil horizontal) */
@media (orientation: landscape) and (max-height: 520px) {
  .cover img { height: 92svh; }
  .title { font-size: clamp(36px, 6vw, 64px); }
  .subtitle { font-size: 20px; margin-top: 10px; }
  .status { margin-bottom: 12px; }
  .author { margin-top: 16px; padding-top: 12px; }
}

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