/* sweepa.io — blog styles (THE SWEEPER).
 *
 * Extends css/site.css; it does NOT restyle any existing page. Every rule here
 * is under a .blog-* class or the .blog-body wrapper, so loading blog.css on a
 * marketing page would be a no-op.
 *
 * Design intent (Fabel plan §2.3–2.5): an editorial front page, not a card grid.
 * Paper, ink and turf. The signature element is one sweeping arc rule under the
 * masthead — the logo path stretched horizontally. No purple gradients, no
 * three-column cards, no cream-and-serif AI-blog template.
 *
 * Contrast: body-size links use --turf-deep (#0E8F54), not bright turf. Bright
 * turf on paper fails AA at body size; it is reserved for large headings, chips
 * and anything on a dark background.
 *
 * Muted text uses --ink-3. The greys this replaced did not pass: #6a7283 on
 * paper is 4.3:1 (AA needs 4.5 at these sizes) and 3.9:1 on paper-2, and the
 * share label's #9aa0ac was 2.3:1 — a hard fail at 11px. #5b6376 is 5.3:1 on
 * paper and 4.8:1 on paper-2, so it passes on both grounds at any size. The
 * token is scoped to .blog-body: blog.css must stay a no-op elsewhere.
 */
.blog-body{ --ink-3:#5b6376 }

/* ── Skip link ──────────────────────────────────────────────────────────── */
.blog-skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--ink);color:var(--paper);
  padding:12px 18px;border-radius:0 0 10px 0;font-weight:600;text-decoration:none;
}
.blog-skip:focus{left:0}

/* Keyboard focus is visible everywhere on the blog, in turf. */
.blog-body a:focus-visible,
.blog-body button:focus-visible,
.blog-body summary:focus-visible{
  outline:3px solid var(--turf);
  outline-offset:2px;
  border-radius:3px;
}

/* ── Masthead ───────────────────────────────────────────────────────────── */
.blog-masthead{padding:52px 0 8px;position:relative;z-index:1}
.blog-masthead__kicker{
  display:inline-block;
  font-family:'Spline Sans Mono',monospace;
  font-size:13px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--turf-deep);text-decoration:none;font-weight:600;
}
a.blog-masthead__kicker:hover{color:var(--ink)}
.blog-masthead__standfirst{
  font-family:'Bricolage Grotesque',sans-serif;
  font-weight:800;letter-spacing:-.02em;line-height:1.04;
  font-size:clamp(28px,4.4vw,52px);
  max-width:20ch;margin-top:12px;
}
/* The invite (welcome pass §2 move 1): the one second-person sentence in the
 * first viewport. Body voice under the brand voice — the arc now underlines a
 * greeting instead of a slogan. #3a4256 is the featured-excerpt tone (9.9:1). */
.blog-masthead__invite{
  margin-top:16px;font-size:17.5px;line-height:1.6;color:#3a4256;max-width:58ch;
}
.blog-arc{display:block;width:100%;height:26px;margin-top:18px;overflow:visible}
.blog-arc path{
  stroke-dasharray:1400;stroke-dashoffset:1400;
  animation:blog-arc-draw 1.1s cubic-bezier(.22,.8,.3,1) forwards;
}
@keyframes blog-arc-draw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .blog-arc path{animation:none;stroke-dashoffset:0}
}

/* The post-page masthead: a return address, not the front page (redesign §3.2).
 * The full composition cost ~230px of brand above every article and pushed the
 * post's own H1 below the fold on a phone, with a 52px standfirst competing
 * with the title directly beneath it. No draw-in either — the arc animates once
 * on the index, where it is the signature; on a post it would be a tic. */
.blog-masthead--compact{padding:26px 0 2px}
.blog-masthead--compact .blog-arc{height:14px;margin-top:10px}
.blog-masthead--compact .blog-arc path{animation:none;stroke-dashoffset:0}

