/* ─────────────────────────────────────────────────────────────────────────
   Journal — README §6.5.
   ───────────────────────────────────────────────────────────────────────── */

.post-date {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-45);
}

/* — lead post — */
.lead-post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lead-post__media {
  position: relative;
  flex: 1 1 340px;
  min-width: 280px;
  min-height: 340px;
  align-self: stretch;
  background: var(--color-neutral-900);
}
.lead-post__media a { display: block; height: 100%; }
.lead-post__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-post__body {
  flex: 1 1 340px;
  min-width: 280px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 44px) clamp(24px, 4vw, 40px) 0;
}
/* Stacked, the text needs its left padding back. */
@media (max-width: 719px) {
  .lead-post__body { padding-left: clamp(24px, 4vw, 44px); }
  .lead-post__media { min-height: 240px; }
}
.lead-post__title {
  margin: 14px 0 0;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: var(--tracking-h2);
}
.lead-post__title a { color: inherit; }
.lead-post__title a:hover { color: var(--color-accent-300); }
.lead-post__excerpt {
  margin: 18px 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-70);
}
.lead-post__action { margin: 0; }

/* — the grid below — */
.journal-grid--index { margin-top: 22px; }

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.post-card__link:hover { color: inherit; }
.post-card__media {
  display: block;
  height: 190px;
  background: var(--color-neutral-900);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px;
}
.post-card__body .post-date { display: block; }
.post-card__title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
  letter-spacing: var(--tracking-h4);
}
.post-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--text-62); }

/* — single post — */
.post-body { padding-top: 56px; }
.post-body .prose { max-width: 720px; }   /* README §6.5: the measure */

.post-pages { margin-top: 32px; font-size: 14px; color: var(--text-62); }

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 720px;
  margin-top: 64px;
  background: var(--line-10);
}
.post-nav__link {
  flex: 1 1 240px;
  padding: 22px 0;
  background: var(--color-bg);
  color: inherit;
}
.post-nav__link--next { padding-left: 22px; }
.post-nav__link:hover .post-nav__title { color: var(--color-accent-300); }
.post-nav__label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-45);
}
.post-nav__title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.3;
  transition: color var(--dur) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .post-nav__title { transition: none; }
}
