/* Hallmark · shape: Editorial Index · genre: modern-minimal · theme: brand (locked docs/design.md)
 * paper: existing --bg · accent: existing --cta-orange · display: Satoshi · body: Satoshi · hero: Index · nav: shared resources menu · footer: shared sitemap · signature: screenshot-led WordPress field guide
 * axes: light/grotesk-sans/warm · posture: restrained · imagery: real product screenshots · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: repetition; lead with one real screen, then switch to an open editorial index. */
/* Hallmark · waive 24b · inherited optical insets on edge-run-halo and connect-capsule · the blog keeps the locked brand stylesheet; these two components are absent on this route. */
/* Hallmark · brand guards 3 and 49b are inherited from site.css: the approved orange screenshot edge and readable wrapping footer destinations. */
/* Hallmark · dismissed 3 · the blog screenshot stripe is the owner's approved 3px orange hero-panel edge (docs/design.md section 0); it is a required brand detail. */
/* Hallmark · waive 77 · editorial archive with four functional regions · a blog index needs a featured guide, article archive and a practical next step, rather than extra marketing sections. */
/* Hallmark · hero-review: in-thread · fix · resolved the tall feature panel with smaller scale-token padding; masthead, guide and action fit the laptop fold. */
/* Hallmark · finish-review: in-thread · ship · resolved archive density and excess phone row height; verified 24 browser states with no layout or accessibility failures. */

:root {
  --blog-display: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  --blog-title: clamp(2rem, 1.25rem + 1.5vw, 2.75rem);
  --blog-gap: var(--space-7);
}

html, body { overflow-x: clip; }
.blog-page { background: var(--bg); }
.blog-page .bg { display: none; }
.blog-page h1, .blog-page h2, .blog-page h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
.blog-page p { text-wrap: pretty; }
.blog-page :is(a, button, input, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.blog-page .header-cta, .blog-page .btn { white-space: nowrap; }
.blog-hero { padding-block: var(--space-7) var(--space-8); }
.blog-masthead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: var(--blog-gap); padding-block: var(--space-5) var(--space-7); }
.blog-masthead h1 { max-width: 11ch; font-size: var(--blog-display); line-height: 1; letter-spacing: -.04em; }
.blog-masthead > p { max-width: 30ch; margin-bottom: var(--space-2); font-size: var(--step-md); color: var(--text-secondary); }
.blog-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-width: 0; border-radius: var(--radius-lg); background: var(--section-alt); overflow: clip; }
.blog-feature-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: var(--space-5); padding: var(--space-6); min-width: 0; }
.blog-feature-copy h2 { max-width: 16ch; font-size: var(--blog-title); line-height: 1.12; letter-spacing: -.035em; color: var(--text-heading); }
.blog-feature-copy > p:not(.blog-meta) { max-width: 45ch; color: var(--text-on-section-alt); font-size: var(--step-base); }
.blog-story-link { color: inherit; text-decoration: none; }
.blog-story-link:hover { color: var(--link); }
.blog-story-link:active { color: var(--link-hover); }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); font-size: var(--step-sm); color: var(--text-on-section-alt); }
.blog-meta > span + span { padding-inline-start: var(--space-4); border-inline-start: 1px solid var(--border-control); }
.blog-feature-visual { display: flex; align-items: center; min-width: 0; padding: var(--space-6); border-inline-start: 3px solid var(--hero-card-accent); background: var(--bg-inset); }
.blog-feature-picture { display: block; width: 100%; }
.blog-feature-picture img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.blog-feature-visual:hover { outline: 2px solid var(--link); outline-offset: -2px; }
.blog-feature-visual:active { outline-color: var(--link-hover); }

.blog-index { padding-block: var(--space-7) var(--space-9); }
.blog-index-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); }
.blog-index-heading h2 { font-size: var(--step-3xl); line-height: 1.1; letter-spacing: -.035em; color: var(--text-accent); }
.blog-search { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; width: min(100%, 18rem); padding-inline: var(--space-4); border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--bg); color: var(--text-primary); }
.blog-search .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--text-muted); }
.blog-search input { width: 100%; min-width: 0; min-height: 46px; padding: 0; border: 0; border-radius: 0; background: var(--bg); color: var(--text-primary); font: inherit; font-size: var(--step-base); caret-color: var(--focus); }
.blog-search input::placeholder { color: var(--text-muted); opacity: 1; }
.blog-search:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
.blog-search input:focus-visible { outline-offset: 0; }
.blog-filter-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-6); }
.blog-topics { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); padding: 0; border: 0; min-width: 0; }
.blog-topics input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.blog-topics label { display: inline-flex; align-items: center; min-height: 44px; padding-block: var(--space-2); border-block-end: 2px solid transparent; color: var(--text-secondary); font-size: var(--step-sm); font-weight: var(--weight-medium); white-space: nowrap; cursor: pointer; }
.blog-topics input:checked + label { border-block-end-color: var(--text-primary); color: var(--text-primary); }
.blog-topics label:hover { color: var(--link); }
.blog-topics label:active { color: var(--link-hover); }
.blog-topics input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 4px; }
.blog-topics input:disabled + label { opacity: .55; cursor: not-allowed; }
.blog-count { min-height: 1lh; font-size: var(--step-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.blog-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--blog-gap); padding: 0; list-style: none; }
.blog-post { display: flex; min-width: 0; border-block-start: 1px solid var(--border-subtle); }
.blog-post article { position: relative; display: flex; flex-direction: column; align-items: start; gap: var(--space-5); min-width: 0; width: 100%; min-height: 12rem; padding-block: var(--space-6); }
.blog-post h3 { max-width: 28ch; font-size: var(--step-2xl); line-height: 1.2; letter-spacing: -.025em; color: var(--text-heading); }
.blog-post h3 a::after { position: absolute; inset: 0; content: ""; }
.blog-post:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
.blog-post > article > p:not(.blog-meta) { color: var(--text-secondary); font-size: var(--step-base); }
.blog-post .blog-meta { margin-top: auto; color: var(--text-muted); }
.blog-empty { padding-block: var(--space-8); text-align: center; border-block-start: 1px solid var(--border-subtle); }
.blog-empty h3 { font-size: var(--step-2xl); }
.blog-empty p { margin-block: var(--space-4) var(--space-5); color: var(--text-secondary); }
.blog-library { padding-block: var(--space-8); background: var(--section-alt); color: var(--text-primary); }
.blog-library-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--blog-gap); }
.blog-library h2 { font-size: var(--step-3xl); line-height: 1.08; letter-spacing: -.035em; color: var(--text-accent); }
.blog-library p { max-width: 45ch; margin-bottom: var(--space-4); color: var(--text-on-section-alt); font-size: var(--step-md); }
.blog-library-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--weight-medium); }
.no-js .blog-tools { display: none; }
.no-js .blog-post-grid { margin-top: var(--space-6); }
.blog-page [hidden] { display: none !important; }

