body {
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ── listing page layout ── */
.listing-main {
  flex: 1;
  margin: 72px auto 0;
  padding: 3.5rem 2.5rem 4rem;
  max-width: 1100px;
  width: 100%;
}

.listing-header {
  margin-bottom: 3rem;
  border-bottom: 4px solid #00a846;
  padding-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
}

.listing-title {
  font-family: var(--font-nav);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.listing-sub {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--fg);
  filter: opacity(0.45);
}

/* ── grid ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── post card ── */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.6rem;
  border: 1.5px solid color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 3px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:not(.post-card--placeholder):hover {
  border-color: #00a846;
  box-shadow: 0 0 0 1px #00a846;
}

/* ── placeholder ── */
.post-card--placeholder {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--fg) 12%, transparent);
  pointer-events: none;
}

.post-card--placeholder .post-card-title,
.post-card--placeholder .post-card-desc,
.post-card--placeholder .post-card-date {
  filter: opacity(0.3);
}

.post-card--placeholder .post-tag {
  filter: opacity(0.3);
}

/* ── card internals ── */
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.post-card-desc {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg);
  filter: opacity(0.65);
  flex: 1;
}

.post-card-date {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  filter: opacity(0.35);
  margin-top: 0.3rem;
}

/* ── active nav item ── */
.nav-item--active .nav-label {
  color: #00a846;
}

/* ── responsive ── */
@media (max-width: 680px) {
  .listing-main {
    padding: 2rem 1.25rem 3rem;
  }

  .listing-header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }
}
