/* A log written from the future — white, black, typewriter */
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fuentes/courier-bold.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: italic; font-weight: 700; font-display: swap; src: url("fuentes/courier-bold-italic.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/courier-regular.woff2") format("woff2"); }

:root {
  --fondo: #ffffff;
  --tinta: #000000;
  --gris: #6b6b6b;
  --linea: #000000;
  --suave: #e8e8e8;
  --letra: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 680px; padding: 40px 20px 72px;
  background: var(--fondo); color: var(--tinta);
  font: 700 18px/1.65 var(--letra); overflow-wrap: break-word;
}
a { color: var(--tinta); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { background: var(--tinta); color: var(--fondo); text-decoration: none; }
strong, b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }   /* everything is already bold */
em, i { font-style: italic; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 2px dashed var(--tinta); margin: 2.4em 0; }
blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 4px solid var(--tinta); }
pre, code { font: inherit; font-size: .9em; background: var(--suave); }
code { padding: 0 4px; }
pre { padding: 14px; overflow-x: auto; }
pre code { padding: 0; background: none; }
::selection { background: var(--tinta); color: var(--fondo); }

/* ---------- Header ---------- */
.arriba { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.nombre { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; }
.arriba nav { display: flex; gap: 18px; align-items: baseline; font-size: 15px; flex-wrap: wrap; }
.arriba nav a { text-decoration: none; }
.arriba nav form { margin: 0; }

/* ---------- Home ---------- */
.bienvenida { margin-bottom: 72px; }
.bienvenida p { font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.3; margin: 0 0 .2em; }
.bienvenida p:last-child:not(:first-child) { font-size: 1rem; color: var(--gris); margin-top: 1.4em; }
.bienvenida p:first-child::after {   /* the blinking cursor of a terminal */
  content: ""; display: inline-block; width: .55em; height: 1em; margin-left: .15em; vertical-align: -0.12em;
  background: var(--tinta); animation: parpadeo 1.1s steps(1) infinite;
}
@keyframes parpadeo { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bienvenida p:first-child::after { animation: none; } }

.transmisiones { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--linea); }
.transmisiones li { border-bottom: 2px solid var(--linea); }
.transmisiones a { display: flex; gap: 24px; padding: 14px 4px; text-decoration: none; align-items: baseline; }
.transmisiones time { flex: 0 0 12.5em; font-size: 14px; font-variant-numeric: tabular-nums; }
.transmisiones a:hover time { color: var(--fondo); }
@media (max-width: 560px) { .transmisiones a { flex-direction: column; gap: 2px; } .transmisiones time { flex: none; } }

.vacio { color: var(--gris); padding: 24px 0; }

/* ---------- Entry ---------- */
.desde { margin: 0; font-size: 14px; }
.desde::before { content: "> "; }
article h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.2; margin: .3em 0 1em; }
.texto h2, .texto h3 { line-height: 1.3; margin-top: 2em; }
.texto h2::before { content: "## "; color: var(--gris); }
.texto img { margin: 1.8em auto; border: 2px solid var(--tinta); }
.recibido { margin-top: 64px; padding-top: 14px; border-top: 2px dashed var(--tinta); font-size: 13px; color: var(--gris); text-align: right; }
.volver { font-size: 15px; margin-top: 40px; }

.abajo { margin-top: 88px; font-size: 13px; }

/* ---------- Panel ---------- */
.panel .arriba { margin-bottom: 36px; }
.panel h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 20px; }
.fila-titulo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fila-titulo h1 { margin: 0; }
.lista-panel { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--linea); }
.lista-panel li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid var(--linea); flex-wrap: wrap; }
.lista-panel li span { font-size: 14px; color: var(--gris); }
.lista-panel a { text-decoration: none; }

.boton { display: inline-block; background: var(--tinta); color: var(--fondo); border: 2px solid var(--tinta); border-radius: 0; padding: 9px 18px;
  font: 700 16px var(--letra); text-decoration: none; cursor: pointer; }
