/* Blog (/blog/): the header's photo with the article's card in glass (adv-postcard), the one post as a large card, the
   news cards with their pages' screenshots; every shared look is in components.css. */

/* the header: the words on the pale ground, the framed photo of a boutique owner reading her tablet on the right, the
   card over her racks (her face is at about 28% across the frame, her tablet low and left of the middle) */
.blog-head__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.blog-head__copy { display: grid; gap: var(--space-4); justify-items: start; }
.blog-head__copy h1 { margin: 0; font-size: clamp(2.05rem, 1.1rem + 2.3vw, 3.4rem); }
.blog-head__copy .lead { margin: 0; }
.blog-head__stage { position: relative; --pc-pad: 28px; --pc-radius: 24px; }
.blog-head__photo { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--pc-radius); overflow: hidden; box-shadow: var(--shadow-l); background: var(--c-paper-alt); }
.blog-head__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, 50% 50%); will-change: transform; }
.blog-head__scene { position: absolute; inset: calc(-1 * var(--pc-pad)); z-index: 2; pointer-events: none; }
.blog-head__scene > [data-scene] { position: absolute; inset: 0; }
.blog-head__stop { position: absolute; right: 14px; bottom: 14px; z-index: 3; }
@media (max-width: 900px) { .blog-head__in { grid-template-columns: 1fr; } }
/* the phone: a square photo, the card across its foot (60 px on it, the rest under it, inside the scene's box, which
   reaches --pc-foot below the photo), the stop at its top */
@media (max-width: 600px) {
  .blog-head__stage { --pc-pad: 12px; --pc-hang: 1; --pc-foot: 60px; margin-bottom: 48px; }
  .blog-head__scene { bottom: calc(-1 * var(--pc-foot)); }
  .blog-head__photo { aspect-ratio: 1 / 1; }
  .blog-head__photo img { object-position: var(--focus-phone, var(--focus, 50% 50%)); }
  .blog-head__stop { bottom: auto; top: 12px; right: 12px; }
}

/* the post: one large card, its cover on the left (on top on the phone); its title opens the article, the whole card
   answers the click */
.post-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-m); transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-l); }
.post-card__cover { position: relative; min-height: 340px; background: var(--c-paper-alt); }
.post-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.post-card__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: clamp(24px, 3.4vw, 48px); }
.post-card__meta { margin: 0; font: 600 0.9rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.post-card__meta b { color: var(--c-brand-text); }
.post-card__title { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .post-card__title a { color: var(--c-brand-text); }
.post-card__line { margin: 0; color: var(--c-ink-soft); }
.post-card__go { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font: 700 1rem/1.2 var(--font-ui); color: var(--c-brand-text); }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__cover { min-height: 0; aspect-ratio: 16 / 10; }
}

/* in the news: three cards, each with its page's screenshot (its top, clear of a cookie bar), opening there; sideways
   slides on the phone */
.news__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.news__card { position: relative; display: grid; gap: 10px; align-content: start; padding: 10px 10px 22px; border-radius: 20px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-m); transition: transform 0.2s, box-shadow 0.2s; }
.news__card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-l); }
.news__card > :not(.news__shot) { margin-inline: 10px; }
.news__shot { display: block; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--c-paper-alt); box-shadow: 0 0 0 1px var(--c-line); }
.news__shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.news__meta { margin-top: 6px; margin-bottom: 0; font: 600 0.85rem/1.35 var(--font-ui); color: var(--c-ink-soft); }
.news__meta b { color: var(--c-brand-text); }
.news__title { margin: 0; font: 700 1.15rem/1.3 var(--font-ui); }
.news__title a { color: var(--c-ink); text-decoration: none; }
.news__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news__card:hover .news__title a { color: var(--c-brand-text); }
.news__line { margin: 0; color: var(--c-ink-soft); }
@media (max-width: 760px) {
  .news__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
  .news__card { flex: 0 0 82%; scroll-snap-align: start; }
}
