/* Blog: /blog/ (the hub) and /blog/<slug> (posts written by voda-seo's
   static_push from its post template, sites/vodamarketing/blog_templates/).
   Builds on css/site.css (tokens, nav, buttons, dark panel, footer) and
   css/guide.css (hub hero). Post bodies are generated markdown -> HTML, so the
   body rules style plain elements inside .post-body plus the few classes the
   publisher adds (quick-answer, key-takeaways, pull-stat, post-figure,
   post-table, post-faq); they must hold for ANY body.

   One device carries the blog: the brand's coral underline. It draws under
   the title's accent word when a post opens, marks the section you are
   reading in the contents, fills the contents rail as you read, and draws
   under a post title you point at on the hub. One ease, short durations, and
   nothing moves at rest. */

:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* ============================== POST HERO ============================== */
.post-hero { padding: 32px 0 28px; }
@media (min-width: 768px) { .post-hero { padding: 56px 0 40px; } }
@media (min-width: 1024px) { .post-hero { padding: 72px 0 56px; } }
.post-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1024px) {
  .post-hero--art .post-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}

.post-hero__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 18px; }
.post-hero__crumbs .dot-icon { margin: 0; }
.post-hero__crumbs a {
  color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; padding: 6px 0;
  transition: text-underline-offset 250ms var(--ease-out);
}
@media (hover: hover) { .post-hero__crumbs a:hover { text-underline-offset: 6px; } }
.post-hero__crumbs a:focus-visible { text-underline-offset: 6px; }
.post-hero__sep { color: var(--text-muted); }

/* Long question titles: a calmer, fluid version of the site's hero headline. */
.post-hero .post-hero__title {
  font-size: clamp(2.5rem, 1.55rem + 2.45vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.035em; max-width: 20ch; margin-left: -0.03em;
  text-wrap: balance;
}
@media (min-width: 1024px) { .post-hero--art .post-hero__title { max-width: none; } }
.post-hero__title .nw { white-space: nowrap; }
/* The accent word: the same word the post's share card underlines. */
.post-hero__title .hl { position: relative; display: inline-block; isolation: isolate; }
.post-hero__title .hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.05em; height: 0.09em; min-height: 4px;
  border-radius: var(--radius-badge); background: var(--accent); z-index: -1;
  transform-origin: left center; animation: post-underline 900ms 250ms var(--ease-out) both;
}
@keyframes post-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.post-hero__meta { margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.post-hero__author { color: var(--text-primary); font-weight: 700; }
.post-hero__meta .post-hero__sep { margin: 0 9px; }

.post-hero__art { margin: 0; }
.post-hero__art img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 24px; border: 1px solid var(--border-soft); background: var(--bg-secondary);
}
@media (min-width: 1024px) { .post-hero__art img { aspect-ratio: 4 / 3; border-radius: var(--radius-card); } }

/* ============================== LAYOUT + CONTENTS ============================== */
.post-layout { padding-bottom: 64px; }
@media (min-width: 1024px) { .post-layout { padding-bottom: 96px; } }
@media (min-width: 1100px) {
  /* Same 7:5 split as the hero: the body under the title, the contents under the art. */
  .post-layout--toc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .post-layout--toc .post-body { grid-column: 1; grid-row: 1; }
  .post-layout--toc .post-toc { grid-column: 2; grid-row: 1; }
}

