*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,system-ui,sans-serif;line-height:1.7;color:#333;background:#fff}
.footer-a116d1{max-width:780px;margin:0 auto;padding:0 20px}
header{background:#1a1a2e;color:#fff;padding:32px 0;margin-bottom:40px}
header h1{font-size:28px;margin-bottom:4px}
header p{opacity:.7;font-size:15px}
header .shell-c1ab1c{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.content-de02a0{border-bottom:1px solid #eee;padding:24px 0}
.content-de02a0 h2{font-size:20px;margin-bottom:8px}
.content-de02a0 h2 a{color:#1a1a2e;text-decoration:none}
.content-de02a0 h2 a:hover{color:#e94560}
.content-de02a0 .date{font-size:13px;color:#999;margin-bottom:8px}
.container-32c0ad{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.inner-c34af8{padding-bottom:60px}
.inner-c34af8 h1{font-size:32px;margin-bottom:8px}
.inner-c34af8 time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.inner-c34af8 h2{font-size:22px;margin:32px 0 12px}
.inner-c34af8 h3{font-size:18px;margin:24px 0 8px}
.inner-c34af8 p{margin-bottom:16px}
.inner-c34af8 ul,.inner-c34af8 ol{margin:0 0 16px 24px}
.inner-c34af8 a{color:#e94560}
.inner-c34af8 img{max-width:100%;height:auto;border-radius:8px;margin:16px 0}
footer{border-top:1px solid #eee;padding:24px 0;margin-top:40px;text-align:center;font-size:13px;color:#999}
footer a{color:#999}
.footer-f1c66d{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.header-500f7e{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.region-3323d3{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.module-42b44f{text-align:center;margin:0 0 20px}
.footer-29d1f9{max-width:100%;height:auto;border-radius:6px}
.header-dc9e07{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.header-dc9e07 h3{font-size:18px;margin-bottom:12px}
.header-dc9e07 ul{list-style:none;padding:0}
.header-dc9e07 li{padding:4px 0}
.header-dc9e07 a{color:#e94560;text-decoration:none}
.layout-548345{padding:20px 0}
.layout-548345 ul{list-style:none;padding:0}
.layout-548345 li{padding:5px 0;font-size:15px}
.layout-548345 a{color:#1a1a2e;text-decoration:none}
.layout-548345 a:hover{color:#e94560}
/* === Theme === */
:root{--primary:#C9722B;--accent:#2C4055;--bg:#ECE3CA;--fg:#1A1F2A;--border:#C9BFA6;--r:3px;--fb:'IBM Plex Sans';--fh:'Roboto Slab'}
/* === Custom === */
/* v.47d3a1 — layout revision */
/*
 * Stowdry — editorial-signature pass (emergency-water-preparedness / Jason Parker).
 * Voices:  Source Serif 4  = display + article body (the calm editorial voice)
 *          IBM Plex Sans   = card excerpts + UI
 *          IBM Plex Mono   = meta/labels (the IT-support "log file" voice — the signature)
 * Moment color: bronze #7A5A3C used EXACTLY twice — Editor's Picks label + hero drop cap.
 * Signature:    double-wave water mark (SVG data URI) in masthead + footer + italic wordmark.
 * All selectors are element/structural. `:is(#qafix, el)` claims ID-level specificity to
 * beat the obfuscated base theme and any earlier round (#qafix is absent from the DOM,
 * so matching happens through the `main`/`header` alternative while keeping ID weight).
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

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

/* ======================================================================
   1. MASTHEAD — atmospheric band, serif-italic wordmark, wave mark, manifesto
   ====================================================================== */

:root :is(#qafix, header) {
  background:
    linear-gradient(158deg, rgba(20, 24, 32, .90) 0%, rgba(44, 64, 85, .84) 52%, rgba(122, 90, 60, .70) 100%),
    url("/theme-assets/masthead-bg.jpg") center 40% / cover no-repeat,
    var(--accent);
  border-bottom: 4px solid var(--primary);
  padding: 56px 0 36px;
  margin-bottom: 56px;
  color: #F3EBD8;
}
/* article-page header is a slimmer band (contains the wordmark <a>, not <h1>) */
:root :is(#qafix, header):has(> div > a) {
  padding: 24px 0 20px;
  margin-bottom: 44px;
}
:root :is(#qafix, header) > div {
  padding: 0 24px;
  border-bottom: 0;
}

:root :is(#qafix, header) h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 46px;
  letter-spacing: -.015em;
  line-height: 1.06;
  color: #F5EEDD;
  margin-bottom: 12px;
}
:root :is(#qafix, header) h1::before {
  content: '';
  display: block;
  width: 52px;
  height: 21px;
  margin-bottom: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20'><path d='M1 6 Q7 0 13 6 T25 6 T37 6 T47 6' fill='none' stroke='%23C9722B' stroke-width='2.4' stroke-linecap='round'/><path d='M1 14 Q7 8 13 14 T25 14 T37 14 T47 14' fill='none' stroke='%23ECE3CA' stroke-width='2.4' stroke-linecap='round' opacity='.75'/></svg>") left center / contain no-repeat;
}
:root :is(#qafix, header) h1 + p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.58;
  color: rgba(243, 235, 216, .86);
  max-width: 560px;
}
/* manifesto strap — the persona in one mono "log" line */
:root :is(#qafix, header) > div:has(> h1)::after {
  content: 'GREATER HOUSTON\00A0\00B7\00A0EVERY TANK, FILTER & TABLET TESTED IN MY GARAGE\00A0\00B7\00A0DRY-RUN READY SINCE BERYL, 2024';
  display: block;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 235, 216, .28);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .18em;
  color: rgba(243, 235, 216, .70);
}

/* article-page wordmark link: wave + italic serif */
:root :is(#qafix, header) > div > a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.01em;
  color: #F5EEDD;
  text-decoration: none;
}
:root :is(#qafix, header) > div > a::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 14px;
  margin-right: 11px;
  vertical-align: 1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20'><path d='M1 6 Q7 0 13 6 T25 6 T37 6 T47 6' fill='none' stroke='%23C9722B' stroke-width='2.6' stroke-linecap='round'/><path d='M1 14 Q7 8 13 14 T25 14 T37 14 T47 14' fill='none' stroke='%23ECE3CA' stroke-width='2.6' stroke-linecap='round' opacity='.75'/></svg>") left center / contain no-repeat;
}

/* ======================================================================
   2. HOMEPAGE — hero -> Editor's Picks -> strip -> Garage Log grid -> strip -> archive
   Homepage <main> is the only one with `> article > .date`.
   ====================================================================== */

:root :is(#qafix, main):has(> article > .date) {
  max-width: 1140px;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 30px;
  row-gap: 40px;
  align-items: stretch;
}
:root :is(#qafix, main):has(> article > .date) > article {
  grid-column: 1 / -1;
  border-bottom: 0;
  padding: 0;
  margin: 0;
}

/* ---------- 2a. HERO — the one loud voice ---------- */
:root :is(#qafix, main):has(> article > .date) > article:first-of-type {
  order: 1;
  padding: 4px 0 0;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type::before {
  content: 'LATEST FIELD TEST';
  display: inline-block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  color: #F3EBD8;
  background: var(--accent);
  padding: 5px 13px 4px;
  border-radius: 3px;
  margin-bottom: 22px;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 15ch;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > h2 a { color: var(--fg); text-decoration: none; }
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > h2 a:hover { color: var(--primary); }
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > .date {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > .date::before { content: 'BY JASON PARKER\00A0\00B7\00A0'; }
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > p:not(.date) {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  opacity: 1;
  max-width: 64ch;
  margin-bottom: 24px;
}
/* MOMENT COLOR #1 — hero drop cap, bronze */
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > p:not(.date)::first-letter {
  float: left;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 62px;
  line-height: .82;
  color: #7A5A3C;
  padding: 6px 12px 0 0;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > a:last-child {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 10px 24px;
}
:root :is(#qafix, main):has(> article > .date) > article:first-of-type > a:last-child:hover {
  background: var(--accent);
  color: #F3EBD8;
}
/* Editor's Picks label — full-width block at the foot of the hero, above the band.
   MOMENT COLOR #2 — bronze. (RULE B: full row, outside any card frame.) */
:root :is(#qafix, main):has(> article > .date) > article:first-of-type::after {
  content: 'EDITOR\2019S PICKS\00A0\2014\00A0READ THESE FIRST';
  display: block;
  margin-top: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(122, 90, 60, .38);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  color: #7A5A3C;
}

/* ---------- 2b. EDITOR'S PICKS — 3-up band ---------- */
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2),
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3),
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) {
  order: 2;
  grid-column: span 2;
  background: #F6EFDD;
  border: 1px solid rgba(44, 64, 85, .14);
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  padding: 26px 32px 28px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2) > .date,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3) > .date,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) > .date {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2) > h2,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3) > h2,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) > h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.008em;
  margin-bottom: 10px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2) > h2 a,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3) > h2 a,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) > h2 a { color: var(--fg); text-decoration: none; }
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2) > h2 a:hover,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3) > h2 a:hover,
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) > h2 a:hover { color: var(--primary); }
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2) > p:not(.date),
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3) > p:not(.date),
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) > p:not(.date) {
  font-size: 14px;
  line-height: 1.6;
  opacity: .9;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ---------- STRIP 1 — chapter break between Picks and the Garage Log (RULE F) ---------- */
:root :is(#qafix, main):has(> article > .date)::before {
  content: 'MORE ESSAYS BELOW';
  order: 3;
  grid-column: 1 / -1;
  min-height: 200px;
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)),
    url("/theme-assets/chapter-cover.jpg") center 30% / cover no-repeat,
    linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F3EBD8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

/* ---------- Journal (Garage Log) section label — full-width (RULE B) ---------- */
:root :is(#qafix, main):has(> article > .date)::after {
  content: 'THE GARAGE LOG\00A0\2014\00A0EVERY TEST, NEWEST FIRST';
  order: 4;
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(44, 64, 85, .28);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--accent);
}

/* ---------- 2c. GARAGE LOG — quiet 2-col chronological grid ---------- */
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) {
  order: 5;
  grid-column: span 3;
  background: #F3ECDA;
  border: 1px solid rgba(44, 64, 85, .10);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  padding: 26px 32px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) > .date {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  margin-bottom: 9px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) > h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.006em;
  margin-bottom: 8px;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) > h2 a { color: var(--fg); text-decoration: none; }
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) > h2 a:hover { color: var(--primary); }
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) > p:not(.date) {
  font-size: 14.5px;
  line-height: 1.58;
  opacity: .88;
  margin-bottom: 14px;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Card "Read More" — quiet mono arrow link (picks + log) */
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+2) > a:last-child {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
}
:root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+2) > a:last-child:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- STRIP 2 + archive tail (RULE F strip2 + RULE G full-width index) ---------- */
:root :is(#qafix, main):has(> article > .date) > section {
  order: 6;
  grid-column: 1 / -1;
  margin: 44px 0 0;
  padding: 0;
  border-top: 0;
}
:root :is(#qafix, main):has(> article > .date) > section::before {
  content: 'OLDER ENTRIES';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  margin-bottom: 34px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 24, 28, .55), rgba(20, 24, 28, .25)),
    url("/theme-assets/chapter-cover.jpg") center 70% / cover no-repeat,
    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F3EBD8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