/* ── Index: featured band ───────────────────────────────────────────────── */
.blog-index{position:relative;z-index:1;padding-bottom:40px}
.blog-featured{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);
  gap:32px 44px;align-items:center;
  margin-top:44px;padding:32px 0 36px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
/* "THE LATEST" / "FEATURED" — orients the visitor: this is today's front page,
 * not just the first item of an archive. One deliberate spot of turf type. */
.blog-featured__flag{
  font-family:'Spline Sans Mono',monospace;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--turf-deep);font-weight:600;margin-bottom:10px;
}
.blog-featured__meta,
.blog-row__meta,
.blog-article__meta{
  font-family:'Spline Sans Mono',monospace;
  font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);
}
.blog-featured__title{
  font-size:clamp(26px,3.4vw,42px);margin-top:12px;max-width:20ch;
}
.blog-featured__title a{color:var(--ink);text-decoration:none}
.blog-featured__title a:hover{color:var(--turf-deep)}
.blog-featured__excerpt{margin-top:14px;max-width:48ch;color:#3a4256;font-size:17px}
.blog-featured__read{
  display:inline-block;margin-top:18px;
  color:var(--turf-deep);font-weight:600;text-decoration:none;
}
.blog-featured__read:hover{text-decoration:underline;text-underline-offset:3px}
/* The art is an <a> to the same post as the title — the whole composition should
 * be clickable — but it is out of the tab order and hidden from the a11y tree,
 * so it is not a second stop announcing the title the reader just heard. */
.blog-featured__art{display:block}
.blog-featured__art img{
  display:block;width:100%;height:auto;border-radius:16px;
  border:1px solid var(--line);
}
@media(max-width:820px){
  .blog-featured{grid-template-columns:1fr;gap:22px}
  .blog-featured__art{order:-1}
}

/* ── Index: the "Start here" shelf (welcome pass §2 move 2) ─────────────────
 * Front-of-house between the featured band and the archive: three curated
 * evergreen posts in the byline card's register — paper-2, hairline, radius —
 * so it reads as a person's note, not a promo unit. Text only. */
.blog-start{
  margin:34px 0 4px;padding:24px 26px;
  border:1px solid var(--line);border-radius:18px;background:var(--paper-2);
}
.blog-start[hidden]{display:none}
.blog-start__kicker{
  font-family:'Spline Sans Mono',monospace;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--turf-deep);font-weight:600;
}
.blog-start__lead{margin-top:6px;font-size:15.5px;color:#3a4256}
.blog-start__list{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px 28px;
  margin-top:18px;list-style:none;padding:0;
}
.blog-start__item{display:flex;flex-direction:column;gap:4px}
.blog-start__num{
  font-family:'Spline Sans Mono',monospace;font-size:12px;color:var(--turf-deep);
}
.blog-start__item a{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:17px;line-height:1.3;color:var(--ink);text-decoration:none;
}
.blog-start__item a:hover{color:var(--turf-deep)}
.blog-start__pillar{
  font-family:'Spline Sans Mono',monospace;
  font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);
}
@media(max-width:820px){
  .blog-start{padding:20px 20px}
  .blog-start__list{grid-template-columns:1fr;gap:14px}
}

/* ── Index: list section head (welcome pass §2 move 3) ──────────────────────
 * Name the pile and count it — a named, counted list is finite; an unnamed
 * one is an archive. */
.blog-rows__head{display:flex;align-items:baseline;gap:12px;margin-top:42px}
.blog-rows__heading{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:21px;letter-spacing:-.01em;color:var(--ink);
}
.blog-rows__count{
  font-family:'Spline Sans Mono',monospace;
  font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);
}

