/* RecapWP Blog index — "Ledger" design, page sheet.
 *
 * A faithful port of the design handoff's Blog sheet:
 *   docs/design_handoff_marketing_site_Ledger/design_files/site/blog-ledger.css
 * Ported VERBATIM so the design is pixel-exact. Local changes live in the marked
 * "THEME ADDITIONS" block at the foot — keep the ported rules untouched so the
 * next design drop can be diffed against this file.
 *
 * Layers ON TOP of ledger.css (the shared Ledger base), which must load first —
 * see the enqueue map in functions.php. Everything here is Blog-index-only: the
 * hero, the featured card, the filter chips, the article grid and the load-more.
 * Shared blocks (closing band, footer) come from ledger.css.
 *
 * NOTE — .fchip is shared with the Changelog's type filter, which styles it
 * identically. It is defined in BOTH page sheets because the handoff does; the
 * two pages never load together, so they can't collide.
 */
/* RecapWP Blog — "Ledger" marketing site · extends home-ledger.css */

/* ── hero ── */
.hero-blog{padding:64px 0 68px}
.hero-blog .overline{margin-bottom:18px}
.hero-blog h1{font:500 clamp(32px,3.4vw,46px)/1.16 var(--serif);letter-spacing:-.01em;color:#F5F1E7;max-width:720px;text-wrap:balance}
.hero-blog h1 em{font-style:normal;color:color-mix(in oklab,var(--ac) 82%,#fff)}
.hero-blog .sub{font:400 15px/1.7 var(--sans);color:#9AA5AE;margin-top:18px;max-width:600px}
.hero-blog .sub b{color:#D5DCE1;font-weight:600}
.hero-blog .hero-marks{margin-top:40px;max-width:660px}

/* ── body ── */
.blog-main{padding:64px 0 12px}

/* featured post */
.feat{display:grid;grid-template-columns:1.15fr .85fr;gap:0;background:var(--card);border:1px solid var(--card-ln);border-radius:5px;box-shadow:var(--shadow-1);overflow:hidden;margin-bottom:44px}
.feat:hover{box-shadow:var(--shadow-2);text-decoration:none}
.feat:hover h2,.feat:hover p,.feat:hover .post-go{text-decoration:none}
.feat-body{padding:38px 40px 34px;display:flex;flex-direction:column}
.feat-kick{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.feat-kick .fl{font:600 9.5px var(--mono);letter-spacing:.2em;color:var(--ac)}
.feat-kick .fl::after{content:'';display:inline-block;width:30px;height:1px;background:color-mix(in oklab,var(--ac) 45%,transparent);vertical-align:middle;margin-left:12px}
.feat-meta{display:flex;align-items:center;gap:10px;font:600 9.5px var(--mono);letter-spacing:.14em;color:var(--hint);margin-bottom:16px}
.feat-body h2{font:500 27px/1.24 var(--serif);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.feat-body h2 em{font-style:normal;color:var(--ac)}
.feat-body p{font:400 14px/1.7 var(--sans);color:var(--mut);margin-top:14px;text-wrap:pretty}
.feat-ft{display:flex;align-items:center;gap:16px;margin-top:auto;padding-top:26px}
.feat-side{position:relative;background:linear-gradient(160deg,var(--navy2),var(--navy));border-left:1px solid var(--card-ln);padding:38px 36px;display:flex;flex-direction:column;justify-content:space-between;min-height:280px}
.feat-side::before{content:'';position:absolute;top:0;left:28px;right:28px;height:1px;background:color-mix(in oklab,var(--ac) 55%,transparent)}
.feat-side .fs-crest{display:flex;align-items:center;gap:10px;color:#F3EFE5;font:600 15px var(--serif)}
.feat-side .fs-crest i{width:26px;height:26px;border:1px solid color-mix(in oklab,var(--ac) 65%,transparent);border-radius:2px;display:flex;align-items:center;justify-content:center;font:600 13px var(--serif);color:color-mix(in oklab,var(--ac) 85%,#fff);background:rgba(255,255,255,.03);font-style:normal}
.feat-side .fs-n{font:500 68px/1 var(--serif);color:rgba(245,241,231,.9);letter-spacing:-.02em}
.feat-side .fs-lab{font:600 9.5px var(--mono);letter-spacing:.2em;color:#8D97A1;margin-top:10px}
.feat-side .fs-tag{align-self:flex-start;font:600 9px var(--mono);letter-spacing:.16em;color:#14100A;padding:5px 10px 4px;border-radius:2px;background:linear-gradient(180deg,color-mix(in oklab,var(--ac) 70%,#fff),color-mix(in oklab,var(--ac) 88%,#fff))}

/* filter toolbar */
.blog-toolbar{display:flex;align-items:center;gap:16px;padding-bottom:20px;margin-bottom:32px;border-bottom:1px solid var(--card-ln)}
.blog-toolbar .tt{font:400 13.5px var(--sans);color:var(--mut)}
.blog-toolbar .tt b{font-weight:600;color:var(--ink)}
.blog-toolbar .sp{flex:1}
.blog-filter{display:flex;align-items:center;gap:6px}
.blog-filter .fl{font:600 9px var(--mono);letter-spacing:.18em;color:var(--hint);margin-right:6px}
.fchip{font:600 11px var(--sans);letter-spacing:.03em;color:var(--mut);background:var(--card);border:1px solid var(--card-ln);border-radius:3px;padding:7px 13px;display:inline-flex;align-items:center;gap:7px}
.fchip:hover{border-color:var(--ac);color:var(--ink)}
.fchip .c{font:600 9px var(--mono);color:var(--hint)}
.fchip.on{background:linear-gradient(180deg,var(--navy2),var(--navy));color:#F3EFE5;border-color:var(--navy)}
.fchip.on .c{color:color-mix(in oklab,var(--ac) 85%,#fff)}

/* article grid */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--card-ln);border-radius:4px;box-shadow:var(--shadow-1);padding:24px 24px 22px;text-decoration:none;position:relative;transition:border-color .15s,box-shadow .15s,transform .15s}
.post:hover{text-decoration:none;border-color:color-mix(in oklab,var(--ac) 40%,var(--card-ln));box-shadow:var(--shadow-2);transform:translateY(-2px)}
.post-top{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.post-n{font:500 15px var(--serif);color:color-mix(in oklab,var(--ac) 78%,#fff)}
.post-cat{font:600 8.5px var(--sans);letter-spacing:.14em;padding:4px 8px 3px;border-radius:2px;color:var(--pass);background:color-mix(in oklab,var(--pass) 8%,#fff);border:1px solid color-mix(in oklab,var(--pass) 24%,#fff)}
.post-cat.persp{color:var(--ac);background:color-mix(in oklab,var(--ac) 8%,#fff);border-color:color-mix(in oklab,var(--ac) 26%,#fff)}
.post-read{margin-left:auto;font:600 9px var(--mono);letter-spacing:.1em;color:var(--hint)}
.post h3{font:600 16.5px/1.34 var(--serif);color:var(--ink);text-wrap:pretty}
.post p{font:400 12.5px/1.65 var(--sans);color:var(--mut);margin-top:10px;flex:1;text-wrap:pretty}
.post-ft{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:15px;border-top:1px solid color-mix(in oklab,var(--card-ln) 55%,#fff)}
.post-date{font:11px var(--mono);color:var(--hint)}
.post-go{font:600 11.5px var(--sans);color:var(--ac);display:inline-flex;align-items:center;gap:5px}
.post:hover .post-go{gap:8px}
.post.is-hidden{display:none}

/* load more */
.blog-more{display:flex;flex-direction:column;align-items:center;gap:12px;padding:44px 0 8px}
.blog-more .count{font:600 10px var(--mono);letter-spacing:.14em;color:var(--hint)}
.blog-empty{display:none;text-align:center;padding:36px 0;font:400 14px var(--sans);color:var(--mut)}

@media (max-width:1080px){
  .feat{grid-template-columns:1fr}
  .feat-side{border-left:0;border-top:1px solid var(--card-ln);min-height:0;flex-direction:row;align-items:center;padding:26px 36px}
  .feat-side .fs-n{font-size:44px}
  .feat-side .fs-mid{flex:1}
  .posts{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  .posts{grid-template-columns:1fr}
  .blog-toolbar{flex-wrap:wrap}
  .blog-toolbar .sp{display:none}
  .blog-filter{flex-wrap:wrap}
  .feat-body{padding:28px 24px}
  .feat-side{padding:22px 24px}
}


/* ══════════════════════════════════════════════════════════════════════════
   THEME ADDITIONS — not in the design handoff's blog-ledger.css.
   Everything above this line is the verbatim port. Keep new rules below it.
   ══════════════════════════════════════════════════════════════════════════ */

/* The prototype styles the featured plate's wordmark period with an inline
   style attribute; page templates in this theme never carry inline CSS, so it
   lives here instead. Same declarations, same result.

   The margin is a fix, not a port. .fs-crest is a flex row with gap:10px to
   space the <i>R</i> tile off the word, but the period is a separate flex item
   and so inherits that gap too — the prototype renders "RecapWP ." with the
   accent dot floating a third of a character-width off the wordmark. The mark
   is written RecapWP<em>.</em> with the dot attached (see the brand note in
   CLAUDE.md), so the gap is cancelled on that one item. */
.feat-side .fs-crest em{font-style:normal;color:color-mix(in oklab,var(--ac) 85%,#fff);margin-left:-10px}

/* The prototype drives the empty state and the load-more row by writing inline
   display, which would fight this sheet. They toggle attributes/classes here so
   the CSS keeps ownership of display — and both need an explicit [hidden] rule:
   .blog-more sets display:flex and .btn sets inline-flex, either of which
   out-specifies the browser's own [hidden]{display:none} and would leave a
   "hidden" element on screen. */
.blog-empty.is-on{display:block}
.blog-more[hidden],
.blog-more .btn[hidden]{display:none}

/* The featured card is article 01, so it filters like any other card — which
   the design never has to do, hence no hidden state for it. .feat sets
   display:grid, so this needs the same specificity the ported .post.is-hidden
   rule uses. */
.feat.is-hidden{display:none}

/* More room under the load-more. The design leaves only 20px between the
   "SHOWING x OF y" line and the closing band's edge (its own 8px + .blog-main's
   12px), which reads as the count belonging to the navy band rather than to the
   grid it counts. 60px + that 12px gives the section a bottom margin close to
   its own 64px top, so the article list ends before the CTA begins. */
.blog-more{padding-bottom:60px}

/* Keyboard focus. The design ships no focus style for the chips or the cards,
   which leaves the filter and the whole article grid unusable-looking for
   keyboard users; the cards are the page's primary navigation. */
.fchip:focus-visible,
.post:focus-visible,
.feat:focus-visible{outline:2px solid var(--ac);outline-offset:2px}

/* Cards revealed by "Load more" fade in rather than appearing instantly. The
   design has no reveal because its cards are all in the DOM at once; ours are
   too, so this is purely the transition between the two states. */
@media (prefers-reduced-motion:no-preference){
  .post.is-in{animation:post-in .32s ease both}
}
@keyframes post-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
