/* Blog: plan.md "Blog". Tokens only (design\system.css); components from components.css. */

/* ---------- hero: the words on white at the left, a framed photo at the right with the three reads landing as cards
   over its clear side ---------- */
.blog-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: var(--c-paper); }
.blog-hero__grid { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.blog-hero__title { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--c-brand-text); }
.blog-hero__words .lede { margin-top: 1.1rem; }
.blog-hero__words .cta-row { margin-top: 1.6rem; }
.blog-hero__media { position: relative; overflow: hidden; overflow: clip; aspect-ratio: 13 / 10; background: var(--c-paper-alt); }
.blog-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 50%; }
.blog-hero__stop { position: absolute; top: 14px; left: 14px; z-index: 2; }
.blog-hero__cards { position: absolute; z-index: 1; right: 16px; top: 50%; display: grid; gap: 10px; width: min(330px, 46%); margin: 0; padding: 0; list-style: none; translate: 0 -50%; }
.blog-hero__card { padding: 0.65rem 0.85rem 0.65rem 0.65rem; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.blog-hero__card .booking__tick { width: 32px; height: 32px; }
.blog-hero__card .booking__words b { font-size: 0.9375rem; line-height: 1.25; }
.blog-hero__card .booking__words small { font-size: 0.8125rem; }
@media (max-width: 899px) {
  .blog-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .blog-hero__media { aspect-ratio: auto; height: 600px; } /* tall enough that the three reads stand under his face */
  .blog-hero__photo { object-position: 24% 50%; }
  .blog-hero__cards { top: auto; bottom: 14px; left: 14px; right: 14px; width: auto; translate: none; }
}

/* ---------- posts: the first read wide on the left, the other two beside it ---------- */
.posts__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.posts__grid .post--wide { grid-row: span 2; }
.post--wide .post__media { position: relative; flex: 1 1 auto; aspect-ratio: auto; min-height: 340px; } /* the photo fills the tall card, no white under its words */
.post--wide .post__media img { position: absolute; inset: 0; }
.post--wide h3 { font-size: clamp(1.55rem, 1.25rem + 1vw, 2.1rem); }
.posts__grid .post:not(.post--wide) .post__media { aspect-ratio: 16 / 8; }
.posts__grid .post__meta { margin-top: 0.15rem; }
.posts__grid .post__media img { object-position: 50% 40%; }
@media (max-width: 899px) {
  .posts__grid { grid-template-columns: minmax(0, 1fr); }
  .posts__grid .post--wide { grid-row: auto; }
  .post--wide .post__media { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
  .post--wide .post__media img { position: static; }
  .posts__grid .post:not(.post--wide) .post__media { aspect-ratio: 16 / 10; }
}

/* ---------- close ---------- */
.blog-close .film__clip { object-position: 62% 40%; }