/* ── Index: filter chips ────────────────────────────────────────────────── */
.blog-filters{
  display:flex;gap:9px;margin:28px 0 6px;
  overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;
}
.blog-chip{
  flex:none;cursor:pointer;
  font-family:'Spline Sans Mono',monospace;
  font-size:12.5px;letter-spacing:.04em;
  padding:8px 15px;border-radius:100px;
  border:1px solid var(--line);background:transparent;color:var(--ink);
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.blog-chip:hover{border-color:var(--turf)}
.blog-chip.is-active{background:var(--ink);border-color:var(--ink);color:var(--paper)}
@media (prefers-reduced-motion:reduce){.blog-chip{transition:none}}

/* ── Index: editorial rows (not cards) ──────────────────────────────────── */
.blog-rows{margin-top:8px}
.blog-row{
  position:relative;
  padding:26px 0;
  border-bottom:1px solid rgba(22,193,114,.22);
}
.blog-row[hidden]{display:none}
/* Hover wash (welcome pass §2 move 3): the list answers the cursor. An inset
 * pseudo-element, so no layout ever changes; pointer devices only. */
.blog-row::after{
  content:"";position:absolute;inset:6px -16px;border-radius:14px;
  background:rgba(22,193,114,0);pointer-events:none;
  transition:background .18s ease;
}
@media(hover:hover){
  .blog-row:hover::after{background:rgba(22,193,114,.06)}
}
@media(prefers-reduced-motion:reduce){.blog-row::after{transition:none}}
.blog-row__title{font-size:clamp(20px,2.2vw,25px);margin-top:8px;max-width:32ch}
.blog-row__title a{color:var(--ink);text-decoration:none}
.blog-row__title a:hover{color:var(--turf-deep)}
.blog-row__excerpt{margin-top:8px;max-width:64ch;color:var(--ink-3);font-size:15.5px}
.blog-empty{padding:48px 0;color:var(--ink-3);font-size:17px}

/* ── Post page ──────────────────────────────────────────────────────────── */
.blog-post{position:relative;z-index:1;padding-bottom:40px}
.blog-article{max-width:700px;margin:0 auto}
.blog-article__head{padding-top:36px}
.blog-article__head h1{
  font-size:clamp(31px,4.6vw,52px);margin-top:14px;max-width:22ch;
}
.blog-article__standfirst{
  margin-top:18px;font-size:19px;line-height:1.55;color:#3a4256;max-width:52ch;
}
.blog-article__byline{
  margin-top:16px;font-size:14.5px;color:var(--ink-3);
}
.blog-article__byline span{color:var(--ink);font-weight:600}

.blog-hero{margin:30px 0 8px}
.blog-hero img{
  display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line);
}

/* Table of contents. In flow on small screens; a sticky left rail from 1280px.
 *
 * It used to promote at 1100px, where the rail did not fit: it needs 268px to
 * the left of the 700px measure, and a 1100px viewport only leaves ~200px
 * (28px wrap padding + (1044 - 700) / 2 = 172px). Every line was clipped by
 * ~68px until roughly 1240px. 1280 is the first standard step with margin. */
.blog-toc{
  margin:28px 0;padding:16px 18px;
  border:1px solid var(--line);border-radius:14px;background:var(--paper-2);
}
.blog-toc summary{
  cursor:pointer;font-family:'Spline Sans Mono',monospace;
  font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);
}
.blog-toc ol{margin:12px 0 0 18px;padding:0}
.blog-toc li{margin-bottom:7px;font-size:15px}
.blog-toc a{color:var(--turf-deep);text-decoration:none}
.blog-toc a:hover{text-decoration:underline;text-underline-offset:3px}
@media(min-width:1280px){
  .blog-toc{
    position:sticky;top:96px;float:left;
    width:210px;margin-left:-268px;margin-top:0;
    background:transparent;border:none;padding:0;
  }
  .blog-toc summary{margin-bottom:4px}
  .blog-toc ol{margin-left:0;list-style:none}
  .blog-toc li{padding-left:11px;border-left:2px solid var(--line)}
}

