/* The Collections hub.
 *
 * Two cards, not fourteen, so they get more room than a domain card and carry
 * their record count as the loudest thing on them — the count is the reason
 * somebody clicks. Structure and palette otherwise follow .domain-card, since
 * this is the same kind of object at a different scale.
 */

.coll-grid-wrap {
  max-width: var(--wide, 1100px);
  margin: 0 auto 72px;
  padding: 0 32px;
}

.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.coll-card {
  display: block;
  background: var(--ink);
  padding: 34px 32px 30px;
  text-decoration: none;
  position: relative;
  transition: background .2s;
}

.coll-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
}

.coll-card:hover { background: var(--ink-raised, #14161a); }

.coll-count {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.coll-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 12px;
}

.coll-blurb {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 46ch;
}

.coll-go {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--paper);
}

.coll-card:hover .coll-go { color: var(--accent); }

/* ------------------------------------------ the teaser on the landing page --- */

.collections-teaser { max-width: var(--wide, 1100px); margin: 0 auto 76px; padding: 0 32px; }

.collection-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.collection-link {
  display: block;
  background: var(--ink);
  padding: 24px 24px 22px;
  text-decoration: none;
  transition: background .2s;
}

.collection-link:hover { background: var(--ink-raised, #14161a); }

.collection-count {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}

.collection-name {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  color: var(--paper);
  margin-bottom: 8px;
}

.collection-blurb {
  display: block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 700px) {
  .coll-grid-wrap, .collections-teaser { padding: 0 16px; }
  .coll-card { padding: 26px 22px 22px; }
  .coll-name { font-size: 23px; }
}
