/* ============================================================================
   Journal styles — layered on top of site.css, never replacing it.
   Every colour here is a var() from site.css's :root block, so the blog can
   never drift away from the rest of the site's palette.
   ============================================================================ */

/* ---- listing --------------------------------------------------------- */

.post-list {
  display: grid;
  gap: 1.5rem;
  max-width: 46rem;
  margin: 0 auto;
}

.post-card {
  padding: 1.5rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-md);
  /* --sh-2 at rest, --sh-3 on hover: the same pair every card on the site
     uses. These were on --sh-1, whose 2px blur does not show against this
     background, so a page of entries read as flat until the pointer landed. */
  box-shadow: var(--sheen), var(--sh-2);
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}

.post-card:hover {
  border-color: var(--accent-24);
  background: var(--panel-2);
  transform: translateY(-3px);
  box-shadow: var(--sheen), var(--sh-3);
}

.post-card h2 {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.4rem;
  letter-spacing: -0.024em;
  line-height: 1.25;
  color: var(--heading);
  text-wrap: balance;
}

.post-card h2 a { color: inherit; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--accent-hi); }

/* An untitled entry is shown by date. Lightening it keeps the list readable —
   a column of bold dates otherwise reads as louder than the titled entries. */
.post-card.untitled h2 { font-weight: 500; color: var(--text); }

.post-excerpt { margin: 0; color: var(--muted); }

.post-meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- chips ----------------------------------------------------------- */

.chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  background: var(--accent-06);
  border: 1px solid var(--accent-24);
  border-radius: var(--r-pill);
}

.chip:hover, .chip:focus-visible { background: var(--accent-16); text-decoration: none; }
.chip--tag { color: var(--muted); background: none; border-color: var(--panel-brd); }

/* ---- a single entry -------------------------------------------------- */

.post { max-width: 42rem; margin: 0 auto; }

/* The generator marks the body "post-body prose", and .prose carries its own
   width: min(46rem, 92%). Nested inside .post that resolves to 92% of 42rem
   and re-centres -- which inset every poem ~4% from the title above it. The
   measure belongs to .post; .prose contributes only its typography here. */
.post-body.prose { width: 100%; margin: 0; padding: 0; }

.post h1 {
  margin: 0.3rem 0 1.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  letter-spacing: -0.034em;
  line-height: 1.14;
  color: var(--heading);
  text-wrap: balance;
}

/* Lyrics and poetry carry their own line breaks — never justify or hyphenate
   this text, and keep the measure narrow so a line rarely wraps by accident. */
/* Most entries are poems and lyrics broken by <br>, so the leading here is
   set for verse rather than for paragraphs -- lines need room to read as
   separate lines. Deliberately NOT text-wrap: balance, which would reflow
   the author's own line breaks into something he did not write. */
.post-body { font-size: 1.12rem; line-height: 1.78; }
.post-body p { margin: 0 0 1.35rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.post-body figure { margin: 1.5rem 0; }
.post-body figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; }

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--heading);
  font-style: italic;
}

.post-body .wp-block-pullquote {
  box-shadow: var(--sheen);
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
}

.post-body .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.post-body .wp-block-pullquote p { margin: 0; font-style: normal; color: var(--heading); }

.post-tags { margin-top: 2rem; }

/* ---- comments (historical, read-only) -------------------------------- */

.comments {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-brd);
}

.comments h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.25rem;
               letter-spacing: -0.02em; color: var(--heading); margin: 0 0 0.3rem; }
.comments-note { margin: 0 0 1.4rem; font-size: 0.9rem; color: var(--muted); }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.comment {
  box-shadow: var(--sheen);
  padding: 1.05rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-md);
}

.comment-meta { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--muted); }
.comment-meta strong { color: var(--text); }
.comment p:last-child { margin-bottom: 0; }

/* ---- pagination ------------------------------------------------------ */

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  max-width: 46rem;
  margin: 2.5rem auto 0;
}

.pg {
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-sm);
}

.pg { transition: border-color .2s var(--ease), background .2s var(--ease); }
.pg:hover, .pg:focus-visible { border-color: var(--accent-24); background: var(--panel-2);
                              text-decoration: none; }
.pg-count { font-size: 0.88rem; color: var(--muted); }

/* ---- archive --------------------------------------------------------- */

.archive { max-width: 46rem; margin: 0 auto; display: grid; gap: 2.2rem; }
.arch-year h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.5rem;
                letter-spacing: -0.024em; color: var(--heading); margin: 0 0 0.7rem; }

.arch-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  vertical-align: middle;
}

.arch-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }

.arch-index li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.arch-index time { font-size: 0.82rem; color: var(--muted); }

.back { max-width: 42rem; margin: 2.5rem auto 0; }

@media (max-width: 640px) {
  .post-card { padding: 1.1rem 1.2rem; }
  .arch-index li { grid-template-columns: 3.8rem 1fr; }
}
