/* Blog (plan.md): header I (the tablet on the kitchen counter as a wide band, the post's first screen scrolling on its
   screen, the H1 and line at the left over the dark kitchen), one card for the one post, and the close. */

/* ---------- top: header layout I (the post's first screen in a glass card beside the tablet: the plan's fallback while
   the tablet's screen corners wait for Tomer) ---------- */
.ph--i { overflow: hidden; background: var(--c-night-2); color: var(--c-on-night); }
.ph--i .ph__media { position: absolute; inset: 0; --focus: 50% 56%; }
/* the navy fade holds dark under the whole copy column (the tablet's white screen begins under it), clear from 58% */
.ph--i .ph__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-2) 90%, transparent) 0%, color-mix(in srgb, var(--c-night-2) 84%, transparent) max(26%, calc((100% - 1440px) / 2 + 560px)), color-mix(in srgb, var(--c-night-2) 40%, transparent) max(40%, calc((100% - 1440px) / 2 + 700px)), transparent max(52%, calc((100% - 1440px) / 2 + 820px))), linear-gradient(270deg, color-mix(in srgb, var(--c-night-2) 50%, transparent) 0%, transparent 26%); }
.ph--i .ph__scene { right: max(24px, calc((100% - 1440px) / 2 + 40px)); top: 50%; translate: 0 -50%; width: 360px; height: 460px; }
.ph--i .ph__media > .stop { top: 16px; right: 16px; }
.ph--i .ph__in { position: relative; z-index: 4; display: grid; align-content: center; min-height: clamp(580px, 46vw, 660px); pointer-events: none; }
.ph--i .ph__copy { max-width: 420px; pointer-events: auto; }
.ph--i h1 { color: var(--c-on-night); max-width: 10ch; }
.ph--i .ph__line { color: var(--c-on-night); max-width: 30ch; }
@media (max-width: 1199px) {
  .ph--i { display: grid; }
  .ph--i .ph__media { position: relative; grid-row: 2; height: 700px; --focus: 55% 40%; }
  .ph--i .ph__media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-night-2) 40%, transparent) 0%, transparent 40%); }
  .ph--i .ph__scene { right: auto; left: 50%; top: auto; bottom: 24px; translate: -50% 0; width: min(380px, calc(100% - 24px)); height: 470px; }
  .ph--i .ph__in { grid-row: 1; min-height: 0; padding-block: var(--space-5); }
  .ph--i .ph__copy { max-width: none; }
  .ph--i h1 { max-width: 14ch; }
}

/* ---------- posts: one card for the one post ---------- */
.post-card { display: grid; grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr); gap: var(--space-5); align-items: center; padding: var(--space-4); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-m); }
.post-card__pic { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-m, 14px); }
.post-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow, 0.6s) var(--ease-out); }
.post-card:hover .post-card__pic img { transform: scale(1.04); }
.post-card__by { font-weight: 600; color: var(--c-ink-soft); }
.post-card h3 { margin-top: var(--space-2); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.post-card h3 a { color: var(--c-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--c-brand-text); }
.post-card__words > p:not(.post-card__by) { margin-top: var(--space-3); color: var(--c-ink-soft); }
.post-card .link-arrow { display: inline-block; margin-top: var(--space-4); }
@media (max-width: 799px) { .post-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- close ---------- */
.page-blog .close-band { --focus: 50% 30%; }
