*{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-ls3x3g9{max-width:860px;margin:0 auto;padding:0 20px}
.css-7wr7tdf{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-7wr7tdf h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-7wr7tdf p{font-size:14px;color:#666}
.css-7wr7tdf a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-zq2fq77{display:flex;flex-direction:column;gap:20px}
.css-d1lmvpe{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-d1lmvpe:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-d1lmvpe h2{font-size:19px;margin-bottom:6px}
.css-d1lmvpe h2 a{color:#1a1a1a;text-decoration:none}
.css-d1lmvpe .css-8dky0w7{font-size:12px;color:#999;margin-bottom:8px}
.css-d1lmvpe p{font-size:14px;color:#555;margin-bottom:12px}
.css-tncrwat{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-tncrwat:hover{background:#4752c4}
.css-ebj3rg1{padding-bottom:60px}
.css-ebj3rg1 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-ebj3rg1 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-ebj3rg1 h2{font-size:22px;margin:32px 0 12px}
.css-ebj3rg1 h3{font-size:18px;margin:24px 0 8px}
.css-ebj3rg1 p{margin-bottom:16px}
.css-ebj3rg1 ul,.css-ebj3rg1 ol{margin:0 0 16px 24px}
.css-ebj3rg1 a{color:#5865f2}
.css-ebj3rg1 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-ismyumh{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-ismyumh a{color:#999;text-decoration:none}
.css-lq9tjpt{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-r0fstiy{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-dvtfplr{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-gdgpssi{text-align:center;margin:0 0 24px}
.css-5cgzwf6{max-width:100%;height:auto;border-radius:12px}
.css-t2v9v3s{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-t2v9v3s 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-rcrehf1{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-wtb5dxa{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-wtb5dxa:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#3A4536;--accent:#D49060;--bg:#EFE9D5;--fg:#26201A;--border:#C5BEA0;--moment:#8B6B47;--paper:#faf5ec;--rust:#B34F2A;--r:34px;--fb:'Spectral';--fh:'Trirong';--fm:'Mukta Vaani'}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Mukta+Vaani:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Trirong:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* =============================================================== */
/* v.aac839 — layout revision                                      */
/* Aquarell Sonntag — watercolour-diary editorial identity.        */
/* Homepage <main> holds TWO div children: the grid wrapper first,  */
/* then an overflow div of extra tail <a> links. The two photo      */
/* strips are the WRAPPER's ::before/::after (div:first-of-type)     */
/* only — never the overflow div, else strips duplicate (M6).       */
/*   Wrapper: 19x div.card  then  27x bare <a> tail links.          */
/*   main > div:first-of-type = the 6-col grid wrapper.             */
/*   main > div > div  = cards (hero / picks / journal).            */
/*   main > div > a    = magazine-index tail links.                 */
/* Grid sequenced by order: hero(1) picks(2) strip1(3) journal(4)   */
/* strip2(5) tail(6). The two photo section-break strips are the    */
/* wrapper's ::before/::after grid items. Editor's-Picks label      */
/* leaks full-width off the hero card. Homepage scoped with         */
/* main:not(:has(> article)); article with main:has(> article) so   */
/* nothing bleeds onto article pages. Moment colour #8B6B47         */
/* used in exactly 2 places: hero drop-cap + Editor's-Picks rule.   */
/* Affiliate prefix on this site is /get/ (inline pills).           */
/* =============================================================== */

:root body { font-family: var(--fb), Georgia, serif; color: var(--fg); background: var(--bg); line-height: 1.74; font-size: 17px; }
::selection { background: var(--accent); color: var(--bg); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* ---------------------------------------------------------------- */
/* MASTHEAD — slim brand bar (default, used on article pages)        */
/* ---------------------------------------------------------------- */
:root header { background: var(--primary); border-bottom: 3px solid var(--accent); padding: 0; }
:root header > div { padding: 20px 30px; }
:root header a { font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500; font-size: 23px; color: var(--bg); text-decoration: none; letter-spacing: .01em; }
:root header a:hover { color: var(--accent); }

/* ---- HOME MASTHEAD: atmospheric photo + serif-italic wordmark ---- */
:root header:has(h1) {
  position: relative;
  background: linear-gradient(rgba(28,32,26,.62), rgba(28,32,26,.42)), url("/theme-assets/front-image.jpg");
  background-size: cover;
  background-position: center 42%;
  border-bottom: 3px solid var(--accent);
}
:root header:has(h1) > div { padding: 74px 30px 56px; text-align: center; }
:root header:has(h1) > div::before {
  content: "Aquarell-Tagebuch · Würzburg · seit Oktober 2024";
  display: block;
  font-family: var(--fm), sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
:root header:has(h1) h1 {
  font-family: var(--fh), Cambria, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1.02;
  color: #f6f1e6;
  letter-spacing: .01em;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
:root header:has(h1) h1 + p {
  font-family: var(--fh), Cambria, serif;
  font-style: italic;
  font-size: 17.5px; line-height: 1.5;
  color: #efe7d6;
  max-width: 56ch;
  margin: 16px auto 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ---------------------------------------------------------------- */
/* HOMEPAGE FEED — one wrapper div = 6-col editorial grid            */
/*   main > div > div : cards (hero / picks / journal)              */
/*   main > div > a   : bare tail links (magazine index)            */
/* ---------------------------------------------------------------- */
:root main { padding-bottom: 84px; }

:root main:not(:has(> article)) > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 30px;
  row-gap: 40px;
  margin-top: 54px;
  align-items: stretch;
}

/* base card = journal default: soft warm-paper frame, never white */
:root main:not(:has(> article)) > div > div {
  order: 4;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px 34px 30px;
  background: var(--paper);
  border: 1px solid rgba(58,69,54,.14);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(15,20,12,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
:root main:not(:has(> article)) > div > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(15,20,12,.10);
}
:root main:not(:has(> article)) > div > div > p:first-child {
  font-family: var(--fm), sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); opacity: .9; margin: 0 0 10px;
}
:root main:not(:has(> article)) > div > div > h2 {
  font-family: var(--fh), Cambria, serif;
  font-size: 20px; font-weight: 500; line-height: 1.26; margin: 0 0 12px;
}
:root main:not(:has(> article)) > div > div > h2 a { color: var(--primary); text-decoration: none; }
:root main:not(:has(> article)) > div > div > h2 a:hover { color: var(--accent); }
:root main:not(:has(> article)) > div > div > p:nth-of-type(2) {
  font-size: 15px; line-height: 1.6; color: var(--fg); opacity: .88; margin: 0 0 18px; max-width: 60ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:root main:not(:has(> article)) > div > div > a:last-child {
  margin-top: auto; align-self: flex-start;
  font-family: var(--fm), sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bg); background: var(--primary);
  padding: 8px 20px; border-radius: 999px; text-decoration: none;
}
:root main:not(:has(> article)) > div > div > a:last-child:hover { background: var(--accent); }
/* lone trailing journal card (odd journal count) spans the row
   so there is no empty half-column */
:root main:not(:has(> article)) > div > div:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
:root main:not(:has(> article)) > div > div:last-of-type:nth-of-type(odd) > p:nth-of-type(2) { max-width: 68ch; }

/* ---- HERO / FEATURED CARD (first card) ---- */
:root main:not(:has(> article)) > div > div:first-of-type {
  order: 1;
  grid-column: 1 / -1;
  padding: 42px 46px;
  background: linear-gradient(180deg, #f8f2e6, #f1e9d7);
  border: 1px solid rgba(58,69,54,.2);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(15,20,12,.08);
  overflow: hidden;
}
/* reorder inside hero: badge → title → excerpt → CTA → picks label */
:root main:not(:has(> article)) > div > div:first-of-type > p:first-child {
  order: 0; font-size: 0; margin: 0 0 12px;
}
:root main:not(:has(> article)) > div > div:first-of-type > p:first-child::before {
  content: "Jüngster Eintrag";
  font-family: var(--fm), sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
:root main:not(:has(> article)) > div > div:first-of-type > h2 {
  order: 1; margin: 0 0 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08;
}
:root main:not(:has(> article)) > div > div:first-of-type > h2 a {
  font-family: var(--fh), Cambria, serif; font-style: italic; font-weight: 500; color: var(--primary);
}
:root main:not(:has(> article)) > div > div:first-of-type > p:nth-of-type(2) {
  order: 3; display: block; overflow: visible; -webkit-line-clamp: unset;
  font-size: 19px; line-height: 1.56; opacity: 1; max-width: 64ch; margin: 0 0 4px;
}
:root main:not(:has(> article)) > div > div:first-of-type > p:nth-of-type(2)::first-letter {
  float: left; font-family: var(--fh), Cambria, serif; font-weight: 600; font-style: normal;
  font-size: 62px; line-height: .78; margin: 6px 12px 0 0; color: var(--moment);
}
:root main:not(:has(> article)) > div > div:first-of-type > a:last-child {
  order: 4; align-self: flex-start; margin: 24px 0 0;
  font-family: var(--fm), sans-serif;
  background: none; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
:root main:not(:has(> article)) > div > div:first-of-type > a:last-child:hover {
  background: var(--primary); color: var(--bg);
}
/* Editor's-Picks section label — leaks full-width off the hero card
   (hero is grid-column 1/-1) so it reads as a full-width band. */
:root main:not(:has(> article)) > div > div:first-of-type::after {
  content: "Renates Empfehlungen — zuerst lesen";
  order: 5;
  margin: 32px -46px -42px;
  padding: 16px 46px;
  font-family: var(--fm), sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(139,107,71,.08);
  border-top: 1px solid rgba(0,0,0,.09);
  border-bottom: 2px solid var(--moment);
}

/* ---- EDITOR'S PICKS (cards 2, 3, 4) — 3-card band with N° anchor ---- */
:root main:not(:has(> article)) > div > div:nth-of-type(2),
:root main:not(:has(> article)) > div > div:nth-of-type(3),
:root main:not(:has(> article)) > div > div:nth-of-type(4) {
  order: 2;
  grid-column: span 2;
  position: relative;
  background: #f4ecda;
  border-color: rgba(212,144,96,.28);
}
:root main:not(:has(> article)) > div > div:nth-of-type(2)::before,
:root main:not(:has(> article)) > div > div:nth-of-type(3)::before,
:root main:not(:has(> article)) > div > div:nth-of-type(4)::before {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--fh), Cambria, serif; font-style: italic; font-size: 30px; line-height: 1;
  color: rgba(212,144,96,.5);
}
:root main:not(:has(> article)) > div > div:nth-of-type(2)::before { content: "N° I"; }
:root main:not(:has(> article)) > div > div:nth-of-type(3)::before { content: "N° II"; }
:root main:not(:has(> article)) > div > div:nth-of-type(4)::before { content: "N° III"; }
:root main:not(:has(> article)) > div > div:nth-of-type(2) > h2,
:root main:not(:has(> article)) > div > div:nth-of-type(3) > h2,
:root main:not(:has(> article)) > div > div:nth-of-type(4) > h2 { padding-right: 46px; }

/* ---- PHOTO STRIP 1 — section break between Picks and the Journal ---- */
/* Scoped to :first-of-type: <main> now holds TWO div children (grid wrapper
   + an overflow tail div). Unscoped `> div::before/::after` matched BOTH,
   duplicating the strips (M6). Only the grid wrapper carries the two breaks. */
:root main:not(:has(> article)) > div:first-of-type::before {
  content: "Das Tagebuch — der Reihe nach";
  order: 3;
  grid-column: 1 / -1;
  min-height: 210px;
  margin: 10px 0 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px 40px;
  background: linear-gradient(rgba(20,24,28,.58), rgba(20,24,28,.34)), url("/theme-assets/story-cover.jpg");
  background-size: cover; background-position: center 34%;
  border-radius: 10px;
  font-family: var(--fm), sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: #f4efe6; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
/* ---- PHOTO STRIP 2 — section break between the Journal and the tail ---- */
:root main:not(:has(> article)) > div:first-of-type::after {
  content: "Weiterlesen — das Archiv";
  order: 5;
  grid-column: 1 / -1;
  min-height: 210px;
  margin: 6px 0 6px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px 40px;
  background: linear-gradient(rgba(24,20,28,.55), rgba(24,20,28,.34)), url("/theme-assets/story-cover.jpg");
  background-size: cover; background-position: center 70%;
  border-radius: 10px;
  font-family: var(--fm), sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: #f4efe6; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* ---------------------------------------------------------------- */
/* COMPACT ARCHIVE TAIL — full-width 3-col magazine index            */
/*   bare <a> children of the wrapper, after the 19 cards. Same      */
/*   paper/border/radius/shadow/hover system as the journal cards.   */
/* ---------------------------------------------------------------- */
:root main:not(:has(> article)) > div > a {
  order: 6;
  grid-column: span 2;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid rgba(58,69,54,.14);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(15,20,12,.05);
  font-family: var(--fh), Cambria, serif;
  font-weight: 500; font-size: 16px; line-height: 1.34;
  color: var(--primary); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
:root main:not(:has(> article)) > div > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(15,20,12,.10);
  color: var(--accent);
}

/* ---------------------------------------------------------------- */
/* ARTICLE PAGE                                                      */
/* ---------------------------------------------------------------- */
:root main:has(> article) { max-width: 46rem; }
:root main > h1 {
  font-family: var(--fh), Cambria, serif;
  font-size: clamp(30px, 4.4vw, 42px); font-weight: 500; font-style: italic;
  color: var(--primary); line-height: 1.14; margin: 40px 0 8px; letter-spacing: .005em;
}
:root main > time {
  display: block; font-family: var(--fm), sans-serif; font-size: 12px; color: var(--accent);
  margin-bottom: 30px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
/* S6 — persona/byline anchor under the article date (article pages only) */
:root main:has(> article) > time::after {
  content: "Von Renate Zimmermann · Würzburg · Aquarell-Tagebuch";
  display: block;
  margin-top: 7px;
  font-family: var(--fb), Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 13.5px; letter-spacing: .01em; text-transform: none;
  color: var(--fg); opacity: .82;
}

:root main > article > div[role="img"] { margin: 0 0 34px; }
:root main > article > div[role="img"] img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(15,20,12,.14);
}

:root main > article > p { margin: 0 0 1.35em; font-size: 18px; line-height: 1.78; }
:root main > article > p:first-of-type::first-letter {
  float: left; font-family: var(--fh), Cambria, serif; font-weight: 600; font-style: normal;
  font-size: 58px; line-height: .8; margin: 6px 12px 0 0; color: var(--primary);
}
:root main > article > h2 {
  font-family: var(--fh), Cambria, serif; font-size: 27px; font-weight: 500; color: var(--primary);
  margin: 1.9em 0 .55em; padding-bottom: 7px; border-bottom: 1px solid var(--accent); line-height: 1.2;
}
:root main > article > h2:not(:first-of-type)::before {
  content: "⁕ ⁕ ⁕"; display: block; text-align: center; border: 0;
  color: var(--accent); opacity: .7; font-size: 15px; letter-spacing: .5em; font-weight: 400;
  margin: 6px 0 30px;
}
:root main > article > h3 {
  font-family: var(--fh), Cambria, serif; font-size: 20px; font-weight: 500; font-style: italic;
  color: var(--accent); margin: 1.6em 0 .5em; letter-spacing: 0;
}
:root main > article ul, :root main > article ol { margin: 0 0 20px 24px; }
:root main > article li { margin-bottom: 8px; line-height: 1.7; }
:root main > article blockquote {
  border-left: 3px solid var(--accent); padding: 14px 4px 14px 30px; margin: 30px 0;
  font-family: var(--fh), Cambria, serif; font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--primary); position: relative;
}
:root main > article blockquote::before {
  content: "\201C"; position: absolute; left: 12px; top: 6px;
  font-family: var(--fh), Cambria, serif; font-size: 52px; color: rgba(212,144,96,.4); line-height: 1;
}
:root main > article blockquote p { margin: 0; }

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

/* affiliate CTA — inline pill (this site uses /get/). Full path + attr
   so it strictly beats the body-link rule on specificity (RULE J). */
:root main > article > p a[href^="/get/"],
:root main > article > ul > li a[href^="/get/"],
:root main > article > ol > li a[href^="/get/"],
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/go/"],
:root main > article > p a[href^="/try/"] {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  padding: 2px 13px; border-radius: var(--r);
  text-decoration: none; font-weight: 600;
  font-family: var(--fm), sans-serif; font-size: 14px; letter-spacing: .02em;
  line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
:root main > article > p a[href^="/get/"]:hover,
:root main > article > ul > li a[href^="/get/"]:hover,
:root main > article > ol > li a[href^="/get/"]:hover,
:root main > article > p a[href^="/ref/"]:hover,
:root main > article > p a[href^="/go/"]:hover,
:root main > article > p a[href^="/try/"]:hover { background: var(--primary); color: var(--bg); }

/* aside / callout inside article */
:root main > article > aside {
  background: rgba(58,69,54,.06); border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0; padding: 16px 22px; margin: 34px 0 0;
  font-family: var(--fb), Georgia, serif; font-style: italic; font-size: 15px; color: var(--fg);
}

/* ---- Related posts module ("Verwandte Artikel") — article-only ---- */
:root main:has(> article) > div {
  margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--accent);
}
:root main:has(> article) > div > h3 {
  font-family: var(--fm), sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin: 0 0 18px;
}
:root main:has(> article) > div > div {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
:root main:has(> article) > div > div > a {
  display: block; padding: 16px 20px;
  background: var(--paper); border: 1px solid rgba(58,69,54,.14); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15,20,12,.05);
  font-family: var(--fh), Cambria, serif; font-size: 16px; line-height: 1.3;
  color: var(--primary); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
:root main:has(> article) > div > div > a:hover {
  transform: translateY(-2px); box-shadow: 0 5px 16px rgba(15,20,12,.10); color: var(--accent);
}

/* ---------------------------------------------------------------- */
/* FOOTER                                                            */
/* ---------------------------------------------------------------- */
:root footer {
  background: transparent; border-top: 1px solid var(--border); padding: 26px 0 40px; margin-top: 60px;
  text-align: center; font-family: var(--fm), sans-serif; font-size: 12px; color: var(--fg);
  opacity: .62; letter-spacing: .05em;
}
: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); }

/* ---------------------------------------------------------------- */
/* MOBILE                                                            */
/* ---------------------------------------------------------------- */
@media (max-width: 720px) {
  :root main:not(:has(> article)) > div {
    grid-template-columns: 1fr; row-gap: 24px; margin-top: 38px;
  }
  :root main:not(:has(> article)) > div > div,
  :root main:not(:has(> article)) > div > a { grid-column: 1 / -1; }
  :root main:not(:has(> article)) > div > div:first-of-type { padding: 30px 26px; }
  :root main:not(:has(> article)) > div > div:first-of-type::after { margin: 28px -26px -30px; padding: 15px 26px; }
  :root header:has(h1) h1 { font-size: clamp(32px, 9vw, 44px); }
}


/* 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=The-Sill-botanical overlay=40% grid=asymmetric scale=dramatic 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; }
}

