/* /assets/css/collections.css */
/* Collections page – list layout (no images) */

/* =========================
   Hero
   ========================= */

.collections-hero {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--rule);
}

.collections-title {
  font-size: var(--h1);
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

.collections-intro {
  max-width: 85ch;
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
  opacity: 0.95;
}

.collections-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================
   Section layout
   ========================= */

.collections-section {
  padding: var(--space-6) 0 var(--space-7);
}

.collections-section--ruled {
  border-top: 1px solid var(--rule);
}
/* Section headings */

.section-head {
  margin-bottom: var(--space-4);
}

.section-title {
  display: inline-block;
  background: #9a7b2f;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 14px 7px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.4px;
  border-radius: 3px;
}
/* =========================
   Pills (jump links)
   ========================= */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75, 54, 33, 0.22);
  background: rgba(245, 240, 230, 0.75);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.35px;
  font-size: 14px;
}

.pill:hover {
  background: rgba(75, 54, 33, 0.08);
  border-color: rgba(75, 54, 33, 0.32);
}

/* =========================
   Bundle list (no grid)
   ========================= */

.bundle-grid {
  display: block;
  margin-top: var(--space-4);
}

/* =========================
   Bundle row
   ========================= */

.bundle-card {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.bundle-card:first-child {
  border-top: 1px solid var(--rule);
}

/* Zebra striping */
.bundle-card:nth-child(even) {
  background: rgba(245, 240, 230, 0.45);
}

.bundle-card:nth-child(odd) {
  background: transparent;
}

/* =========================
   Meta content
   ========================= */

.bundle-meta {
  display: grid;
  gap: 8px;
}

/* Title */
.bundle-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bundle-title a {
  color: var(--ink);
  text-decoration: none;
}

.bundle-title a:hover {
  background: #efe6d7;
}

/* Author / curator */
.bundle-byline {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.25px;
  color: var(--oak);
  opacity: 0.9;
}

/* Description */
.bundle-desc {
  margin: 4px 0 2px;
  opacity: 0.9;
}

/* =========================
   Compact inline meta line
   ========================= */

.bundle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.25px;
  color: var(--oak);
}

/* Convert badges to inline text */
.badge {
  padding: 0;
  border: none;
  background: none;
}

.badge::after {
  content: "·";
  margin-left: 10px;
  opacity: 0.5;
}

.badge:last-child::after {
  content: "";
}

/* Price emphasis */
.badge--price {
  font-weight: 700;
  color: var(--ink);
}

/* =========================
   View link
   ========================= */

.bundle-link {
  margin-top: 2px;
  font-family: var(--serif);
  letter-spacing: 0.3px;
}

.bundle-link a {
  color: var(--oak);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   Back to top
   ========================= */

.collections-toplink {
  margin: var(--space-6) 0 0;
  font-family: var(--serif);
  letter-spacing: 0.3px;
}

.collections-toplink a {
  color: var(--oak);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 700px) {
  .bundle-card {
    padding: var(--space-4) 0;
  }

  .bundle-title {
    font-size: 19px;
  }

  .bundle-desc {
    font-size: 15px;
  }
}