.boton:hover { background: var(--fondo); color: var(--tinta); }
.enlace { background: none; border: 0; padding: 0; font: 700 15px var(--letra); color: var(--tinta); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.enlace:hover { background: var(--tinta); color: var(--fondo); text-decoration: none; }
.peligro:hover { background: #b00020; color: #fff; }
.aviso { border: 2px solid var(--tinta); padding: 10px 14px; font-size: 15px; }
.aviso::before { content: "* "; }
.error { color: #b00020; font-size: 15px; }
.nota { font-size: 14px; color: var(--gris); }

input, textarea { font: 700 17px var(--letra); color: var(--tinta); background: var(--fondo); border: 2px solid var(--tinta); border-radius: 0; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 3px solid var(--tinta); outline-offset: 2px; }
input[type=checkbox] { width: auto; margin: 4px 0 0; accent-color: #000; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; }

.entrar { max-width: 320px; margin: 60px auto; display: flex; flex-direction: column; gap: 14px; }
.formulario { display: flex; flex-direction: column; gap: 18px; }

.editor { display: flex; flex-direction: column; gap: 12px; }
.fecha-futuro { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
.fecha-futuro::before { content: ">"; }
.fecha-futuro input { width: auto; padding: 6px 10px; font-size: 16px; }
.editor-titulo { font-size: 1.6rem; border: 0; border-bottom: 2px solid var(--tinta); padding: 6px 0; }
.editor-titulo:focus { outline: 0; border-bottom-width: 4px; }
.barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--gris); }
.boton-foto { flex-direction: row; border: 2px solid var(--tinta); padding: 3px 12px; cursor: pointer; color: var(--tinta); font-size: 14px; }
.boton-foto:hover { background: var(--tinta); color: var(--fondo); }
.editor textarea { min-height: 55vh; line-height: 1.7; resize: vertical; }
.editor textarea.soltar { outline: 3px dashed var(--tinta); }
.botones { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.derecha { margin-left: auto; }

.subir-fotos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.subir-fotos input { flex: 1 1 240px; font-size: 14px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 24px; }
.galeria figure { margin: 0; border: 2px solid var(--tinta); }
.galeria a:hover { background: none; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--tinta); }
.galeria figcaption { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.galeria .codigo { font-size: 11px; padding: 5px 6px; border-width: 1px; }
.fila-foto { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fila-foto .peso { color: var(--gris); margin-left: auto; }
.fila-foto form { margin: 0; }
.fila-foto .enlace { font-size: 13px; }

/* ---------- Photos with captions (public) ---------- */
.texto figure { margin: 2em 0; }
.texto figure img { margin: 0 auto; }
.texto figcaption { font-size: 14px; color: var(--gris); margin-top: 8px; text-align: center; }
.texto figcaption::before { content: "— "; }

/* ---------- Block editor ---------- */
.herramientas { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5;
  background: var(--fondo); padding: 8px 0; border-bottom: 2px solid var(--tinta); }
.herramientas button { font: 700 15px var(--letra); min-width: 38px; height: 34px; padding: 0 10px; background: var(--fondo); color: var(--tinta);
  border: 2px solid var(--tinta); cursor: pointer; }
.herramientas button:hover { background: var(--tinta); color: var(--fondo); }
#estado-foto { font-size: 13px; color: var(--gris); margin-left: 6px; }
.bloques { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.bloque { position: relative; }
.bloque-texto textarea { border: 0; border-left: 2px solid transparent; padding: 10px 12px; min-height: 3.2em; resize: none; overflow: hidden;
  line-height: 1.7; font-size: 18px; background: transparent; }
.bloque-texto textarea:focus { outline: 0; border-left-color: var(--tinta); }
.bloque-texto.soltar textarea { outline: 3px dashed var(--tinta); }
.bloque-foto { margin: 10px 0; border: 2px solid var(--tinta); }
.bloque-foto img { width: 100%; max-height: 520px; object-fit: contain; background: var(--suave); }
.bloque-foto .pie { border: 0; border-top: 2px solid var(--tinta); font-size: 14px; padding: 8px 10px; }
.bloque-foto .pie:focus { outline: 0; background: #fafafa; }
.controles { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.controles button { font: 700 15px var(--letra); width: 34px; height: 34px; background: var(--fondo); color: var(--tinta); border: 2px solid var(--tinta); cursor: pointer; }
.controles button:hover { background: var(--tinta); color: var(--fondo); }
.controles button[data-a=quitar]:hover { background: #b00020; border-color: #b00020; }
.insertar { display: flex; gap: 8px; justify-content: center; padding: 4px 0; opacity: .35; transition: opacity .15s; }
.bloque:hover > .insertar, .bloque:focus-within > .insertar, .bloque:last-child > .insertar { opacity: 1; }
.bloque-foto > .insertar { position: absolute; left: 0; right: 0; bottom: -40px; }
.bloque-foto { margin-bottom: 48px; }
.insertar button { font: 700 13px var(--letra); background: var(--fondo); color: var(--tinta); border: 2px dashed var(--tinta); padding: 3px 12px; cursor: pointer; }
.insertar button:hover { border-style: solid; background: var(--tinta); color: var(--fondo); }
@media (hover: none) { .insertar { opacity: 1; } }
.subiendo { border: 2px dashed var(--tinta); padding: 28px 12px; margin: 10px 0; text-align: center; font-size: 14px; }
.subiendo.fallo { color: #b00020; border-color: #b00020; }

/* ---------- Entry text in regular weight: easier to read; bold stays for titles, dates and menus ---------- */
@font-face { font-family: "Courier Prime"; font-style: italic; font-weight: 400; font-display: swap; src: url("fuentes/courier-italic.woff2") format("woff2"); }
.texto, .bloque-texto textarea, .recibido, .texto figcaption { font-weight: 400; }
.texto strong, .texto b { font-weight: 700; text-decoration: none; }
.texto h2, .texto h3 { font-weight: 700; }
.texto blockquote { font-style: italic; }