.post-toc { margin-bottom: 32px; border: 1px solid var(--border-soft); border-radius: 24px; background: var(--bg-secondary); }
.post-toc__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 0 20px; cursor: pointer; list-style: none;
}
.post-toc__summary::-webkit-details-marker { display: none; }
.post-toc__summary .mono-caption { color: var(--text-primary); font-size: 12px; }
.post-toc__summary::after {
  content: ''; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.5px solid var(--text-primary); border-bottom: 1.5px solid var(--text-primary);
  transform: translateY(-2px) rotate(45deg); transition: transform 250ms var(--ease-out);
}
.post-toc[open] > .post-toc__summary::after { transform: translateY(2px) rotate(-135deg); }
.post-toc__summary:focus-visible { outline-offset: -3px; border-radius: 24px; }
.post-toc__list { counter-reset: toc; padding: 0 20px 14px; }
.post-toc__list li { counter-increment: toc; }
.post-toc__list a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline;
  padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--text-secondary);
  transition: color 250ms var(--ease-out);
}
.post-toc__list a::before {
  content: counter(toc, decimal-leading-zero); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.post-toc__list a span {
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0% 2px no-repeat;
  padding-bottom: 2px; transition: background-size 450ms var(--ease-out);
}
@media (hover: hover) {
  .post-toc__list a:hover { color: var(--text-primary); }
  .post-toc__list a:hover span { background-size: 100% 2px; }
}
.post-toc__list a:focus-visible { color: var(--text-primary); }
.post-toc__list a:focus-visible span,
.post-toc__list a[aria-current] span { background-size: 100% 2px; }
.post-toc__list a[aria-current] { color: var(--text-primary); font-weight: 600; }
.post-toc__list a[aria-current]::before { color: var(--text-primary); }

@media (min-width: 1100px) {
  /* Desktop: an open rail beside the article; its left rule fills coral as you read. */
  .post-toc {
    position: sticky; top: calc(var(--nav-h) + 44px);
    margin: 0; padding: 4px 0 4px 26px; max-width: 360px;
    border: 0; border-left: 1.5px solid var(--border-soft); border-radius: 0; background: none;
  }
  .post-toc::before {
    content: ''; position: absolute; left: -1.5px; top: 0; width: 1.5px; height: 100%;
    background: var(--accent); transform-origin: top; transform: scaleY(0);
  }
  @supports (animation-timeline: scroll()) {
    .post-toc::before { animation: post-read linear both; animation-timeline: scroll(root block); }
  }
  .post-toc__summary { min-height: 0; padding: 0 0 10px; justify-content: flex-start; }
  .post-toc__summary::after { width: 7px; height: 7px; }
  .post-toc__summary:focus-visible { outline-offset: 4px; border-radius: 6px; }
  .post-toc__list { padding: 0; }
  .post-toc__list a { font-size: 14px; padding: 7px 0; }
}
@keyframes post-read { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .post-toc::before { animation: none; display: none; } }

/* ============================== ARTICLE BODY ============================== */
.post-body { max-width: 680px; font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
@media (min-width: 768px) { .post-body { font-size: 18px; } }
.post-body > * + * { margin-top: 1.15em; }
.post-body p, .post-body li { text-wrap: pretty; }
.post-body > p:first-child { font-size: 1.16em; line-height: 1.6; color: var(--text-primary); }
.post-body strong, .post-body b { color: var(--text-primary); font-weight: 700; }

.post-body h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--text-primary);
  font-size: 31px; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
  margin-top: 2.1em; padding-top: 0.75em; border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--nav-h) + 36px);
}
@media (min-width: 768px) { .post-body h2 { font-size: 38px; } }
.post-body h3 {
  font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; margin-top: 1.7em; scroll-margin-top: calc(var(--nav-h) + 36px);
}
@media (min-width: 768px) { .post-body h3 { font-size: 20px; } }
.post-body h2 + *, .post-body h3 + * { margin-top: 0.6em; }

/* Inline links keep their coral underline at rest; it lifts away on hover. */
.post-body a {
  color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere;
  transition: text-underline-offset 250ms var(--ease-out), color 250ms var(--ease-out);
}
@media (hover: hover) { .post-body a:hover { text-underline-offset: 6px; } }
.post-body a:focus-visible { text-underline-offset: 6px; }
.post-body a:active { color: var(--accent); }

/* site.css resets list-style to none; articles need their markers back. */
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.5em; }
.post-body li::marker { color: var(--accent); }
.post-body ol li::marker { font-weight: 700; }

/* Ordered lists of 3+ items are steps: numbered stops on a dotted coral track. */
.post-body ol:has(> li:nth-child(3)) { list-style: none; padding-left: 0; counter-reset: step; }
.post-body ol:has(> li:nth-child(3)) > li { position: relative; counter-increment: step; padding-left: 52px; min-height: 36px; }
.post-body ol:has(> li:nth-child(3)) > li + li { margin-top: 1em; }
.post-body ol:has(> li:nth-child(3)) > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; z-index: 1;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-primary); border: 1.5px solid var(--text-primary);
  font-size: 14px; font-weight: 700; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.post-body ol:has(> li:nth-child(3)) > li:not(:last-child)::after {
  content: ''; position: absolute; left: 16px; top: 38px; bottom: calc(-1em + 2px); width: 2px;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1.4px);
  background-size: 2px 7px; background-repeat: repeat-y;
}

/* "Quick answer": the answer card. "Key takeaways": the ink-ruled checklist.
   (Tagged by the publisher with the classes the Speakable JSON-LD names.) */
