/* Anahata v2 — collection tile. v1 look (2026-09-28): 3:4 on phones, square
   from 750px, name in Aboreto caps 48px above the bottom, no overlay. */

.collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--a-bg-subtle);
  text-decoration: none;
}

@media screen and (min-width: 750px) {
  .collection-tile {
    aspect-ratio: 1 / 1;
  }
}

.collection-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-tile__img--placeholder {
  object-fit: contain;
  opacity: 0.4;
}

.collection-tile:hover .collection-tile__img {
  transform: scale(1.03);
}

.collection-tile__title {
  position: absolute;
  left: var(--a-space-6);
  right: var(--a-space-6);
  bottom: calc(var(--a-space-6) * 2 - 2px);   /* 48px — v1 */
  font-family: var(--a-font-display);
  font-size: var(--a-fs-tile);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--a-surface);
}

@media screen and (min-width: 750px) {
  .collection-tile__title {
    font-size: var(--a-fs-tile-l);
  }
}

.collection-tile:focus-visible {
  outline: 2px solid var(--a-ink);
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .collection-tile__img {
    transition: none;
  }
}
