/* Van Praag AI Agency — /blog
   Loaded AFTER assets/home-v2.css, by the blog index and every post. It adds; it
   never redefines a homepage selector — same contract as team.css.

   DIRECTIONAL PROPERTIES ARE LOGICAL, NOT PHYSICAL — same contract as home-v2.css
   and team.css. A `left:` here is right in English and silently wrong in Hebrew,
   which matters the day this section gets translated.

   EN ONLY FOR NOW (Leib, 30-08-2026). No /de/blog/, /he/blog/, /nl/blog/ yet —
   don't add hreflang alternates to a post until the translation actually exists.
   ========================================================================== */

/* ---------- the top band ----------
   Same band as /team's .tophero: a normal section that clears the fixed header,
   used on the index and reused as the post's own header (kicker + h1 + lede),
   just with a shorter lede on posts. */
.tophero{padding:calc(96px + clamp(40px,7vh,84px)) 0 clamp(46px,7vh,78px);
  background:linear-gradient(180deg,var(--cream),var(--panel) 78%,var(--panel))}
.tophero h1{font-family:var(--serif);font-weight:450;letter-spacing:-.02em;
  font-size:clamp(2.15rem,4.6vw,3.9rem);line-height:1.03;margin:0 0 20px;max-width:24ch}
.tophero .lede{max-width:52ch;font-size:clamp(1.02rem,1.35vw,1.2rem);text-wrap:pretty}

/* ---------- the index: a grid of posts ----------
   Reuses .card / .grid / .g3 from home-v2.css rather than inventing a new card —
   a blog post and a service are both "one thing you can click into", and the site
   already has a card for that. This file only adds what a services card doesn't
   need: a category tag, an excerpt, and a date/read-time line. */
.blogindex{background:var(--white)}
.postcard{text-decoration:none;color:inherit;cursor:pointer;padding:0;overflow:hidden}
/* same picture-plus-body shape as /team's .agent card (team.css) -- .card already
   sets flex-column, so the image is item one and .cbody is item two. */
.postcard .cbody{display:flex;flex-direction:column;flex:1 1 auto;padding:20px 22px 18px}
.postcard .apic{margin:0;line-height:0;background:var(--panel);
  border-bottom:1px solid rgba(184,137,31,.16)}
.postcard .apic img{display:block;width:100%;height:auto;aspect-ratio:960/417;
  object-fit:cover;filter:saturate(.94) contrast(1.02)}
.postcard:hover .apic img{filter:saturate(1) contrast(1.03)}
.postcard .tag{display:inline-block;font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--gold-deep);font-weight:700;margin-bottom:12px}
.postcard h3{font-family:var(--serif);font-weight:450;font-size:1.32rem;
  line-height:1.28;letter-spacing:-.015em;color:var(--ink);margin:0 0 10px;max-width:26ch}
.postcard .excerpt{color:var(--ink-soft);font-size:15px;line-height:1.55;margin:0}
.postcard .meta{margin-top:auto;padding-top:18px;font-size:12px;color:var(--ink-soft)}
/* only one post exists today — this keeps a single card from stretching the full
   width of a 3-up grid track and reading like an error. */
.blogindex .grid{grid-template-columns:repeat(auto-fit,minmax(280px,360px))}

/* ---------- the post itself ----------
   58ch: measured against the same longform read as the homepage lede family, a
   touch wider than .card p because this is the whole page's job, not one line
   inside a card. */
.post{background:var(--white)}
/* the post's own hero image, same box language as /team's .filmbox: a bordered,
   shadowed frame that reserves its own height before the image has decoded, so
   there is no layout shift on load. */
.postimg{max-width:1000px;margin:0 auto 44px;border-radius:16px;overflow:hidden;
  border:1px solid var(--line);box-shadow:0 40px 80px -44px rgba(60,45,15,.45)}
.postimg img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
/* a small illustration set into the reading column, not full width -- it is an
   accent for one paragraph's claim, not a second hero. */
.inlineart{max-width:340px;margin:36px auto;border-radius:14px;overflow:hidden;
  border:1px solid var(--line);box-shadow:0 30px 60px -36px rgba(60,45,15,.4)}
.inlineart img{display:block;width:100%;height:auto}
.postbody{max-width:58ch;margin:0 auto}
.postbody p{font-size:16.5px;line-height:1.68;color:var(--ink);margin:0 0 22px;text-wrap:pretty}
.postbody p:last-child{margin-bottom:0}
/* the byline/date/read-time row under the post's own h1, inside .tophero */
.postmeta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:18px;
  font-size:12.5px;letter-spacing:.02em;color:var(--ink-soft)}
.postmeta span+span::before{content:"\00b7";margin-inline-end:14px;color:var(--gold)}

/* the one figure the story is actually about — set apart the way .p-count sets
   apart a number on the homepage console, not the narrow testimonial .quote
   (that one caps at 30ch, which is too tight for a sentence-length callout). */
.pullfigure{margin:34px 0;padding:24px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);text-align:center}
.pullfigure .big{display:block;font-family:var(--serif);font-weight:450;
  font-size:clamp(2.1rem,5vw,3.1rem);letter-spacing:-.02em;color:var(--gold-deep);line-height:1.05}
.pullfigure p{max-width:none;margin:8px 0 0;font-size:14.5px;color:var(--ink-soft)}

.postbody .rule{margin:36px 0}

/* back to the index, same grammar as a footer link */
.backlink{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;
  color:var(--ink-soft);text-decoration:none;margin-bottom:28px}
.backlink:hover{color:var(--gold-deep)}
.backlink svg{width:13px;height:13px}

@media (max-width:600px){
  .postbody{max-width:none}
}

/* ---------- QA ----------
   Same pin as team.css: a full-page capture uses a page-tall viewport, which
   re-resolves the tophero's vh padding against the whole document. */
body.qa .tophero{padding-top:150px;padding-bottom:60px}
