/* La base de la portada B y de «Entrar»: caja, márgenes, la letra del sistema con su tracking por tamaño, el foco de
   3 px, el salto al contenido, lo solo para lectores, los iconos y los capítulos con su campo de color. La barra fija
   tapa los primeros px de la ventana: scroll-padding-top deja por debajo todo lo que se enfoca (WCAG 2.4.11). */
.listachan *, .listachan *::before, .listachan *::after { box-sizing: border-box; }
:root:has(.listachan) {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--barra-arriba) + var(--barra-alto) + 16px);
  scrollbar-color: rgb(var(--sombra) / .3) transparent;
}
.listachan {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 1.0625rem/1.5 var(--letra); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--acento-tinta); accent-color: var(--acento-tinta);
}
.listachan img { display: block; max-width: 100%; height: auto; }
.listachan picture { display: block; }
.listachan h1, .listachan h2, .listachan h3, .listachan p, .listachan ul, .listachan ol, .listachan dl, .listachan dd, .listachan figure { margin: 0; }
.listachan ul, .listachan ol { padding: 0; list-style: none; }
.listachan a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.listachan button { font: inherit; color: inherit; letter-spacing: inherit; }
.listachan p { text-wrap: pretty; }
.listachan ::selection { background: var(--acento-suave); color: var(--tinta); }
.listachan :focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 8px; }
.listachan [hidden] { display: none !important; }

.listachan .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Solo para el lector de pantalla: una caja de 1 px que ninguna regla de sección ensancha (como el .oculto de la maqueta;
   sin !important, «.capitulo > *» le daba todo el ancho y el título del relato desbordaba la página en el móvil). */
.listachan .solo-lector {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.listachan .ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.listachan .cifra { font-variant-numeric: tabular-nums; }

/* Ir al contenido: fuera de la vista hasta que el teclado llega a él, por encima de la barra (lo que se hace con el
   teclado no se anima). */
.listachan .saltar {
  position: absolute; z-index: 30; top: 12px; left: var(--margen);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radio-pildora);
  background: var(--tinta); color: var(--papel); font-weight: 600; text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}
.listachan .saltar:focus-visible { transform: none; }

/* Tipografía: tracking e interlineado según el tamaño; los titulares en Fredoka (--letra-titulo), a -.02em
   (--tracking-titular). Con ese aire, el tope del héroe baja a 70 px y el de los titulares a 62 px: «La invitación del
   cumple,» y «¿Tenéis un parque» siguen cabiendo en una línea (747 de 754 px y 480 de 500 px a 1440, medido en Chrome con
   Fredoka). El -.011em del cuerpo se hereda ya en px: la marca en Coiny y la letra de 13 px o menos ponen el suyo a 0. */
.listachan .display, .listachan .titular { font-family: var(--letra-titulo); text-wrap: balance; }
.listachan .display { font-size: clamp(2.5rem * var(--compensa-heroe), (1.3rem + 4.6vw) * var(--compensa-heroe), 4.375rem); line-height: 1.03; letter-spacing: var(--tracking-titular); font-weight: 700; }
.listachan .titular { font-size: clamp(2.125rem * var(--compensa-titular), (1.25rem + 3.2vw) * var(--compensa-titular), 3.875rem); line-height: 1.05; letter-spacing: var(--tracking-titular); font-weight: 700; }
.listachan .entradilla {
  max-width: 36ch; color: var(--tinta-suave); font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem); line-height: 1.36;
  letter-spacing: -.016em; font-weight: 500;
}
.listachan h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }

/* El enlace de texto: con el subrayado del acento, separado de la letra, de 44 px de alto y de ancho (una palabra corta,
   como «Neó» en catalán, «登录» en chino o «Terms» en inglés, no llega sola a 44 px: el texto queda centrado en la diana) */
.listachan .enlace {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--acento-tinta); text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .listachan .enlace:hover { text-decoration-color: var(--tinta); }
}

/* Los capítulos: aire en macro, el ancho de 1200 px y, en los que lo llevan, su campo de color redondeado */
.listachan main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.5vw, 20px); }
.listachan main > * { min-width: 0; }
.listachan .capitulo { padding: clamp(72px, 9vw, 136px) var(--lado); }
.listachan .capitulo > * { max-width: var(--ancho); margin-inline: auto; width: 100%; min-width: 0; }
.listachan .capitulo-frambuesa, .listachan .capitulo-mantequilla {
  margin-inline: clamp(6px, 1.2vw, 20px); padding-inline: max(var(--margen), calc((100% - var(--ancho)) / 2));
  border-radius: var(--radio-campo);
}
.listachan .capitulo-frambuesa { background: var(--frambuesa); }
.listachan .capitulo-mantequilla { background: var(--mantequilla); }
.listachan .capitulo-cabeza { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }

@media (prefers-contrast: more) {
  :root:has(.listachan) { --tinta-suave: var(--tinta); --linea: rgb(11 46 38 / .45); }
}

/* La línea de contacto de Bytenauta (src/portada/contacto.js): el nombre, la dirección, el correo y el teléfono, en la tinta suave
   (7,6:1 sobre el papel) y con los enlaces subrayados. La portada, «Entrar» y las legales la ponen en su pie. */
.listachan .contacto { max-width: 62ch; color: var(--tinta-suave); font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.listachan .contacto a { color: inherit; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; } /* el teléfono y el correo no se parten */
