/* ===========================================================================
   Joyful Evolver — shared stylesheet for blog post pages.
   Same token system as the homepage, /blog/ and /work/.
   Core palette is shared with OnlineKix; neutrals are green-grey so nothing
   fights the #09110F charcoal undertone. Tailwind is NOT loaded on these
   pages any more, so the utility classes still in the markup are inert and
   everything below styles the semantic structure instead.

   It lives in /blog/ because the deploy step copies this directory wholesale;
   files at the repo root are only copied by extension (*.html, *.txt, *.xml).
   =========================================================================== */
:root{
  --ink:#09110F; --primary:#34DED0; --glow:#10B77F; --seafoam:#EFF9F5; --white:#FFFFFF;
  --gradient:linear-gradient(90deg,#34DED0 0%,#10B77F 100%);
  --ink-raised:#0E1A17; --line-dark:#1E2A27;
  --on-dark:#E4EEEA; --on-dark-muted:#C9D6D2; --on-dark-dim:#9FB5AE;
  --paper:#F4F7F6; --surface:#E6EEEB; --line-light:#D5E3DE;
  --on-light:#09110F; --on-light-muted:#3A4A46; --on-light-dim:#4A5956;
  --link-light:#0B6B3F;
  --wrap:1160px; --pad:clamp(20px,5vw,64px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}

body.post{
  margin:0;background:var(--paper);color:var(--on-light-muted);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:18px;line-height:1.75;-webkit-font-smoothing:antialiased;
}
/* height:auto is load bearing: the width/height attributes on an img would
   otherwise pin the height while max-width shrinks the width, stretching it. */
body.post img{max-width:100%;height:auto;display:block}
body.post > div{min-height:100vh;display:flex;flex-direction:column}

/* ---------- header ---------- */
body.post header{position:sticky;top:0;z-index:50;background:rgba(9,17,15,.94);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line-dark)}
body.post header nav{max-width:var(--wrap);margin:0 auto;padding:14px var(--pad)}
body.post header nav > div{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.post header a{text-decoration:none}
body.post header nav > div > a:first-child{display:flex;align-items:center;gap:11px}
body.post header nav > div > a:first-child img{width:38px;height:38px;border-radius:12px;object-fit:cover}
body.post header nav > div > a:first-child > div{display:flex;flex-direction:column}
body.post header nav > div > a:first-child span:first-child{
  font-family:Outfit,system-ui,sans-serif;font-size:16px;font-weight:700;color:#fff;line-height:1.2}
body.post header nav > div > a:first-child span:last-child{
  font-size:11.5px;color:var(--on-dark-dim);line-height:1.3;font-weight:400}
body.post header nav > div > a:last-child{
  display:inline-flex;align-items:center;gap:.4rem;font-family:Outfit,system-ui,sans-serif;
  font-weight:700;font-size:14.5px;color:var(--on-dark-muted);
  border:1px solid var(--line-dark);border-radius:999px;padding:9px 18px;min-height:42px;
  transition:color .2s,border-color .2s}
body.post header nav > div > a:last-child:hover{color:var(--primary);border-color:var(--primary)}
body.post header a:focus-visible{outline:3px solid var(--primary);outline-offset:3px;border-radius:999px}

/* ---------- article ---------- */
body.post main{flex:1;background:var(--white)}
body.post article{max-width:730px;margin:0 auto;padding:clamp(44px,6vw,84px) clamp(20px,5vw,30px)}
body.post article h1{
  font-family:Outfit,system-ui,sans-serif;font-weight:700;
  font-size:clamp(31px,4.6vw,47px);line-height:1.08;letter-spacing:-.02em;
  color:var(--on-light);margin:0 0 22px;text-wrap:balance}
body.post article h2{
  font-family:Outfit,system-ui,sans-serif;font-weight:700;
  font-size:clamp(23px,2.8vw,31px);line-height:1.2;letter-spacing:-.015em;
  color:var(--on-light);margin:2em 0 .55em}
body.post article h3{
  font-family:Outfit,system-ui,sans-serif;font-weight:700;
  font-size:clamp(19px,2vw,23px);line-height:1.3;letter-spacing:-.01em;
  color:var(--on-light);margin:1.8em 0 .5em}
body.post article h4{font-family:Outfit,system-ui,sans-serif;font-weight:700;font-size:18px;
  color:var(--on-light);margin:1.6em 0 .45em}
body.post article p{margin:0 0 1.35em;color:var(--on-light-muted)}
body.post article strong,body.post article b{color:var(--on-light);font-weight:700}
body.post article em{font-style:italic}
body.post article ul,body.post article ol{margin:0 0 1.35em;padding-left:1.35em}
body.post article li{margin-bottom:.5em}
body.post article li::marker{color:var(--glow)}
body.post article a{color:var(--link-light);font-weight:600;text-decoration:underline;
  text-underline-offset:3px;text-decoration-thickness:2px;text-decoration-color:rgba(11,107,63,.32);
  transition:text-decoration-color .2s}
body.post article a:hover{text-decoration-color:var(--link-light)}
body.post article a:focus-visible{outline:3px solid var(--glow);outline-offset:3px;border-radius:3px}
body.post article hr{border:0;border-top:1px solid var(--line-light);margin:2.4em 0}
body.post article img{border-radius:12px;margin:1.8em 0;border:1px solid var(--line-light)}
body.post article figure{margin:1.8em 0}
body.post article figcaption{font-size:14.5px;color:var(--on-light-dim);margin-top:10px;line-height:1.55}
body.post article blockquote{
  margin:1.8em 0;padding:4px 0 4px 22px;border-left:3px solid var(--glow);
  font-family:Outfit,system-ui,sans-serif;font-weight:600;font-size:clamp(19px,2.1vw,23px);
  line-height:1.4;color:var(--on-light)}
body.post article blockquote p{margin-bottom:.5em;color:inherit}
body.post article blockquote p:last-child{margin-bottom:0}
body.post article code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em;background:var(--surface);border:1px solid var(--line-light);
  border-radius:4px;padding:1px 5px;color:var(--on-light)}
body.post article pre{background:var(--ink);color:var(--on-dark-muted);border-radius:12px;
  padding:18px 20px;overflow-x:auto;margin:1.6em 0;font-size:14.5px;line-height:1.6}
body.post article pre code{background:transparent;border:0;padding:0;color:inherit;font-size:inherit}
body.post article table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:15.5px}
body.post article th,body.post article td{text-align:left;padding:11px 13px;border-bottom:1px solid var(--line-light)}
body.post article th{font-family:Outfit,system-ui,sans-serif;font-weight:700;color:var(--on-light);background:var(--surface)}

/* byline block — the div that follows the h1 */
body.post article > div{
  margin:0 0 34px;padding-bottom:20px;border-bottom:1px solid var(--line-light)}
body.post article > div p{margin:0 0 4px;font-size:14.5px;line-height:1.5;color:var(--on-light-dim)}
body.post article > div p:last-child{margin-bottom:0}
body.post article > section{margin:0}

/* ---------- author box ----------
   .author-box is the clean class for new posts; the [class*="bg-gray-900"]
   selector catches the inert Tailwind class still sitting on older posts. */
body.post .author-box,
body.post [class*="bg-gray-900"]{
  max-width:730px;margin:clamp(40px,5vw,64px) auto;padding:26px 24px;
  background:var(--surface);border:1px solid var(--line-light);border-radius:16px}
body.post .author-box h3,
body.post [class*="bg-gray-900"] h3{
  font-family:Outfit,system-ui,sans-serif;font-size:18px;font-weight:700;
  color:var(--on-light);margin:0 0 10px}
body.post .author-box p,
body.post [class*="bg-gray-900"] p{font-size:15.5px;line-height:1.6;color:var(--on-light-dim);margin:0 0 14px}
body.post .author-box a,
body.post [class*="bg-gray-900"] a{color:var(--link-light);font-weight:700;text-decoration:none;
  border-bottom:2px solid rgba(11,107,63,.3);padding-bottom:2px}
body.post .author-box a:hover,
body.post [class*="bg-gray-900"] a:hover{border-bottom-color:var(--link-light)}

/* ---------- footer ---------- */
body.post footer{background:var(--ink);color:var(--on-dark-dim);
  border-top:1px solid var(--line-dark);padding:clamp(44px,6vw,68px) 0 30px}
body.post footer > div{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
body.post footer > div > div:first-child{display:grid;grid-template-columns:1fr;gap:32px;margin-bottom:34px}
body.post footer > div > div:first-child > div:first-child > div:first-child{
  display:flex;align-items:center;gap:11px;margin-bottom:14px}
body.post footer img{width:38px;height:38px;border-radius:12px;object-fit:cover}
body.post footer img[alt*="badge"]{width:140px;height:140px;border-radius:0;margin-top:18px;opacity:.9}
body.post footer h3{font-family:Outfit,system-ui,sans-serif;font-size:14px;font-weight:700;
  color:#fff;margin:0 0 14px}
body.post footer p{font-size:15px;line-height:1.6;margin:0 0 8px}
body.post footer > div > div:first-child > div:first-child > div:first-child p:first-child{
  font-family:Outfit,system-ui,sans-serif;font-size:16px;font-weight:700;color:#fff;margin:0}
body.post footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
body.post footer a{color:var(--on-dark-dim);text-decoration:none;font-size:15px;transition:color .2s}
body.post footer a:hover{color:var(--primary)}
body.post footer a:focus-visible{outline:3px solid var(--primary);outline-offset:3px;border-radius:4px}
body.post footer div[class*="gap-3"]{display:flex;gap:12px;align-items:center}
body.post footer div[class*="gap-3"] > a{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--line-dark);
  display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:15px}
body.post footer div[class*="gap-3"] > a:hover{color:var(--ink);background:var(--primary);border-color:var(--primary)}
body.post footer div[class*="gap-3"] > a svg{width:17px;height:17px;fill:currentColor}

/* in-article callout, used to close a post with its optional next step */
body.post article .callout{background:var(--seafoam);border:1px solid var(--line-light);
  border-radius:16px;padding:26px 24px;margin:2.2em 0 0}
body.post article .callout h3{margin-top:0}
body.post article .callout p:last-child{margin-bottom:0}
body.post article .cta-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:Outfit,system-ui,sans-serif;font-weight:700;font-size:16px;text-decoration:none;
  background:var(--gradient);color:var(--ink);border-radius:999px;padding:14px 28px;min-height:52px;
  transition:transform .18s ease}
body.post article .cta-btn:hover{transform:translateY(-2px)}

/* ---------- long-form / sales-page furniture ----------
   Used by posts that lead with a headline plus a parenthetical subhead,
   carry a table of contents, and close on a single offer block. */

/* the supporting line under the h1 */
body.post article .subhead{
  font-family:Outfit,system-ui,sans-serif;font-weight:600;
  font-size:clamp(18px,2.1vw,23px);line-height:1.35;letter-spacing:-.012em;
  color:var(--on-light-dim);margin:-8px 0 26px;text-wrap:balance}

/* table of contents */
body.post article .toc{background:var(--surface);border:1px solid var(--line-light);
  border-radius:16px;padding:22px 24px 18px;margin:2.2em 0}
body.post article .toc h2{font-family:'Plus Jakarta Sans',sans-serif;font-size:12px;
  font-weight:800;letter-spacing:.15em;text-transform:uppercase;
  color:var(--link-light);margin:0 0 10px}
body.post article .toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
body.post article .toc li{counter-increment:toc;margin:0;border-top:1px solid var(--line-light)}
body.post article .toc li:first-child{border-top:0}
body.post article .toc a{display:block;padding:12px 0;font-family:Outfit,system-ui,sans-serif;
  font-weight:700;font-size:16.5px;line-height:1.35;color:var(--on-light);
  text-decoration:none;transition:color .2s}
body.post article .toc a::before{content:"Part " counter(toc) "  ";color:var(--glow)}
body.post article .toc a:hover{color:var(--link-light)}

/* "Part 1" eyebrow inside a part heading, over a short gradient rule */
body.post article .part-num{display:block;font-family:'Plus Jakarta Sans',sans-serif;
  font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--link-light);margin-bottom:7px}
body.post article h2[id^="part-"]{position:relative;margin-top:2.6em;padding-top:30px}
body.post article h2[id^="part-"]::before{content:"";position:absolute;top:0;left:0;
  width:64px;height:4px;border-radius:4px;background:var(--gradient)}
body.post article h2:target,body.post article h2[id]{scroll-margin-top:86px}

/* "Pass 1" pill in front of each audit step */
body.post article h3.pass{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:2em}
body.post article .pass-num{display:inline-flex;align-items:center;justify-content:center;flex:none;
  background:var(--ink);color:var(--primary);font-family:'Plus Jakarta Sans',sans-serif;
  font-size:11.5px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  line-height:1.3;padding:6px 12px;border-radius:999px}

/* lead image sits flush under the byline */
body.post article figure.lead{margin:0 0 2.4em}
body.post article figure.lead img{margin:0}
body.post article figure img{margin:0}
body.post article figure figcaption{margin-top:12px}
body.post article figure video{display:block;width:100%;height:auto;margin:0;
  border-radius:12px;border:1px solid var(--line-light);background:var(--surface)}

/* the numbered feature list */
body.post article ol.features{list-style:none;margin:1.8em 0;padding:0;counter-reset:feat}
body.post article ol.features > li{counter-increment:feat;position:relative;
  margin:0 0 22px;padding:0 0 22px 54px;border-bottom:1px solid var(--line-light)}
body.post article ol.features > li:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
body.post article ol.features > li::before{content:counter(feat);position:absolute;left:0;top:2px;
  width:38px;height:38px;border-radius:50%;background:var(--seafoam);
  border:1px solid var(--line-light);color:var(--link-light);
  font-family:Outfit,system-ui,sans-serif;font-weight:800;font-size:16px;
  display:flex;align-items:center;justify-content:center}
body.post article ol.features h3{margin:0 0 8px;font-size:clamp(18px,1.9vw,21px)}
body.post article ol.features p{margin:0 0 .7em;font-size:16.5px}
body.post article ol.features p:last-child{margin-bottom:0}

/* red flag warning */
body.post article .redflag{background:#FCF2F0;border:1px solid #EED3CE;
  border-left:4px solid #B23A2A;border-radius:10px;padding:12px 16px;margin:.9em 0 0;
  font-size:15.5px;line-height:1.6;color:#5F2A22}
body.post article .redflag strong{display:block;margin-bottom:2px;color:#8A2D1E;
  font-family:Outfit,system-ui,sans-serif;font-size:11.5px;font-weight:800;
  letter-spacing:.14em;text-transform:uppercase}

/* "Covers features 2 and 3" line under a pass heading */
body.post article .covers{margin:-.35em 0 1.1em;font-size:13px;font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;color:var(--on-light-dim)}

/* the closing offer block */
body.post article .offer{background:var(--ink);color:var(--on-dark-muted);
  border-radius:20px;padding:clamp(28px,4.5vw,42px);margin:2.4em 0 0}
body.post article .offer h3{color:#fff;margin:0 0 .6em;font-size:clamp(21px,2.4vw,27px)}
body.post article .offer p{color:var(--on-dark-muted)}
body.post article .offer strong{color:#fff}
body.post article .offer ul{margin:0 0 1.35em;padding-left:1.25em}
body.post article .offer li{color:var(--on-dark-muted)}
body.post article .offer li::marker{color:var(--primary)}
body.post article .offer a:not(.cta-btn){color:var(--primary);
  text-decoration-color:rgba(52,222,208,.4)}
body.post article .offer a:not(.cta-btn):hover{text-decoration-color:var(--primary)}
body.post article .offer .cta-btn{margin-top:4px}
body.post article .offer .fine{margin:16px 0 0;font-size:14.5px;line-height:1.6;color:var(--on-dark-dim)}
body.post footer > div > div:last-child{
  border-top:1px solid var(--line-dark);padding-top:22px;display:flex;flex-wrap:wrap;
  justify-content:space-between;gap:12px;font-size:13px;color:#5D6E69}

@media (min-width:768px){
  body.post footer > div > div:first-child{grid-template-columns:2fr 1fr 1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.post *,body.post *::before,body.post *::after{transition:none!important;animation:none!important}
}