.post-body .quick-answer blockquote {
  margin: 0; padding: 22px 24px; border-radius: 24px; background: var(--bg-secondary);
  border: 1px solid var(--border-soft); color: var(--text-primary); font-size: 1.02em;
}
.post-body .quick-answer blockquote > * + * { margin-top: 0.7em; }
.post-body .quick-answer p > strong:first-child,
.post-body .key-takeaways > p:first-child > strong:only-child {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
}
.post-body .quick-answer p > strong:first-child::before,
.post-body .key-takeaways > p:first-child > strong:only-child::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.post-body .key-takeaways {
  padding: 22px 24px; border-radius: 24px; border: 1.5px solid var(--text-primary); background: #fff;
}
.post-body .quick-answer + .key-takeaways { margin-top: 14px; }
.post-body .key-takeaways > * + * { margin-top: 0.4em; }
.post-body .key-takeaways ul { list-style: none; padding-left: 0; }
.post-body .key-takeaways li { position: relative; padding-left: 30px; }
.post-body .key-takeaways li::before {
  content: ''; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 6px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
@media (min-width: 768px) {
  .post-body .quick-answer blockquote, .post-body .key-takeaways { padding: 26px 30px; }
}

/* Any other blockquote is a pull-quote: display serif on a coral rule. */
.post-body > blockquote {
  padding: 2px 0 2px 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.45em; line-height: 1.28; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.post-body > blockquote strong { font-weight: 400; }
.post-body > blockquote > * + * { margin-top: 0.5em; }

/* Pull-stat: one big number from the studio's own results (numbers and
   wording come from site.json facts; post_render places it). */
.post-body .pull-stat {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 1.8em; margin-bottom: 1.8em; padding: 26px 26px 24px;
  border-radius: 24px; background: var(--bg-secondary); border: 1px solid var(--border-soft);
  display: grid; gap: 4px 28px; align-items: end;
}
.post-body .pull-stat::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(26, 26, 26, 0.14) 1.3px, transparent 1.9px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 55% 85% at 100% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 85% at 100% 100%, #000 0%, transparent 72%);
}
.post-body .pull-stat > * { margin: 0; }
.post-body .pull-stat__figure {
  font-family: var(--font-display); font-size: clamp(64px, 16vw, 104px); line-height: 0.9;
  letter-spacing: -0.045em; color: var(--text-primary); font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.post-body .pull-stat__pre { font-size: 0.4em; letter-spacing: -0.01em; color: var(--text-muted); vertical-align: 0.12em; }
.post-body .pull-stat__label { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--text-primary); }
.post-body .pull-stat__callout { font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: var(--text-primary); }
.post-body .pull-stat__mark { position: relative; display: inline-block; isolation: isolate; }
.post-body .pull-stat__mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.12em; min-height: 3px;
  border-radius: var(--radius-badge); background: var(--accent); z-index: -1;
}
.post-body .pull-stat__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.post-body .pull-stat__note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@media (min-width: 640px) {
  .post-body .pull-stat { grid-template-columns: auto minmax(0, 1fr); padding: 30px 32px 28px; }
  .post-body .pull-stat__figure { grid-row: 1 / span 3; align-self: center; }
}

/* In-body graphics (chart, diagram): real <img> with alt text, a caption. */
.post-body .post-figure { margin-top: 2em; margin-bottom: 2em; }
.post-body .post-figure img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--border-soft); background: var(--bg-primary); }
.post-body .post-figure--diagram img { border-color: transparent; border-radius: 0; }
.post-body figcaption {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-muted);
}
.post-body figcaption::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.post-body figure:not(.post-figure) img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border-soft); }

/* Tables: a comparison card that scrolls inside itself on a phone, never the
   page; the row labels stay pinned while it scrolls. (.post-table is the
   publisher's wrapper; a bare table still scrolls in its own box.) */
.post-body .post-table {
  overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 24px; background: var(--bg-primary);
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.post-body .post-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.post-body > table { display: block; overflow-x: auto; max-width: 100%; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; }
/* Up to three columns fit a phone (they wrap); four or more scroll sideways. */
.post-body .post-table table:has(tr > :nth-child(4)) { min-width: 600px; }
@media (max-width: 520px) {
  .post-body .post-table table:not(:has(tr > :nth-child(4))) { font-size: 14px; }
  .post-body .post-table table:not(:has(tr > :nth-child(4))) :is(th, td) { padding: 11px 10px; }
  .post-body .post-table table:not(:has(tr > :nth-child(4))) thead th { white-space: normal; }
}
.post-body th, .post-body td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); background: var(--bg-primary); }
.post-body thead th {
  background: var(--bg-secondary); color: var(--text-primary); font-weight: 700; font-size: 14px;
  border-bottom: 1.5px solid var(--text-primary); white-space: nowrap;
}
.post-body tbody tr:last-child > * { border-bottom: 0; }
.post-body tbody td:first-child, .post-body tbody th { color: var(--text-primary); font-weight: 600; }
.post-body tr > :first-child { position: sticky; left: 0; z-index: 1; }
.post-body .post-table tr > :first-child { box-shadow: 1px 0 0 var(--border-soft); }
@media (min-width: 768px) { .post-body th, .post-body td { padding: 14px 20px; } }

