*{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}
.Sidebar_content__iMEMI{max-width:860px;margin:0 auto;padding:0 20px}
.Main_link__OwpFl{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.Main_link__OwpFl h1{font-size:22px;font-weight:700;margin-bottom:2px}
.Main_link__OwpFl p{font-size:14px;color:#666}
.Main_link__OwpFl a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.Article_text__2TkDV{display:flex;flex-direction:column;gap:20px}
.Sidebar_body__26Sdu{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.Sidebar_body__26Sdu:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.Sidebar_body__26Sdu h2{font-size:19px;margin-bottom:6px}
.Sidebar_body__26Sdu h2 a{color:#1a1a1a;text-decoration:none}
.Sidebar_body__26Sdu .Card_item__s6I1t{font-size:12px;color:#999;margin-bottom:8px}
.Sidebar_body__26Sdu p{font-size:14px;color:#555;margin-bottom:12px}
.Article_block__bfTVm{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.Article_block__bfTVm:hover{background:#4752c4}
.Card_foot__i7kKc{padding-bottom:60px}
.Card_foot__i7kKc h1{font-size:30px;font-weight:700;margin-bottom:8px}
.Card_foot__i7kKc time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.Card_foot__i7kKc h2{font-size:22px;margin:32px 0 12px}
.Card_foot__i7kKc h3{font-size:18px;margin:24px 0 8px}
.Card_foot__i7kKc p{margin-bottom:16px}
.Card_foot__i7kKc ul,.Card_foot__i7kKc ol{margin:0 0 16px 24px}
.Card_foot__i7kKc a{color:#5865f2}
.Card_foot__i7kKc img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.Content_item__B5B6D{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.Content_item__B5B6D a{color:#999;text-decoration:none}
.Section_link__Jtf0e{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.Wrapper_section__A5AOt{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.Hero_main__BWUWd{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.Post_box__QgQcD{text-align:center;margin:0 0 24px}
.Section_head__Kytrz{max-width:100%;height:auto;border-radius:12px}
.Footer_section__qQP1l{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.Footer_section__qQP1l 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)}
.Sidebar_root__elFoN{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.Module_text__lsDHh{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}
.Module_text__lsDHh:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
body{font-family:'Lora',sans-serif;color:#2D2D2D;background:#FFF9F5}
.Main_link__OwpFl{background:#2D1B2D;color:#fff}
.Main_link__OwpFl h1{font-family:'Playfair Display',serif;color:#fff}
.Main_link__OwpFl p{color:rgba(255,255,255,.75)}
.Main_link__OwpFl a{color:#fff;text-decoration:none}
.card h2{font-family:'Playfair Display',serif}
.card h2 a{color:#2D1B2D}
.card h2 a:hover{color:#E63946}
.read-more{color:#E63946}
.article-content h1{font-family:'Playfair Display',serif}
.article-content h2{font-family:'Playfair Display',serif}
.article-content a{color:#E63946}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
/* v.5881ca — layout revision */
/*
 * se-seduc-fr — custom.css
 * Palette  : bordeaux-doré (deep wine for depth, warm gold for the spark returning)
 * Fonts    : Literata (heading) + Mulish (body)
 * Template : card
 */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400&family=Mulish:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --color-bg:           #FBF5F1;
  --color-surface:      #F3E1DA;
  --color-surface-alt:  #EAD0C4;
  --color-text:         #3A2430;
  --color-text-muted:   #7C5F66;
  --color-heading:      #4A1E30;
  --color-accent:       #B8863E;
  --color-accent-hover: #96692C;
  --color-accent-light: #D9AF74;
  --color-border:       #E3CFC3;
  --color-link:         #8C2F49;
  --color-link-hover:   #6B1F38;

  --font-heading:        'Literata', Georgia, serif;
  --font-body:           'Mulish', system-ui, sans-serif;
  --font-size-base:      17px;
  --font-size-sm:        15px;
  --font-size-h1:        2.5rem;
  --font-size-h2:        1.8rem;
  --font-size-h3:        1.3rem;
  --font-weight-heading: 600;
  --font-weight-body:    400;
  --line-height-body:    1.7;
  --line-height-heading: 1.25;

  --border-radius:       12px;
  --spacing-section:     3.5rem;
  --max-width-content:   68ch;
  --max-width-layout:    920px;
}

/* ─── Base ──────────────────────────────────────────────────── */
:root body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root main,
:root .site-content {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Headings ──────────────────────────────────────────────── */
:root h1,
:root h2,
:root h3,
:root h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  color: var(--color-heading);
  line-height: var(--line-height-heading);
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

:root h1 { font-size: var(--font-size-h1); }
:root h2 { font-size: var(--font-size-h2); }
:root h3 { font-size: var(--font-size-h3); }
:root h4 { font-size: 1.1rem; }

/* ─── Paragraphs ────────────────────────────────────────────── */
:root p {
  max-width: var(--max-width-content);
  margin-block: 0 1em;
}

:root .entry-content p,
:root .post-content p,
:root article p {
  max-width: var(--max-width-content);
  line-height: var(--line-height-body);
}

/* ─── Links ─────────────────────────────────────────────────── */
:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-light);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

:root a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-accent);
}

/* ─── Lists ─────────────────────────────────────────────────── */
:root ul,
:root ol {
  max-width: var(--max-width-content);
  padding-inline-start: 1.5rem;
  margin-block: 0 1rem;
}

:root li {
  margin-block: 0.35rem;
  line-height: var(--line-height-body);
}

:root ul li::marker {
  color: var(--color-accent);
}

/* ─── Blockquote ────────────────────────────────────────────── */
:root blockquote {
  max-width: var(--max-width-content);
  margin-inline: 0;
  margin-block: 1.75rem;
  padding: 1.2rem 1.6rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
}

:root blockquote p {
  margin-bottom: 0;
  max-width: none;
}

/* ─── Cards (template: card) ────────────────────────────────── */
:root .card,
:root .post-card,
:root article.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.6rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

:root .card:hover,
:root .post-card:hover {
  box-shadow: 0 6px 22px rgba(74, 30, 48, 0.12);
  transform: translateY(-2px);
}

:root .card-grid,
:root .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-block: var(--spacing-section);
}

:root .card h2,
:root .card h3,
:root .post-card h2,
:root .post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

:root .card p,
:root .post-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  max-width: none;
}

/* ─── Site header ───────────────────────────────────────────── */
:root .site-header,
:root header.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.25rem;
}

:root .site-title,
:root .site-header .site-title a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}

:root .site-description,
:root .site-header .site-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* ─── Navigation ────────────────────────────────────────────── */
:root .site-nav a,
:root nav.main-navigation a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ─── Card template top banner ──────────────────────────────── */
:root .Main_link__OwpFl {
  background-color: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding-block: calc(var(--spacing-section) * 1.3);
  text-align: center;
}

:root .Main_link__OwpFl h1 {
  font-size: clamp(1.9rem, 5vw, var(--font-size-h1));
  color: var(--color-heading);
  max-width: 28ch;
  margin-inline: auto;
}

:root .Main_link__OwpFl p {
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-inline: auto;
  font-size: 1.05rem;
}

:root .Main_link__OwpFl a {
  color: var(--color-link);
  text-decoration: none;
}

/* ─── Article content ───────────────────────────────────────── */
:root .article-content h1,
:root .article-content h2,
:root .article-content h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
}

:root .article-content a {
  color: var(--color-link);
}

:root .article-content img {
  border-radius: var(--border-radius);
  max-width: 100%;
  height: auto;
}

/* ─── Footer ────────────────────────────────────────────────── */
:root .site-footer,
:root footer.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 2rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

:root .site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

:root .site-footer a:hover {
  color: var(--color-accent-hover);
}

/* ─── Section spacing ───────────────────────────────────────── */
:root section {
  padding-block: var(--spacing-section);
}

/* ─── Utilities ─────────────────────────────────────────────── */
:root .text-muted   { color: var(--color-text-muted); }
:root .text-accent  { color: var(--color-accent); }
:root .bg-surface   { background-color: var(--color-surface); }
:root .read-more    { color: var(--color-link); font-size: var(--font-size-sm); }

/* === R2 fixes (2026-07-09T06:00:34.432345+00:00) === */

/* Fix: 'Read Article' button on homepage cards — stray generic indigo blue replaced with brand bordeaux */
:root .Article_block__bfTVm {
  background-color: var(--color-heading); /* #4A1E30 */
  color: var(--color-bg); /* #FBF5F1 */
  text-decoration: none;
  padding: 0.55em 1.2em;
  border-radius: var(--border-radius);
  display: inline-block;
}

/* Fix: transparency/disclosure box at end of article — match blockquote texture instead of institutional pale yellow */
:root main aside {
  background-color: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-muted);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.1rem 1.4rem;
}

/* Fix: breathing room above in-article section headings for fast scanning/scrolling */
:root main h2 {
  margin-top: 2.75rem;
}

/* === R3 fixes (2026-07-09T06:40:20.952381+00:00) === */

/* Fix: in-article H3 subheadings were still flush against the previous paragraph — extend the H2 breathing-room fix to H3 with a slightly smaller gap to preserve the heading hierarchy */
:root main h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Fix: paid recommendation links (/top/...) were visually identical to plain reference links — a subtle weight bump makes them findable without looking like an ad */
:root a[href^="/top/"] {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
 * v.5881ca — EDITORIAL SIGNATURE PASS
 * DOM (Next static build, stable class names):
 *   HOME : main:not(:has(>article)) > div(.Article_text) > div(.Sidebar_body) × N
 *          each card: p(date) · h2>a(title) · p(excerpt) · a(CTA)
 *   ART  : main:has(>article) > h1 · time · article · div(.Footer_section related)
 * Signature: ✦ spark ("étincelle"). Moment color #8C4A00 used exactly twice
 * (featured drop-cap + "DERNIER RÉCIT" badge). No !important, no class hooks
 * that could drift — element/structural selectors + href-prefix for CTAs.
 * ═══════════════════════════════════════════════════════════════════ */

/* ─── Masthead: cover photo + serif-italic wordmark + spark ─────────── */
:root body > header {
  background:
    linear-gradient(rgba(40,18,28,.68), rgba(40,18,28,.40)),
    url("/theme-assets/cover-photo.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--color-heading);
  padding: 0;
}
:root body > header > div {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 4rem) 1.5rem;
  text-align: center;
}
:root body > header:has(h1) > div { padding-block: clamp(3.6rem, 9vw, 6rem); }
:root body > header:not(:has(h1)) > div { padding-block: clamp(1.5rem, 4vw, 2.2rem); }

:root body > header h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: #FBF5F1;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0;
}
:root body > header h1::after {
  content: "✦";
  display: block;
  color: var(--color-accent-light);
  font-style: normal;
  font-size: .85rem;
  margin: .75rem auto 0;
}
:root body > header p {
  color: rgba(251, 245, 241, .87);
  max-width: 58ch;
  margin: 1rem auto 0;
  font-family: var(--font-body);
  font-size: .97rem;
  line-height: 1.6;
}
/* article-page compact wordmark link */
:root body > header a {
  color: #FBF5F1;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.55rem;
  text-decoration: none;
  letter-spacing: .01em;
}
:root body > header a:hover { color: var(--color-accent-light); }

/* ─── Homepage: the feed becomes a grid ────────────────────────────── */
/* Scoped to the FIRST div (.Article_text feed) only — main also holds a
 * second div (.Sidebar_root archive tail). Exactly two hero-photo strips
 * (RULE M6): LE CARNET on the feed's ::before (between feature card and grid),
 * PLUS D'ARTICLES on the tail's ::before (between grid and archive tail). The
 * feed's ::after is a text section-label band, not a photo strip. */
:root main:not(:has(> article)) > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
  margin-block: clamp(3rem, 7vw, 4.5rem);
}

/* Strip 1 — "LE CARNET" photo band (RULE M6 position 1). Reordered (order:2)
 * so it sits BETWEEN the featured DERNIER RÉCIT card and the journal grid,
 * instead of above the feature card. */
:root main:not(:has(> article)) > div:first-of-type::before {
  content: "LE CARNET";
  grid-column: 1 / -1;
  order: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  padding-bottom: 22px;
  background:
    linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)),
    url("/theme-assets/essay-photo.jpg");
  background-size: cover;
  background-position: center 30%;
  border-radius: 8px;
  color: #faf5ec;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  margin-bottom: 10px;
}

/* Section label band — full-width uppercase-tracked label + hairline underline
 * ABOVE the journal grid row (RULE M2). Reordered (order:3) to sit directly
 * below the LE CARNET strip and above the journal cards. (The PLUS D'ARTICLES
 * hero-photo strip that used to live here has moved to the archive tail's
 * ::before so both bands still bracket the journal grid — RULE M6.) */
:root main:not(:has(> article)) > div:first-of-type::after {
  content: "LE JOURNAL";
  grid-column: 1 / -1;
  order: 3;
  margin: .25rem 0 .25rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

/* Regular journal card */
:root main:not(:has(> article)) > div > div {
  order: 4;
  display: flex;
  flex-direction: column;
  background: #F6E8E1;
  border: 1px solid rgba(74, 30, 48, .12);
  border-radius: 8px;
  padding: 26px 32px 28px;
  box-shadow: 0 1px 4px rgba(74, 30, 48, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main:not(:has(> article)) > div > div:hover {
  box-shadow: 0 8px 22px rgba(74, 30, 48, .12);
  transform: translateY(-2px);
}

/* date kicker */
:root main:not(:has(> article)) > div > div > p:first-of-type {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-accent-hover);
  margin: 0 0 .7rem;
}
/* title */
:root main:not(:has(> article)) > div > div h2 {
  font-size: 1.16rem;
  line-height: 1.28;
  margin: 0 0 .55rem;
}
:root main:not(:has(> article)) > div > div h2 a {
  color: var(--color-heading);
  text-decoration: none;
}
:root main:not(:has(> article)) > div > div h2 a:hover { color: var(--color-link); }
/* excerpt (clamped to keep row heights even) */
:root main:not(:has(> article)) > div > div > p:last-of-type {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 1.2rem;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* CTA pill (the "Read Article" link is the only classed <a> / direct <a>) */
:root main:not(:has(> article)) > div > div > a {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: var(--color-heading);
  color: #FBF5F1;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .62em 1.25em;
  border-radius: 6px;
}
:root main:not(:has(> article)) > div > div > a:hover { background: var(--color-link); }

/* ─── Featured hero (first card, full width, the loud voice) ────────── */
:root main:not(:has(> article)) > div > div:first-child {
  grid-column: 1 / -1;
  order: 1;
  position: relative;
  background: #F9EDE7;
  padding: clamp(2.4rem, 5vw, 3.4rem) clamp(2rem, 5vw, 3.6rem);
  border-color: rgba(74, 30, 48, .16);
}
:root main:not(:has(> article)) > div > div:first-child::before {
  content: "DERNIER RÉCIT";
  position: absolute;
  top: 0;
  left: clamp(2rem, 5vw, 3.6rem);
  transform: translateY(-50%);
  background: #8C4A00;               /* moment color — place 1 */
  color: #FBF5F1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .42em .95em;
  border-radius: 4px;
}
:root main:not(:has(> article)) > div > div:first-child > p:first-of-type::before {
  content: "Par Anaïs · ";
}
:root main:not(:has(> article)) > div > div:first-child h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.12;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 1rem;
}
:root main:not(:has(> article)) > div > div:first-child > p:last-of-type {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.65;
  max-width: 64ch;
}
:root main:not(:has(> article)) > div > div:first-child > p:last-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.3em;
  line-height: .78;
  float: left;
  padding: .04em .12em 0 0;
  color: #8C4A00;                    /* moment color — place 2 */
  font-weight: 600;
}
:root main:not(:has(> article)) > div > div:first-child > a {
  background: transparent;
  color: var(--color-heading);
  border: 1.5px solid var(--color-heading);
  padding: .7em 1.5em;
}
:root main:not(:has(> article)) > div > div:first-child > a:hover {
  background: var(--color-heading);
  color: #FBF5F1;
}

/* ─── Compact archive tail — first-class boxed cream index (RULE M7) ──── */
/* div:last-of-type = .Sidebar_root (title-only <a> rows). Base theme gives
 * each anchor background:#fff + a flex column; promote to a full-width 3-col
 * magazine index with the SAME paper/border/radius/shadow/hover as the top
 * journal cards, just tighter. */
:root main:not(:has(> article)) > div:last-of-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  margin-block: clamp(2rem, 5vw, 3rem);
}
/* Strip 2 — "PLUS D'ARTICLES" hero-photo band relocated here so it opens the
 * archive tail, i.e. sits between the journal grid and the tail (RULE M6
 * position 2). Full-width first grid item of the 3-col tail. */
:root main:not(:has(> article)) > div:last-of-type::before {
  content: "PLUS D'ARTICLES";
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 210px;
  padding-bottom: 22px;
  background:
    linear-gradient(rgba(22, 18, 24, .58), rgba(22, 18, 24, .28)),
    url("/theme-assets/essay-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  border-radius: 8px;
  color: #faf5ec;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  margin-bottom: 18px;
}
:root main:not(:has(> article)) > div:last-of-type > a {
  display: flex;
  align-items: flex-start;
  background: #F6E8E1 !important;   /* override base theme hardcoded #fff */
  border: 1px solid rgba(74, 30, 48, .12);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(74, 30, 48, .05);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-heading);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, color .2s ease;
}
:root main:not(:has(> article)) > div:last-of-type > a:hover {
  box-shadow: 0 8px 22px rgba(74, 30, 48, .12);
  transform: translateY(-2px);
  color: var(--color-link);
}

/* ─── Article page: title, meta, spark dividers, media ──────────────── */
:root main:has(> article) > h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.14;
  margin-bottom: .5rem;
}
:root main:has(> article) > time {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
}
/* persona/location anchor on the byline (RULE S6 — date-only meta was bare) */
:root main:has(> article) > time::after {
  content: " · Par Anaïs · Marseille";
  color: var(--color-accent-hover);
}
:root main:has(> article) article > p {
  font-size: 1.08rem;
  line-height: 1.78;
  max-width: 68ch;
}
/* ✦ spark before each section heading — the signature motif */
:root main:has(> article) article > h2::before {
  content: "✦";
  display: block;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1;
  margin-bottom: .5rem;
}
/* hero + inline photography */
:root main:has(> article) article img {
  width: 100%;
  border-radius: 10px;
  height: auto;
}
:root main:has(> article) article > div:first-child { margin: .5rem 0 2rem; }
:root main:has(> article) article > div:first-child + p::first-letter {
  font-family: var(--font-heading);
  font-size: 3.1em;
  line-height: .8;
  float: left;
  padding: .04em .12em 0 0;
  color: var(--color-heading);
  font-weight: 600;
}

/* ─── In-article affiliate CTA: findable chip, not a skimmable link ──── */
/* Full element path + [href] so it strictly beats any body-link rule (RULE J) */
:root main:has(> article) article a[href^="/top/"] {
  background: var(--color-link);
  color: #FBF5F1;
  font-weight: 600;
  text-decoration: none;
  padding: .14em .5em;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root main:has(> article) article a[href^="/top/"]:hover {
  background: var(--color-heading);
  color: #FBF5F1;
}

/* ─── Related-articles module (article footer) ─────────────────────── */
:root main:has(> article) > div:last-child {
  margin-top: 3rem;
  padding: 1.8rem clamp(1.5rem, 4vw, 2.4rem) 2rem;
  background: #F3E1DA;
  border: 1px solid rgba(74, 30, 48, .10);
  border-radius: 10px;
}
:root main:has(> article) > div:last-child h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-hover);
  margin: 0 0 .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(74, 30, 48, .12);
}
:root main:has(> article) > div:last-child a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-link);
  text-decoration: none;
  padding: .62rem 0;
  border-bottom: 1px dotted rgba(74, 30, 48, .18);
  /* RULE M1: base theme hardcodes #fff on these link rows — clear it so the
   * rows blend into the pale-pink related container instead of stark white. */
  background: transparent !important;
}
:root main:has(> article) > div:last-child a:last-child { border-bottom: none; }
:root main:has(> article) > div:last-child a:hover { color: var(--color-heading); }

/* ─── Footer polish (element selectors — .site-footer never matches here) ─ */
:root body > footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-block: 2rem;
  text-align: center;
}
:root body > footer small { color: var(--color-text-muted); font-size: 14px; }
:root body > footer a { color: var(--color-link); text-underline-offset: 3px; }


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


/* home-single-column-fix v1 (RULE M3) */
/* On mobile the 2-col journal grid squeezes each card so narrow that the 32px
 * horizontal padding can't give real breathing room — text hugs the frame.
 * Collapse the journal grid AND the archive tail to one column so full-width
 * cards keep their generous side padding. */
@media (max-width: 640px) {
  :root main:not(:has(> article)) > div:first-of-type {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  :root main:not(:has(> article)) > div:last-of-type {
    grid-template-columns: 1fr;
  }
}


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

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

