/* ═══════════════════════════════════════════════════════════════════════════
   BLOG POST — its own furniture again.

   A service page sells, a location page proves local knowledge, a post is
   read. So this one is built for reading: a measure that stays comfortable,
   a rail that shows how far in you are, and the numbers people actually
   came for lifted out of the prose instead of buried in it.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reading rail ──────────────────────────────────────────────────────── */
.readbar { position: fixed; inset-block-start: 0; inset-inline: 0; block-size: 3px;
  z-index: 60; background: transparent; pointer-events: none; }
.readbar > i { display: block; block-size: 3px; inline-size: 0; background: var(--accent-500); }
@media (prefers-reduced-motion: reduce) { .readbar { display: none; } }

/* ── Masthead. No full-bleed film: a post opens as type, not as a poster. ── */
.pm { background: var(--g-white); padding: clamp(50px,7vw,90px) var(--pad) 0; }
.pm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-600); }
.pm__cat { background: var(--accent-500); color: #000; font-weight: 700; padding: 5px 11px; }
.pm h1 { margin-block-start: 26px; font-size: clamp(32px,4.6vw,56px); max-inline-size: none; }
.pm__sub { margin-block-start: 16px; font-family: var(--fd); font-style: italic;
  font-size: clamp(18px,2vw,24px); color: var(--ink-700); max-inline-size: none; }
.pm__by { display: flex; flex-wrap: wrap; gap: 22px; margin-block-start: 28px;
  padding-block-start: 20px; font-size: 13px; color: var(--ink-600); }
.pm__by b { color: var(--heading); font-weight: 700; }
.pm__cover { margin-block-start: 40px; aspect-ratio: 16/7; overflow: hidden; background: var(--ink-100); }
.pm__cover img { inline-size: 100%; block-size: 100%; object-fit: cover; }

/* ── The cost band. The figures people came for, before the prose. ─────── */
.costs { background: var(--g-beige); padding: clamp(46px,6vw,70px) var(--pad); }
.costs__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px;
  margin-block-start: 30px; background: var(--ink-200); }
.costs__cell { background: var(--g-white); padding: 24px 26px 26px; position: relative; }
.costs__cell b { display: block; font-family: var(--fh); font-weight: 600;
  font-size: clamp(25px,3vw,34px); letter-spacing: -.03em; color: var(--heading); }
.costs__cell span { display: block; margin-block-start: 8px; font-size: 13px;
  line-height: 1.5; color: var(--ink-700); }
.costs__bar { block-size: 5px; margin-block-start: 16px; background: var(--accent-500);
  transform-origin: left; }
.costs__cell:nth-child(1) .costs__bar { inline-size: 42%; }
.costs__cell:nth-child(2) .costs__bar { inline-size: 62%; }
.costs__cell:nth-child(3) .costs__bar { inline-size: 100%; }
.costs__note { margin-block-start: 22px; font-family: var(--fd); font-style: italic;
  font-size: 15px; color: var(--ink-600); }
@media (max-width: 52rem) { .costs__grid { grid-template-columns: 1fr; } }

/* ── The article ───────────────────────────────────────────────────────── */
.post { background: var(--g-white); padding: clamp(50px,7vw,90px) var(--pad); }
.post__in { display: grid; grid-template-columns: minmax(0,230px) minmax(0,1fr); gap: clamp(30px,5vw,70px); }
.post__toc { position: sticky; inset-block-start: 110px; align-self: start; }
.post__toc b { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-600); padding-block-end: 12px; }
.post__toc a { display: block; padding: 7px 0 7px 14px; font-size: 14px; line-height: 1.4;
  color: var(--ink-700); border-inline-start: 2px solid var(--ink-200); }
.post__toc a:hover { color: var(--heading); border-inline-start-color: var(--accent-500); }

.prose { max-inline-size: none; font-size: 17px; line-height: 1.75; color: var(--ink-800); }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { margin-block-start: 1.9em; font-size: clamp(23px,2.6vw,30px); color: var(--heading); }
.prose h3 { margin-block-start: 1.5em; font-size: clamp(19px,2vw,22px); color: var(--heading); }
.prose a { color: var(--heading); border-block-end: 2px solid var(--accent-500); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li { margin-block-start: .5em; }
.prose li::marker { color: var(--accent-600); }
.prose strong { color: var(--heading); }
.prose table { inline-size: 100%; border-collapse: collapse; margin-block-start: 1.4em; font-size: 15px; }
.prose th { text-align: start; font-family: var(--fb); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-600); padding: 0 14px 12px 0; }
.prose td { padding: 13px 14px 13px 0; border-block-start: 1px solid var(--ink-200);
  vertical-align: top; }
.prose td:last-child { font-family: var(--fh); font-weight: 600; color: var(--heading);
  white-space: nowrap; }
.prose blockquote { margin-block: 1.6em; padding-inline-start: 24px;
  border-inline-start: 3px solid var(--accent-500); font-family: var(--fd); font-style: italic;
  font-size: clamp(19px,2.2vw,25px); line-height: 1.45; color: var(--heading); }

/* ── Inline ask, placed where the first real number lands ──────────────── */
.post__ask { margin-block: 2.2em; padding: 26px 28px; background: var(--g-beige);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.post__ask p { font-family: var(--fh); font-weight: 600; font-size: 19px;
  letter-spacing: -.02em; color: var(--heading); max-inline-size: none; }

/* ── Read next ─────────────────────────────────────────────────────────── */
.next { background: var(--g-mid); padding: clamp(50px,7vw,90px) var(--pad); }
.next__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px;
  margin-block-start: 34px; }
