/* blog.css: the Blog's own layout, with the tokens of system.css. Grounds by plan.md: hero footage, posts white,
   close brand tint with the roofline and a framed clip. */

/* hero: the armchair clip full-bleed, the words centered over a soft shade, the newest post in glass beside them */
.blog-hero { position: relative; display: grid; align-items: end; min-height: clamp(600px, 50vw, 760px); overflow: hidden; color: var(--c-on-ink); background: var(--c-ink); }
.blog-hero__pic { position: absolute; inset: 0; }
.blog-hero__pic .frame__pic video { object-position: 50% 30%; }
.blog-hero__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 30 36 / .88) 0%, rgb(30 30 36 / .6) 38%, rgb(30 30 36 / 0) 70%); pointer-events: none; }
.blog-hero__stop { top: 18px; right: 18px; z-index: 4; }
.blog-hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4); align-items: end; padding-block: var(--space-5); }
.blog-hero__words h1 { max-width: 18ch; font-size: var(--fs-h1); color: var(--c-on-ink); }
.blog-hero__words p { max-width: 34rem; margin-top: var(--space-2); font-size: 1.1875rem; color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.blog-hero__card { display: grid; gap: .35rem; padding: var(--space-3); color: var(--c-ink); text-decoration: none; background: color-mix(in srgb, var(--c-paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid color-mix(in srgb, var(--c-paper) 60%, transparent); border-radius: var(--radius-l); box-shadow: var(--shadow-l); translate: var(--rf-x, 0) var(--rf-y, 0); transition: box-shadow var(--dur-fast); }
.blog-hero__card:hover { box-shadow: 0 24px 48px -16px rgb(30 30 36 / .5); }
.blog-hero__new { justify-self: start; padding: .2rem .65rem; font-family: var(--font-ui); font-size: .8125rem; font-weight: 700; color: var(--c-on-brand); background: var(--g-roof); border-radius: 999px; }
.blog-hero__card b { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.blog-hero__card span:last-child { font-size: var(--fs-small); color: var(--c-ink-soft); }

/* posts: three large cards */
.blog-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.blog-card__pic { box-shadow: var(--shadow-m); }
.blog-card p { margin-top: .4rem; color: var(--c-ink-soft); }
.blog-card .more { margin-top: .6rem; }
.blog-card a:hover .blog-card__pic { box-shadow: var(--shadow-l); }

/* close: the framed clip and the main button on the brand tint */
.blog-close { --ground-top: 60px; }
.blog-close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.blog-close__pic { aspect-ratio: 16 / 10; box-shadow: var(--shadow-l); }
.blog-close__pic .frame__pic video { object-position: 40% 35%; }
.blog-close__stop { top: 14px; right: 14px; }
.blog-close__words h2 { font-size: var(--fs-h2); }
.blog-close__words p { margin: var(--space-2) 0 var(--space-4); font-size: 1.125rem; color: var(--c-ink-soft); }
.blog-close__words .btn-note { margin-top: .75rem; font-size: var(--fs-small); }

@media (max-width: 900px) {
  .blog-hero__in, .blog-close__grid { grid-template-columns: minmax(0, 1fr); }
  .blog-posts__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  /* the clip as a band on top, her face clear; the words and the newest post under it on charcoal */
  .blog-hero { display: block; min-height: 0; }
  .blog-hero__pic { position: relative; inset: auto; height: 380px; }
  .blog-hero__pic .frame__pic { position: absolute; inset: 0; }
  .blog-hero__pic .frame__pic video { object-position: 55% 40%; }
  .blog-hero__pic::after { background: linear-gradient(to top, rgb(30 30 36 / .9) 0%, rgb(30 30 36 / 0) 30%); }
  .blog-hero__in { padding-block: var(--space-3) var(--space-5); }
}
@media (max-width: 480px) {
  .btn--main { width: 100%; padding-inline: 1rem; }
}
