/* The collection page (/collection/) and the contact sheet rendered from it. */
main.collection { max-width: 1180px; }

.collection .intro { max-width: 728px; margin: 0 auto; text-align: center; }
.collection .intro p { margin-bottom: 10px; }

.collection section { margin-top: 34px; }

.collection h2 {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 28px;
  text-shadow: 0 3px 0 var(--shadow);
}

.collection h2 small {
  display: inline-block;
  margin-left: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--plum);
  font-size: 17px;
  vertical-align: 4px;
  text-shadow: none;
}

.collection section > p { margin: 0 0 14px; color: var(--plum); }

.collection .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.friend {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 4px 0 rgba(101, 74, 97, 0.25), 0 10px 22px rgba(74, 45, 72, 0.1);
}

.friend img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 408 / 416;
  background: #f4e9f4;
}

.friend figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 12px;
  line-height: 1.25;
  text-align: center;
}

.friend strong { font-family: var(--rounded); font-size: 18px; font-weight: 900; }
.friend span { color: var(--plum-soft); font-size: 14px; }
.friend .no { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

.friend em {
  margin-top: 5px;
  padding: 1px 10px;
  border-radius: 999px;
  background: #ffe3a3;
  color: #7a4b12;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.friend.rare em { background: #e5d4ff; color: #57309a; }
.friend.legendary em { background: linear-gradient(90deg, #ffd1e8, #d9c4ff, #c4f1f7); color: var(--plum); }

.collection .intro p:last-child { margin-bottom: 0; }
