*{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-ybcgf63{max-width:860px;margin:0 auto;padding:0 20px}
.css-ohi2nu4{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-ohi2nu4 h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-ohi2nu4 p{font-size:14px;color:#666}
.css-ohi2nu4 a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-ftkpvq1{display:flex;flex-direction:column;gap:20px}
.css-5z52itt{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-5z52itt:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-5z52itt h2{font-size:19px;margin-bottom:6px}
.css-5z52itt h2 a{color:#1a1a1a;text-decoration:none}
.css-5z52itt .css-qusaeg3{font-size:12px;color:#999;margin-bottom:8px}
.css-5z52itt p{font-size:14px;color:#555;margin-bottom:12px}
.css-wp76v92{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-wp76v92:hover{background:#4752c4}
.css-pvain77{padding-bottom:60px}
.css-pvain77 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-pvain77 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-pvain77 h2{font-size:22px;margin:32px 0 12px}
.css-pvain77 h3{font-size:18px;margin:24px 0 8px}
.css-pvain77 p{margin-bottom:16px}
.css-pvain77 ul,.css-pvain77 ol{margin:0 0 16px 24px}
.css-pvain77 a{color:#5865f2}
.css-pvain77 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-m06trpd{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-m06trpd a{color:#999;text-decoration:none}
.css-zgcr515{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-zg351bj{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-67r060u{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-tau455f{text-align:center;margin:0 0 24px}
.css-fa7zc52{max-width:100%;height:auto;border-radius:12px}
.css-pac4cf5{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-pac4cf5 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-sa5ozca{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-wnxqqhr{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-wnxqqhr:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#6E2E4D;--accent:#C99850;--bg:#ECE4D6;--fg:#1A1418;--border:#C8B8A8;--r:28px;--fb:'Plus Jakarta Sans';--fh:'Fraunces'}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&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, 214, .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: 500; }

:root main > article > p { font-size: 16px; line-height: 1.75; margin-bottom: 1.25em; }
:root main > article > h2 { font-family: var(--fh), system-ui, sans-serif; font-size: 24px; font-weight: 700; color: var(--primary); margin: 2.25em 0 0.5em; padding-bottom: 6px; border-bottom: 1px solid var(--accent); letter-spacing: -.01em; }
:root main > article > h3 { font-family: var(--fh), system-ui, sans-serif; font-size: 1.05em; font-weight: 500; color: var(--accent); margin: 1.75em 0 0.4em; }
: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, 152, 80, .06); 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(--fb), 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, 20, 24, .12); }

:root article > section { background: rgba(110, 46, 77, .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, 20, 24, .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(110, 46, 77, .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: 500; }
: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: -.01em; }
: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(--fb), 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(110, 46, 77, .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); }

/* === R3 fixes (2026-06-10T15:00:20.776968+00:00) === */

/* Fix 1: CTA pill badges — drop uppercase, soften to semi-bold, no letter-spacing */
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"] { text-transform: none; font-size: 15px; font-weight: 600; letter-spacing: 0; }

/* Fix 2: H3 — use primary (burgundy) instead of accent (amber) to separate from CTA pills */
:root main > article > h3 { color: var(--primary); font-weight: 600; }

/* Fix 3: Header tagline — larger, upright, slightly more opaque */
:root header p { font-size: 15px; font-style: normal; color: rgba(236, 228, 214, .92); font-weight: 400; }

/* Fix 4: Freshness / last-updated line — small-caps treatment to signal recency intentionally */
.css-67r060u { display: block; font-size: 11px; color: var(--accent); letter-spacing: .10em; text-transform: uppercase; font-weight: 500; margin-top: -20px; margin-bottom: 28px; }

/* === R2 fixes (2026-06-10T14:20:07.803013+00:00) === */

.css-zg351bj { font-size: 0.75em; color: #888; border-top: 1px solid #ddd; padding-top: 12px; margin-top: 24px; }

.css-5z52itt { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 1.5em; margin-bottom: 1.5em; }

:root main > article p + h2, :root main > article ul + h2, :root main > article blockquote + h2 { margin-top: 2.5em; }

/* === R4 fixes (2026-06-10T15:40:05.378424+00:00) === */

/* Fix 1: CTA product links — amber underline instead of amber pill, keeps color signal without the ad-chip shape */
: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); padding: 0; border-radius: 0; text-decoration: underline; text-decoration-style: solid; text-decoration-color: var(--accent); text-underline-offset: 3px; font-weight: 700; font-size: inherit; }
: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: transparent; color: var(--primary); text-decoration-color: var(--primary); }

/* Fix 2: Published/refreshed date stack — ease negative-margin overlap, soften opacity */
.css-67r060u { margin-top: -14px; font-size: 10.5px; letter-spacing: .08em; opacity: 0.85; }

/* ==========================================================================
   v.0acea6 — layout revision
   Editorial signature pass: photo masthead, hero featured card, Editor's
   Picks band, two story-photo section strips, 2-col journal grid, full-width
   magazine-index archive tail. Serif display (Fraunces) + serif body
   (Newsreader) + tracked-sans meta (Plus Jakarta). Moment colour #B34F2A
   used twice only (LATEST ESSAY badge + hero drop cap).
   ========================================================================== */

:root { --ft: 'Newsreader'; --moment: #B34F2A; --paper: #faf5ec; }

/* ---- Masthead: photographed background + serif-italic wordmark + manifesto ---- */
:root header { background: linear-gradient(rgba(110,46,77,.82), rgba(48,16,34,.90)), url("/theme-assets/header-bg.jpg") center/cover; padding: 56px 0 40px; }
:root header h1 { font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600; font-size: 42px; letter-spacing: -.015em; }
:root header span a { font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600; }
:root header p { font-family: var(--ft), Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.5; color: rgba(236,228,214,.94); letter-spacing: .01em; max-width: 60ch; }
:root header p::before { content: "\263E  "; font-style: normal; color: var(--accent); }

/* ================= HOMEPAGE (main without an <article>) ================= */
:root main:not(:has(> article)) { max-width: 1180px; }

/* The card grid wrapper (first div) becomes a 6-col editorial grid.
   Order fields sequence: hero(0) -> "EDITOR'S PICKS" label(1) -> picks + Strip1(2) -> journal(3). */
:root main:not(:has(> article)) > div:first-of-type {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: stretch;
  margin-bottom: 0;
}

/* Section label above the Editor's Picks row (full-row, outside any frame) */
:root main:not(:has(> article)) > div:first-of-type::before {
  content: "Editor's Picks — Read These First";
  order: 1; grid-column: 1 / -1;
  font-family: var(--fb), sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--primary);
  border-bottom: 1px solid rgba(110,46,77,.28); padding-bottom: 12px; margin-top: 26px;
}

/* Strip 1 — story photo band between Editor's Picks and the journal */
:root main:not(:has(> article)) > div:first-of-type::after {
  content: "IN ORDER OF WRITING";
  order: 2; grid-column: 1 / -1; min-height: 210px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/story-photo.jpg") center 30% / cover;
  color: #f6efe0; font-family: var(--fb), sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: 10px; margin: 40px 0 12px;
}

/* Shared homepage card face — warm paper that lifts off the cream page */
:root main:not(:has(> article)) > div:first-of-type > div {
  background: var(--paper); border: 1px solid rgba(110,46,77,.12); border-left: 4px solid var(--accent);
  border-radius: 10px; box-shadow: 0 1px 4px rgba(26,20,24,.05);
}
:root main:not(:has(> article)) > div:first-of-type > div > p:not(:first-child) {
  font-family: var(--ft), Georgia, serif; opacity: 1; color: #3a2f33;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- HERO featured card (first card, full width, THE loud voice) --- */
:root main:not(:has(> article)) > div:first-of-type > div:first-child {
  order: 0; grid-column: 1 / -1;
  background: linear-gradient(180deg, #f7f0e1, #efe6d4);
  border: 1px solid rgba(110,46,77,.20); border-left: 5px solid var(--primary);
  padding: 40px 46px 44px; box-shadow: 0 4px 22px rgba(110,46,77,.11); position: relative; overflow: visible;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child:hover { transform: none; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child::before {
  content: "LATEST ESSAY";
  position: absolute; top: 0; left: 46px; transform: translateY(-50%); z-index: 2;
  font-family: var(--fb), sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--moment);
  background: var(--paper); border: 1px solid var(--moment); border-radius: 999px; padding: 4px 13px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child {
  font-family: var(--fb), sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child::after {
  content: " · By Alexandra · 6 min read"; color: var(--accent);
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 {
  font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2) {
  font-family: var(--ft), Georgia, serif; font-size: 20px; line-height: 1.5;
  color: var(--fg); max-width: 62ch; margin-bottom: 24px;
  display: block; -webkit-line-clamp: none; overflow: visible;
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2)::first-letter {
  font-family: var(--fh), Georgia, serif; font-weight: 600; font-size: 60px; line-height: .78;
  float: left; margin: 6px 12px 0 0; color: var(--moment);
}
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a:last-child {
  font-size: 13px; padding: 12px 28px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase;
}

/* --- Editor's Picks band: cards 2-4, three across --- */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2),
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(3),
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) {
  order: 2; grid-column: span 2; padding: 28px 32px;
}

/* --- Journal grid: cards 5+, two across --- */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(n+5) {
  order: 3; grid-column: span 3; padding: 28px 34px;
}

/* ---- Archive tail (second div): Strip 2 + full-width magazine index ---- */
:root main:not(:has(> article)) > div:not(:first-of-type) {
  margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px; align-items: stretch; background: var(--bg); padding: 0;
}
:root main:not(:has(> article)) > div:not(:first-of-type)::before {
  content: "SEE MORE ESSAYS"; grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; min-height: 210px;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)), url("/theme-assets/story-photo.jpg") center 70% / cover;
  color: #f6efe0; font-family: var(--fb), sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: 10px; margin-bottom: 28px;
}
:root main:not(:has(> article)) > div:not(:first-of-type) > a,
:root main:not(:has(> article)) > div:not(:first-of-type) > li {
  display: block; height: 100%; box-sizing: border-box;
  font-family: var(--ft), Georgia, serif;
  font-size: 15px; line-height: 1.42; color: var(--primary); text-decoration: none;
  background: var(--paper); border: 1px solid rgba(110,46,77,.14);
  border-left: 3px solid var(--accent); border-radius: 10px;
  box-shadow: 0 1px 4px rgba(26,20,24,.06); padding: 18px 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-left-color .15s ease;
}
:root main:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  color: var(--moment); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(110,46,77,.12); border-left-color: var(--primary);
}
/* Rule A — beat the Lambda-hardcoded white on obfuscated tail surfaces.
   Container stays the page paper tone; each card face is the lighter paper so
   the boxed cards lift off the index. Excludes the ::before photo strip. */
:root main:not(:has(> article)) > div:not(:first-of-type) { background: var(--bg) !important; }
:root main:not(:has(> article)) > div:not(:first-of-type) > a,
:root main:not(:has(> article)) > div:not(:first-of-type) > li { background: var(--paper) !important; }

/* ================= ARTICLE PAGE editorial refinements ================= */
:root main:has(> article) { max-width: 760px; }
:root main > h1 { font-family: var(--fh), Georgia, serif; font-style: italic; font-weight: 600; font-size: 42px; line-height: 1.1; }
:root main > article > p { font-family: var(--ft), Georgia, serif; font-size: 18px; line-height: 1.78; }

/* Dinkus between h2 sections */
:root main > article > p + h2::before,
:root main > article > ul + h2::before,
:root main > article > blockquote + h2::before {
  content: "\2737 \2737 \2737"; display: block; text-align: center; border: 0;
  color: var(--accent); font-size: 13px; letter-spacing: .5em; font-weight: 400;
  margin: 0 0 22px; -webkit-text-fill-color: var(--accent);
}

/* Hanging quote on blockquotes */
:root main > article > blockquote { position: relative; padding-left: 44px; font-size: 19px; line-height: 1.6; }
:root main > article > blockquote::before {
  content: "\201C"; position: absolute; left: 8px; top: 2px; line-height: 1;
  font-family: var(--fh), Georgia, serif; font-size: 58px; color: var(--accent);
}

/* Affiliate CTAs — distinct maroon micro-button (Rule J: attribute selector on the
   full body-link path so it strictly beats `main > article > p a` on colour) */
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"],
:root main > article > li a[href^="/ref/"],
:root main > article > li a[href^="/try/"],
:root main > article > li a[href^="/check/"],
:root main > article ul > li a[href^="/ref/"],
:root main > article ul > li a[href^="/try/"],
:root main > article ul > li a[href^="/check/"] {
  background: var(--primary); color: var(--paper); padding: 3px 13px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  font-family: var(--fb), sans-serif; box-shadow: 0 1px 3px rgba(110,46,77,.25);
}
:root main > article > p a[href^="/ref/"]::after,
:root main > article > p a[href^="/try/"]::after,
:root main > article > p a[href^="/check/"]::after { content: " \2197"; font-weight: 400; }
: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(--moment); color: var(--paper); text-decoration: none; }

/* ================= Mobile ================= */
@media (max-width: 720px) {
  :root main:not(:has(> article)) { max-width: 100%; }
  :root main:not(:has(> article)) > div:first-of-type { grid-template-columns: 1fr; gap: 24px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child { padding: 30px 26px 32px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 { font-size: 32px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child > p:nth-of-type(2) { font-size: 18px; }
  :root main:not(:has(> article)) > div:not(:first-of-type) { grid-template-columns: 1fr; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child::before { left: 24px; }
  :root header h1 { font-size: 34px; }
  :root main > 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; }
  /* M4b: main gets overflow-x:hidden here, so per spec its vertical axis also
     clips; pad the homepage main top so the floating LATEST ESSAY pill lives
     inside main's border-box padding zone and is never cut off. */
  :root main:not(:has(> article)) { padding-top: 24px; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


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

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


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