.next__card { background: var(--g-white); padding: 26px 28px 28px; display: block; }
.next__card span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-600); font-weight: 700; }
.next__card b { display: block; margin-block-start: 12px; font-family: var(--fh);
  font-weight: 600; font-size: clamp(19px,2.2vw,24px); letter-spacing: -.025em; color: var(--heading); }
.next__card p { margin-block-start: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.next__card i { display: block; inline-size: 34px; block-size: 2px; background: var(--ink-200);
  margin-block-start: 18px; transition: inline-size .5s var(--ease-draw), background .3s; }
.next__card:hover i { inline-size: 100%; background: var(--accent-500); }
@media (max-width: 60rem) {
  .post__in { grid-template-columns: 1fr; }
  .post__toc { position: static; }
  .next__grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   BLOG INDEX, LEGAL DOCUMENTS AND 404 — the last v2 routes.
   The index reuses the post page's own `.next__card`, so a post
   card looks the same whether it is in a list or a "read next".
   ─────────────────────────────────────────────────────────────── */

.blog { background: var(--g-white, #fff); padding: clamp(50px,7vw,90px) var(--pad); }
.blog__grid { display: grid; gap: clamp(16px,2vw,26px); grid-template-columns: 1fr;
  margin-block-start: var(--rhythm, 40px); }
@media (min-width: 720px)  { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .blog__grid { grid-template-columns: repeat(3, 1fr); } }
.blog__card { display: flex; flex-direction: column; }
.blog__card .blog__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-block-start: auto; padding-block-start: 14px; font-size: 12.5px; color: #6b6259; }
/* ⚠ THE DATE HAS TO UNDO .next__card b, NOT JUST RECOLOUR IT.
   The index reuses the post page's .next__card, where `b` is the card TITLE:
   display:block, the display face, clamp(19px,2.2vw,24px). The date is also
   a <b>, so it inherited all of that and rendered larger than the 15px
   paragraph above it. This rule only set colour and weight, so the size came
   straight through. Rashi, 2026-10-29: "remove the date or reduce size --
   smaller than the normal paragraph font size."

   Every property .next__card b sets is reset here. Add one there and it has
   to be undone here too, or the date grows again. */
.blog__card .blog__meta b {
  display: inline;
  margin-block-start: 0;
  font-family: var(--fb);
  font-size: 12px;              /* under .next__card p, which is 15px */
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--ink-600, #6b6259);
}

/* paging */
.pager { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: center;
  margin-block-start: clamp(30px,4vw,52px); }
.pager a, .pager span {
  min-inline-size: 44px; padding: 11px 15px; border-radius: 999px; text-align: center;
  border: 1px solid #e7ded4; font-size: 14.5px; color: #6b6259; text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.pager a:hover { background: var(--dark,#211a16); color: #fff; border-color: var(--dark,#211a16); transform: translateY(-2px); }
.pager [aria-current="page"] { background: var(--dark,#211a16); color: #fff; border-color: var(--dark,#211a16); }
.pager .pager__gap { border: 0; }

/* legal / accessibility: one readable column, same prose as a post */
.doc { background: var(--g-white,#fff); padding: clamp(50px,7vw,90px) var(--pad); }
.doc__in { max-inline-size: none; }
.doc__meta { margin-block-start: 18px; font-size: 13.5px; color: #6b6259; }
.doc__meta b { color: var(--heading,#3a2e26); }
.doc .prose { margin-block-start: var(--rhythm, 40px); }

/* 404 */
.nf { min-block-size: 70vh; display: grid; place-items: center; text-align: center;
  background: var(--g-hero,#1c1714); color: #fcf6f2; padding: clamp(80px,10vw,130px) var(--pad); }
.nf__in { max-inline-size: 56ch; }
.nf__code { font-size: clamp(64px,11vw,140px); line-height: .9; letter-spacing: -.05em; color: var(--accent,#f78c1e); }
.nf h1 { font-size: clamp(26px,3.4vw,42px); line-height: 1.1; letter-spacing: -.025em; margin: .4em 0 .45em; color: #fff; }
.nf p { font-size: clamp(16px,1.4vw,18px); line-height: 1.6; color: var(--ink-200,#e8d9d1); margin: 0 auto; max-inline-size: none; }
.nf__links { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-block-start: clamp(26px,3vw,38px); }
.nf__links a { padding: 11px 17px; border-radius: 999px; border: 1px solid rgba(255,255,255,.26);
  color: #fcf6f2; font-size: 14.5px; text-decoration: none; background: rgba(255,255,255,.06);
  transition: background .3s ease, transform .3s ease; }
.nf__links a:hover { background: var(--accent,#f78c1e); color: #1c1714; transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .pager a, .nf__links a { transition: none; }
}

/* ── COVER IMAGE ON AN INDEX CARD ──────────────────────────────────────────
   v2's blog index was written when "post images are not in the repo yet", so
   .next__card has no picture in it. They ARE in the repo -- all 40 posts
   carry one, and the live index has been showing them -- so the card gets a
   slot rather than the site quietly losing 40 images.

   The negative margins cancel .next__card's own padding so the photograph
   bleeds to the card edge, which is why they have to match it exactly:
   26px 28px. Change one and change the other.

   A card with no cover simply omits .blog__ph and loses nothing: the rest of
   the card is flex and closes the gap on its own. */
.blog__card .blog__ph { display: block; margin: -26px -28px 18px; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--ink-100, #efe9e4); }
.blog__card .blog__ph img { inline-size: 100%; block-size: 100%; object-fit: cover;
  display: block; transition: transform .6s var(--ease-draw, ease); }
.blog__card:hover .blog__ph img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .blog__card .blog__ph img, .blog__card:hover .blog__ph img { transition: none; transform: none; }
}
