:root{
  --ink:#14212B;--paper:#FBFAF8;--muted:#5B6770;--line:#E3E1DC;--surface:#F1EFEA;
  --accent:#B5174F;--on-accent:#fff;
  --head:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --body:"Source Serif 4",Georgia,"Times New Roman",serif;
}
:root:not([data-theme="light"]){}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ink:#EDEBE6;--paper:#10171D;--muted:#9AA6AF;--line:#25313A;--surface:#18222A;
    --accent:#F0618F;--on-accent:#10171D;
  }
}
*{box-sizing:border-box}
html{scroll-padding-top:70px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.65}
a{color:inherit}
a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.wrap{max-width:720px;margin:0 auto;padding:0 20px}

/* Cabecera */
.top{border-bottom:1px solid var(--line);background:var(--paper)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--head);font-weight:800;font-size:1.25rem;letter-spacing:-.01em}
.brand b{background:var(--accent);color:var(--on-accent);padding:2px 8px;border-radius:3px;font-weight:800}
.casas{display:flex;align-items:flex-end;height:16px;gap:3px;padding:0 20px;max-width:720px;margin:0 auto}
.casas span{flex:1;border-radius:2px 2px 0 0}
.casas span:nth-child(1){height:60%;background:#B5174F}
.casas span:nth-child(2){height:100%;background:#E8A33D}
.casas span:nth-child(3){height:75%;background:#2F6B5E}
.casas span:nth-child(4){height:45%;background:#3C6FB4}
.casas span:nth-child(5){height:90%;background:#D9622B}
.casas span:nth-child(6){height:65%;background:#7A4EA3}
.casas span:nth-child(7){height:85%;background:#B5174F}
.casas span:nth-child(8){height:50%;background:#E8A33D}
nav{border-bottom:1px solid var(--line)}
nav ul{display:flex;gap:22px;list-style:none;margin:0 auto;padding:0 20px;max-width:720px;overflow-x:auto;white-space:nowrap}
nav a{display:block;padding:12px 0;font-family:var(--head);font-weight:600;font-size:.95rem;text-decoration:none;border-bottom:3px solid transparent}
nav a:hover,nav a[aria-current]{border-bottom-color:var(--accent)}

/* Portada */
.lead{padding:32px 0 28px;border-bottom:1px solid var(--line)}
.cat{font-family:var(--head);font-weight:600;font-size:.9rem;color:var(--accent);text-decoration:none}
h1,h2,h3{font-family:var(--head);line-height:1.12;letter-spacing:-.015em;margin:.35em 0}
.lead h1{font-size:clamp(2rem,7.5vw,2.9rem);font-weight:800}
.bajada{font-size:1.2rem;color:var(--muted);margin:.4em 0 1em}
.meta{font-family:var(--head);font-size:.85rem;color:var(--muted)}
.meta span+span{margin-left:14px}
.lead a.titulo{text-decoration:none}
.lead a.titulo:hover{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}

h2.sec{font-size:1.35rem;margin:28px 0 4px}
.lista article{padding:18px 0;border-bottom:1px solid var(--line)}
.lista h3{font-size:1.3rem;font-weight:700;margin:.2em 0 .3em}
.lista a.titulo{text-decoration:none}
.lista a.titulo:hover{text-decoration:underline;text-underline-offset:4px}
.lista p{margin:.2em 0 .5em;color:var(--muted)}

/* Nota */
.nota{padding:28px 0 20px}
.nota h1{font-size:clamp(1.9rem,6.5vw,2.6rem);font-weight:800}
.foto{background:var(--surface);aspect-ratio:16/9;border-radius:4px;margin:20px 0 6px;display:grid;place-items:center;color:var(--muted);font-family:var(--head);font-size:.9rem}
.foto img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.pie{font-family:var(--head);font-size:.82rem;color:var(--muted);margin:0 0 24px}
.cuerpo p{margin:0 0 1.2em;max-width:65ch}
.cuerpo h2{font-size:1.35rem;margin:1.6em 0 .5em}
.volver{display:inline-block;margin:8px 0 28px;font-family:var(--head);font-weight:600}

/* Pie */
footer{margin-top:36px;border-top:1px solid var(--line);padding:24px 0 40px;font-family:var(--head);font-size:.9rem;color:var(--muted)}
footer p{margin:.3em 0}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
