/* Edición X: mismo aire que blog.bieltenias.com. Una letra, una columna, gris cálido. */
:root {
  --fondo: #f4f3ef;
  --papel: #fbfaf7;
  --tinta: #1c1b19;
  --suave: #6f6b64;
  --linea: #e2ded5;
  --cita: #efede7;
  --marca: #2f5d50;
  --letra: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --columna: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #121210;
    --papel: #181816;
    --tinta: #e8e5de;
    --suave: #9b978f;
    --linea: #2c2b28;
    --cita: #1f1f1c;
    --marca: #8fc2b0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
@media (min-width: 700px) { html { font-size: 112.5%; } }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: var(--letra); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.marco { max-width: var(--columna); margin: 0 auto; padding: 0 1rem 4rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 2px; }

/* Cabecera */
.cabecera {
  padding: 1.5rem 0 0; display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
}
.cabecera .nombre { font-weight: 600; text-decoration: none; }
.cabecera nav { display: flex; gap: 1rem; align-items: baseline; font-size: 0.85rem; }
.cabecera nav a { color: var(--suave); text-decoration: none; }
.cabecera nav a:hover { color: var(--tinta); text-decoration: underline; }
#numeros {
  font: inherit; font-size: 0.85rem; color: var(--suave); background: none; cursor: pointer;
  border: 1px solid var(--linea); border-radius: 99px; padding: 0.1rem 0.6rem;
}
#numeros[aria-pressed="true"] { color: var(--tinta); border-color: var(--suave); }

/* Portada de la edición */
.intro { margin: 2.5rem 0 1.5rem; }
.intro .fecha { margin: 0; color: var(--suave); font-size: 0.85rem; }
.intro h1 { margin: 0.1rem 0 0.3rem; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.intro .resumen { margin: 0; color: var(--suave); }
.aviso { color: #9a5b13; font-size: 0.85rem; }

/* Tweet */
.tweet {
  background: var(--papel); border: 1px solid var(--linea); border-radius: 10px;
  padding: 1rem 1.1rem 0.8rem; margin: 0 0 0.9rem;
  transition: opacity 0.2s;
}
.tweet.descartado { opacity: 0.45; }
.tweet .contexto { margin: 0 0 0.3rem; font-size: 0.78rem; color: var(--suave); }
.tweet header { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.tweet .autor { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tweet .autor strong { font-weight: 600; }
.tweet .autor span, .tweet time { color: var(--suave); font-size: 0.85rem; }
.tweet time { white-space: nowrap; }
.texto { overflow-wrap: anywhere; }
.texto p { margin: 0.45rem 0; }
.texto.largo:not(.abierto) {
  max-height: 13.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.leer {
  font: inherit; font-size: 0.85rem; color: var(--marca); background: none; border: none;
  padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em;
}
.texto a, blockquote a { color: var(--marca); }

.medios { display: grid; gap: 4px; margin: 0.6rem 0; border-radius: 8px; overflow: hidden; }
.medios.n2, .medios.n3, .medios.n4 { grid-template-columns: 1fr 1fr; }
.medio { position: relative; display: block; background: var(--cita); }
.medio img { display: block; width: 100%; max-height: 22rem; object-fit: cover; }
.medios.n2 img, .medios.n3 img, .medios.n4 img { height: 10rem; }
.medio span {
  position: absolute; left: 0.5rem; bottom: 0.5rem; background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 4px;
}

blockquote {
  margin: 0.6rem 0; padding: 0.5rem 0.8rem; background: var(--cita);
  border-radius: 8px; font-size: 0.92rem;
}
blockquote .quien { margin: 0; color: var(--suave); font-size: 0.82rem; }
blockquote p { margin: 0.3rem 0; }

.numeros { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--suave); }
.sin-numeros .numeros { display: none; }
.motivo { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--suave); font-style: italic; }
.motivo .nota {
  font-style: normal; font-weight: 600; font-size: 0.75rem; color: var(--tinta);
  border: 1px solid var(--linea); border-radius: 4px; padding: 0 0.3rem; margin-right: 0.15rem;
}

.acciones {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; margin-top: 0.7rem; padding-top: 0.6rem;
  border-top: 1px solid var(--linea);
}
.acciones button, .acciones a {
  font: inherit; font-size: 0.82rem; color: var(--suave); background: none; cursor: pointer;
  border: 1px solid var(--linea); border-radius: 99px; padding: 0.25rem 0.75rem;
  text-decoration: none; line-height: 1.4; min-height: 2rem; display: inline-flex; align-items: center;
}
.acciones button:hover, .acciones a:hover { color: var(--tinta); border-color: var(--suave); }
.acciones [aria-pressed="true"] { color: var(--papel); background: var(--tinta); border-color: var(--tinta); }
.acciones [data-tipo="no"][aria-pressed="true"] { background: var(--suave); border-color: var(--suave); }
.acciones > span { display: flex; gap: 0.4rem; }
.acciones > span:last-child { margin-left: auto; }
.acciones a[data-tipo="profundizar"] { color: var(--marca); border-color: var(--marca); }

/* Lo que ha quedado fuera */
.fuera { margin: 2rem 0 1rem; }
.fuera summary {
  cursor: pointer; color: var(--suave); padding: 0.8rem 0; border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea); margin-bottom: 1rem;
}
.fuera[open] summary { color: var(--tinta); }

.paso { display: flex; justify-content: space-between; margin-top: 2.5rem; color: var(--suave); }

/* Criterio */
.criterio h1 { font-size: 1.6rem; font-weight: 600; margin: 2.5rem 0 0.5rem; }
.criterio h2 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.4rem; }
.criterio ul { padding-left: 1.2rem; }
.criterio li { margin: 0.3rem 0; }

/* Entrar */
.entrar { max-width: 20rem; margin: 6rem auto 0; display: flex; flex-direction: column; gap: 0.6rem; }
.entrar h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; }
.entrar label { color: var(--suave); font-size: 0.9rem; }
.entrar input {
  font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--linea); border-radius: 8px;
  background: var(--papel); color: var(--tinta);
}
.entrar button {
  font: inherit; font-weight: 500; padding: 0.6rem; border: none; border-radius: 8px;
  background: var(--tinta); color: var(--papel); cursor: pointer;
}

/* Traducciones */
.tweet .orig { display: none; }
.tweet.original .orig { display: block; }
.tweet.original .es { display: none; }
.traducido { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--suave); }
.ver-original {
  font: inherit; color: var(--suave); background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em;
}
