*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.astro-1FBAbxBv{max-width:860px;margin:0 auto;padding:0 20px}
.astro-e7qVRUKV{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.astro-e7qVRUKV h1{font-size:22px;font-weight:700;margin-bottom:2px}
.astro-e7qVRUKV p{font-size:14px;color:#666}
.astro-e7qVRUKV a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.astro-ZzY6YzS6{display:flex;flex-direction:column;gap:20px}
.astro-Ofdgr7Qc{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.astro-Ofdgr7Qc:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.astro-Ofdgr7Qc h2{font-size:19px;margin-bottom:6px}
.astro-Ofdgr7Qc h2 a{color:#1a1a1a;text-decoration:none}
.astro-Ofdgr7Qc .astro-gdFBH33S{font-size:12px;color:#999;margin-bottom:8px}
.astro-Ofdgr7Qc p{font-size:14px;color:#555;margin-bottom:12px}
.astro-H7QgePdB{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.astro-H7QgePdB:hover{background:#4752c4}
.astro-JiaK3pw1{padding-bottom:60px}
.astro-JiaK3pw1 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.astro-JiaK3pw1 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.astro-JiaK3pw1 h2{font-size:22px;margin:32px 0 12px}
.astro-JiaK3pw1 h3{font-size:18px;margin:24px 0 8px}
.astro-JiaK3pw1 p{margin-bottom:16px}
.astro-JiaK3pw1 ul,.astro-JiaK3pw1 ol{margin:0 0 16px 24px}
.astro-JiaK3pw1 a{color:#5865f2}
.astro-JiaK3pw1 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.astro-FxUqEBbz{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.astro-FxUqEBbz a{color:#999;text-decoration:none}
.astro-7oWN7QRm{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.astro-ouqAnXGA{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.astro-0i6PscCd{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.astro-PDdmAZwc{text-align:center;margin:0 0 24px}
.astro-7mrr6En8{max-width:100%;height:auto;border-radius:12px}
.astro-vNgo6Zwq{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.astro-vNgo6Zwq h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.astro-2DLvdyle{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.astro-z6WoEg66{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.astro-z6WoEg66:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Caveat:wght@400;700&display=swap');
body{font-family:'Quicksand',sans-serif;color:#2D2D2D;background:#FFF9F8}
.astro-e7qVRUKV{background:#4A192C;color:#fff}
.astro-e7qVRUKV h1{font-family:'Caveat',serif;color:#fff}
.astro-e7qVRUKV p{color:rgba(255,255,255,.75)}
.astro-e7qVRUKV a{color:#fff;text-decoration:none}
.card h2{font-family:'Caveat',serif}
.card h2 a{color:#4A192C}
.card h2 a:hover{color:#FF6B6B}
.read-more{color:#FF6B6B}
.article-content h1{font-family:'Caveat',serif}
.article-content h2{font-family:'Caveat',serif}
.article-content a{color:#FF6B6B}
.article-content img{border-radius:12px}
.affiliate-disclosure{border-radius:12px}
.ymyl-disclaimer{border-radius:12px}
/* === Custom === */
/* v.195031 — layout revision */
/*
 * mu-mani-es — Trazo Domingo
 * Palette : terracotta esmalte + sage salvia + vino-moment (#8B2E2E)
 * Fonts   : Petrona (serif display/body) + Manrope (tracked sans meta)
 * Template: card (live Astro build — structural selectors only)
 *
 * NOTE: the top-of-file @import is dead in this pipeline (concatenated after
 * rules → dropped). Webfonts are declared as position-independent @font-face.
 * Every scoped rule carries :root + a class-pseudo so it out-specifies the
 * template's .astro-xxxxxx pairs (up to (0,3,0)).
 */

@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/petrona/v38/mtG64_NXL7bZo9XXgXJYtQ.woff2) format('woff2');
}
@font-face {
  font-family: 'Petrona';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/petrona/v38/mtG44_NXL7bZo9XXgXdot0MV.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
}

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --color-bg:              #FBF6F1;
  --color-surface:         #F6E9DF;
  --color-surface-alt:     #E7ECE0;
  --color-text:            #372B24;
  --color-text-muted:      #7C6D62;
  --color-heading:         #472A1F;
  --color-accent:          #C96A50;
  --color-accent-hover:    #A34F39;
  --color-accent-light:    #E2A88F;
  --color-accent-secondary:#6B8F71;
  --color-border:          #E6D5C7;
  --color-link:            #C96A50;
  --color-link-hover:      #A34F39;
  --color-moment:          #8B2E2E;   /* vino de esmalte — used in exactly 2 places (hero) */

  --font-heading: 'Petrona', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --font-size-base: 17px;
  --line-height-body: 1.7;

  --radius: 8px;
  --max-width-home: 1080px;
  --max-width-read: 720px;
}

/* ─── Base ──────────────────────────────────────────────────── */
:root body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root h1, :root h2, :root h3, :root h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin-top: 0;
}

:root a {
  color: var(--color-link);
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent-light);
  transition: color .2s ease, text-decoration-color .2s ease, background-color .2s ease;
}
:root a:hover { color: var(--color-link-hover); }

/* ══════════════════════════════════════════════════════════════
   MASTHEAD  (body > header — full-bleed photo band, signature)
   ══════════════════════════════════════════════════════════════ */
:root body > header:first-of-type {
  max-width: none;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  padding: clamp(3.5rem, 9vw, 6rem) 1.5rem clamp(2.75rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  box-shadow: none;
  border-bottom: 3px solid var(--color-accent);
  background:
    linear-gradient(180deg, rgba(34,42,36,.60), rgba(48,34,28,.52)),
    var(--color-accent-secondary) url("/theme-assets/front-image.jpg") center/cover no-repeat;
}
/* soft fade into the cream body — kills the hard hero/body edge */
:root body > header:first-of-type::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  background: linear-gradient(rgba(251,246,241,0), var(--color-bg));
  pointer-events: none;
}
:root body > header:first-of-type h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: #FBF6F1;
  margin: 0 0 .3rem;
  letter-spacing: .01em;
}
:root body > header:first-of-type p {
  color: rgba(251,246,241,.82);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 auto;
}
/* signature manifesto line */
:root body > header:first-of-type > div::after {
  content: "un domingo · un pincel · una línea que todavía tiembla";
  display: block;
  margin: 1.1rem auto 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(251,246,241,.9);
  letter-spacing: .01em;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE  (main:not(:has(> article)))
   main children: div:first-of-type = card grid ; div:not = archive tail
   ══════════════════════════════════════════════════════════════ */
:root main:nth-of-type(1):not(:has(> article)) {
  max-width: var(--max-width-home);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* grid wrapper */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type {
  --gap: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem var(--gap);
  align-items: stretch;
  margin: 0;
}

/* ── shared card shell ── */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 4px rgba(55,43,36,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:hover {
  box-shadow: 0 6px 20px rgba(55,43,36,.10);
  transform: translateY(-2px);
}
/* date / kicker */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > p:first-of-type {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-accent-hover);
  margin: 0 0 .7rem;
}
/* title */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.28;
  margin: 0 0 .55rem;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > h2 > a {
  color: var(--color-heading);
  text-decoration: none;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > h2 > a:hover {
  color: var(--color-accent);
}
/* excerpt (clamped for equal heights) */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > p:last-of-type {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* CTA — pill, bottom-aligned, localized to ES */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > a {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  background: var(--color-accent);
  color: #FBF6F1;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0;
  text-decoration: none;
  line-height: 1;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > a::after {
  content: "Leer la entrada  →";
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div > a:hover {
  background: var(--color-accent-hover);
}

/* ── HERO (card 1) — the loud voice, full width ── */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) {
  grid-column: 1 / -1;
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(107,143,113,.16), transparent 55%),
    var(--color-surface);
  border-color: #E0CBBB;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1)::before {
  content: "Último del cuaderno";
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--color-accent-hover);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > p:first-of-type {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-text-muted);
  margin-bottom: .9rem;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > p:first-of-type::after {
  content: " · por Adela Mendoza";
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > h2 {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: .8rem;
  max-width: 20ch;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > p:last-of-type {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 60ch;
  -webkit-line-clamp: 4;
  margin-bottom: 1.5rem;
}
/* drop cap — moment colour, use 2 of 2 */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > p:last-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 3.3em;
  line-height: .78;
  color: var(--color-moment);            /* moment colour — 1 of 2 (hero drop cap) */
  margin: .04em .1em 0 0;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > a {
  background: transparent;
  color: var(--color-accent-hover);
  border: 1.5px solid var(--color-accent);
  padding: .6rem 1.4rem;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > a::after {
  content: "Leer el ensayo  →";
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(1) > a:hover {
  background: var(--color-accent);
  color: #FBF6F1;
}

/* ── EDITOR'S PICKS band (cards 2 & 3) — paired feature ── */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2),
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(3) {
  background: var(--color-surface-alt);
  border-color: #D5DECB;
  margin-top: 4.75rem;   /* room for the full-width band label */
}
/* full-width label above the pair (anchored on the left card, card 2) */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2)::before {
  content: "Para empezar — leé estas primero";
  position: absolute;
  left: 0;
  right: calc(-100% - var(--gap));
  bottom: calc(100% + 1.6rem);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-accent-secondary);
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--color-border);
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2) > p:first-of-type,
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(3) > p:first-of-type {
  color: var(--color-accent-secondary);
}

/* ── STRIP 1 : "MÁS ABAJO" — photo band between picks and journal ──
   anchored on the first journal card (card 4, left col); card 4 & 5
   both get the top margin so the whole row opens (see pipeline gotcha #8). */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(4),
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(5) {
  margin-top: 15rem;
}
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(4)::before {
  content: "Más abajo";
  position: absolute;
  left: 0;
  right: calc(-100% - var(--gap));
  bottom: calc(100% + 2rem);
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: #FBF6F1;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    var(--color-accent-secondary) url("/theme-assets/post-header.jpg") center 30% / cover no-repeat;
}

/* ── STRIP 2 : "VER MÁS" — grid ::after becomes a full-width grid item ── */
:root main:nth-of-type(1):not(:has(> article)) > div:first-of-type::after {
  content: "Ver más";
  grid-column: 1 / -1;
  height: 200px;
  margin-top: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: #FBF6F1;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    var(--color-accent-secondary) url("/theme-assets/post-header.jpg") center 70% / cover no-repeat;
}

/* ══════════════════════════════════════════════════════════════
   ARCHIVE TAIL  (main > div:not(:first-of-type)) — full-width index
   ══════════════════════════════════════════════════════════════ */
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) {
  margin-top: 3.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  align-items: stretch;
}
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type)::before {
  content: "Entradas anteriores";
  grid-column: 1 / -1;
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-accent-hover);
  padding-bottom: .6rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--color-border);
}
/* each older-entry link = a boxed cream card, same design system as the journal cards above */
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) > a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(55,43,36,.05);
  padding: 20px 22px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, color .2s ease;
}
:root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) > a:hover {
  color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(55,43,36,.10);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE  (main:has(> article))
   main children: h1, time, article, div (related)
   ══════════════════════════════════════════════════════════════ */
:root main:nth-of-type(1):has(> article) {
  max-width: var(--max-width-read);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
:root main:nth-of-type(1):has(> article) > h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  line-height: 1.1;
  margin: .4rem 0 .6rem;
}
:root main:nth-of-type(1):has(> article) > time {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--color-accent-hover);
  margin-bottom: 2.25rem;
}
:root main:nth-of-type(1):has(> article) > article > p {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 1.35rem;
  max-width: 66ch;
}
:root main:nth-of-type(1):has(> article) > article > h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  line-height: 1.22;
  margin: 2.6rem 0 1rem;
  text-align: center;
}
/* dinkus divider above each section heading */
:root main:nth-of-type(1):has(> article) > article > h2::before {
  content: "✷ ✷ ✷";
  display: block;
  font-size: .7em;
  letter-spacing: .5em;
  color: var(--color-accent-light);
  text-align: center;
  margin-bottom: 1.4rem;
}
/* body links */
:root main:nth-of-type(1):has(> article) > article a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-light);
}
/* affiliate CTA — inline warm strong link (mid-sentence), must beat body link.
   moment colour — 2 of 2 (the one commercial voice, distinct from editorial links) */
:root main:nth-of-type(1):has(> article) > article > p a[href^="/suggest/"],
:root main:nth-of-type(1):has(> article) > article > ul a[href^="/suggest/"],
:root main:nth-of-type(1):has(> article) > article a[href^="/suggest/"] {
  color: var(--color-moment);
  font-weight: 700;
  text-decoration-color: var(--color-moment);
  text-underline-offset: 2px;
}
:root main:nth-of-type(1):has(> article) > article > p a[href^="/suggest/"]:hover,
:root main:nth-of-type(1):has(> article) > article a[href^="/suggest/"]:hover {
  color: var(--color-accent);
}
/* blockquote — hanging quote */
:root main:nth-of-type(1):has(> article) > article blockquote {
  position: relative;
  margin: 2rem 0;
  padding: .4rem 0 .4rem 2rem;
  border-left: 3px solid var(--color-accent-secondary);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-heading);
}
:root main:nth-of-type(1):has(> article) > article blockquote::before {
  content: "\201C";
  position: absolute;
  left: .45rem; top: -.15em;
  font-size: 2.6rem;
  color: var(--color-accent-light);
  font-family: var(--font-heading);
}
/* disclaimer / aviso */
:root main:nth-of-type(1):has(> article) > article > aside {
  background: var(--color-surface-alt);
  border: 1px solid #D5DECB;
  border-left: 3px solid var(--color-accent-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.35rem;
  margin-top: 2.5rem;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* related articles */
:root main:nth-of-type(1):has(> article) > div:first-of-type {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
:root main:nth-of-type(1):has(> article) > div:first-of-type > h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
:root main:nth-of-type(1):has(> article) > div:first-of-type a {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(55,43,36,.05);
  padding: .85rem 1.15rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 15.5px;
  line-height: 1.35;
  text-decoration: none;
}
:root main:nth-of-type(1):has(> article) > div:first-of-type a:hover {
  color: var(--color-accent);
  box-shadow: 0 3px 12px rgba(55,43,36,.1);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
:root body > footer:last-of-type {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
:root body > footer:last-of-type a { color: var(--color-accent-hover); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2),
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(3) {
    margin-top: 0;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2) {
    margin-top: 4rem;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(2)::before {
    right: 0;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(4) {
    margin-top: 14rem;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(5) {
    margin-top: 0;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:first-of-type > div:nth-of-type(4)::before {
    right: 0;
  }
  :root main:nth-of-type(1):not(:has(> article)) > div:not(:first-of-type) {
    grid-template-columns: 1fr;
  }
}


/* 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;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Substack-modern overlay=25% grid=equal scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 25%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── 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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div) > div: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)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