/* FAQ: the questions as <h3>s (the publisher restructures "**Q?** A" pairs). */
.post-body .post-faq { border-top: 1.5px solid var(--text-primary); }
.post-body .post-faq__item { padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.post-body .post-faq .post-faq__q { margin: 0; font-size: 18px; }
.post-body .post-faq__item p { margin-top: 8px; font-size: 16px; line-height: 1.65; }
@media (min-width: 768px) { .post-body .post-faq .post-faq__q { font-size: 19px; } .post-body .post-faq__item { padding: 24px 0; } }

.post-body hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.2em 0; }
.post-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.88em;
  background: var(--bg-tile); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.post-body pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: var(--bg-tile); }
.post-body pre code { padding: 0; background: none; }
.post-body mark { background: rgba(214, 90, 60, 0.18); color: var(--text-primary); padding: 0 2px; border-radius: 3px; }
.post-body dt { font-weight: 700; color: var(--text-primary); }
.post-body dd + dt { margin-top: 0.8em; }
.post-body img { max-width: 100%; height: auto; }

/* ============================== CLOSING PANEL ============================== */
.post-end.section--dark { padding: 52px 0; }
@media (min-width: 768px) { .post-end.section--dark { padding: 80px 0; } }
.post-end__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .post-end__grid { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 72px; max-width: 1060px; }
}
.post-end__author { margin: 0; display: flex; align-items: center; gap: 16px; }
.post-end__author img { width: 76px; height: 76px; flex: none; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.post-end__author figcaption { font-size: 14px; line-height: 1.45; color: var(--text-on-dark-muted); max-width: 30ch; }
.post-end__author b { display: block; font-size: 16px; color: var(--text-on-dark); }
@media (min-width: 900px) {
  .post-end__author { display: block; }
  .post-end__author img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 24px; object-position: 50% 30%; }
  .post-end__author figcaption { margin-top: 14px; }
}
.post-end .section-headline { margin: 14px 0 16px; max-width: 16ch; text-wrap: balance; }
.post-end__body { max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--text-on-dark-muted); text-wrap: pretty; }
.post-end__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.post-end__link {
  font-size: 15px; font-weight: 600; color: var(--text-on-dark); padding: 8px 0 3px;
  border-bottom: 1.5px solid var(--accent); transition: padding-bottom 250ms var(--ease-out);
}
@media (hover: hover) { .post-end__link:hover { padding-bottom: 6px; } }
.post-end__link:focus-visible { padding-bottom: 6px; }
.post-end .btn:active { transform: translateY(0) scale(0.98); }

