/*
Theme Name: Helena Wagner
Description: Theme a medida de helenawagner.com. Sin dependencias externas.
Author: Helena Wagner
Version: 1.0.0
Text Domain: hcom
*/

:root{
  --hcom-fondo:#0d1b2a; --hcom-texto:#eef2f7; --hcom-tenue:#9aa9bb;
  --hcom-linea:#22344a; --hcom-acento:#e0a458; --hcom-acento-suave:#152539;
  --hcom-medida:64ch;
  --hcom-t0:1rem; --hcom-t1:1.333rem; --hcom-t2:1.777rem;
  --hcom-t3:2.369rem; --hcom-t4:3.157rem; --hcom-tm:0.75rem;
  --hcom-ritmo:1.65;
}

*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,p,figure,blockquote,ul,ol,dl{margin:0}
ul[class],ol[class]{list-style:none;padding:0}

html{-webkit-text-size-adjust:100%}
body{
  background:var(--hcom-fondo); color:var(--hcom-texto);
  font-family:'Public Sans', system-ui, sans-serif; font-size:clamp(1.02rem,0.3vw + 1rem,1.14rem);
  line-height:var(--hcom-ritmo); font-synthesis:none;
  text-rendering:optimizeLegibility;
}
img,picture,svg{max-width:100%;height:auto;display:block}

.hcom-salto{position:absolute;left:-9999px;top:0}
.hcom-salto:focus{left:0;padding:.6rem 1rem;background:var(--hcom-acento);color:#fff;z-index:99}

.hcom-envoltura{width:min(100% - 2.4rem,46rem);margin-inline:auto}

h1,h2,h3,h4{font-family:'Fraunces', Georgia, serif;line-height:1.15;letter-spacing:-0.01em;font-weight:600}
h1{font-size:var(--hcom-t4)}
h2{font-size:var(--hcom-t2);margin-block:2.4em .5em}
h3{font-size:var(--hcom-t1);margin-block:1.8em .4em}
p,ul,ol,blockquote,figure,table{margin-block:0 1.15em}
a{color:inherit;text-decoration-color:var(--hcom-acento);text-underline-offset:.18em;
  text-decoration-thickness:.08em}
a:hover{color:var(--hcom-acento)}

.hcom-cabecera{border-bottom:1px solid var(--hcom-linea);padding-block:1.15rem;margin-bottom:3rem}
.hcom-cabecera-fila{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:baseline;
  justify-content:space-between}
.hcom-marca{font-family:'Fraunces', Georgia, serif;font-size:var(--hcom-t1);font-weight:700;
  text-decoration:none;letter-spacing:-0.01em}
.hcom-lema{color:var(--hcom-tenue);font-size:var(--hcom-tm)}
.hcom-nav{display:flex;gap:1.4rem;flex-wrap:wrap;font-size:var(--hcom-tm)}
.hcom-nav a{text-decoration:none;color:var(--hcom-tenue)}
.hcom-nav a:hover{color:var(--hcom-acento)}

main{display:block}
.hcom-prosa{max-width:var(--hcom-medida)}
.hcom-prosa h2,.hcom-prosa h3{max-width:var(--hcom-medida)}
.hcom-prosa table{width:100%;border-collapse:collapse;font-size:var(--hcom-tm)}
.hcom-prosa th,.hcom-prosa td{text-align:left;padding:.55rem .7rem;
  border-bottom:1px solid var(--hcom-linea);vertical-align:top}
.hcom-prosa th{font-weight:600}
.hcom-prosa blockquote{border-left:3px solid var(--hcom-acento);padding-left:1.1rem;
  color:var(--hcom-tenue)}
.hcom-prosa code{background:var(--hcom-acento-suave);padding:.12em .35em;border-radius:3px;
  font-size:.9em}
.hcom-prosa pre{background:var(--hcom-acento-suave);padding:1rem;overflow-x:auto;border-radius:4px}
.hcom-prosa figure figcaption{font-size:var(--hcom-tm);color:var(--hcom-tenue);
  margin-top:.5rem}

.hcom-meta{color:var(--hcom-tenue);font-size:var(--hcom-tm);margin-bottom:2.2rem}
.hcom-meta time{white-space:nowrap}

.hcom-lista{display:grid;gap:2.6rem;grid-template-columns:minmax(0,1fr);gap:2.6rem;}
.hcom-item{border-bottom:1px solid var(--hcom-linea);padding-bottom:2.2rem}
.hcom-item:last-child{border-bottom:0}
.hcom-item img{margin-bottom:.9rem;display:none}

.hcom-item h2{margin-block:0 .35em;font-size:var(--hcom-t1)}
.hcom-item a{text-decoration:none}
.hcom-item p{color:var(--hcom-tenue);max-width:var(--hcom-medida)}
.hcom-fecha{display:block;font-size:var(--hcom-tm);color:var(--hcom-tenue);
  margin-bottom:.35rem;font-variant-numeric:tabular-nums}

.hcom-pie{margin-top:5rem;border-top:1px solid var(--hcom-linea);padding-block:2rem 3rem;
  color:var(--hcom-tenue);font-size:var(--hcom-tm)}
.hcom-pie a{color:inherit}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
