/* ============================================================================
   posts.css — /posts list-page styling for the junebash.com reskin.
   Loaded AFTER redesign.css (wins the cascade). All themable colors come from
   foundation tokens so the light/dark toggle works. Posts is the SKY
   discipline. Self-contained; prefixed `.postlist-*`.
   ========================================================================== */

.postlist {
  padding-top: 4px;
  padding-bottom: 8px;
}

/* ------------------------------------------------------------- Header -- */
.postlist-head {
  padding: 56px 0 28px;
}

.postlist-title {
  font-size: 52px;
  margin: 16px 0 0;
}

.postlist-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 14px 0 0;
  max-width: 600px;
}

.postlist-back {
  display: inline-block;
  color: var(--posts-chip);
  margin-bottom: 14px;
}
.postlist-back:hover { text-decoration: none; color: var(--ink); }

/* --------------------------------------------------------------- List -- */
.postlist-list {
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------- Tag cloud -- */
.postlist-tags {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.postlist-tags-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 18px;
}

.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tagcloud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--posts-wash);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--posts-chip);
  transition: background-color .15s ease;
}
.tagcloud-item:hover { text-decoration: none; color: var(--ink); }
.tagcloud-name {
  font-family: var(--font-mono);
  font-size: 13px;
}
.tagcloud-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.postlist-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background-color .15s ease, padding-left .15s ease, padding-right .15s ease;
}

.postlist-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.postlist-row:hover {
  text-decoration: none;
  background-color: var(--posts-wash);
  padding-left: 14px;
  padding-right: 14px;
}

.postlist-row-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.postlist-row:hover .postlist-row-title {
  color: var(--posts-chip);
}

.postlist-row-leader {
  flex: 1;
  height: 1px;
  align-self: center;
  opacity: .7;
  background: repeating-linear-gradient(90deg, var(--hairline-2) 0 2px, transparent 2px 7px);
}

.postlist-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.postlist-row-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--posts-chip);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.postlist-row-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
}

/* ----------------------------------------------------------- Pagination -- */
.postlist-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.postlist-pagination .page-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--posts-chip);
  text-decoration: none;
}

.postlist-pagination .page-link:hover {
  text-decoration: underline;
}

.postlist-pagination .page-next {
  margin-left: auto;
}

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 720px) {
  .postlist-head {
    padding: 40px 0 22px;
  }
  .postlist-title {
    font-size: 38px;
  }
  .postlist-row {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .postlist-row-leader {
    display: none;
  }
  .postlist-row:hover {
    padding-left: 8px;
    padding-right: 8px;
  }
}