:root :is(#qafix, main):has(> article > .date) > section > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li {
  padding: 11px 0;
  border-bottom: 1px dotted rgba(44, 64, 85, .22);
  break-inside: avoid;
  line-height: 1.4;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li > a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li > a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ======================================================================
   3. ARTICLE PAGES — display title, dinkus, hanging quote, affiliate chips
   ====================================================================== */

:root :is(#qafix, main) > h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 41px;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--fg);
  margin: 14px 0 12px;
}
:root :is(#qafix, main) > h1::before {
  content: 'FROM THE GARAGE LAB';
  display: block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--primary);
  margin-bottom: 16px;
}
:root :is(#qafix, main) > time {
  display: block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 30px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* body copy — serif reading voice */
:root :is(#qafix, main) > article:not(:has(> .date)) > p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 18px;
}
:root :is(#qafix, main) > article:not(:has(> .date)) ul,
:root :is(#qafix, main) > article:not(:has(> .date)) ol { margin: 0 0 18px 22px; }
:root :is(#qafix, main) > article:not(:has(> .date)) li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17.5px;
  line-height: 1.68;
  margin-bottom: 8px;
}

/* h2 — quiet serif head beneath a centered water dinkus */
:root :is(#qafix, main) > article:not(:has(> .date)) > h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.014em;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  text-transform: none;
  margin: 56px 0 16px;
}
:root :is(#qafix, main) > article:not(:has(> .date)) > h2::before {
  content: '\2248\00A0\2248\00A0\2248';
  display: block;
  text-align: center;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .5em;
  color: var(--primary);
  margin-bottom: 40px;
}

/* h3 — mono log sub-marker */
:root :is(#qafix, main) > article:not(:has(> .date)) > h3 {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7A3B1E;
  border: 0;
  padding: 0;
  margin: 34px 0 10px;
}

/* blockquote — hanging quote, no panel */
:root :is(#qafix, main) > article:not(:has(> .date)) blockquote {
  position: relative;
  border: 0;
  background: transparent;
  padding: 2px 0 2px 44px;
  margin: 32px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.58;
  color: var(--accent);
}
:root :is(#qafix, main) > article:not(:has(> .date)) blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -6px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
  color: var(--primary);
}

/* body links — navy text, orange underline */
:root :is(#qafix, main) > article:not(:has(> .date)) > p a,
:root :is(#qafix, main) > article:not(:has(> .date)) > p a:visited {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
:root :is(#qafix, main) > article:not(:has(> .date)) > p a:hover {
  color: var(--primary);
  text-decoration-color: var(--accent);
}

/* AFFILIATE CTAs — navy product chips, unmistakably distinct from orange text links */
:root :is(#qafix, main) > article > p a[href^="/try/"],
:root :is(#qafix, main) > article > p a[href^="/ref/"],
:root :is(#qafix, main) > article > p a[href^="/go/"],
:root :is(#qafix, main) > article > p a[href^="/out/"],
:root :is(#qafix, main) > article > p a[href^="http"]:not([href*="stowdry.com"]) {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  color: #F3EBD8;
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: 1px 9px 2px;
  text-decoration: none;
}
:root :is(#qafix, main) > article > p a[href^="/try/"]::after,
:root :is(#qafix, main) > article > p a[href^="/ref/"]::after,
:root :is(#qafix, main) > article > p a[href^="/go/"]::after,
:root :is(#qafix, main) > article > p a[href^="/out/"]::after,
:root :is(#qafix, main) > article > p a[href^="http"]:not([href*="stowdry.com"])::after {
  content: ' \2197';
  font-size: 11px;
  opacity: .75;
}
:root :is(#qafix, main) > article > p a[href^="/try/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/ref/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/go/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/out/"]:hover,
:root :is(#qafix, main) > article > p a[href^="http"]:not([href*="stowdry.com"]):hover {
  background: var(--primary);
  color: #FFF6E6;
  text-decoration: none;
}

/* article images */
:root :is(#qafix, main) > article:not(:has(> .date)) > div:has(> img) { margin: 0 0 28px; }
:root :is(#qafix, main) > article:not(:has(> .date)) > div:has(> img) > img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* affiliate-disclosure / caption strip (div wrapping <em>) */
:root :is(#qafix, main) > article:not(:has(> .date)) > div:has(> em) {
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  margin-top: 36px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--fb), system-ui, sans-serif;
  background: rgba(201, 114, 43, .05);
}
:root :is(#qafix, main) > article:not(:has(> .date)) > div:has(> em) em {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-style: normal;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .14em;
  display: inline-block;
  margin-right: 8px;
  font-weight: 500;
}

/* related-articles list (article-page <section>) */
:root :is(#qafix, main) > section > h3 {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--primary);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
:root :is(#qafix, main) > section > ul { list-style: none; margin: 0; padding: 0; }
:root :is(#qafix, main) > section > ul > li { padding: 9px 0; border-bottom: 1px dotted var(--border); }
:root :is(#qafix, main) > section > ul > li:last-child { border-bottom: 0; }
:root :is(#qafix, main) > section > ul > li > a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}
:root :is(#qafix, main) > section > ul > li > a:hover { color: var(--primary); }

/* about / author / policy pages (h1 inside article) */
:root :is(#qafix, main) > article > h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -.016em;
  line-height: 1.14;
  margin: 8px 0 10px;
}
:root :is(#qafix, main) > article > h1 + p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 26px;
}

/* ======================================================================
   4. FOOTER — wave signature bookend
   ====================================================================== */
:root footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  margin-top: 56px;
  text-align: center;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  font-size: 11px;
  color: var(--fg);
  letter-spacing: .08em;
}
:root footer > div { opacity: .62; }
:root footer > div::before {
  content: '';
  display: block;
  width: 46px;
  height: 19px;
  margin: 0 auto 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20'><path d='M1 6 Q7 0 13 6 T25 6 T37 6 T47 6' fill='none' stroke='%23C9722B' stroke-width='2.4' stroke-linecap='round'/><path d='M1 14 Q7 8 13 14 T25 14 T37 14 T47 14' fill='none' stroke='%232C4055' stroke-width='2.4' stroke-linecap='round' opacity='.6'/></svg>") center / contain no-repeat;
}
: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); }

/* ======================================================================
   5. RESPONSIVE
   ====================================================================== */
@media (max-width: 860px) {
  :root :is(#qafix, main):has(> article > .date) {
    grid-template-columns: 1fr 1fr;
  }
  :root :is(#qafix, main):has(> article > .date) > article:first-of-type > h2 { font-size: 34px; max-width: none; }
  :root :is(#qafix, main):has(> article > .date) > article:nth-of-type(2),
  :root :is(#qafix, main):has(> article > .date) > article:nth-of-type(3),
  :root :is(#qafix, main):has(> article > .date) > article:nth-of-type(4) { grid-column: 1 / -1; }
  :root :is(#qafix, main):has(> article > .date) > article:nth-of-type(n+5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root :is(#qafix, header) h1 { font-size: 34px; }
  :root :is(#qafix, header) > div:has(> h1)::after { letter-spacing: .1em; font-size: 9.5px; }
  :root :is(#qafix, main):has(> article > .date) { grid-template-columns: 1fr; padding-bottom: 48px; }
  :root :is(#qafix, main):has(> article > .date) > article:first-of-type > h2 { font-size: 30px; }
  :root :is(#qafix, main):has(> article > .date) > section > ul { columns: 1; }
  :root :is(#qafix, main) > h1 { font-size: 31px; }
  :root :is(#qafix, main) > article:not(:has(> .date)) > h2 { font-size: 23px; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


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


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


/* refix iter1: M7 archive tail boxed magazine index */
:root :is(#qafix, main):has(> article > .date) > section > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
  columns: auto;
  column-gap: normal;
  width: 100%;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li {
  display: flex;
  align-items: stretch;
  min-height: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(44, 64, 85, .10);
  border-radius: 8px;
  background: #F3ECDA;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  break-inside: auto;
  box-sizing: border-box;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 64, 85, .18);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li > a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
}
:root :is(#qafix, main):has(> article > .date) > section > ul > li > a:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 640px) {
  :root :is(#qafix, main):has(> article > .date) > section > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  :root :is(#qafix, main):has(> article > .date) > section > ul > li {
    padding: 19px 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Kinfolk-minimal overlay=40% grid=mixed scale=dramatic family=articles-section */

/* ── Archive strip above <section> tail (overlay 40%) ── */
:root main:not(:has(> h1)) > section {
  position: relative;
  padding-top: 260px;
  grid-column: 1 / -1;
}
:root main:not(:has(> h1)) > section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 240px;
  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;
  border-radius: 8px;
}


/* ── 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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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)) > article: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; }
}


/* ======================================================================
   === Link & button colour audit (2026-09-16) ===
   Every in-article link was measured on the live site across 61 pages.
   117 of them failed WCAG AA. Three separate causes, below.
   ====================================================================== */

/* Tokens. The brand --primary #C9722B is a 2.77:1 colour on cream — it works as a
   border or a large display accent and nowhere else. --primary-ink is the same hue
   taken down until it carries body-size text (5.34:1) and can host cream text (5.76:1). */
:root {
  --primary-ink: #8A4A16;
  --ok:   #1E5E3A;
  --warn: #8E2B20;
}

/* A1: the template ships `.inner-c34af8 a{color:#e94560}` and the prior pass only
   overrode links scoped `> article > p a`, so 90 links in blockquotes, table cells,
   <dl> definitions, list items and figcaptions were still template pink at 2.99:1.
   Colour every link in the article body instead of enumerating containers. */
:root :is(#qafix, main) > article:not(:has(> .date)) a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:root :is(#qafix, main) > article:not(:has(> .date)) a:hover { color: var(--primary-ink); }

/* A2: the house chip, now reaching affiliate links wherever they sit — blockquote,
   comparison table, product card, callout box — not just direct `> p` children.
   !important because the injected blocks carry their colours as inline attributes
   (#198754 green, #007bff blue); every one of those links is a /try/ link. */
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/try/"],
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/ref/"],
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/go/"],
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/out/"] {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #F3EBD8 !important;
  background: var(--accent) !important;
  border: 0;
  border-radius: var(--r) !important;
  padding: 1px 9px 2px;
  text-decoration: none;
}
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/try/"]::after,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/ref/"]::after,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/go/"]::after,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/out/"]::after {
  content: ' \002197';
  font-size: 11px;
  opacity: .75;
}

/* B: the chip's hover was background var(--primary) + #FFF6E6 = 3.30:1 — the one
   treatment that measured correctly at rest failed as soon as you pointed at it.
   Repeats the prior pass's own `> p` selectors so it out-specifies them. */
:root :is(#qafix, main) > article > p a[href^="/try/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/ref/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/go/"]:hover,
:root :is(#qafix, main) > article > p a[href^="/out/"]:hover,
:root :is(#qafix, main) > article > p a[href^="http"]:not([href*="stowdry.com"]):hover,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/try/"]:hover,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/ref/"]:hover,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/go/"]:hover,
:root :is(#qafix, main) > article:not(:has(> .date)) a[href^="/out/"]:hover {
  background: var(--primary-ink) !important;
  color: #FFF6E6 !important;
  text-decoration: none;
}

/* D: the block CTA button the pipeline injects as
   style="background:#198754;color:#fff;padding:12px 24px;border-radius:8px".
   A2 already recolours it; this only restores the size it is meant to have,
   since A2's 13px would otherwise shrink it to an inline chip. */
:root :is(#qafix, main) > article:not(:has(> .date)) a[style*="198754"][style*="inline-block"] {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  letter-spacing: .02em;
}

/* C: the comparison table's own surfaces — a #f5f5f5 header band and #e0e0e0 rules
   on a cream page, plus a #3498db "Top Pick" badge at 3.15:1. Substring matches,
   not exact ones: the inline strings carry a trailing semicolon. */
/* Structural, not hex-by-hex: the pipeline emits two different table flavours
   (#f5f5f5 + #e0e0e0 with double quotes, #f2f2f2 + #ddd with single quotes) and will
   emit more. Normalise any inline-styled table row or cell in the article instead. */
:root :is(#qafix, main) > article:not(:has(> .date)) table thead tr[style] {
  background: #E2D7BB !important;
  border-bottom: 2px solid var(--accent) !important;
}
:root :is(#qafix, main) > article:not(:has(> .date)) table tbody tr[style] {
  border-bottom-color: var(--border) !important;
}
:root :is(#qafix, main) > article:not(:has(> .date)) table :is(th, td)[style] {
  border-color: var(--border) !important;
}
:root :is(#qafix, main) > article span[style*="3498db"] {
  background: var(--primary) !important;
  color: var(--fg) !important;
  border-radius: var(--r) !important;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', monospace !important;
}

/* E: the product card — #e0e0e0 frame, a #1b2838 score chip that is near-navy but not
   the brand navy, and Pros/Cons headings at 2.74:1 and 2.98:1. */
:root :is(#qafix, main) > article div[style*="e0e0e0"] {
  border-color: var(--border) !important;
  background: rgba(44, 64, 85, .04) !important;
  border-radius: var(--r) !important;
}
:root :is(#qafix, main) > article span[style*="1b2838"] {
  background: var(--accent) !important;
  color: #F3EBD8 !important;
  border-radius: var(--r) !important;
}
:root :is(#qafix, main) > article h4[style*="0f9d58"] { color: var(--ok) !important; }
:root :is(#qafix, main) > article h4[style*="e74c3c"] { color: var(--warn) !important; }

/* F: the one-off "Short Version" callout — #fdfdfd on cream with a #ccc frame.
   Its link is a /try/ link, so A2 already handles it. */
:root :is(#qafix, main) > article > div[style*="fdfdfd"] {
  background: rgba(44, 64, 85, .04) !important;
  border-color: var(--border) !important;
  border-radius: var(--r) !important;
}

/* G: the table-of-contents anchors were var(--primary) at 18px = 2.77:1. They carry
   style="color:var(--primary,currentColor);text-decoration:none" as an inline attribute —
   the TOC deliberately reads the theme token, but the token itself is too light to be
   text — so the override has to be !important however specific the selector is. */
:root :is(#qafix, main) > article:not(:has(> .date)) > div.toc a {
  color: var(--primary-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
:root :is(#qafix, main) > article:not(:has(> .date)) > div.toc a:hover { color: var(--accent) !important; }
:root :is(#qafix, main) > article:not(:has(> .date)) > div.toc > div[style*="--primary"] {
  color: var(--primary-ink) !important;
  opacity: 1 !important;
}

/* The injected green links already end with a literal "→" in their text, so the chip's
   own ↗ doubled up. Suppress it on exactly those, not on the prose chips. */
:root :is(#qafix, main) > article:not(:has(> .date)) a[style*="198754"]::after { content: none; }
