*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.astro-jmRxZOXw{max-width:900px;margin:0 auto;padding:0 28px}
.astro-JsTf4I0y{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.astro-JsTf4I0y h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.astro-JsTf4I0y p{font-size:18px;opacity:.7}
.astro-JsTf4I0y a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.astro-KUNDc7eb{padding:0}
.astro-0ugYykXU{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.astro-0ugYykXU h2{font-size:24px;font-weight:700;margin-bottom:6px}
.astro-0ugYykXU h2 a{color:#111;text-decoration:none}
.astro-0ugYykXU h2 a:hover{text-decoration:underline}
.astro-0ugYykXU .astro-Wj8WpEH9{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.astro-0ugYykXU p{font-size:15px;color:#444;margin-bottom:10px}
.astro-eD2Xepvs{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.astro-eD2Xepvs:hover{background:#333}
.astro-ZyeAJBj4{padding-bottom:60px}
.astro-ZyeAJBj4 h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.astro-ZyeAJBj4 time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.astro-ZyeAJBj4 h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.astro-ZyeAJBj4 h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.astro-ZyeAJBj4 p{margin-bottom:18px;font-size:17px}
.astro-ZyeAJBj4 ul,.astro-ZyeAJBj4 ol{margin:0 0 18px 24px}
.astro-ZyeAJBj4 a{color:#111;font-weight:600;text-decoration:underline}
.astro-ZyeAJBj4 img{max-width:100%;height:auto;margin:20px 0}
.astro-lUKiyUzb{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.astro-lUKiyUzb a{color:#888;text-decoration:none}
.astro-C1sRHLqW{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.astro-VO5De78L{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.astro-NfUE16nO{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.astro-EIEAxGFo{margin:0 0 24px}
.astro-HxWuR58t{width:100%;height:auto;border-radius:0}
.astro-KbkR3kyu{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.astro-KbkR3kyu h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.astro-KbkR3kyu ul{list-style:none;padding:0}
.astro-KbkR3kyu li{padding:6px 0}
.astro-KbkR3kyu a{color:#111;text-decoration:underline;font-weight:600}
.astro-mlpJwEWT{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.astro-mlpJwEWT ul{list-style:none;padding:0}
.astro-mlpJwEWT li{padding:6px 0;font-size:16px}
.astro-mlpJwEWT a{color:#111;text-decoration:none;font-weight:600}
.astro-mlpJwEWT a:hover{text-decoration:underline}
.astro-mlpJwEWT .astro-Wj8WpEH9{margin:0 0 0 8px}
/* === Theme === */
:root{--primary:#3A2E24;--accent:#C88D12;--bg:#EAEBE8;--fg:#1C1C1A;--border:#C4BFB7;--r:7px;--fb:'Mulish';--fh:'Bebas Neue'}
/* === Custom === */
/* v.1aaf37 — layout revision */
/* Design reference: Carteles de ferretería porteña, 1990s — papel afiche, slab condensado, hierro y ámbar */

/* Webfonts declared as @font-face — the top-of-file @import is dropped once the
   deploy concatenates template + theme + custom into one site.css (rules-before-import
   is invalid per spec), so the wordmark voice only loads this way. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/bebasneue/v16/JTUSjIg69CK48gW7PXoo9Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/bebasneue/v16/JTUSjIg69CK48gW7PXoo9Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(https://fonts.gstatic.com/s/mulish/v18/1Ptvg83HX_SGhgqk3wot.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(https://fonts.gstatic.com/s/mulish/v18/1Ptvg83HX_SGhgqk0QotcqA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #3A2E24;
  --accent:  #C88D12;
  --rust:    #6B4A2E;   /* moment colour — two loud spots per page (badge + drop cap) */
  --bg:      #EAEBE8;
  --panel:   #F3ECE0;
  --page:    #FAF7F0;
  --fg:      #1C1C1A;
  --border:  #C4BFB7;
  --r:       7px;
  --fb:      'Mulish';
  --fh:      'Bebas Neue';
}

body {
  font-family: var(--fb), system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

p { margin: 0 0 0.9em; max-width: 68ch; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
a:hover { border-bottom-color: var(--accent); }

ul { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

hr { border: none; border-top: 3px solid var(--primary); margin: 2em 0; }

blockquote {
  border-left: 5px solid var(--accent);
  margin: 1.5em 0;
  padding: 0.6em 1.2em;
  background-color: var(--panel);
  font-style: italic;
  font-weight: 500;
}
blockquote p { margin: 0; font-size: 1.05rem; max-width: none; }

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

/* === Editorial layout ===
   The live build is the Astro template (.astro-XXXX classes) — an all-black #111
   monochrome layout with a dead feed of identical black READ-NOW blocks. This pass
   uses element + structural selectors (specificity-boosted with :root / :nth-of-type
   to out-weigh the template's .astro-XXXX pairs) to give it a ferretería-poster
   editorial voice: photo masthead, one loud featured card, a 3-across "Elegidos del
   balcón" band, two full-bleed section strips, a chronological grid, and a real
   archive index. --rust is the moment colour, used in exactly two spots per page. */

/* ── Masthead (shared: home = h1+p, article = wordmark link) ── */
:root body > div:first-child {
  background:
    linear-gradient(158deg, rgba(36, 24, 17, 0.86) 0%, rgba(58, 46, 36, 0.80) 62%, rgba(44, 32, 23, 0.88) 100%),
    url("/theme-assets/hero-masthead.jpg") center 42% / cover no-repeat;
  color: #F3ECE0;
  border-top: 6px solid var(--accent);
  border-bottom: 5px solid var(--accent);
  padding: 3rem 0 2.6rem;
  margin-bottom: 2.4rem;
}
:root body > div:first-child > div::before {
  content: "El diario de una parrilla de balcón — Caballito, Buenos Aires";
  display: block;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
:root body > div:first-child > div > h1 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #F7F0E4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin: 0 0 0.6rem;
}
:root body > div:first-child > div > p {
  font-family: var(--fb), sans-serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(243, 236, 224, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  max-width: 62ch;
  opacity: 1;
  margin: 0;
}
:root body > div:first-child > div > a {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F7F0E4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  border-bottom: none;
}
:root body > div:first-child > div > a:hover { color: var(--accent); }

/* ── Home main → editorial 6-col grid ─────────────────────────
   H = home main (has direct-child cards: > div > h2 > a). Specificity (0,3,6)
   comfortably clears the template's .astro-0ugYykXU pairs. */
:root main:nth-of-type(1):has(> div > h2 > a) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1.7rem;
  row-gap: 0;
  max-width: 1120px;
  align-items: start;
  background: var(--page);
}

/* neutralise template card chrome (border-left #111, R-fix border-bottom) */
:root main:nth-of-type(1):has(> div > h2 > a) > div {
  border-left: none;
  border-bottom: none;
  margin: 0;
  padding-left: 0;
}

/* ── FEATURED card (the one loud voice) ── */
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child {
  grid-column: 1 / -1;
  background: var(--panel);
  border-top: 5px solid var(--primary);
  border-left: 7px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 2rem 2.4rem 2.3rem;
  margin: 0 0 1.6rem;
  position: relative;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child::before {
  content: "Última entrada del balcón";
  display: inline-block;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F7F0E4;
  background: var(--rust);
  padding: 0.18em 0.7em;
  margin-bottom: 1rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > p:first-child {
  font-family: var(--fb), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > p:first-child::before {
  content: "Por Lautaro Báez  ·  ";
  color: #8A7A66;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > h2 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0.2rem 0 0.8rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > h2 a { color: var(--primary); }
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > p:nth-of-type(2) {
  font-family: var(--fb), sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #40372E;
  max-width: 60ch;
  margin: 0 0 1.3rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > p:nth-of-type(2)::first-letter {
  font-family: var(--fh), Arial, sans-serif;
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 0.78;
  float: left;
  color: var(--rust);
  margin: 0.04em 0.12em 0 0;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > a {
  display: inline-block;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--accent);
  padding: 0.5em 1.5em;
  border-radius: 3px;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:first-child > a:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ── Quiet-card typography (every card from #2 onward) ── */
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > p:first-child {
  font-family: var(--fb), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > h2 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > h2 a { color: var(--primary); }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > h2 a:hover { color: var(--accent); }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > p:nth-of-type(2) {
  font-family: var(--fb), sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #544B41;
  margin: 0 0 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* black READ-NOW block → amber editorial link */
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > a {
  display: inline-block;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  padding: 0;
  border-bottom: none;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > a::after { content: "  \2192"; }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > a:hover { color: var(--primary); }

/* ── Editor's Picks band (cards 2-4, 3 across) ── */
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  margin-top: 3.7rem;
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--accent);
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2) { position: relative; }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2)::before {
  content: "Elegidos del balcón — empezá por acá";
  position: absolute;
  left: 0;
  bottom: calc(100% + 1rem);
  font-family: var(--fh), Arial, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
}

/* ── STRIP 1 — full-bleed photo band that heads the chronological grid.
   Absolutely positioned on the first journal card (card 5, always the left
   column of the 2-across row) and stretched across the full grid width via
   calc(200% + column-gap). Doubles as the "EN ORDEN DE ESCRITURA" section head. */
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(5),
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(6) { margin-top: 16.5rem; }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(5) { position: relative; }
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(5)::before {
  content: "EN ORDEN DE ESCRITURA";
  position: absolute;
  left: 0;
  bottom: calc(100% + 2.4rem);
  width: calc(200% + 1.7rem);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/article-hero.jpg") center 30% / cover no-repeat;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #F7F0E4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ── Chronological grid (cards 5-15, 2 across, hairline rows) ── */
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+5):not(:last-child) {
  grid-column: span 3;
  border-top: 1px solid rgba(58, 46, 36, 0.18);
  border-bottom: none;
  padding: 1.4rem 0 0;
}

/* ── Archive index / STRIP 2 (the plain-link list at the foot of home) ──
   The tail spans 1/-1, so its ::before is a natural full-width band. */
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child {
  grid-column: 1 / -1;
  margin-top: 4rem;
  border-left: none;
  padding: 0;
  position: relative;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child::before {
  content: "ENTRADAS ANTERIORES";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  margin-bottom: 2rem;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/article-hero.jpg") center 70% / cover no-repeat;
  font-family: var(--fh), Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #F7F0E4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child ul {
  columns: 2;
  column-gap: 2.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(58, 46, 36, 0.28);
  break-inside: avoid;
  margin: 0;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li a {
  color: var(--primary);
  font-family: var(--fb), sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  border-bottom: none;
}
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li a::before { content: "\25B8  "; color: var(--accent); }
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li a:hover { color: var(--accent); }
:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li span {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A8E7E;
  margin-top: 0.15rem;
}

/* ── Article page (A = article main) ── */
:root main:nth-of-type(1):has(> article) {
  max-width: 760px;
  background: var(--page);
}
:root main:nth-of-type(1):has(> article) > hgroup { margin-bottom: 1.6rem; }
:root main:nth-of-type(1):has(> article) > hgroup > h1 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.6rem;
}
:root main:nth-of-type(1):has(> article) > hgroup > time {
  font-family: var(--fb), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 0;
}
:root main:nth-of-type(1):has(> article) > article > p {
  font-family: var(--fb), sans-serif;
  font-size: 1.12rem;
  line-height: 1.78;
  color: #2C251E;
  max-width: 66ch;
}
:root main:nth-of-type(1):has(> article) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Arial, sans-serif;
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 0.78;
  float: left;
  color: var(--rust);
  margin: 0.04em 0.1em 0 0;
}
:root main:nth-of-type(1):has(> article) > article > h2 {
  font-family: var(--fh), 'Arial Narrow', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  border-top: none;
  padding-top: 0;
  margin: 2.8rem 0 1rem;
}
:root main:nth-of-type(1):has(> article) > article > h2::before {
  content: "\2737  \2737  \2737";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin: 0 0 1.4rem;
}
:root main:nth-of-type(1):has(> article) > article a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(200, 141, 18, 0.45);
}
:root main:nth-of-type(1):has(> article) > article a:hover {
  border-bottom-color: var(--accent);
  color: #9A6A0A;
}
:root main:nth-of-type(1):has(> article) > article blockquote {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem 1.1rem 2.8rem;
  position: relative;
  font-family: var(--fb), sans-serif;
  font-style: italic;
  color: #3A322A;
  font-size: 1.1rem;
}
:root main:nth-of-type(1):has(> article) > article blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.55rem;
  top: 0.15rem;
  font-family: var(--fh), Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

/* related-posts block */
:root main:nth-of-type(1):has(> article) > div {
  border-left: none;
  border-top: 3px solid var(--primary);
  padding: 1.6rem 0 0;
  margin-top: 3rem;
}
:root main:nth-of-type(1):has(> article) > div > h3 {
  font-family: var(--fh), Arial, sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem;
}
:root main:nth-of-type(1):has(> article) > div ul { list-style: none; padding: 0; margin: 0; }
:root main:nth-of-type(1):has(> article) > div li { padding: 0.5rem 0; border-bottom: 1px solid rgba(58, 46, 36, 0.1); margin: 0; }
:root main:nth-of-type(1):has(> article) > div li a { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: none; }
:root main:nth-of-type(1):has(> article) > div li a::before { content: "\25B8  "; color: var(--accent); }
:root main:nth-of-type(1):has(> article) > div li a:hover { color: var(--accent); }

/* ── Footer ── */
:root body > footer {
  background: linear-gradient(#2A1E14, #241811);
  border-top: 5px solid var(--accent);
  color: rgba(243, 236, 224, 0.7);
  padding: 2.2rem 0;
  margin-top: 3.5rem;
}
:root body > footer:nth-of-type(1) a { color: rgba(243, 236, 224, 0.8); border-bottom: none; }
:root body > footer:nth-of-type(1) a:hover { color: var(--accent); }

/* ── Mobile: collapse the multi-column grid (spans create implicit tracks,
   so every band must be reset to a single column explicitly) ── */
@media (max-width: 880px) {
  :root main:nth-of-type(1):has(> div > h2 > a) {
    grid-template-columns: 1fr;
    max-width: none;
  }
  :root main:nth-of-type(1):has(> div > h2 > a) > div:first-child,
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2):nth-of-type(-n+4),
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+5):not(:last-child),
  :root main:nth-of-type(1):has(> div > h2 > a) > div:last-child {
    grid-column: 1 / -1;
  }
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2):nth-of-type(-n+4) { margin-top: 2.6rem; }
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(5),
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(6) { margin-top: 2.8rem; }
  /* picks label stays a static block above its row */
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2)::before {
    position: static;
    display: block;
    white-space: normal;
    margin-bottom: 0.9rem;
  }
  /* Strip 1 → static full-width band above the journal card */
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(5)::before {
    position: static;
    width: 100%;
    height: 150px;
    bottom: auto;
    margin: 0 0 1.4rem;
  }
  /* Strip 2 → shorter band on narrow screens */
  :root main:nth-of-type(1):has(> div > h2 > a) > div:last-child::before { height: 150px; }
  :root main:nth-of-type(1):has(> div > h2 > a) > div:last-child ul { columns: 1; }
}


/* 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: restore soft frames on home story cards and archive tail */
:root main:nth-of-type(1):has(> div > h2 > a) {
  align-items: stretch;
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2):nth-of-type(-n+4),
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+5):not(:last-child) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid rgba(58, 46, 36, 0.14);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 2rem 1.65rem;
  overflow: visible;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2):nth-of-type(-n+4):hover,
:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+5):not(:last-child):hover {
  background: #F8F2E6;
  border-color: rgba(58, 46, 36, 0.24);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.055);
  transform: translateY(-1px);
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+2) > a:last-child {
  margin-top: auto;
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child ul {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li {
  box-sizing: border-box;
  display: flex;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid rgba(58, 46, 36, 0.14);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 1.2rem 1.35rem;
  break-inside: auto;
  margin: 0;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li:hover {
  background: #F8F2E6;
  border-color: rgba(58, 46, 36, 0.24);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.055);
  transform: translateY(-1px);
}

:root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li a {
  display: block;
  width: 100%;
}

@media (max-width: 640px) {
  :root main:nth-of-type(1):has(> div > h2 > a) > div:last-child ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  :root main:nth-of-type(1):has(> div > h2 > a) > div:last-child li {
    padding: 1.15rem 1.25rem;
  }
}


/* refix iter2: M2 full-row picks label and M4 equal-height journal cards */
@media (min-width: 881px) {
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2)::before {
    box-sizing: border-box;
    display: block;
    width: calc(300% + 3.4rem);
    line-height: 1.15;
  }

  :root main:nth-of-type(1):has(> div > h2 > a) {
    align-items: stretch;
  }

  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(n+5):not(:last-child) {
    align-self: stretch;
    height: auto;
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2) {
    margin-top: 4.8rem;
  }

  :root main:nth-of-type(1):has(> div > h2 > a) > div:nth-of-type(2)::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.8rem);
    width: auto;
    white-space: normal;
    margin-bottom: 0;
    line-height: 1.15;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Kinfolk-minimal overlay=40% grid=mixed scale=balanced family=flat-divs */


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

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.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: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: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: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: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; }
}