/* Prose. ~70ch measure, 18px/1.7 (plan §2.4). */
.blog-prose{font-size:18px;line-height:1.7;color:var(--ink-2);margin-top:26px}
.blog-prose > *{max-width:70ch}
.blog-prose p{margin-bottom:22px}
.blog-prose h2{
  font-size:clamp(23px,2.7vw,30px);margin:44px 0 14px;scroll-margin-top:96px;
}
.blog-prose h3{
  font-size:clamp(18px,2vw,21px);margin:30px 0 10px;scroll-margin-top:96px;
}
.blog-prose a{color:var(--turf-deep);text-decoration:underline;text-underline-offset:3px}
.blog-prose a:hover{color:var(--ink)}
.blog-prose ul,.blog-prose ol{margin:0 0 22px 24px}
.blog-prose li{margin-bottom:9px}
.blog-prose strong{font-weight:700;color:var(--ink)}
.blog-prose code{
  font-family:'Spline Sans Mono',monospace;font-size:.88em;
  background:var(--paper-2);padding:2px 6px;border-radius:5px;
}
.blog-prose pre{
  background:var(--ink);color:var(--paper);
  padding:18px 20px;border-radius:12px;overflow-x:auto;margin-bottom:22px;
}
.blog-prose pre code{background:transparent;padding:0;color:inherit}
.blog-prose hr{border:none;border-top:1px solid var(--line);margin:38px 0}
/* Pull-quote — the only decorative device in the body (plan §2.4). */
.blog-prose blockquote{
  margin:30px 0;padding:2px 0 2px 22px;
  border-left:3px solid var(--turf);
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:21px;line-height:1.4;font-weight:600;letter-spacing:-.01em;color:var(--ink);
}
.blog-prose blockquote p{margin-bottom:0}
/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.blog-table-scroll{overflow-x:auto;margin-bottom:22px;max-width:100%}
.blog-prose table{border-collapse:collapse;min-width:100%;font-size:15.5px}
.blog-prose th,.blog-prose td{
  border-bottom:1px solid var(--line);padding:10px 14px;text-align:left;vertical-align:top;
}
.blog-prose th{
  font-family:'Spline Sans Mono',monospace;font-size:12px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);
}

/* ── Figures + the image-pending stub (amendment C) ─────────────────────── */
.blog-figure{margin:36px 0 40px;max-width:100%}
.blog-figure img{
  display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);
}
.blog-figure figcaption{
  margin-top:12px;font-family:'Spline Sans Mono',monospace;
  font-size:12.5px;line-height:1.5;color:var(--ink-3);
}
/* A placeholder that has not been filled yet. Visible on purpose: silence would
   read as "no image was ever intended". Real screenshots block publish, so only
   brand-graphic stubs can ever reach a live page. */
.blog-figure--pending .blog-figure__pending{
  display:flex;flex-direction:column;gap:7px;
  padding:34px 24px;border-radius:12px;
  border:2px dashed rgba(14,22,38,.28);background:var(--paper-2);
}
.blog-figure__pending-kicker{
  font-family:'Spline Sans Mono',monospace;
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--turf-deep);
}
.blog-figure__pending-alt{font-size:16px;color:var(--ink);font-weight:600}
.blog-figure__pending-id{
  font-family:'Spline Sans Mono',monospace;font-size:12px;color:var(--ink-3);
}

/* ── CTA bands ──────────────────────────────────────────────────────────── */
/* One ink band per page (redesign §3.2). On a post that is the end band; the
 * mid-article CTA is .blog-aside-cta below. Two full-bleed dark blocks inside
 * the closing screen and a half was fatigue by layout, not by count. */
.blog-cta{
  margin:44px 0;padding:34px 30px;border-radius:20px;
  background:var(--ink);color:var(--paper);max-width:none;
}
/* A <p>, not a heading: a sales line in the document outline meant screen-reader
 * heading navigation announced the pitch as an article section. The size lives
 * here instead. */
