*{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}
.css-6swb4mx{max-width:860px;margin:0 auto;padding:0 20px}
.css-b1kh44y{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-b1kh44y h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-b1kh44y p{font-size:14px;color:#666}
.css-b1kh44y a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-zgnz3om{display:flex;flex-direction:column;gap:20px}
.css-82yj4dp{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.css-82yj4dp:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-82yj4dp h2{font-size:19px;margin-bottom:6px}
.css-82yj4dp h2 a{color:#1a1a1a;text-decoration:none}
.css-82yj4dp .css-q305dbm{font-size:12px;color:#999;margin-bottom:8px}
.css-82yj4dp p{font-size:14px;color:#555;margin-bottom:12px}
.css-435s60b{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-435s60b:hover{background:#4752c4}
.css-94wdw5s{padding-bottom:60px}
.css-94wdw5s h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-94wdw5s time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-94wdw5s h2{font-size:22px;margin:32px 0 12px}
.css-94wdw5s h3{font-size:18px;margin:24px 0 8px}
.css-94wdw5s p{margin-bottom:16px}
.css-94wdw5s ul,.css-94wdw5s ol{margin:0 0 16px 24px}
.css-94wdw5s a{color:#5865f2}
.css-94wdw5s img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-635ex2f{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-635ex2f a{color:#999;text-decoration:none}
.css-ohsrnb2{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-ju7if5r{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-zait5ua{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-8yk54rn{text-align:center;margin:0 0 24px}
.css-pmmhi4a{max-width:100%;height:auto;border-radius:12px}
.css-1lubfd5{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-1lubfd5 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)}
.css-zyi50d9{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-9e3mf5f{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}
.css-9e3mf5f:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#2D335F;--accent:#C9A560;--bg:#ECE4D0;--fg:#1A1A1F;--border:#C5BBA8;--r:10px;--fb:'DM Sans';--fh:'Fraunces'}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Anybody:wght@500;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root header { background: var(--primary); color: var(--bg); padding: 40px 0 26px; margin-bottom: 40px; border-bottom: 5px solid var(--accent); }
:root header h1, :root header span a { font-family: var(--fh), system-ui, sans-serif; color: var(--bg); font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
:root header h1 { font-size: 32px; line-height: 1.16; }
:root header span a { font-size: 22px; }
:root header p { color: rgba(236, 228, 208, .82); font-size: 14px; font-style: italic; font-family: var(--fb), system-ui, sans-serif; margin-top: 6px; }

:root main { padding-bottom: 80px; }
:root main > h1 { font-family: var(--fh), system-ui, sans-serif; font-size: 36px; line-height: 1.18; color: var(--primary); margin: 8px 0 6px; font-weight: 700; letter-spacing: -.015em; }
:root main > time { display: block; font-family: var(--fb), system-ui, sans-serif; font-size: 12px; color: var(--accent); margin-bottom: 28px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

:root main > article > p { margin-bottom: 18px; font-size: 17px; }
:root main > article > h2 { font-family: var(--fh), system-ui, sans-serif; font-size: 24px; font-weight: 700; color: var(--primary); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); letter-spacing: -.005em; }
:root main > article > h3 { font-family: var(--fh), system-ui, sans-serif; font-size: 19px; font-weight: 500; color: var(--accent); margin: 24px 0 8px; }
:root main > article ul, :root main > article ol { margin: 0 0 18px 22px; }
:root main > article li { margin-bottom: 6px; }
:root main > article blockquote { border-left: 4px solid var(--accent); padding: 8px 0 8px 18px; margin: 24px 0; font-style: italic; color: var(--primary); background: rgba(201, 165, 96, .07); border-radius: 0 var(--r) var(--r) 0; }

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

:root main > article > p a[href^="/ref/"], :root main > article > p a[href^="/try/"], :root main > article > p a[href^="/check/"] { background: var(--accent); color: var(--bg); padding: 2px 10px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-family: var(--fh), system-ui, sans-serif; font-size: 14.5px; letter-spacing: .02em; text-transform: uppercase; }
:root main > article > p a[href^="/ref/"]:hover, :root main > article > p a[href^="/try/"]:hover, :root main > article > p a[href^="/check/"]:hover { background: var(--primary); }

:root article > div[role="img"] { margin: 0 0 28px; }
:root article > div[role="img"] > img { width: 100%; height: auto; display: block; border-radius: var(--r); box-shadow: 0 3px 14px rgba(26, 26, 31, .12); }

:root article > section { background: rgba(45, 51, 95, .07); border-left: 4px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; margin-top: 32px; font-size: 14px; color: var(--fg); font-family: var(--fb), system-ui, sans-serif; font-style: italic; }
:root article > section b { color: var(--primary); font-weight: 700; font-style: normal; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; display: inline-block; margin-right: 8px; font-family: var(--fh), system-ui, sans-serif; }

:root main > div > div:not(.crd-related-list) { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 24px 26px; box-shadow: 0 2px 8px rgba(26, 26, 31, .05); transition: transform .15s ease, box-shadow .15s ease, border-left-color .15s ease; }
:root main > div > div:not(.crd-related-list):hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(45, 51, 95, .12); border-left-color: var(--primary); }
:root main > div > div:not(.crd-related-list) > p:first-child { font-family: var(--fb), system-ui, sans-serif; font-size: 11px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
:root main > div > div:not(.crd-related-list) > h2 { font-family: var(--fh), system-ui, sans-serif; font-size: 21px; font-weight: 700; margin-bottom: 6px; line-height: 1.24; letter-spacing: -.005em; }
:root main > div > div:not(.crd-related-list) > h2 a { color: var(--primary); text-decoration: none; }
:root main > div > div:not(.crd-related-list) > h2 a:hover { color: var(--accent); }
:root main > div > div:not(.crd-related-list) > p:not(:first-child) { font-size: 14.5px; color: var(--fg); opacity: .85; margin-bottom: 12px; }
:root main > div > div:not(.crd-related-list) > a:last-child { font-family: var(--fh), system-ui, sans-serif; font-size: 12.5px; color: var(--bg); background: var(--primary); padding: 7px 18px; border-radius: var(--r); text-decoration: none; letter-spacing: .06em; font-weight: 700; display: inline-block; }
:root main > div > div:not(.crd-related-list) > a:last-child:hover { background: var(--accent); }

:root main > div:has(> .crd-related-list) { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--accent); }
:root main > div:has(> .crd-related-list) > h3 { font-family: var(--fh), system-ui, sans-serif; font-size: 16px; color: var(--primary); margin-bottom: 14px; }
:root .crd-related-list { display: flex; flex-direction: column; gap: 8px; }
:root .crd-related-link { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; color: var(--fg); text-decoration: none; font-size: 14.5px; font-family: var(--fb), system-ui, sans-serif; display: block; transition: border-color .15s ease, background .15s ease; }
:root .crd-related-link:hover { border-color: var(--primary); background: rgba(45, 51, 95, .04); }

:root footer { background: transparent; border-top: 1px solid var(--accent); padding: 26px 0 36px; margin-top: 60px; text-align: center; font-family: var(--fb), system-ui, sans-serif; font-size: 12px; color: var(--fg); opacity: .60; letter-spacing: .04em; }
: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); }

/* === R2 fixes (2026-06-02T01:10:05.095285+00:00) === */
:root main > article > p { line-height: 1.8; }
:root main > article > h2 { margin-top: 2.5em; margin-bottom: 0.6em; }
:root main > article > p a,
:root main > article > p a:visited { color: #7B6B52; text-decoration-color: #7B6B52; }
:root main > article > p a:hover { color: #5C4E3A; text-decoration-color: #5C4E3A; }
:root header p { color: #7B6B52; font-size: 0.85em; letter-spacing: 0.01em; }

/* === R3 fixes (2026-06-02T01:50:05.143783+00:00) === */
:root header p { color: rgba(236, 228, 208, 0.85); }
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"] { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 2px 10px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; }
:root main > article > p a[href^="/ref/"]:hover,
:root main > article > p a[href^="/try/"]:hover,
:root main > article > p a[href^="/check/"]:hover { background: rgba(201, 165, 96, .10); color: var(--accent); }
:root main > article > h3 { color: var(--primary); opacity: 0.72; font-weight: 500; }
:root main > div > div:not(.crd-related-list) > p:first-child { color: var(--border); letter-spacing: .08em; font-weight: 500; }

/* === R4 fixes (2026-06-02T02:30:04.062326+00:00) === */
:root main > time { color: var(--border); letter-spacing: .08em; font-weight: 500; }

/* v.6d9f63 — layout revision */

/* ---- Type discipline: guarantee a serif display voice (Fraunces → Georgia) ---- */
:root header h1, :root header span a,
:root main > h1,
:root main > article > h2, :root main > article > h3,
:root main > div:first-of-type:has(> div > h2) > div > h2,
:root main > div:first-of-type:has(> div > h2) > div > h2 a {
  font-family: 'Fraunces', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

/* ---- Masthead: photo band + italic wordmark + manifesto signature line ---- */
:root header {
  background: linear-gradient(rgba(22,24,44,.80), rgba(22,24,44,.60)), url("/theme-assets/hero-masthead.jpg") center / cover no-repeat;
  border-bottom: 4px solid var(--accent);
  padding: 58px 0 46px;
}
:root header:not(:has(h1)) { padding: 34px 0; }
:root header h1, :root header span a {
  font-style: italic; font-weight: 600; letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
:root header h1 { font-size: 40px; line-height: 1.08; }
:root header p {
  color: rgba(236,228,208,.9); font-size: 15px; max-width: 60ch;
  line-height: 1.55; margin-top: 12px; font-style: italic;
}
:root header:has(h1) > div::after {
  content: "Barefoot six days a week — a working log of what my feet keep trying to teach me.";
  display: block; margin-top: 20px; padding-top: 15px;
  border-top: 2px solid var(--accent); max-width: 48ch;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-size: 15px; line-height: 1.45; color: rgba(236,228,208,.82); letter-spacing: .01em;
}

/* ================= HOMEPAGE: hero → editor's picks → journal (order-hacked flat grid) ================= */
:root main > div:first-of-type:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 26px;
  align-items: stretch;
  margin-top: 12px;
}

/* Full-row section label between hero and picks */
:root main > div:first-of-type:has(> div > h2)::before {
  content: "Editor's Picks · Read These First";
  order: 2; grid-column: 1 / -1;
  margin: 46px 0 4px; padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--primary);
}

/* Strip 1 — photo band between picks and journal */
:root main > div:first-of-type:has(> div > h2)::after {
  content: "IN ORDER OF WRITING";
  order: 4; grid-column: 1 / -1;
  margin: 44px 0 10px; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/article-cover.jpg") center 30% / cover no-repeat;
  border-radius: 10px;
  color: #f6efe2; font-family: var(--fb), system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

/* Shared paper-card surface (soft frame, warm off-white, no heavy left rule) */
:root main > div:first-of-type:has(> div > h2) > div {
  background: #f6efe2;
  border: 1px solid rgba(45,51,95,.12);
  border-left: 1px solid rgba(45,51,95,.12);
  border-radius: 10px;
  padding: 26px 32px;
  box-shadow: 0 1px 4px rgba(26,26,31,.05);
}

/* Hero (card 1) — the loud voice */
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) {
  grid-column: 1 / -1; order: 1;
  padding: 42px 48px 40px;
  border-top: 3px solid var(--accent);
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1)::before {
  content: "The Latest"; display: inline-block; margin-bottom: 16px;
  background: #5E3A5C; color: #f6efe2; padding: 5px 14px; border-radius: 100px;
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > p:first-child {
  color: var(--primary); opacity: .6; font-size: 12px; letter-spacing: .16em;
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > p:first-child::before {
  content: "By Julia Rennick · ";
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > h2 {
  font-size: 44px; line-height: 1.06; font-style: italic; margin: 6px 0 16px;
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > p:not(:first-child) {
  font-size: 20px; line-height: 1.5; max-width: 60ch; opacity: 1; color: var(--fg);
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > p:not(:first-child)::first-letter {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 3.2em; line-height: .78; float: left; margin: 6px 12px 0 0; color: #5E3A5C;
}

/* Editor's Picks band (cards 2-4) — 3 across */
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2; order: 3;
}
/* Journal grid (cards 5+) — 2 across */
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+5) {
  grid-column: span 3; order: 5;
}

/* Supporting-card typography (picks + journal) — quiet, consistent, clamped */
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+2) > p:first-child {
  color: var(--primary); opacity: .55; font-size: 11px; letter-spacing: .14em;
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+2) > h2 {
  font-size: 20px; line-height: 1.24; margin-bottom: 10px;
}
:root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+2) > p:not(:first-child) {
  font-size: 15.5px; line-height: 1.6; opacity: .9; color: var(--fg); margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 860px) {
  :root main > div:first-of-type:has(> div > h2) { grid-template-columns: 1fr; }
  :root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1),
  :root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4),
  :root main > div:first-of-type:has(> div > h2) > div:nth-of-type(n+5) { grid-column: 1 / -1; }
  :root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) { padding: 30px 28px; }
  :root main > div:first-of-type:has(> div > h2) > div:nth-of-type(1) > h2 { font-size: 32px; }
}

/* ---- Homepage archive tail — full-width magazine index + Strip 2 ---- */
:root main:has(> div > div > h2) > div:not(:first-of-type) {
  margin-top: 84px; position: relative;
  background: #f6efe2;
  border: 1px solid rgba(45,51,95,.12); border-radius: 10px;
  padding: 0 34px 22px;
}
:root main:has(> div > div > h2) > div:not(:first-of-type)::before {
  content: "MORE FROM THE ARCHIVE";
  display: flex; align-items: center; justify-content: center;
  min-height: 210px; margin: 0 -34px 20px;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/article-cover.jpg") center 70% / cover no-repeat;
  border-radius: 10px 10px 0 0;
  color: #f6efe2; font-family: var(--fb), system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > h2,
:root main:has(> div > div > h2) > div:not(:first-of-type) > h3 {
  font-family: 'Fraunces', Georgia, serif; font-size: 15px; color: var(--primary);
  letter-spacing: .04em; margin: 4px 0 10px;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > p,
:root main:has(> div > div > h2) > div:not(:first-of-type) > a,
:root main:has(> div > div > h2) > div:not(:first-of-type) > div,
:root main:has(> div > div > h2) > div:not(:first-of-type) > li {
  background: #f6efe2; border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px dotted rgba(45,51,95,.2);
  padding: 11px 2px; margin: 0;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) a {
  color: var(--primary); text-decoration: none;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) a:hover { color: var(--accent); }

/* ================= ARTICLE PAGE ================= */
:root main > h1 { font-size: 42px; line-height: 1.12; margin: 6px 0 8px; }

/* Broken/missing hero image → themed photo band fallback */
:root article > div[role="img"] {
  background: linear-gradient(rgba(45,51,95,.14), rgba(45,51,95,.04)), url("/theme-assets/article-cover.jpg") center / cover no-repeat;
  min-height: 200px; border-radius: 10px; overflow: hidden;
}

/* Dinkus between H2 sections */
:root main > article > h2:not(:first-of-type)::before {
  content: "✦ ✦ ✦"; display: block; text-align: center;
  color: var(--accent); font-size: 12px; font-weight: 400; letter-spacing: .5em;
  margin: 8px 0 24px;
}

/* Hanging quotation mark on blockquotes */
:root main > article > blockquote { position: relative; padding-left: 32px; }
:root main > article > blockquote::before {
  content: "\201C"; position: absolute; left: 2px; top: -4px;
  font-family: 'Fraunces', Georgia, serif; font-size: 46px; line-height: 1; color: var(--accent);
}

/* Affiliate CTAs — real /go/ prefix (worker redirect) as prominent gold pills.
   Full element path + attribute so they strictly out-specify the body-link rule (RULE J). */
:root main > article > p a[href^="/go/"],
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"],
:root main > article > ul a[href^="/go/"],
:root main > article > ol a[href^="/go/"],
:root main > article li a[href^="/go/"] {
  background: var(--accent); color: var(--primary);
  padding: 3px 13px; border: 0; border-radius: 6px;
  font-weight: 700; text-decoration: none; letter-spacing: .01em; text-transform: none;
  box-shadow: 0 1px 3px rgba(45,51,95,.2);
}
:root main > article > p a[href^="/go/"]:hover,
:root main > article > p a[href^="/ref/"]:hover,
:root main > article > p a[href^="/try/"]:hover,
:root main > article > p a[href^="/check/"]:hover,
:root main > article > ul a[href^="/go/"]:hover,
:root main > article > ol a[href^="/go/"]:hover,
:root main > article li a[href^="/go/"]:hover {
  background: var(--primary); color: #f6efe2;
}


/* 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: M7 archive tail cards */
:root main:has(> div > div > h2) > div:not(:first-of-type) {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  align-items: stretch;
  margin-top: 84px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root main:has(> div > div > h2) > div:not(:first-of-type)::before {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  border-radius: 10px;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > h2,
:root main:has(> div > div > h2) > div:not(:first-of-type) > h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > :is(p, a, div, li) {
  min-height: 100%;
  display: flex;
  align-items: center;
  background: #f6efe2;
  border: 1px solid rgba(45,51,95,.12);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(26,26,31,.05);
  padding: 20px 22px;
  margin: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > :is(p, a, div, li):hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(45,51,95,.12);
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > :is(p, div, li) > a,
:root main:has(> div > div > h2) > div:not(:first-of-type) > a {
  color: var(--primary);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  text-decoration: none;
}
:root main:has(> div > div > h2) > div:not(:first-of-type) > :is(p, div, li) > a:hover,
:root main:has(> div > div > h2) > div:not(:first-of-type) > a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  :root main:has(> div > div > h2) > div:not(:first-of-type) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  :root main:has(> div > div > h2) > div:not(:first-of-type)::before {
    min-height: 180px;
  }
  :root main:has(> div > div > h2) > div:not(:first-of-type) > :is(p, a, div, li) {
    padding: 20px 22px;
  }
}

/* refix iter1: S6 article personality anchor */
:root main:has(> h1) > time::before {
  content: "By Julia Rennick, Portland - 6 min read - ";
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=NYT-Cooking-warm overlay=55% grid=asymmetric scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 55%) ── */
: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.55) 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.55) 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; }
}