.blog-article-header { padding-block: var(--space-7); }
.blog-back a { display: inline-flex; align-items: center; min-height: 44px; }
.blog-article-header h1 { max-width: 20ch; margin-block: var(--space-5); font-size: var(--step-4xl); line-height: 1.08; letter-spacing: -.035em; }
.blog-article-deck { max-width: 48ch; margin-bottom: var(--space-5); font-size: var(--step-md); color: var(--text-secondary); }
.blog-article-header .blog-meta { color: var(--text-muted); }
.blog-reading-layout { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, 1fr); gap: var(--blog-gap); padding-block: var(--space-6) var(--space-9); border-block-start: 1px solid var(--border-subtle); }
.blog-toc { min-width: 0; }
.blog-toc nav { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.blog-toc h2 { font-size: var(--step-base); color: var(--text-primary); }
.blog-toc ol { display: grid; gap: var(--space-2); padding: 0; margin-top: var(--space-4); list-style: none; }
.blog-toc a { display: inline-flex; align-items: center; min-height: 44px; max-width: 28ch; font-size: var(--step-sm); color: var(--text-secondary); text-decoration: none; }
.blog-toc a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.blog-prose { min-width: 0; max-width: 68ch; color: var(--text-primary); }
.blog-prose > section { margin-top: var(--space-7); scroll-margin-top: calc(var(--header-h) + var(--space-6)); }
.blog-prose h2 { margin-bottom: var(--space-5); max-width: 30ch; font-size: var(--step-2xl); line-height: 1.2; letter-spacing: -.025em; color: var(--text-accent); }
.blog-prose p { max-width: none; margin-bottom: var(--space-5); font-size: var(--step-base); line-height: 1.75; }
.blog-article-picture { display: block; padding: var(--space-5); background: var(--bg-inset); border-radius: var(--radius-md); }
.blog-article-picture img { display: block; width: 100%; height: auto; }
.blog-sources { padding-top: var(--space-6); border-block-start: 1px solid var(--border-subtle); }
.blog-sources ul { padding-inline-start: var(--space-5); }
.blog-sources a { display: inline-block; padding-block: var(--space-2); }
.blog-article-end { margin-top: var(--space-7); }

@media (max-width: 59.99rem) {
  .blog-masthead { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .blog-masthead > p { max-width: 38ch; }
  .blog-feature { grid-template-columns: minmax(0, 1fr); }
  .blog-feature-copy { padding: var(--space-6); }
  .blog-feature-copy h2 { max-width: 24ch; }
  .blog-feature-visual { padding: var(--space-6); border-inline-start: none; border-block-start: 3px solid var(--hero-card-accent); }
  .blog-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-toc nav { position: static; }
  .blog-toc { padding-bottom: var(--space-5); border-block-end: 1px solid var(--border-subtle); }
  .blog-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 39.99rem) {
  .blog-hero { padding-block: var(--space-6); }
  .blog-post-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-post article { min-height: 0; }
  .blog-index-heading { align-items: start; }
  .blog-search { width: 100%; }
  .blog-topics { gap: var(--space-4); }
  .blog-filter-row { align-items: start; }
  .blog-library-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .blog-page .footer-brand .btn { max-width: 100%; }
}
@media (min-width: 60rem) {
  .blog-page .header-inner { flex-wrap: wrap; }
  .blog-page .nav-desktop { flex: 0 1 auto; }
}
@media (max-width: 25rem) {
  .blog-page .header-actions { gap: var(--space-1); }
  .blog-page .header-cta { padding-inline: var(--space-3); }
  .blog-page .header-cta::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-page *, .blog-page *::before, .blog-page *::after { scroll-behavior: auto; animation: none; transition: none; }
}