.blog-cta__heading{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  letter-spacing:-.02em;line-height:1.04;
  color:var(--paper);font-size:clamp(22px,2.6vw,29px);
}
.blog-cta__lead{margin-top:10px;color:#c4cad6;font-size:16px;max-width:52ch}
.blog-cta__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.blog-cta .btn-turf{color:var(--ink)}
.blog-cta .btn-ghost{border-color:rgba(244,241,234,.6);color:var(--paper)}
.blog-cta .btn-ghost:hover{background:var(--paper);color:var(--ink)}
.blog-cta--index{margin-top:56px}

/* The mid-article CTA: one line of prose in the pull-quote register. Same turf
 * left border as a blockquote, deliberately — it is an aside the reader passes,
 * not a stop. */
.blog-aside-cta{
  margin:30px 0;padding:2px 0 2px 22px;
  border-left:3px solid var(--turf);
  max-width:70ch;
}
.blog-aside-cta p{margin:0;font-size:17px;line-height:1.6;color:var(--ink-2)}
.blog-aside-cta a{
  color:var(--turf-deep);font-weight:600;
  text-decoration:underline;text-underline-offset:3px;
}
.blog-aside-cta a:hover{color:var(--ink)}


/* ── FAQ (outside .blog-prose; needs its own spacing under the global reset) ─ */
.blog-faq{margin:48px 0 0;max-width:70ch}
.blog-faq > h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(23px,2.7vw,30px);margin:0 0 22px;color:var(--ink);
  text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px;
}
.blog-faq__row{margin:0 0 28px;padding:0 0 22px;border-bottom:1px solid var(--line)}
.blog-faq__row:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.blog-faq__row h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:clamp(17px,2vw,20px);margin:0 0 10px;color:var(--ink);line-height:1.3;
}
.blog-faq__row p{margin:0;font-size:17px;line-height:1.65;color:var(--ink-2)}

/* ── Share, byline, related, back ───────────────────────────────────────── */
.blog-share{
  display:flex;gap:16px;align-items:center;flex-wrap:wrap;
  margin-top:34px;padding-top:20px;border-top:1px solid var(--line);
  font-family:'Spline Sans Mono',monospace;font-size:13px;
}
.blog-share__label{color:var(--ink-3);text-transform:uppercase;letter-spacing:.09em;font-size:11px}
.blog-share a,.blog-share__copy{
  color:var(--turf-deep);text-decoration:none;
  background:none;border:none;padding:0;cursor:pointer;
  font-family:inherit;font-size:inherit;
}
.blog-share a:hover,.blog-share__copy:hover{text-decoration:underline;text-underline-offset:3px}

.blog-byline{
  margin-top:30px;padding:22px 24px;border-radius:16px;
  border:1px solid var(--line);background:var(--paper-2);
}
.blog-byline__who{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.blog-byline__name{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:17px}
.blog-byline__role{
  font-family:'Spline Sans Mono',monospace;font-size:12px;
  text-transform:uppercase;letter-spacing:.07em;color:var(--ink-3);
}
.blog-byline p{margin-top:10px;font-size:15px;color:#3a4256}
.blog-byline a{color:var(--turf-deep)}

.blog-related{max-width:700px;margin:60px auto 0;padding-top:12px;border-top:1px solid var(--line)}
.blog-related h2{font-size:16px;font-family:'Spline Sans Mono',monospace;
  text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:var(--ink-3)}
.blog-related .blog-row{padding:20px 0}
.blog-related .blog-row__title{font-size:19px}

.blog-back{max-width:700px;margin:34px auto 0;font-size:15px}
.blog-back a{color:var(--turf-deep);text-decoration:none}
.blog-back a:hover{text-decoration:underline;text-underline-offset:3px}

/* ── Preview banner (admin only — never on a published page) ────────────── */
.blog-preview-banner{
  position:sticky;top:0;z-index:60;
  background:var(--accent);color:#fff;
  padding:9px 18px;text-align:center;
  font-family:'Spline Sans Mono',monospace;font-size:12.5px;letter-spacing:.04em;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.error-page{position:relative;z-index:1;padding:90px 0 40px;max-width:640px}
.error-page .eyebrow{margin-bottom:20px}
.error-page h1{font-size:clamp(34px,5vw,58px)}
.error-page p{margin-top:18px;font-size:17.5px;color:#3a4256;max-width:52ch}
.error-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
