*{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-nQ6CJjr7{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-yueHgJ59{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.astro-wkYh1Y2f{border-bottom:1px solid #eee;padding:24px 0}
.astro-wkYh1Y2f h2{font-size:20px;margin-bottom:8px}
.astro-wkYh1Y2f h2 a{color:#1a1a2e;text-decoration:none}
.astro-wkYh1Y2f h2 a:hover{color:#e94560}
.astro-wkYh1Y2f .date{font-size:13px;color:#999;margin-bottom:8px}
.astro-x4t6UEE8{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.astro-HZ6jRhUy{padding-bottom:60px}
.astro-HZ6jRhUy h1{font-size:32px;margin-bottom:8px}
.astro-HZ6jRhUy time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.astro-HZ6jRhUy h2{font-size:22px;margin:32px 0 12px}
.astro-HZ6jRhUy h3{font-size:18px;margin:24px 0 8px}
.astro-HZ6jRhUy p{margin-bottom:16px}
.astro-HZ6jRhUy ul,.astro-HZ6jRhUy ol{margin:0 0 16px 24px}
.astro-HZ6jRhUy a{color:#e94560}
.astro-HZ6jRhUy 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-F29SYBQY{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.astro-y7NtHviu{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.astro-14OLK86g{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.astro-hxZQMQv7{text-align:center;margin:0 0 20px}
.astro-wX0KH8hB{max-width:100%;height:auto;border-radius:6px}
.astro-lCECzZ0b{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.astro-lCECzZ0b h3{font-size:18px;margin-bottom:12px}
.astro-lCECzZ0b ul{list-style:none;padding:0}
.astro-lCECzZ0b li{padding:4px 0}
.astro-lCECzZ0b a{color:#e94560;text-decoration:none}
.astro-y92D1fOH{padding:20px 0}
.astro-y92D1fOH ul{list-style:none;padding:0}
.astro-y92D1fOH li{padding:5px 0;font-size:15px}
.astro-y92D1fOH a{color:#1a1a2e;text-decoration:none}
.astro-y92D1fOH a:hover{color:#e94560}
/* === Theme === */
:root{--primary:#7A3B5C;--accent:#C4973A;--moment:#8B2E2E;--bg:#F7F3EC;--fg:#2A1F1A;--border:#DDD5C4;--r:3px;--ft:'Petrona';--fb:'Karla';--fm:'Karla';--fh:'DM Serif Display'}
/* === Custom === */
/* Design ref: Libros de texto SEP primaria (1985-1995) — bw-bebe-es */
/* Persona: Adriana Navarro, mamá queretana, cocina complementaria */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Petrona:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --primary: #7A3B5C;
  --accent: #C4973A;
  --bg: #F7F3EC;
  --fg: #2A1F1A;
  --border: #DDD5C4;
  --r: 3px;
  --fb: 'Karla';
  --fh: 'DM Serif Display';
  --card-bg: #FDFAF4;
  --muted: #6B5A50;
  --max-w: 820px;
  --line-h: 1.78;
}

/* === Elementos base === */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb), system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: var(--line-h);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: var(--fh), Georgia, serif;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.18;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.22;
  color: var(--primary);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

h3 {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--primary);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

h4 {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.3em;
  margin-bottom: 0.3em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h5 {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 1.2em;
  margin-bottom: 0.3em;
}

h6 {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1.1em;
  margin-bottom: 0.3em;
}

p {
  margin-top: 0;
  margin-bottom: 1.15em;
  max-width: 68ch;
}

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

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

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

blockquote {
  margin: 1.8em 0 1.8em 0;
  padding: 1em 1.5em 1em 1.3em;
  border-left: 4px solid var(--accent);
  background-color: var(--card-bg);
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  border-radius: 0 var(--r) var(--r) 0;
}

blockquote p {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.6em;
  margin-top: 0;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.45em;
  font-size: 1rem;
}

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

strong {
  font-weight: 700;
  color: var(--primary);
}

em {
  font-style: italic;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: var(--r);
  font-size: 0.9em;
  color: var(--primary);
}

pre {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2em 1.5em;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}

/* === Encabezado del sitio === */

header,
.site-header {
  background-color: var(--primary);
  color: var(--bg);
  padding: 2.2rem 2rem 1.8rem;
  position: relative;
  border-bottom: 3px solid var(--accent);
}

header h1,
.site-header h1,
.site-title {
  font-family: var(--fh), Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--bg);
  margin: 0 0 0.25em;
  letter-spacing: -0.01em;
}

header p,
.site-header p,
.site-description {
  font-family: var(--fb), system-ui, sans-serif;
  color: rgba(247, 243, 236, 0.80);
  font-size: 1rem;
  margin: 0;
  max-width: 58ch;
  font-style: italic;
}

header a,
.site-header a {
  color: var(--bg);
  text-decoration: none;
}

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

/* === Navegación === */

nav,
.site-nav {
  background-color: var(--primary);
  border-top: 1px solid rgba(247, 243, 236, 0.18);
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

nav a,
.site-nav a {
  color: rgba(247, 243, 236, 0.88);
  text-decoration: none;
  display: inline-block;
  padding: 0.65rem 1rem;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.1s ease;
}

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

/* === Área de contenido principal === */

main,
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 3.5rem;
}

/* === Tarjetas de artículo === */

.astro-wkYh1Y2f,
.article-card,
.post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--r);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
}

.astro-wkYh1Y2f h2,
.article-card h2,
.post-card h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.45em;
  color: var(--primary);
}

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

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

.astro-wkYh1Y2f p,
.post-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.85em;
}

.card-category,
.post-category,
.category-label {
  display: inline-block;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5em;
}

.astro-x4t6UEE8 {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.astro-x4t6UEE8:hover {
  color: var(--accent);
  border-bottom-color: var(--primary);
}

/* === Contenido del artículo === */

.astro-HZ6jRhUy h1 {
  font-size: 2.2rem;
  font-family: var(--fh), Georgia, serif;
  font-weight: 400;
  color: var(--primary);
}

.astro-HZ6jRhUy h2 {
  font-size: 1.55rem;
  font-family: var(--fh), Georgia, serif;
  font-weight: 400;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

.astro-HZ6jRhUy a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.astro-HZ6jRhUy img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  margin-bottom: 1.5rem;
}

/* === Pie de página === */

footer,
.site-footer {
  background-color: var(--primary);
  color: rgba(247, 243, 236, 0.72);
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.88rem;
  border-top: 3px solid var(--accent);
  text-align: center;
  font-family: var(--fb), system-ui, sans-serif;
}

footer a,
.site-footer a {
  color: rgba(247, 243, 236, 0.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(247, 243, 236, 0.45);
}

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

/* === Divulgación afiliados y aviso YMYL === */

.affiliate-disclosure,
.ymyl-disclaimer {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: var(--r);
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2em 0;
  line-height: 1.55;
  font-style: italic;
}

/* === R2 fixes (2026-06-16T09:40:20.050508+00:00) === */

article p {
  line-height: 1.8;
}

article h2 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

article h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.35em;
  letter-spacing: 0.01em;
}

main time {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-top: 0.4em;
  margin-bottom: 1.4em;
  opacity: 0.85;
}

header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

header a {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.astro-wkYh1Y2f h2,
.article-card h2,
.post-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}

/* === R3 fixes (2026-06-16T10:30:20.883502+00:00) === */

header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

article + section,
.bld-related {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.entry-summary,
.post-excerpt,
article .excerpt,
.bld-excerpt,
.post-meta + p {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.5;
}

article time,
.entry-date {
  opacity: 0.85;
  font-size: 0.875rem;
  font-weight: 500;
}

article p strong,
.bld-content p strong {
  font-weight: 700;
  color: inherit;
  background-color: rgba(155, 100, 60, 0.08);
  padding: 0 2px;
  border-radius: 2px;
}

.bld-content h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.35em;
  letter-spacing: 0.01em;
}

/* === R4 fixes (2026-06-16T11:10:18.900422+00:00) === */

header {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

article ul li {
  margin-bottom: 0.55em;
}

section.astro-lCECzZ0b {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 2rem;
  margin-top: 3rem;
}

.astro-y7NtHviu {
  border-left: 3px solid currentColor;
  padding: 0.8rem 1rem;
  background-color: rgba(0,0,0,0.04);
  font-size: 0.88em;
}

/* v.7d160e — layout revision */
/* ============================================================
   EDITORIAL SIGNATURE — bw-bebe-es · "Bocarela"
   Adriana Navarro · diario de cocina · Querétaro
   Display: DM Serif Display (italic) · Body: Petrona ·
   Meta/kickers: Karla (uppercase, tracked)
   Moment colour #8B2E2E used ×2 (hero drop cap + article drop cap)
   Structure: Astro flat-feed — homepage main:not(:has(>h1)),
   article main:has(>h1); trailing <section> = archive/related.
   Theme-assets 404 → gradient over dark plum base (reads either way).
   ============================================================ */

:root {
  --paper: #FAF5EC;
  --paper2: #F1E7D6;
  --moment: #8B2E2E;
  --fd: 'DM Serif Display';
  --fbody: 'Petrona';
  --fmeta: 'Karla';
  --edge: rgba(122, 59, 92, .16);
}

/* body voice → warm serif (recetario feel, not startup sans) */
:root body { font-family: var(--fbody), Georgia, serif; }

/* ---------- MASTHEAD ---------- */
:root header {
  background-color: var(--primary);
  background-image: linear-gradient(150deg, rgba(58,24,40,.86), rgba(122,59,92,.72)), url("/theme-assets/top-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--accent);
  padding: 54px 24px 46px;
  text-align: center;
}
:root header > div { max-width: 720px; margin: 0 auto; padding: 0; }
:root header > div::before {
  content: "DIARIO DE COCINA · QUERÉTARO, MÉXICO";
  display: block;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #EBC98A;
  margin-bottom: 16px;
}
:root header h1, :root header .site-title {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
  color: #F7EFDD;
  text-shadow: 0 2px 16px rgba(30,12,20,.4);
  margin: 0 0 14px;
}
:root header h1 + p, :root header .site-description {
  font-family: var(--fbody), Georgia, serif;
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(247,239,221,.9);
  max-width: 540px;
  margin: 0 auto;
}
:root header > div::after {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin: 22px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='none' stroke='%23C4973A' stroke-width='2'/%3E%3Cellipse cx='32' cy='24' rx='7' ry='9' fill='none' stroke='%23C4973A' stroke-width='2.4'/%3E%3Cline x1='32' y1='33' x2='32' y2='47' stroke='%23C4973A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .95;
}

/* ================= HOMEPAGE ================= */
:root main:has(> article > .date) {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 40px;
  align-items: stretch;
  padding-top: 56px;
}

/* base feed card (every article w/ .date) */
:root main:has(> article > .date) > article {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  padding: 26px 32px 24px;
  margin: 0;
}
:root main:has(> article > .date) > article > .date {
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
:root main:has(> article > .date) > article > h2 { margin: 0 0 12px; }
:root main:has(> article > .date) > article > h2 a {
  font-family: var(--fd), Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.22;
  color: var(--primary);
  text-decoration: none;
}
:root main:has(> article > .date) > article > h2 a:hover { color: var(--accent); }
:root main:has(> article > .date) > article > p:not(.date) {
  font-family: var(--fbody), Georgia, serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  opacity: .9;
  max-width: 64ch;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:root main:has(> article > .date) > article > a:last-child {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,151,58,.5);
  padding: 2px 0;
  background: transparent;
}
:root main:has(> article > .date) > article > a:last-child:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- HERO (1st) --- */
:root main:has(> article > .date) > article:nth-of-type(1) {
  grid-column: 1 / -1;
  padding: 42px 48px 40px;
  border-color: rgba(196,151,58,.34);
  box-shadow: 0 3px 20px rgba(58,24,40,.1);
}
:root main:has(> article > .date) > article:nth-of-type(1)::before {
  content: "ÚLTIMO EN LA TRONA";
  display: inline-block;
  align-self: flex-start;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--primary);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  order: -2;
}
:root main:has(> article > .date) > article:nth-of-type(1) > h2 { margin: 0 0 14px; }
:root main:has(> article > .date) > article:nth-of-type(1) > h2 a {
  font-style: italic;
  font-size: 46px;
  line-height: 1.08;
}
:root main:has(> article > .date) > article:nth-of-type(1) > .date {
  order: -1;
  margin-bottom: 6px;
}
/* byline block — fills the row, balanced (Rule 4) */
:root main:has(> article > .date) > article:nth-of-type(1) > .date::after {
  content: " · POR ADRIANA NAVARRO · 6 MIN DE LECTURA";
}
:root main:has(> article > .date) > article:nth-of-type(1) > p:not(.date) {
  font-size: 20px;
  line-height: 1.5;
  opacity: .96;
  max-width: 62ch;
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  margin-bottom: 24px;
}
:root main:has(> article > .date) > article:nth-of-type(1) > p:not(.date)::first-letter {
  float: left;
  font-family: var(--fd), Georgia, serif;
  font-size: 66px;
  line-height: .74;
  color: var(--moment);
  margin: 6px 12px 0 0;
}
:root main:has(> article > .date) > article:nth-of-type(1) > a:last-child {
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 11px 24px;
  letter-spacing: .14em;
  color: var(--primary);
}
:root main:has(> article > .date) > article:nth-of-type(1) > a:last-child:hover {
  background: var(--primary);
  color: var(--paper);
  border-color: var(--primary);
}

/* --- EDITOR'S PICK (2nd) · one to read next --- */
:root main:has(> article > .date) > article:nth-of-type(2) {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 30px 40px 28px;
  background: var(--paper2);
  border-color: rgba(196,151,58,.34);
}
:root main:has(> article > .date) > article:nth-of-type(2)::before {
  content: "PARA LEER DESPUÉS — LA RECOMENDACIÓN DE ADRIANA";
  display: block;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(122,59,92,.24);
}
:root main:has(> article > .date) > article:nth-of-type(2) > h2 a {
  font-style: italic;
  font-size: 29px;
  line-height: 1.16;
}
:root main:has(> article > .date) > article:nth-of-type(2) > p:not(.date) {
  font-size: 17px;
  max-width: 66ch;
}

/* --- JOURNAL LEAD (3rd) + STRIP 1 --- */
:root main:has(> article > .date) > article:nth-of-type(3) {
  grid-column: 1 / -1;
  margin-top: 34px;
  padding: 0 34px 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
:root main:has(> article > .date) > article:nth-of-type(3)::before {
  content: "EN ORDEN DE ESCRITURA";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: 0 -34px 34px;
  background-color: #3d1f2a;
  background-image: linear-gradient(rgba(42,18,26,.72), rgba(42,18,26,.42)), url("/theme-assets/chapter-cover.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-radius: 8px;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F6EFE0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
:root main:has(> article > .date) > article:nth-of-type(3) > h2 a {
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
}
:root main:has(> article > .date) > article:nth-of-type(3) > p:not(.date) {
  font-size: 16.5px;
  max-width: 66ch;
}

/* --- ARCHIVE TAIL <section> + STRIP 2 (full width, magazine index) --- */
:root main:has(> article > .date) > section {
  grid-column: 1 / -1;
  margin-top: 46px;
  padding: 0;
  background: transparent;
  border: 0;
}
:root main:has(> article > .date) > section::before {
  content: "TODAS LAS ENTRADAS";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  margin: 0 0 30px;
  background-color: #3d1f2a;
  background-image: linear-gradient(rgba(42,18,26,.72), rgba(42,18,26,.42)), url("/theme-assets/chapter-cover.jpg");
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  border-radius: 8px;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F6EFE0;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
:root main:has(> article > .date) > section > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
:root main:has(> article > .date) > section > ul > li {
  break-inside: avoid;
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px dotted rgba(122,59,92,.24);
}
:root main:has(> article > .date) > section > ul > li > a {
  font-family: var(--fbody), Georgia, serif;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--fg);
  text-decoration: none;
}
:root main:has(> article > .date) > section > ul > li > a:hover { color: var(--primary); }

/* ================= ARTICLE PAGE ================= */
:root main:has(> h1) { max-width: 760px; }
:root main:has(> h1) > h1 {
  font-family: var(--fd), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--primary);
  margin: 8px 0 6px;
}
:root main:has(> h1) > time {
  display: block;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
  opacity: 1;
}

/* article body */
:root main:has(> h1) > article > p {
  font-family: var(--fbody), Georgia, serif;
  font-size: 18.5px;
  line-height: 1.78;
  color: var(--fg);
  max-width: 66ch;
  margin: 0 0 20px;
}
/* first-paragraph drop cap — moment colour, use #2 */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--fd), Georgia, serif;
  font-size: 62px;
  line-height: .74;
  color: var(--moment);
  margin: 6px 12px 0 0;
}
:root main:has(> h1) > article > h2 {
  font-family: var(--fd), Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: var(--primary);
  border-bottom: 0;
  margin: 1.9em 0 .5em;
}
/* dinkus between sections */
:root main:has(> h1) > article > h2:not(:first-of-type)::before {
  content: "✷ ✷ ✷";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: .5em;
  font-weight: 400;
  margin: 0 auto .7em;
  opacity: .7;
}
:root main:has(> h1) > article > h3 {
  font-family: var(--fd), Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--accent);
  margin: 1.5em 0 .4em;
}

/* article images */
:root main:has(> h1) > article > div:has(> img) { margin: 0 0 26px; }
:root main:has(> h1) > article img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 8px;
}

/* body links */
:root main:has(> h1) > article > p a,
:root main:has(> h1) > article > ul li a,
:root main:has(> h1) > article > ol li a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}
:root main:has(> h1) > article > p a:hover { color: var(--accent); }

/* affiliate CTA pills — /out/ (full path + attr beats body-link, Rule J) */
:root main:has(> h1) > article > p a[href^="/out/"],
:root main:has(> h1) > article > ul li a[href^="/out/"],
:root main:has(> h1) > article > ol li a[href^="/out/"] {
  display: inline-block;
  background: var(--accent);
  color: #2A1206;
  border-radius: 6px;
  padding: 5px 14px;
  text-decoration: none;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-underline-offset: 0;
}
:root main:has(> h1) > article > p a[href^="/out/"]:hover,
:root main:has(> h1) > article > ul li a[href^="/out/"]:hover,
:root main:has(> h1) > article > ol li a[href^="/out/"]:hover {
  background: var(--primary);
  color: var(--paper);
}

/* blockquote — hanging quote */
:root main:has(> h1) > article > blockquote {
  position: relative;
  border-left: 3px solid var(--accent);
  background: var(--paper2);
  padding: 14px 22px 14px 26px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--fbody), Georgia, serif;
  font-style: italic;
  color: var(--primary);
}

/* "Importante" disclosure box */
:root main:has(> h1) > article > div:has(> strong) {
  background: var(--paper2);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 40px;
  font-family: var(--fbody), Georgia, serif;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--fg);
}
:root main:has(> h1) > article > div:has(> strong) strong {
  display: inline-block;
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  margin-bottom: 4px;
}

/* related articles — card grid, no white */
:root main:has(> h1) > section {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 26px;
}
:root main:has(> h1) > section > h3 {
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}
:root main:has(> h1) > section > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
:root main:has(> h1) > section > ul > li {
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
:root main:has(> h1) > section > ul > li > a {
  display: block;
  padding: 18px 20px;
  font-family: var(--fd), Georgia, serif;
  font-size: 16px;
  line-height: 1.34;
  color: var(--primary);
  text-decoration: none;
}
:root main:has(> h1) > section > ul > li > a:hover { color: var(--accent); }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  :root main:has(> article > .date) { grid-template-columns: 1fr; }
  :root header h1, :root header .site-title { font-size: 36px; }
  :root main:has(> article > .date) > article:nth-of-type(1) { padding: 30px 26px; }
  :root main:has(> article > .date) > article:nth-of-type(1) > h2 a { font-size: 33px; }
  :root main:has(> article > .date) > article:nth-of-type(1) > p:not(.date) { font-size: 18px; }
  :root main:has(> article > .date) > article:nth-of-type(2) { padding: 24px 26px; }
  :root main:has(> article > .date) > article:nth-of-type(2) > h2 a { font-size: 24px; }
  :root main:has(> article > .date) > article:nth-of-type(3) { padding: 0 20px 24px; }
  :root main:has(> article > .date) > article:nth-of-type(3)::before { margin: 0 -20px 26px; height: 150px; }
  :root main:has(> article > .date) > section::before { height: 160px; }
  :root main:has(> article > .date) > section > ul { columns: 1; }
  :root main:has(> h1) > h1 { font-size: 32px; }
}


/* 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: homepage section labels outside card frames */
:root main:has(> article > .date) > article:nth-of-type(1),
:root main:has(> article > .date) > article:nth-of-type(2) {
  position: relative;
  overflow: visible;
}

:root main:has(> article > .date) > article:nth-of-type(1)::before,
:root main:has(> article > .date) > article:nth-of-type(2)::before {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  top: -42px;
  left: 0;
  right: 0;
  min-height: 28px;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(122,59,92,.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
  font-family: var(--fmeta), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.25;
  text-transform: uppercase;
  pointer-events: none;
}

/* refix iter1: boxed archive tail below the second homepage strip */
:root main:has(> article > .date) > section > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  columns: initial;
  column-gap: normal;
  list-style: none;
  margin: 0;
  padding: 0;
}

:root main:has(> article > .date) > section > ul > li {
  display: flex;
  min-height: 78px;
  break-inside: auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
}

:root main:has(> article > .date) > section > ul > li > a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px 22px;
  color: var(--primary);
  font-family: var(--fd), Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.32;
  text-decoration: none;
}

:root main:has(> article > .date) > section > ul > li:hover {
  transform: translateY(-1px);
  border-color: rgba(196,151,58,.42);
  background: var(--paper2);
  box-shadow: 0 4px 12px rgba(58,24,40,.08);
}

:root main:has(> article > .date) > section > ul > li > a:hover {
  color: var(--accent);
}

/* refix iter1: article persona meta */
:root main:has(> h1) > time::after {
  content: " · POR ADRIANA NAVARRO · QUERÉTARO · 6 MIN DE LECTURA";
}

@media (max-width: 640px) {
  :root main:has(> article > .date) > article:nth-of-type(1)::before,
  :root main:has(> article > .date) > article:nth-of-type(2)::before {
    top: -38px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  :root main:has(> article > .date) > article:nth-of-type(2)::before {
    top: -54px;
    min-height: 42px;
  }

  :root main:has(> article > .date) > section > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  :root main:has(> article > .date) > section > ul > li {
    min-height: 68px;
  }

  :root main:has(> article > .date) > section > ul > li > a {
    padding: 18px 20px;
    font-size: 16px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=40% grid=asymmetric scale=balanced family=articles-section */

/* ── Archive strip above <section> tail (overlay 40%) ── */
: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.40) 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; }
}

