*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.css-7pi0g7z{max-width:640px;margin:0 auto;padding:0 20px}
.css-74mwpd6{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.css-74mwpd6 h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-74mwpd6 p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.css-74mwpd6 a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-nf099hj{padding:20px 0}
.css-nf099hj h2{font-size:18px;font-weight:400;margin-bottom:4px}
.css-nf099hj h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-nf099hj h2 a:hover{border-bottom-color:#2a2a2a}
.css-nf099hj .css-atucfck{font-size:12px;color:#aaa;margin-bottom:6px}
.css-nf099hj p{font-size:14px;color:#666}
.css-skyly6q{color:#888;font-size:13px;text-decoration:none}
.css-skyly6q:hover{color:#2a2a2a}
.css-ui0he42{padding-bottom:60px}
.css-ui0he42 h1{font-size:28px;font-weight:400;margin-bottom:8px}
.css-ui0he42 .css-atucfck{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.css-ui0he42 h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.css-ui0he42 h3{font-size:17px;margin:28px 0 8px}
.css-ui0he42 p{margin-bottom:18px;font-size:16px}
.css-ui0he42 ul,.css-ui0he42 ol{margin:0 0 18px 20px}
.css-ui0he42 a{color:#555;border-bottom:1px solid #ccc}
.css-ui0he42 a:hover{color:#000;border-bottom-color:#000}
.css-ui0he42 img{max-width:100%;height:auto;margin:24px 0}
.css-7puvnmy{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.css-7puvnmy a{color:#aaa;text-decoration:none}
.css-g0vm1ny{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.css-vw1l6y0{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.css-6q38d19{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.css-2eiedf8{margin:0 auto 32px;max-width:720px}
.css-auvrq96{width:100%;height:auto}
.css-z772g4k{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.css-z772g4k em{color:#aaa}
.css-z772g4k a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.css-mirkuia{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.css-mirkuia p{padding:3px 0;margin:0;font-size:15px}
.css-mirkuia a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-mirkuia a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
:root{--primary:#2C4A6E;--accent:#C08A2E;--bg:#F2EEE4;--fg:#2A2420;--border:#DCD3C0;--r:6px;--fb:'Karla';--fh:'Rokkitt';--lh:1.7;--sp:8px}
/* === Custom === */
/* Design reference: botes de vidrio azul cobalto de botica casera + mancha de mostaza-curcuma en la encimera */

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

:root {
  --primary: #2C4A6E;
  --accent: #C08A2E;
  --bg: #F2EEE4;
  --fg: #2A2420;
  --border: #DCD3C0;
  --r: 6px;
  --fb: 'Karla';
  --fh: 'Rokkitt';
}

:root body {
  font-family: var(--fb), system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
::selection { background: var(--accent); color: var(--bg); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* Header */
:root > body > header {
  background: var(--primary);
  color: var(--bg);
  padding: 52px 0 34px;
  margin-bottom: 44px;
  border-bottom: 3px solid var(--accent);
}
:root > body > header > div { max-width: 780px; margin: 0 auto; padding: 0 24px; }
:root > body > header h1 {
  font-family: var(--fh), Georgia, serif;
  font-size: 33px;
  font-weight: 600;
  color: var(--bg);
  line-height: 1.2;
  margin-bottom: 8px;
}
:root > body > header p {
  font-family: var(--fb), sans-serif;
  font-size: 0.96em;
  color: rgba(242, 238, 228, 0.85);
  max-width: 620px;
  font-style: italic;
  margin-top: 0.3em;
}
:root > body > header a {
  font-family: var(--fh), Georgia, serif;
  font-size: 25px;
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

/* Main content */
:root main { max-width: 720px; margin: 0 auto; padding: 0 24px 70px; }

:root main > h1,
:root main > hgroup > h1 {
  font-family: var(--fh), Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.22;
  margin: 8px 0 6px;
}
:root main > time,
:root main > hgroup > time {
  display: block;
  font-family: var(--fb), sans-serif;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 30px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

:root main h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 2.4em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
:root main h3 {
  font-family: var(--fh), Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 2em 0 0.5em;
  border-left: 3px solid var(--accent);
  padding-left: 0.65em;
}

:root main p {
  margin: 0 0 1.4em;
  font-size: 17px;
  line-height: 1.75;
  max-width: 68ch;
}

:root main ul,
:root main ol {
  margin: 0 0 20px 24px;
  max-width: 68ch;
}
:root main li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.65;
}
:root main li strong,
:root main p strong { color: var(--primary); font-weight: 700; }

:root main blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--fg);
  background: rgba(44, 74, 110, 0.05);
  border-radius: 0 var(--r) var(--r) 0;
}

/* Links */
:root main p a,
:root main 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 p a:hover,
:root main li a:hover {
  color: var(--accent);
  text-decoration-color: var(--primary);
}

/* Images */
:root main img,
:root main figure { margin: 0 0 28px; }
:root main img,
:root main figure > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  box-shadow: 0 3px 14px rgba(42, 36, 32, 0.10);
}
:root main figcaption {
  font-family: var(--fb), sans-serif;
  font-size: 13px;
  color: var(--fg);
  opacity: 0.65;
  margin-top: 8px;
  text-align: center;
}

/* Footer */
:root footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  margin-top: 54px;
  text-align: center;
  font-family: var(--fb), sans-serif;
  font-size: 12.5px;
  color: var(--fg);
  opacity: 0.62;
  letter-spacing: 0.03em;
}
:root footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}
:root footer a:hover { color: var(--primary); border-bottom-color: var(--primary); }

@media (max-width: 768px) {
  :root > body > header { padding: 34px 0 24px; margin-bottom: 32px; }
  :root > body > header h1 { font-size: 26px; }
  :root main { padding: 0 18px 50px; }
  :root main > h1,
  :root main > hgroup > h1 { font-size: 25px; }
  :root main h2 { font-size: 21px; }
  :root main p,
  :root main li { font-size: 16.5px; }
}

@media (max-width: 480px) {
  :root > body > header h1 { font-size: 22px; }
  :root main > h1,
  :root main > hgroup > h1 { font-size: 22px; }
  :root main h2 { font-size: 19px; }
}

/* === R2 fixes (2026-07-09T14:10:08.154592+00:00) === */

/* Homepage list titles: match in-article H1/H2 navy instead of near-black */
main .css-nf099hj h2 a {
  color: var(--primary);
}

/* Homepage "read more" links: darken + weight up for scan-ability */
main .css-skyly6q {
  color: #6b6b6b;
  font-weight: 600;
}

/* Article date stamp: make it legible without hunting for it */
main span.css-atucfck {
  margin-top: 6px;
  margin-bottom: 20px;
}

/* Affiliate recommendation links: subtle gold highlight, distinct from plain reference links */
main article p a[href^="/check/"] {
  background-color: rgba(192, 138, 46, 0.14);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* Header: soften the flat institutional block with a subtle gradient */
header.css-74mwpd6.css-7pi0g7z {
  background: linear-gradient(135deg, #2c4a6e 0%, #35547a 100%);
}

/* === R3 fixes (2026-07-09T14:50:22.162201+00:00) === */

/* Article date stamp: R2 selector only matched the in-article <span>, missing the homepage
   <p class="css-atucfck"> entry date entirely. Widen to the class alone so both contexts
   get the same legible gray, matching the "read more" link color. */
main .css-atucfck {
  font-size: 14px;
  color: #6b6b6b;
}

/* === QA round-1 fixes (2026-07-23T11:39:55+0800) === */
/* Editorial pass: warm the cold navy feed into a magazine — photo masthead,
   hero recipe + "Selección" band + chronological card grid, terracotta drop
   cap as the single warm "moment", article rhythm (dinkus, drop cap, CTA pills). */

:root {
  --moment: #B04A2B;   /* terracota de encimera: EL color cálido, usado solo en la capitular */
  --card:   #FBF8F1;   /* porcelana cálida para las tarjetas, no crema plana */
  --ink:    #22303F;   /* navy más hondo para titulares de tarjeta */
}

/* ---------- Masthead de portada: foto de cocina + velo navy + logotipo cursivo ---------- */
header.css-74mwpd6.css-7pi0g7z:has(h1) {
  background:
    linear-gradient(180deg, rgba(30,42,58,0.70) 0%, rgba(28,40,56,0.86) 100%),
    url("/theme-assets/hero-masthead.jpg") center/cover no-repeat;
  padding: 60px 24px 42px;
  text-align: center;
}
header.css-74mwpd6.css-7pi0g7z:has(h1)::before {
  content: "Apuntes de cosmética casera";
  display: block;
  font-family: var(--fb), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
header.css-74mwpd6.css-7pi0g7z:has(h1) h1 {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.08;
  color: #F6F1E6;
  max-width: 860px;
  margin: 0 auto 12px;
}
header.css-74mwpd6.css-7pi0g7z:has(h1) p {
  font-family: var(--fh), Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(246,241,230,0.9);
  max-width: 560px;
  margin: 0 auto;
}
header.css-74mwpd6.css-7pi0g7z:has(h1) p::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto 0;
}

/* ---------- Cabecera de artículo: barra compacta en vez de bloque gigante ---------- */
header.css-74mwpd6.css-7pi0g7z:not(:has(h1)) {
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 40px;
}
header.css-74mwpd6.css-7pi0g7z:not(:has(h1)) a {
  font-style: italic;
  font-size: 22px;
}

/* ---------- Portada: rejilla editorial (héroe → selección → cronológico) ---------- */
main:not(.css-ui0he42) {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 26px;
  row-gap: 30px;
  padding-top: 10px;
}

/* Tarjeta base = cuadrícula cronológica de 2 por fila */
main:not(.css-ui0he42) > div {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(42,36,32,0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
main:not(.css-ui0he42) > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(42,36,32,0.12);
  border-color: var(--accent);
}
main:not(.css-ui0he42) > div > p:first-child {
  font-family: var(--fb), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
main:not(.css-ui0he42) > div > h2 {
  font-family: var(--fh), Georgia, serif;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}
main:not(.css-ui0he42) > div > h2 > a {
  color: var(--ink);
  text-decoration: none;
}
main:not(.css-ui0he42) > div:hover > h2 > a { color: var(--primary); }
main:not(.css-ui0he42) > div > h2 + p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5a5148;
  margin: 0 0 16px;
}
/* "read more" convertido en CTA de píldora */
main:not(.css-ui0he42) > div > a {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--fb), sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
main:not(.css-ui0he42) > div > a:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* Banda "Selección de Paulina": segunda fila a 3 columnas con filete superior */
main:not(.css-ui0he42) > div:nth-child(2),
main:not(.css-ui0he42) > div:nth-child(3),
main:not(.css-ui0he42) > div:nth-child(4) {
  grid-column: span 2;
  border-top: 3px solid var(--accent);
}

/* ---------- Héroe: la receta más reciente como voz principal ---------- */
main:not(.css-ui0he42) > div:first-child {
  grid-column: 1 / -1;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 20px 0;
  text-align: center;
}
main:not(.css-ui0he42) > div:first-child:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
/* Insignia "Última receta ·" delante de la fecha */
main:not(.css-ui0he42) > div:first-child > p:first-child {
  color: var(--moment);
  font-size: 12px;
  letter-spacing: 0.2em;
}
main:not(.css-ui0he42) > div:first-child > p:first-child::before {
  content: "Última receta · ";
}
/* Titular grande en cursiva serif */
main:not(.css-ui0he42) > div:first-child > h2 {
  font-size: 40px;
  line-height: 1.12;
  font-style: italic;
  max-width: 760px;
  margin: 6px auto 0;
}
main:not(.css-ui0he42) > div:first-child > h2 > a { color: var(--primary); }
/* Byline bajo el titular (rellena el espacio, tono meta) */
main:not(.css-ui0he42) > div:first-child > h2::after {
  content: "Por Paulina Cuesta";
  display: block;
  font-family: var(--fb), sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7f72;
  margin-top: 14px;
}
/* Entradilla con capitular terracota — el único "momento" cálido */
main:not(.css-ui0he42) > div:first-child > h2 + p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a423b;
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: left;
}
main:not(.css-ui0he42) > div:first-child > h2 + p::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-style: normal;
  font-weight: 700;
  font-size: 54px;
  line-height: 0.78;
  float: left;
  color: var(--moment);
  margin: 4px 10px 0 0;
}
/* CTA sólido, centrado */
main:not(.css-ui0he42) > div:first-child > a {
  align-self: center;
  margin-top: 0;
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  padding: 11px 26px;
  font-size: 12px;
}
main:not(.css-ui0he42) > div:first-child > a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
/* Etiqueta de la banda "Selección" — filete de fila completa entre héroe y picks */
main:not(.css-ui0he42) > div:first-child::after {
  content: "Selección de la casa — empieza por aquí";
  display: block;
  font-family: var(--fb), sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 36px 0 4px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ---------- Página de artículo: titular grande + ritmo editorial ---------- */
main.css-ui0he42 > h1 { font-size: 40px; line-height: 1.14; }
main.css-ui0he42 > span.css-atucfck {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12.5px;
}
/* Capitular terracota en el primer párrafo (mismo gesto que el héroe) */
main.css-ui0he42 > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 0.78;
  float: left;
  color: var(--moment);
  margin: 6px 12px 0 0;
}
/* Dinkus centrado sobre cada sección h2 */
main.css-ui0he42 > article > h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
main.css-ui0he42 > article > h2::before {
  content: "✦ ✦ ✦";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.5em;
  opacity: 0.65;
  margin: 0.4em 0 0.9em;
}
/* Comilla colgante en las citas */
main.css-ui0he42 > article > blockquote {
  position: relative;
  padding-left: 42px;
}
main.css-ui0he42 > article > blockquote::before {
  content: "\201C";
  position: absolute;
  left: 8px;
  top: -4px;
  font-family: var(--fh), Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}
/* Enlaces de afiliación como CTA de píldora, no texto plano */
main.css-ui0he42 article a[href^="/check/"] {
  background: rgba(192,138,46,0.14);
  border: 1px solid rgba(192,138,46,0.5);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 11px;
  border-radius: 999px;
  text-decoration: none;
}
main.css-ui0he42 article a[href^="/check/"]::after { content: " \2192"; }
main.css-ui0he42 article a[href^="/check/"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  main:not(.css-ui0he42) {
    grid-template-columns: 1fr;
    max-width: 560px;
    row-gap: 22px;
  }
  main:not(.css-ui0he42) > div,
  main:not(.css-ui0he42) > div:first-child,
  main:not(.css-ui0he42) > div:nth-child(2),
  main:not(.css-ui0he42) > div:nth-child(3),
  main:not(.css-ui0he42) > div:nth-child(4) { grid-column: 1 / -1; }
  header.css-74mwpd6.css-7pi0g7z:has(h1) { padding: 40px 20px 30px; }
  header.css-74mwpd6.css-7pi0g7z:has(h1) h1 { font-size: 32px; }
  main:not(.css-ui0he42) > div:first-child > h2 { font-size: 28px; }
  main.css-ui0he42 > h1 { font-size: 28px; }
}


/* === QA tail polish (2026-07-24T16:24:47.027464+00:00) — style Lambda [SB-20] compact tail across templates === */
/* The tail wrapper is always the LAST block child of <main> on the homepage,
   containing title-only rows of older articles. Various templates use different
   inner structures (ul>li / p / direct <a>) — this handles all three. */

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article)) {
  grid-column: 1 / -1;
  max-width: min(720px, 92vw);
  margin: 88px auto 0;
  padding: 40px 0 32px;
  border-top: 2px double rgba(0, 0, 0, .16);
  background: transparent;
  box-shadow: none;
}

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article))::before {
  content: "\2014  MORE FROM THE ARCHIVE  \2014";
  display: block;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 36px;
}

/* Any list / paragraph rows: 2-col on desktop, single on mobile */
:root main > *:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 899px) {
  :root main > *:last-child ul { columns: 1; }
}

:root main > *:last-child li,
:root main > *:last-child > p,
:root main > *:last-child > a {
  padding: 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 1px dotted rgba(0, 0, 0, .12);
  break-inside: avoid;
  display: block;
}

:root main > *:last-child li a,
:root main > *:last-child p a,
:root main > *:last-child > a {
  text-decoration: none;
  font-weight: 600;
}

:root main > *:last-child li a:hover,
:root main > *:last-child p a:hover,
:root main > *:last-child > a:hover {
  text-decoration: underline;
}

/* dates (first inline child of li/p) — subtle mono */
:root main > *:last-child p > :first-child,
:root main > *:last-child li > :first-child:not(a) {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .5;
  margin-right: 10px;
}
