/* ==========================================================================
   STILLHOUSE — Journal list and post (Step A7)
   ========================================================================== */

.journal-hero { padding-top: 72px; padding-bottom: 24px; }
.journal-hero__title { max-width: 13ch; }

/* --- Cards --------------------------------------------------------------------- */
.post-card[hidden] { display: none; }
.post-card__link { display: flex; flex-direction: column; gap: 22px; text-decoration: none; color: inherit; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; }
.post-card__title { transition: color var(--dur-fast) var(--ease-out); }
.post-card__link:hover .post-card__title, .post-card__link:focus-visible .post-card__title { color: var(--accent); }
.post-card--big .post-card__link { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.post-card--big .post-card__body { gap: 16px; padding-bottom: 8px; }
.post-card--big .post-card__title { max-width: 14ch; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Reading progress ------------------------------------------------------------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--color-clay); transform-origin: left; transform: scaleX(0); }

/* --- Post ------------------------------------------------------------------------------ */
.post-head { padding-top: 72px; padding-bottom: 56px; }
.post-head__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.post-head__cat { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.post-head__title { max-width: 16ch; }
.post-head__excerpt { margin: 0; max-width: 52ch; }
.post-cover { aspect-ratio: 21 / 9; }

.article { padding-top: 96px; }
.article__body { max-width: 720px; margin-inline: auto; font-size: 19px; line-height: 1.7; }
.article__body p { margin: 0 0 1.4em; }
.article__body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; margin: 2em 0 0.6em; }
.article__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 1.8em 0 0.5em; }
.article__body ul { margin: 0 0 1.6em; padding-left: 1.2em; }
.article__body li { margin-bottom: 0.5em; padding-left: 0.3em; }
.article__body li::marker { color: var(--accent); }
.article__body blockquote {
  margin: 2.2em 0; padding: 0 0 0 32px; border-left: 3px solid var(--color-clay);
  font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18;
}
.article__body figure { margin: 2.4em -8vw 2.4em; }
.article__body figure img { width: 100%; height: auto; border-radius: 4px; }
.article__body figcaption { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.article__back { max-width: 720px; margin: 72px auto 0; }

/* --- Tablet / mobile ------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .post-card--big .post-card__link { grid-template-columns: 1fr; gap: 24px; }
  .post-grid, .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .post-grid--3 .post-card:nth-child(3) { display: none; }
  .article__body figure { margin-inline: 0; }
}
@media (max-width: 809px) {
  .journal-hero, .post-head { padding-top: 40px; }
  .post-cover { aspect-ratio: 4 / 3; }
  .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
  .post-grid--3 .post-card:nth-child(3) { display: block; }
  .article { padding-top: 56px; }
  .article__body { font-size: 18px; }
  .article__body blockquote { padding-left: 20px; }
}
