*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,system-ui,sans-serif;line-height:1.7;color:#333;background:#fff}
.astro-fLxSIB7j{max-width:780px;margin:0 auto;padding:0 20px}
header{background:#1a1a2e;color:#fff;padding:32px 0;margin-bottom:40px}
header h1{font-size:28px;margin-bottom:4px}
header p{opacity:.7;font-size:15px}
header .astro-hBlpPbEF{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.astro-LUvzLtz4{border-bottom:1px solid #eee;padding:24px 0}
.astro-LUvzLtz4 h2{font-size:20px;margin-bottom:8px}
.astro-LUvzLtz4 h2 a{color:#1a1a2e;text-decoration:none}
.astro-LUvzLtz4 h2 a:hover{color:#e94560}
.astro-LUvzLtz4 .date{font-size:13px;color:#999;margin-bottom:8px}
.astro-QAigcsHZ{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.astro-DXTRX4zL{padding-bottom:60px}
.astro-DXTRX4zL h1{font-size:32px;margin-bottom:8px}
.astro-DXTRX4zL time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.astro-DXTRX4zL h2{font-size:22px;margin:32px 0 12px}
.astro-DXTRX4zL h3{font-size:18px;margin:24px 0 8px}
.astro-DXTRX4zL p{margin-bottom:16px}
.astro-DXTRX4zL ul,.astro-DXTRX4zL ol{margin:0 0 16px 24px}
.astro-DXTRX4zL a{color:#e94560}
.astro-DXTRX4zL img{max-width:100%;height:auto;border-radius:8px;margin:16px 0}
footer{border-top:1px solid #eee;padding:24px 0;margin-top:40px;text-align:center;font-size:13px;color:#999}
footer a{color:#999}
.astro-S6vXbme5{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.astro-r2wFzPZV{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.astro-2eTXjYCG{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.astro-MVc37wZE{text-align:center;margin:0 0 20px}
.astro-xYQUZHq4{max-width:100%;height:auto;border-radius:6px}
.astro-8aMMfw1w{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.astro-8aMMfw1w h3{font-size:18px;margin-bottom:12px}
.astro-8aMMfw1w ul{list-style:none;padding:0}
.astro-8aMMfw1w li{padding:4px 0}
.astro-8aMMfw1w a{color:#e94560;text-decoration:none}
.astro-tgMEbBl6{padding:20px 0}
.astro-tgMEbBl6 ul{list-style:none;padding:0}
.astro-tgMEbBl6 li{padding:5px 0;font-size:15px}
.astro-tgMEbBl6 a{color:#1a1a2e;text-decoration:none}
.astro-tgMEbBl6 a:hover{color:#e94560}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');
:root{--primary:#3F566A;--accent:#C4A235;--bg:#ECEAE0;--fg:#1A1A1A;--border:#C5C0B3;--r:3px;--fb:'Nunito Sans',system-ui,sans-serif;--fh:'Fraunces',Georgia,serif}
body{font-family:var(--fb);color:var(--fg);background:var(--bg)}
header{background:var(--primary);color:#fff}
header h1{font-family:var(--fh);color:#fff}
header p{color:rgba(255,255,255,.7)}
header a{color:#fff;text-decoration:none}
.astro-LUvzLtz4 h2{font-family:var(--fh)}
.astro-LUvzLtz4 h2 a{color:var(--primary)}
.astro-LUvzLtz4 h2 a:hover{color:var(--accent)}
.astro-QAigcsHZ{color:var(--accent)}
.astro-DXTRX4zL h1,.astro-DXTRX4zL h2,.astro-DXTRX4zL h3{font-family:var(--fh)}
.astro-DXTRX4zL a{color:var(--accent)}
.astro-DXTRX4zL img{border-radius:var(--r)}
.affiliate-disclosure{border-radius:var(--r)}
.ymyl-disclaimer{border-radius:var(--r)}
/* === Custom === */
/* Mi Balcón Verde — field guide editorial, Ediciones Omega/Blume Barcelona 1970s-80s */
/* Steel blue #3F566A + amber gold #C4A235 + cool warm gray #ECEAE0, 3px radius */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #3F566A;
  --accent: #C4A235;
  --bg: #ECEAE0;
  --fg: #1A1A1A;
  --border: #C5C0B3;
  --r: 3px;
  --fb: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --fh: 'Fraunces', Georgia, serif;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */

body {
  font-family: var(--fb);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--fh);
  line-height: 1.2;
  color: var(--primary);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

header,
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 2.25rem 2rem 2rem;
  border-bottom: 3px solid var(--accent);
}

header h1,
.site-header h1,
.site-title {
  font-family: var(--fh);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
  color: #fff;
}

header p,
.site-header p,
.site-description {
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 56ch;
  line-height: 1.55;
}

header a,
.site-header a {
  color: #fff;
  text-decoration: none;
}

header a:hover,
.site-header a:hover {
  color: var(--accent);
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */

nav,
.nav {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 2rem;
}

nav a,
.nav a {
  display: inline-block;
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.65rem 0.9rem 0.65rem 0;
  margin-right: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover,
.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Card / article listing (home) ─────────────────────────────────────── */

.astro-LUvzLtz4,
.post-card,
.entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease;
}

.astro-LUvzLtz4:hover,
.post-card:hover,
.entry:hover {
  border-color: var(--accent);
}

.astro-LUvzLtz4 h2,
.post-card h2 {
  font-family: var(--fh);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.astro-LUvzLtz4 h2 a,
.post-card h2 a {
  color: var(--primary);
  text-decoration: none;
}

.astro-LUvzLtz4 h2 a:hover,
.post-card h2 a:hover {
  color: var(--accent);
}

.astro-LUvzLtz4 p,
.post-card p {
  font-size: 0.95rem;
  color: var(--fg);
  margin: 0.4rem 0 0.9rem;
  line-height: 1.7;
}

.card-meta,
.post-meta,
.post-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.65;
  margin-bottom: 0.5rem;
  display: block;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.1rem 0.5rem;
  margin-right: 0.3rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.astro-QAigcsHZ {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

.astro-QAigcsHZ:hover {
  opacity: 0.75;
}

/* ─── Article / post body ────────────────────────────────────────────────── */

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-family: var(--fh);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.astro-DXTRX4zL,
.post-content {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 68ch;
}

.astro-DXTRX4zL h1,
.post-content h1 {
  font-family: var(--fh);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}

.astro-DXTRX4zL h2,
.post-content h2 {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 0.6rem;
  line-height: 1.25;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

.astro-DXTRX4zL h3,
.post-content h3 {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.75rem 0 0.5rem;
  font-style: italic;
}

.astro-DXTRX4zL p,
.post-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.2rem;
  color: var(--fg);
}

.astro-DXTRX4zL a,
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.astro-DXTRX4zL a:hover,
.post-content a:hover {
  color: var(--primary);
}

.astro-DXTRX4zL blockquote,
.post-content blockquote,
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(196, 162, 53, 0.07);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.7;
}

blockquote p {
  margin: 0;
}

.astro-DXTRX4zL ul,
.astro-DXTRX4zL ol,
.post-content ul,
.post-content ol {
  padding-left: 1.4rem;
  margin: 0.75rem 0 1.25rem;
}

.astro-DXTRX4zL li,
.post-content li,
li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
  font-size: 0.975rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

.astro-DXTRX4zL img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
  margin: 1.5rem 0;
}

code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85em;
  background: rgba(63, 86, 106, 0.08);
  color: var(--primary);
  padding: 0.15em 0.4em;
  border-radius: var(--r);
}

pre {
  background: var(--primary);
  color: var(--bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

footer,
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  border-top: 3px solid var(--accent);
  text-align: center;
}

footer a,
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
  color: var(--accent);
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  header,
  .site-header {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  header h1,
  .site-header h1,
  .site-title {
    font-size: 1.55rem;
  }

  nav,
  .nav {
    padding: 0 1.25rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .astro-LUvzLtz4,
  .post-card,
  .entry {
    padding: 1.1rem 1.25rem;
  }

  .astro-LUvzLtz4 h2,
  .post-card h2 {
    font-size: 1.15rem;
  }

  .post-title {
    font-size: 1.55rem;
  }

  .astro-DXTRX4zL h1,
  .post-content h1 {
    font-size: 1.45rem;
  }

  .astro-DXTRX4zL h2,
  .post-content h2 {
    font-size: 1.2rem;
  }

  .astro-DXTRX4zL,
  .post-content {
    font-size: 0.97rem;
  }
}

/* === R2 fixes (2026-07-12T03:01:11.099916+00:00) === */

/* Force header to steel-blue primary + amber rule, overriding deployed
   /styles.css forest-green header so the site reads as a curated
   botanical-ink field notebook rather than a generic plant blog. */
header {
  background: var(--primary, #3F566A);
  border-bottom: 3px solid var(--accent, #C4A235);
}

/* In-article body links: clear steel-blue on cream, amber on hover,
   instead of the muddy green-ish tone close to the header colour. */
article a {
  color: var(--primary, #3F566A);
  text-underline-offset: 2px;
}

article a:hover {
  color: var(--accent, #C4A235);
}

/* Homepage entry rows: thin field-note rule between entries so each
   diary entry reads as a distinct card instead of blurring together. */
main > article {
  border-bottom: 1px solid var(--border, #C5C0B3);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

main > article:last-child {
  border-bottom: none;
}

/* Ensure Fraunces + Nunito Sans load and apply even if the deployed
   /styles.css shipped a generic serif/sans pairing instead. */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
}

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  line-height: 1.75;
}

/* === R3 fixes (2026-07-12T03:40:21.594907+00:00) === */

/* Deepen accent for link/CTA text (read-more, in-article links) — the
   base --accent #C4A235 measures ~2:1 on the cream bg and is too pale
   for body-sized text. Decorative uses (tag borders, blockquote rule,
   hr, hover underlines) keep the lighter var(--accent). */
.astro-QAigcsHZ,
.astro-DXTRX4zL a,
.post-content a {
  color: #9C7A1E;
}

.astro-QAigcsHZ:hover,
.astro-DXTRX4zL a:hover,
.post-content a:hover {
  color: var(--primary, #3F566A);
}

/* Header tagline: cap width and loosen leading so it reads as a quick
   intro line instead of a dense paragraph under the wordmark. */
header p {
  max-width: 34em;
  line-height: 1.6;
}

/* v.71dd15 — layout revision */
/* ================================================================
   Editorial signature pass for Mi Balcón Verde (hp-hidro-es).
   Astro build, stable class hashes. Homepage = <main> with 25 direct
   <article> children (NO tail wrapper). Article page = main:has(> time).
   theme-assets/*.jpg 404 for this site → section breaks are CSS gradient
   bands, not photo strips. Moment colour #7C4A5C used in exactly 2 places
   (hero drop cap + Editor's Picks accent). Selectors are element/structural
   with pseudo-class weight budgeted to beat the base .astro-* descendant
   rules (see css-pipeline-gotchas #2).
   ================================================================ */

/* ─── Webfonts: @font-face (top-of-file @import is dropped post-concat) ─── */
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/fraunces/v38/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeP2Xz5c.woff2) format('woff2'); }
@font-face { font-family:'Fraunces'; font-style:italic; font-weight:400 600; font-display:swap;
  src:url(https://fonts.gstatic.com/s/fraunces/v38/6NU58FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChjeveQ7ZXk8g.woff2) format('woff2'); }
@font-face { font-family:'Nunito Sans'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-tQKr51.woff2) format('woff2'); }
@font-face { font-family:'Nunito Sans'; font-style:italic; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/nunitosans/v19/pe1kMImSLYBIv1o4X1M8cce4OdVisMz5nZRqy6cmmmU3t2FQWEAEOvV9wNvrwlNstMKW3Y6K5WMwXeVy3GboJ0kTHmqP92UnK_IWrgVcw5g.woff2) format('woff2'); }

/* ─── Masthead: full-bleed navy + serif-italic wordmark + kicker + manifesto ─ */
header {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding: 2.7rem 2rem 2.4rem;
  position: relative;
}
header > div:first-of-type {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
header > div:first-of-type::before {
  content: "❧ CUADERNO DE TERRAZA · BARCELONA";
  display: block;
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
header > div:first-of-type > h1 {
  font-family: var(--fh);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.85rem;
}
header > div:first-of-type > p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
header > div:first-of-type::after {
  content: "Una terraza de cuatro metros cuadrados, un sábado cada vez.";
  display: block;
  font-family: var(--fh);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(196, 162, 53, 0.92);
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ─── HOMEPAGE grid  (scope: main:has(> article:nth-of-type(2))) ───────── */
main:has(> article:nth-of-type(2)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 2.8rem;
  align-items: stretch;
  max-width: 880px;
  margin: 3.5rem auto 0;
  padding: 0 24px;
}

/* Generic card — every article gets a soft paper frame; hero/picks/archive
   override below. margin:0 kills the R2 border-bottom stack. */
main:has(> article:nth-of-type(2)) > article {
  background: #f7f1e4;
  border: 1px solid rgba(63, 86, 106, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 1.7rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
main:has(> article:nth-of-type(2)) > article:hover {
  border-color: rgba(196, 162, 53, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
main:has(> article:nth-of-type(2)) > article > h2 {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.55rem;
}
main:has(> article:nth-of-type(2)) > article > h2 a {
  color: var(--primary);
  text-decoration: none;
}
main:has(> article:nth-of-type(2)) > article > h2 a:hover { color: var(--accent); }
main:has(> article:nth-of-type(2)) > article > p:first-of-type {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(63, 86, 106, 0.6);
  margin: 0 0 0.8rem;
}
main:has(> article:nth-of-type(2)) > article > p:nth-of-type(2) {
  font-size: 1rem;
  line-height: 1.6;
  color: #33383d;
  margin: 0 0 1.1rem;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
main:has(> article:nth-of-type(2)) > article > a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--fb);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a15;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
main:has(> article:nth-of-type(2)) > article > a:hover { color: var(--primary); }

/* HERO — article #1 : full width, oversized italic serif title, drop cap,
   byline, "ÚLTIMO EN EL CUADERNO" badge, outlined pill CTA */
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) {
  grid-column: 1 / -1;
  background: #f9f4e8;
  padding: 2.8rem 2.6rem 2.6rem;
  position: relative;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1)::before {
  content: "ÚLTIMO EN EL CUADERNO";
  display: block;
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8a6a15;
  margin-bottom: 1rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > h2 {
  font-family: var(--fh);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > p:first-of-type {
  font-size: 0.75rem;
  color: rgba(63, 86, 106, 0.7);
  margin-bottom: 1.1rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > p:first-of-type::before {
  content: "POR ELENA · ";
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > p:nth-of-type(2) {
  display: block;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2c3136;
  max-width: 60ch;
  -webkit-line-clamp: none;
  overflow: visible;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.8;
  float: left;
  margin: 0.25rem 0.65rem 0 0;
  color: #7C4A5C;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > a {
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  color: var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(1) > a:hover {
  background: var(--primary);
  color: #f9f4e8;
}

/* EDITOR'S PICKS — articles #2 & #3 : paired feature, moment-colour top rule,
   full-width section label above the row, roman numerals top-right */
main:has(> article:nth-of-type(2)) > article:nth-of-type(2),
main:has(> article:nth-of-type(2)) > article:nth-of-type(3) {
  margin-top: 5rem;
  position: relative;
  background: #f9f4e8;
  border-top: 3px solid #7C4A5C;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(2)::before {
  content: "SELECCIÓN DE ELENA · EMPIEZA POR AQUÍ";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1.2rem);
  width: calc(200% + 2rem);
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(63, 86, 106, 0.25);
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(2)::after,
main:has(> article:nth-of-type(2)) > article:nth-of-type(3)::after {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-family: var(--fh);
  font-style: italic;
  font-size: 0.95rem;
  color: #7C4A5C;
  opacity: 0.8;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(2)::after { content: "N.º I"; }
main:has(> article:nth-of-type(2)) > article:nth-of-type(3)::after { content: "N.º II"; }
main:has(> article:nth-of-type(2)) > article:nth-of-type(2) > h2,
main:has(> article:nth-of-type(2)) > article:nth-of-type(3) > h2 { padding-right: 3rem; }

/* SECTION BAND 1 — between picks and journal (above articles #4 & #5) */
main:has(> article:nth-of-type(2)) > article:nth-of-type(4),
main:has(> article:nth-of-type(2)) > article:nth-of-type(5) {
  margin-top: 12rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(4) { position: relative; }
main:has(> article:nth-of-type(2)) > article:nth-of-type(4)::before {
  content: "EN ORDEN DE ESCRITURA";
  position: absolute;
  left: 0;
  bottom: calc(100% + 2rem);
  width: calc(200% + 2rem);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #33485a, #1c2831);
  border-radius: 8px;
  color: #fff;
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* SECTION BAND 2 — between journal and compact archive (above #16 & #17).
   Anchored on #16 (an EVEN card → column 1) so the full-width band spans
   both columns; anchoring on an odd/column-2 card would overflow rightward. */
main:has(> article:nth-of-type(2)) > article:nth-of-type(16),
main:has(> article:nth-of-type(2)) > article:nth-of-type(17) {
  margin-top: 12rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(16) { position: relative; }
main:has(> article:nth-of-type(2)) > article:nth-of-type(16)::before {
  content: "LEER MÁS";
  position: absolute;
  left: 0;
  bottom: calc(100% + 2rem);
  width: calc(200% + 2rem);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(315deg, #2e4152, #1c2831);
  border-radius: 8px;
  color: #fff;
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* COMPACT ARCHIVE — articles #16..#25 : title + date only, denser index feel */
main:has(> article:nth-of-type(2)) > article:nth-of-type(n+16) {
  padding: 1.1rem 2rem;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(n+16) > h2 {
  font-size: 1.05rem;
  margin: 0;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(n+16) > p:first-of-type {
  font-size: 0.68rem;
  margin: 0.3rem 0 0;
}
main:has(> article:nth-of-type(2)) > article:nth-of-type(n+16) > p:nth-of-type(2) { display: none; }
main:has(> article:nth-of-type(2)) > article:nth-of-type(n+16) > a { display: none; }

/* ─── ARTICLE PAGE  (scope: main:has(> time):first-of-type) ────────────── */
main:has(> time):first-of-type > h1:first-of-type {
  font-family: var(--fh);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.6rem;
}
main:has(> time):first-of-type > time {
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(63, 86, 106, 0.6);
}
main:has(> time):first-of-type > article:nth-of-type(1) > p {
  font-size: 1.13rem;
  line-height: 1.8;
}
/* Drop cap on the opening paragraph (navy — moment colour stays reserved) */
main:has(> time):first-of-type > article:nth-of-type(1) > p:first-of-type::first-letter {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 3.1rem;
  line-height: 0.82;
  float: left;
  margin: 0.28rem 0.6rem 0 0;
  color: var(--primary);
}
/* ❧ dinkus divider above each h2 section */
main:has(> time):first-of-type > article:nth-of-type(1) > h2 {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 2.4rem 0 0.7rem;
}
main:has(> time):first-of-type > article:nth-of-type(1) > h2::before {
  content: "❧";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  margin: 0 0 0.9rem;
  font-style: normal;
}
/* Hanging quote on blockquotes */
main:has(> time):first-of-type > article:nth-of-type(1) > blockquote {
  position: relative;
}
main:has(> time):first-of-type > article:nth-of-type(1) > blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.2rem;
  top: -0.4rem;
  font-family: var(--fh);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(196, 162, 53, 0.5);
}
/* Inline affiliate /visit/ links — warm strong links (never a mid-sentence
   pill). Full element path + attribute beats the body-link rule (RULE J). */
main:has(> time):first-of-type > article:nth-of-type(1) > p a[href^="/visit/"],
main:has(> time):first-of-type > article:nth-of-type(1) > ul li a[href^="/visit/"] {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
main:has(> time):first-of-type > article:nth-of-type(1) > p a[href^="/visit/"]:hover,
main:has(> time):first-of-type > article:nth-of-type(1) > ul li a[href^="/visit/"]:hover {
  color: var(--accent);
}

/* ─── Mobile: collapse grid to one column, reset band/label widths ─────── */
@media (max-width: 768px) {
  main:has(> article:nth-of-type(2)) {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2rem;
    max-width: none;
    margin-top: 2.5rem;
    padding: 0 18px;
  }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(1) { padding: 2rem 1.5rem; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(2) { margin-top: 4.5rem; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(3) { margin-top: 0; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(2)::before { width: 100%; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(4) { margin-top: 9rem; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(5) { margin-top: 0; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(4)::before { width: 100%; height: 120px; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(16) { margin-top: 9rem; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(17) { margin-top: 0; }
  main:has(> article:nth-of-type(2)) > article:nth-of-type(16)::before { width: 100%; height: 120px; }
  header > div:first-of-type { padding: 0 18px; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* refix iter1: M6 photo strips, M7 boxed archive tail */
:root main:not(:has(> h1)):has(> article:nth-of-type(4)) > article:nth-of-type(4)::before {
  height: 200px;
  background:
    linear-gradient(rgba(15, 22, 28, 0.68), rgba(15, 22, 28, 0.40)),
    url("/theme-assets/article-hero.jpg") center 30% / cover no-repeat,
    url("/img/las-mejores-plantas-para-balcones-con-poca-luz-en-pisos-del-eixample/hero.webp") center 42% / cover no-repeat,
    var(--primary);
  color: #faf5ec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

:root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(16)::before {
  height: 200px;
  background:
    linear-gradient(rgba(15, 22, 28, 0.70), rgba(15, 22, 28, 0.38)),
    url("/theme-assets/article-hero.jpg") center 70% / cover no-repeat,
    url("/img/experiencia-hidroponia-casera-principiantes-balcon/hero.webp") center 62% / cover no-repeat,
    var(--primary);
  color: #faf5ec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

:root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(n+16) {
  background: #f9f4e8;
  border: 1px solid rgba(63, 86, 106, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  min-height: 116px;
  padding: 1.35rem 1.4rem;
}

:root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(n+16):hover {
  border-color: rgba(196, 162, 53, 0.50);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

:root main:not(:has(> h1)) > section {
  grid-column: 1 / -1;
}

:root main:not(:has(> h1)) > section > ul {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

:root main:not(:has(> h1)) > section > ul > li {
  background: #f9f4e8;
  border: 1px solid rgba(63, 86, 106, 0.14);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  min-height: 84px;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:root main:not(:has(> h1)) > section > ul > li:hover {
  border-color: rgba(196, 162, 53, 0.50);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

:root main:not(:has(> h1)) > section > ul > li > a {
  color: var(--primary);
  font-family: var(--fh);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  text-decoration: none;
}

@media (min-width: 769px) {
  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(1) {
    grid-column: 1 / -1;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(n+2):nth-of-type(-n+15) {
    grid-column: span 3;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(n+16) {
    grid-column: span 2;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(4)) > article:nth-of-type(4),
  :root main:not(:has(> h1)):has(> article:nth-of-type(4)) > article:nth-of-type(5),
  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(16),
  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(17),
  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(18) {
    margin-top: 15rem;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(16)::before {
    width: calc(300% + 4rem);
  }
}

/* refix iter1: S6 article persona line */
:root main:has(> h1):has(> time) > time {
  display: block;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

:root main:has(> h1):has(> time) > time::after {
  content: " · Por Elena · 6 min lectura · Barcelona";
  color: rgba(63, 86, 106, 0.72);
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)):has(> article:nth-of-type(4)) > article:nth-of-type(4) {
    margin-top: 13rem;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(16) {
    margin-top: 13rem;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(4)) > article:nth-of-type(4)::before,
  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(16)::before {
    bottom: calc(100% + 1.5rem);
    height: 180px;
    letter-spacing: 0.22em;
    line-height: 1.4;
    padding: 0 1rem;
    text-align: center;
    width: 100%;
  }

  :root main:not(:has(> h1)):has(> article:nth-of-type(16)) > article:nth-of-type(n+16),
  :root main:not(:has(> h1)) > section > ul > li {
    min-height: 0;
    padding: 1.2rem 1.3rem;
  }

  :root main:not(:has(> h1)) > section > ul {
    grid-template-columns: 1fr;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Cup-of-Jo-personal overlay=55% grid=mixed scale=dramatic family=articles-section */

/* ── Archive strip above <section> tail (overlay 55%) ── */
:root main:not(:has(> h1)) > section {
  position: relative;
  padding-top: 260px;
  grid-column: 1 / -1;
}
:root main:not(:has(> h1)) > section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 240px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  border-radius: 8px;
}


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > article:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > article:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > article:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > article:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > article:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > article:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > article:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > article:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1))::before,
  :root main:not(:has(> h1))::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

