/* 一覧のページ */

.site-header {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 var(--gutter);
}
.site-header img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.site-header span { font-family: var(--font-name); font-weight: 700; font-size: var(--size-m); }

/* いちばん新しい投稿 */
.latest { display: block; margin: 0 var(--gutter); }
.latest .print { padding: 8px; }
/* 小さい画面でも、下に過去の投稿の頭が見えるよう、縦だけ詰める */
.latest .photo {
  aspect-ratio: auto;
  height: min(calc((var(--column) - 2 * var(--gutter) - 16px) * 4 / 3), calc(var(--visible-h) - 250px));
}
.latest .name { font-size: var(--size-xl); line-height: 34px; margin-top: 16px; }
.latest .place { margin-top: 2px; }

/* 過去の投稿（新しい順）。Instagram のプロフィールと同じ 3 列・3:4 */
.past {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 8px;
  margin: 48px var(--gutter) 0;
}
.past a { display: block; }
.past .print { padding: 4px; }
.past .name {
  font-size: var(--size-s); line-height: 19px; margin-top: 8px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.past .place { font-size: var(--size-xs); line-height: 18px; margin-top: 2px; }

a:active .print { transform: scale(0.98); }
@media (hover: hover) {
  a:hover .name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
}
