/* ============================================================================
   Homeboss Theme — BLOG (single post + archive list)
   ----------------------------------------------------------------------------
   Consumes tokens.css. Body measure stays capped at --measure via the shared
   .hb-prose wrapper (header.css). Sections alternate --surface-base and
   --surface-alt band to band for separation — no borders between bands. Only
   --action / --surface-* / --text-* tokens are used, so nothing pairs --action
   over --footer-bg (tests/themeFooter.test.ts).
   ============================================================================ */

/* --- Alternating surface bands -------------------------------------------- */
.hb-band {
  background-color: var(--surface-base);
}

.hb-band--alt {
  background-color: var(--surface-alt);
}

/* --- Single post ----------------------------------------------------------- */
.hb-post__header {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hb-post__title {
  margin-bottom: 0.25rem;
}

.hb-post__meta {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-body);
}

/* Featured image (only rendered when the post actually has one). Full measure,
   native aspect ratio preserved with height:auto. */
.hb-post__featured {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.hb-post__featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* --- Archive list ---------------------------------------------------------- */
.hb-archive__header {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hb-archive__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface-alt);
}

.hb-archive__item:last-child {
  border-bottom: 0;
}

.hb-archive__item-title {
  margin-bottom: 0.25rem;
}

.hb-archive__item-title a {
  text-decoration: none;
}

.hb-archive__item-meta {
  margin: 0 0 0.5rem;
  font-size: var(--fs-small);
}

.hb-archive__item-more {
  font-weight: 600;
}

.hb-archive__empty {
  color: var(--text-body);
}