/* ============================== MORE POSTS ============================== */
.post-more { padding-top: 48px; padding-bottom: 72px; }
.post-more__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; margin-bottom: 16px; }
.post-more__list { border-top: 1.5px solid var(--text-primary); margin-bottom: 24px; max-width: 900px; }
.post-more__list li { border-bottom: 1px solid var(--border-soft); }
.post-more__list a { display: grid; gap: 4px; padding: 18px 0; }
@media (min-width: 768px) { .post-more__list a { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.post-more__list time { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.post-more__list span {
  font-family: var(--font-display); font-size: 23px; line-height: 1.2; color: var(--text-primary);
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0% 2px no-repeat;
  transition: background-size 450ms var(--ease-out);
}
@media (hover: hover) { .post-more__list a:hover span { background-size: 100% 2px; } }
.post-more__list a:focus-visible span { background-size: 100% 2px; }
.post-more:has(.post-more__list:empty) .post-more__title,
.post-more__list:empty { display: none; }
.post-more__all {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 3px;
  font-size: 15px; font-weight: 600; color: var(--text-primary); border-bottom: 1.5px solid var(--accent);
}
.post-more__all .arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
@media (hover: hover) { .post-more__all:hover .arrow { transform: translateX(-5px); } }
.post-more__all:focus-visible .arrow { transform: translateX(-5px); }

/* ============================== HUB: /blog/ ============================== */
.blog-list { padding-bottom: 88px; }
@media (min-width: 1024px) { .blog-list { padding-bottom: 120px; } }
.blog-list__empty { padding: 8px 0 40px; }
.blog-list__empty a.inline {
  color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

.post-card__link {
  display: grid; grid-template-columns: minmax(0, 1fr) 88px; grid-template-areas: "text art";
  gap: 18px; padding: 24px 0; border-top: 1px solid var(--border-soft); color: inherit;
}
.post-card:last-child .post-card__link { border-bottom: 1px solid var(--border-soft); }
.post-card__text { grid-area: text; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post-card__art { grid-area: art; overflow: hidden; border-radius: 16px; border: 1px solid var(--border-soft); align-self: start; }
.post-card__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.post-card__meta > * + *::before { content: '\00b7'; margin: 0 9px; }
.post-card__meta time { font: inherit; color: var(--text-primary); }
@media (max-width: 520px) {
  /* the date on its own line, so a wrapped line never starts with a separator */
  .post-card__meta time { flex-basis: 100%; }
  .post-card__meta time + *::before { content: none; }
}
.post-card__title { font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: var(--text-primary); }
.post-card__title span {
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 0% 0.08em no-repeat;
  padding-bottom: 0.04em; transition: background-size 550ms var(--ease-out);
}
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 62ch; text-wrap: pretty; }
.post-card__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); padding-bottom: 3px; border-bottom: 1.5px solid var(--accent); }
.post-card__cta .arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
@media (hover: hover) {
  .post-card__link:hover .post-card__title span { background-size: 100% 0.08em; }
  .post-card__link:hover .post-card__art img { transform: scale(1.045); }
  .post-card__link:hover .post-card__cta .arrow { transform: translateX(5px); }
}
.post-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.post-card__link:focus-visible .post-card__title span { background-size: 100% 0.08em; }
.post-card__link:focus-visible .post-card__cta .arrow { transform: translateX(5px); }
.post-card__link:active .post-card__art img { transform: scale(1.02); }
/* Row thumbnails are small: frame the tile, not the whole picture. */
.blog-list > .post-card:not(:first-child) .post-card__art img { transform: scale(1.55); }
@media (hover: hover) { .blog-list > .post-card:not(:first-child) .post-card__link:hover .post-card__art img { transform: scale(1.62); } }
.blog-list > .post-card:not(:first-child) .post-card__link:focus-visible .post-card__art img { transform: scale(1.62); }
@media (max-width: 767px) {
  .blog-list > .post-card:not(:first-child) .post-card__excerpt {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
}
@media (min-width: 768px) {
  .post-card__link { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "art text"; gap: 32px; padding: 28px 0; align-items: center; }
  .post-card__art { border-radius: 20px; }
  .post-card__title { font-size: 30px; }
}

/* The newest post leads: a 32px card, title left and art right, like the post itself. */
.blog-list > .post-card:first-child .post-card__link {
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "text";
  gap: 22px; padding: 18px 18px 26px; border: 1px solid var(--border-soft); border-radius: 24px; background: var(--bg-secondary);
  transition: border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.blog-list > .post-card:first-child + .post-card .post-card__link { border-top: 0; margin-top: 24px; }
.blog-list > .post-card:first-child:last-child .post-card__link { border-bottom: 1px solid var(--border-soft); }
.blog-list > .post-card:first-child .post-card__art { border-radius: 16px; }
.blog-list > .post-card:first-child .post-card__art img { aspect-ratio: 16 / 9; }
.blog-list > .post-card:first-child .post-card__text { padding: 0 6px; gap: 12px; }
.blog-list > .post-card:first-child .post-card__title { font-size: 31px; }
@media (hover: hover) {
  .blog-list > .post-card:first-child .post-card__link:hover { border-color: var(--text-primary); box-shadow: 0 14px 32px rgba(26, 26, 26, 0.08); }
}
@media (min-width: 900px) {
  .blog-list > .post-card:first-child .post-card__link {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "text art";
    gap: 56px; padding: 40px; border-radius: var(--radius-card); align-items: center;
  }
  .blog-list > .post-card:first-child .post-card__art { border-radius: 24px; }
  .blog-list > .post-card:first-child .post-card__art img { aspect-ratio: 4 / 3; }
  .blog-list > .post-card:first-child .post-card__text { padding: 0; gap: 16px; }
  .blog-list > .post-card:first-child .post-card__title { font-size: clamp(36px, 1.2rem + 2.2vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
  .blog-list > .post-card:first-child .post-card__excerpt { font-size: 17px; }
}
