*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.sc-BPFyRl{max-width:900px;margin:0 auto;padding:0 28px}
.sc-yYoxaH{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.sc-yYoxaH h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.sc-yYoxaH p{font-size:18px;opacity:.7}
.sc-yYoxaH a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.sc-UNNrKb{padding:0}
.sc-YEtBDr{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.sc-YEtBDr h2{font-size:24px;font-weight:700;margin-bottom:6px}
.sc-YEtBDr h2 a{color:#111;text-decoration:none}
.sc-YEtBDr h2 a:hover{text-decoration:underline}
.sc-YEtBDr .sc-dmtoPr{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.sc-YEtBDr p{font-size:15px;color:#444;margin-bottom:10px}
.sc-mqYhqU{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.sc-mqYhqU:hover{background:#333}
.sc-PLFUYs{padding-bottom:60px}
.sc-PLFUYs h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.sc-PLFUYs time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.sc-PLFUYs h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.sc-PLFUYs h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.sc-PLFUYs p{margin-bottom:18px;font-size:17px}
.sc-PLFUYs ul,.sc-PLFUYs ol{margin:0 0 18px 24px}
.sc-PLFUYs a{color:#111;font-weight:600;text-decoration:underline}
.sc-PLFUYs img{max-width:100%;height:auto;margin:20px 0}
.sc-woRwrQ{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.sc-woRwrQ a{color:#888;text-decoration:none}
.sc-tHbfhf{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.sc-pldcNh{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.sc-bzBIAd{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.sc-LbohrH{margin:0 0 24px}
.sc-cufvoy{width:100%;height:auto;border-radius:0}
.sc-eJEiUh{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.sc-eJEiUh h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.sc-eJEiUh ul{list-style:none;padding:0}
.sc-eJEiUh li{padding:6px 0}
.sc-eJEiUh a{color:#111;text-decoration:underline;font-weight:600}
.sc-eQfLlv{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.sc-eQfLlv ul{list-style:none;padding:0}
.sc-eQfLlv li{padding:6px 0;font-size:16px}
.sc-eQfLlv a{color:#111;text-decoration:none;font-weight:600}
.sc-eQfLlv a:hover{text-decoration:underline}
.sc-eQfLlv .sc-dmtoPr{margin:0 0 0 8px}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;1,300&display=swap');
body{font-family:'Merriweather',Georgia,serif;font-weight:300;color:#29221D;background:#FBF8F2}
.sc-yYoxaH{background:#9E4B20;color:#fff}
.sc-yYoxaH h1{font-family:'Lora',Georgia,serif;font-weight:700;color:#fff}
.sc-yYoxaH p{color:rgba(255,255,255,.82)}
.sc-yYoxaH a{color:#fff;text-decoration:none}
.card h2{font-family:'Lora',Georgia,serif;font-weight:700}
.card h2 a{color:#9E4B20}
.card h2 a:hover{color:#BF7E2A}
.read-more{color:#BF7E2A}
.article-content h1{font-family:'Lora',Georgia,serif;font-weight:700}
.article-content h2{font-family:'Lora',Georgia,serif;font-weight:700}
.article-content a{color:#BF7E2A}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
/* v.cc347a — layout revision */

/* ar-argent-fr — custom.css — Mes Fins de Mois
   Journal de bord familial, fins de mois — Céline Mauger, Reims
   Terracotta-ambre sur papier écru. Editorial signature pass.

   DOM is a styled-components build (.sc-xxxxxx classes — never target by name).
   Every scoped rule keeps a :root prefix so it out-specifies the template's
   single-class rules (.sc-YEtBDr / .sc-mqYhqU / .sc-yYoxaH = 0,1,0). Without it
   the whole pass loses to the base CSS and nothing renders.

   Homepage  main:has(> div > h2)   feed of entry cards (each .sc-YEtBDr)
     > div:first-child              hero — the loud voice
     > div:nth-child(2..4)          Éditor's Picks band (3 across)
     > div:nth-child(5)             journal lead + "PAR ORDRE D'ÉCRITURE" strip
     > div:nth-child(n+6)           chronological grid (2 across)
     > div:last-child (has ul)      compact archive tail + "ARTICLES PRÉCÉDENTS"
   Article   main:has(> article)    hgroup + article + related aside (> div)
   Moment colour --rust (#5E3A5C) used in TWO roles only: drop caps + Picks label.
   Third voice --font-meta (system sans) carries kickers/meta only. */

/* ---- Webfonts (declared, not @import — the concatenated @import is dropped) - */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuAwjxJNNO.woff2) format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lora/v37/0QIhMX1D_JOuMw_7I_FMl_E.woff2) format('woff2');
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSdqoLe61qQ.woff2) format('woff2');
}
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4B0qyriQwlOrhSvowK_l5-eTxCVx0ZbwLvKH2Gk9hLmp0v5yA-xXPqCzLvPee1XYk_XSf-FmScUF3zCPDaYKfF.woff) format('woff');
}

:root {
  --primary:    #9E4B20;
  --accent:     #BF7E2A;
  --bg:         #FBF8F2;
  --paper:      #FAF5EC;   /* warm off-white card surface (never #fff) */
  --paper2:     #F8F2E6;
  --bg-alt:     #F3EDE3;
  --fg:         #29221D;
  --ink:        #2A1208;
  --muted:      #6E5D54;
  --border:     #DDD0C4;
  --rust:       #5E3A5C;   /* moment colour — 2 places only */
  --r:          8px;
  --shadow:     rgba(158, 75, 32, 0.07);
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Merriweather', Georgia, serif;
  --font-meta:    'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

::selection {
  background-color: rgba(94, 58, 92, 0.16);
  color: var(--fg);
}

/* ---- Base typography --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--accent); }

strong, b { font-weight: 400; color: var(--fg); }
em, i { font-style: italic; }

ul, ol { padding-left: 1.6em; margin-bottom: 1.25em; max-width: 68ch; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--accent); }

blockquote {
  margin: 1.75em 0;
  padding: 1em 1.5em;
  border-left: 3px solid var(--accent);
  background-color: var(--bg-alt);
  font-style: italic;
  color: var(--muted);
  border-radius: 0 var(--r) var(--r) 0;
  max-width: 68ch;
}
blockquote p { margin-bottom: 0; max-width: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.2em auto;
  max-width: 36ch;
}

/* ======================================================================== */
/*  MASTHEAD  —  body > div:first-child  (.sc-yYoxaH)                        */
/*  homepage :has(> div > h1)  ·  article :has(> div > a)                    */
/* ======================================================================== */
:root body > div:first-child {
  position: relative;
  max-width: none;
  background:
    linear-gradient(180deg, rgba(42, 18, 8, 0.42) 0%, rgba(42, 18, 8, 0.72) 100%),
    url("/theme-assets/landing-photo.jpg") center 40% / cover no-repeat;
  color: #FBF8F2;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}

/* Homepage — tall wordmark treatment with kicker + manifesto + hairline */
:root body > div:first-child:has(> div > h1) { padding: 4.6rem 1.5rem 3.7rem; }

:root body > div:first-child:has(> div > h1) > div::before {
  content: "REIMS · CARNET DE FINS DE MOIS";
  display: block;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.4;
  color: rgba(251, 248, 242, 0.82);
  margin-bottom: 1.1rem;
}

:root body > div:first-child h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #FBF8F2;
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.34);
}

:root body > div:first-child p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(251, 248, 242, 0.92);
  max-width: 46ch;
  margin: 1rem auto 0;
}

:root body > div:first-child:has(> div > h1) > div::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 1.5rem auto 0;
  background: var(--accent);
}

/* Article / author pages — slim wordmark bar on the same photo band */
:root body > div:first-child:has(> div > a) { padding: 1.7rem 1.5rem; }

:root body > div:first-child > div > a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: #FBF8F2;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
:root body > div:first-child > div > a:hover { color: #FFFFFF; }

/* ======================================================================== */
/*  HOMEPAGE FEED  —  main:has(> div > h2)  (.sc-UNNrKb)                     */
/* ======================================================================== */
:root main:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1.8rem;
  row-gap: 2.6rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.4rem 1.5rem 2.4rem;
}

/* ---- Base card (all entry cards; tail excluded via :has(> h2)) ---------- */
:root main:has(> div > h2) > div:has(> h2) {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r);
  padding: 26px 32px 28px;
  margin: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:has(> h2):hover {
  box-shadow: 0 6px 20px rgba(158, 75, 32, 0.12);
  transform: translateY(-2px);
}

/* date kicker */
:root main:has(> div > h2) > div:has(> h2) > p:first-child {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

/* headline */
:root main:has(> div > h2) > div:has(> h2) > h2 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.26;
  margin: 0 0 0.55rem;
}
:root main:has(> div > h2) > div:has(> h2) > h2 a {
  color: var(--primary);
  text-decoration: none;
}
:root main:has(> div > h2) > div:has(> h2) > h2 a:hover { color: var(--accent); }

/* excerpt — clamped to 3 lines so a row stays even (RULE D) */
:root main:has(> div > h2) > div:has(> h2) > p:nth-of-type(2) {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 1.15rem;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA — outlined terracotta pill, pinned to the card foot */
:root main:has(> div > h2) > div:has(> h2) > a {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
:root main:has(> div > h2) > div:has(> h2) > a:hover {
  background: var(--primary);
  color: var(--paper);
}

/* ---- HERO — first entry, full width, the loud voice -------------------- */
:root main:has(> div > h2) > div:first-child {
  grid-column: 1 / -1;
  position: relative;
  background: var(--paper2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  border-radius: var(--r);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 10px 32px rgba(158, 75, 32, 0.12);
}

:root main:has(> div > h2) > div:first-child::before {
  content: "LA DERNIÈRE ENTRÉE";
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

:root main:has(> div > h2) > div:first-child > p:first-child { color: var(--muted); }

:root main:has(> div > h2) > div:first-child > h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.08;
  margin: 0.2rem 0 0;
}

/* byline block fills the row (RULE 4 — no dead right column) */
:root main:has(> div > h2) > div:first-child > h2::after {
  content: "PAR CÉLINE MAUGER · JOURNAL DE BORD";
  display: block;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 0.95rem;
}

/* hero excerpt — no clamp, larger measure, with drop cap */
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2) {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.62;
  color: var(--fg);
  margin-top: 1.1rem;
  max-width: 62ch;
  display: block;
  overflow: visible;
  -webkit-line-clamp: none;
}

/* drop cap — moment colour, role 1 of 2 */
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.82;
  color: var(--rust);
  margin: 0.06em 0.12em 0 0;
}

/* hero CTA — filled pill */
:root main:has(> div > h2) > div:first-child > a {
  margin-top: 1.35rem;
  background: var(--primary);
  color: var(--paper);
  border-color: var(--primary);
  padding: 0.72rem 1.8rem;
  font-size: 0.72rem;
}
:root main:has(> div > h2) > div:first-child > a:hover {
  background: transparent;
  color: var(--primary);
}

/* ---- ÉDITOR'S PICKS band — entries 2–4, three across ------------------- */
:root main:has(> div > h2) > div:nth-child(2),
:root main:has(> div > h2) > div:nth-child(3),
:root main:has(> div > h2) > div:nth-child(4) {
  grid-column: span 2;
  background: var(--bg-alt);
  margin-top: 3.2rem;
}

:root main:has(> div > h2) > div:nth-child(2) { position: relative; }

/* full-row section label above the band (RULE B) — spans all 6 cols */
:root main:has(> div > h2) > div:nth-child(2)::before {
  content: "À LA UNE — À LIRE D'ABORD";
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.85rem);
  width: calc(300% + 3.6rem);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(94, 58, 92, 0.32);
  font-family: var(--font-meta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);              /* moment colour, role 2 of 2 */
}

/* ---- STRIP 1 + JOURNAL LEAD — entry 5, full width ---------------------- */
:root main:has(> div > h2) > div:nth-child(5) {
  grid-column: 1 / -1;
  margin-top: 3.6rem;
  padding-top: 0;
  overflow: hidden;
}

/* photo band break (RULE F, strip 1) — "PAR ORDRE D'ÉCRITURE" */
:root main:has(> div > h2) > div:nth-child(5)::before {
  content: "PAR ORDRE D'ÉCRITURE";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin: -26px -32px 26px;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/entry-photo.jpg") center 30% / cover no-repeat;
  border-radius: var(--r) var(--r) 0 0;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FBF8F2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---- CHRONOLOGICAL grid — entries 6+, two across ----------------------- */
:root main:has(> div > h2) > div:has(> h2):nth-child(n+6) { grid-column: span 3; }

/* ---- COMPACT ARCHIVE TAIL — last child (.sc-eQfLlv, has > ul) ---------- */
:root main:has(> div > h2) > div:last-child {
  grid-column: 1 / -1;
  position: relative;
  max-width: none;
  margin-top: 3.6rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* photo band break (RULE F, strip 2) — "ARTICLES PRÉCÉDENTS" */
:root main:has(> div > h2) > div:last-child::before {
  content: "ARTICLES PRÉCÉDENTS";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 40px;
  border-radius: var(--r);
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/entry-photo.jpg") center 70% / cover no-repeat;
  font-family: var(--font-meta);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FBF8F2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

:root main:has(> div > h2) > div:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  align-items: stretch;
}
/* boxed cream index cards — same design system as the top-half journal cards
   (paper token, hairline border, radius, shadow, hover lift) — M7 parity */
:root main:has(> div > h2) > div:last-child li {
  display: flex;
  break-inside: avoid;
  padding: 18px 22px;
  margin: 0;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.4;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:last-child li:hover {
  box-shadow: 0 6px 20px rgba(158, 75, 32, 0.12);
  transform: translateY(-2px);
}
:root main:has(> div > h2) > div:last-child li a {
  flex: 1;
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
}
:root main:has(> div > h2) > div:last-child li a:hover {
  color: var(--accent);
}
:root main:has(> div > h2) > div:last-child li .sc-dmtoPr,
:root main:has(> div > h2) > div:last-child li span {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 8px;
}

/* ======================================================================== */
/*  ARTICLE PAGE  —  main:has(> article)  (.sc-PLFUYs)                       */
/* ======================================================================== */
:root main:has(> article) {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 1.5rem;
}

:root main:has(> article) > hgroup { margin-bottom: 1.8rem; }

:root main:has(> article) > hgroup h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--primary);
  margin: 0 0 0.7rem;
}

:root main:has(> article) > hgroup time {
  display: block;
  margin: 0;
  opacity: 1;
  font-family: var(--font-meta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* persona anchor — byline + location on the meta line (S6) */
:root main:has(> article) > hgroup time::after {
  content: " · Par Céline Mauger, Reims";
  color: var(--muted);
}

:root main:has(> article) > article > p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: none;
}

/* drop cap on the opening paragraph — moment colour (same role as hero) */
:root main:has(> article) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.78;
  color: var(--rust);
  margin: 0.04em 0.12em 0 0;
}

/* section headings + ❧ dinkus divider */
:root main:has(> article) > article > h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.6em 0 0.6em;
  padding: 0;
  border: none;
}
:root main:has(> article) > article > h2::before {
  content: "❧";
  display: block;
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 auto 1.1em;
  opacity: 0.85;
}

:root main:has(> article) > article > h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.9em 0 0.5em;
}

/* body links — distinct from plain emphasis; external → arrow */
:root main:has(> article) > article a {
  color: var(--primary);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 2px solid rgba(191, 126, 42, 0.45);
  padding-bottom: 1px;
}
:root main:has(> article) > article a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
:root main:has(> article) > article a[href^="http"]::after {
  content: "↗";
  font-size: 0.72em;
  vertical-align: super;
  margin-left: 0.12em;
  color: var(--accent);
}

/* affiliate CTAs (/get/…) — inline recommendation chip, clearly distinct.
   Full element path + attribute so it strictly beats the body-link rule (RULE J);
   scoped to direct body paragraphs/lists to leave inline-card sections alone. */
:root main:has(> article) > article > p a[href^="/get/"],
:root main:has(> article) > article > ul a[href^="/get/"],
:root main:has(> article) > article > ol a[href^="/get/"] {
  color: var(--primary);
  font-weight: 400;
  text-decoration: none;
  border-bottom: none;
  background: rgba(191, 126, 42, 0.15);
  box-shadow: inset 0 -1px 0 rgba(158, 75, 32, 0.5);
  padding: 0.08em 0.42em;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
:root main:has(> article) > article > p a[href^="/get/"]::before,
:root main:has(> article) > article > ul a[href^="/get/"]::before,
:root main:has(> article) > article > ol a[href^="/get/"]::before {
  content: "→ ";
  font-family: var(--font-meta);
  font-weight: 700;
  color: var(--accent);
}
:root main:has(> article) > article > p a[href^="/get/"]:hover,
:root main:has(> article) > article > ul a[href^="/get/"]:hover,
:root main:has(> article) > article > ol a[href^="/get/"]:hover {
  background: var(--primary);
  color: var(--paper);
}
/* external-arrow rule must not double up on the affiliate chip */
:root main:has(> article) > article > p a[href^="/get/"]::after,
:root main:has(> article) > article > ul a[href^="/get/"]::after,
:root main:has(> article) > article > ol a[href^="/get/"]::after { content: none; }

/* blockquote — hanging quote mark */
:root main:has(> article) > article blockquote {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1.6em 0.5em 2.3em;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-style: italic;
  color: var(--muted);
  border-radius: 0 var(--r) var(--r) 0;
}
:root main:has(> article) > article blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.4rem;
  top: 0.12em;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}

/* imagery */
:root main:has(> article) > article img {
  width: 100%;
  border-radius: var(--r);
  margin: 1.8em 0;
}
:root main:has(> article) > article > section:first-child img {
  max-height: 360px;
  object-fit: cover;
  margin: 0 0 0.4em;
}

/* affiliate disclosure strip — warm, not the template's dark #222 */
:root main:has(> article) > article > section:first-child + div {
  background: var(--bg-alt);
  color: var(--muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.85rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.86rem;
  font-style: italic;
}

/* related aside — "Articles connexes" with terracotta rail */
:root main:has(> article) > div:last-child {
  max-width: none;
  border-left: 4px solid var(--primary);
  padding: 0.4rem 0 0.4rem 24px;
  margin-top: 3rem;
}
:root main:has(> article) > div:last-child h3 {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.9rem;
}
:root main:has(> article) > div:last-child ul { list-style: none; padding: 0; margin: 0; }
:root main:has(> article) > div:last-child li {
  padding: 7px 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.12);
}
:root main:has(> article) > div:last-child a {
  color: var(--primary);
  font-weight: 400;
  text-decoration: none;
}
:root main:has(> article) > div:last-child a:hover { color: var(--accent); text-decoration: underline; }

/* ======================================================================== */
/*  FOOTER  —  footer (.sc-woRwrQ)                                           */
/* ======================================================================== */
:root footer {
  background-color: #2A1208;
  color: #D4B89A;
  padding: 2.4rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 4rem;
}
:root footer a { color: #E8D0B0; text-decoration: underline; }
:root footer a:hover { color: #F5EDDD; }

/* ======================================================================== */
/*  RESPONSIVE                                                              */
/* ======================================================================== */
@media (max-width: 760px) {
  html { font-size: 16px; }

  :root main:has(> div > h2) {
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
    padding: 2.4rem 1.1rem;
  }
  :root main:has(> div > h2) > div:first-child,
  :root main:has(> div > h2) > div:nth-child(2),
  :root main:has(> div > h2) > div:nth-child(3),
  :root main:has(> div > h2) > div:nth-child(4),
  :root main:has(> div > h2) > div:nth-child(5),
  :root main:has(> div > h2) > div:has(> h2):nth-child(n+6),
  :root main:has(> div > h2) > div:last-child { grid-column: 1 / -1; }

  /* section label spans one column now */
  :root main:has(> div > h2) > div:nth-child(2)::before { width: 100%; }

  :root main:has(> div > h2) > div:nth-child(3),
  :root main:has(> div > h2) > div:nth-child(4) { margin-top: 0; }

  :root main:has(> div > h2) > div:last-child ul { grid-template-columns: repeat(2, 1fr); }

  :root body > div:first-child:has(> div > h1) { padding: 3.2rem 1.2rem 2.7rem; }
}


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


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Racquet-moody overlay=25% grid=asymmetric scale=balanced family=flat-divs */


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

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

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

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

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


/* premium-upgrade v2 */
/* premium-upgrade v2 patch — targets top 3 rule failures from v1 batch:
   M10 (article affiliate CTA invisible), M2 (missing homepage section label),
   M11 (dinkus leaking onto article page's first h2). Applied 2026-08-30. */

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"] {
  display: inline-block;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
:root main:has(> h1) a[href^="/try/"]:hover,
:root main:has(> h1) a[href^="/ref/"]:hover,
:root main:has(> h1) a[href^="/go/"]:hover,
:root main:has(> h1) a[href^="/out/"]:hover,
:root main:has(> h1) a[href^="/check/"]:hover,
:root main:has(> h1) a[href^="/view/"]:hover {
  background: var(--accent) !important;
  color: var(--fg) !important;
}

/* ── M2: homepage section label (only shows on home, not article) ── */
:root main:not(:has(> h1))::before {
  content: "LATEST";
  display: block;
  font-family: var(--fs, var(--fb, "PT Sans"), system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
}

/* ── M11: prevent dinkus leaking onto FIRST h2 of article page ──
   The v1 selector `h2 + p ~ h2::before` should already exclude the first h2,
   but some Astro templates render article body differently. Belt-and-braces:
   explicitly kill the pseudo on first-of-type. */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

