.stale-category-tiles {
  --tile-ink: #212520;
  --tile-paper: #f5f1e8;
  --tile-yellow: #ffd027;
  width: min(100% - 2rem, 76rem);
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  color: var(--tile-ink);
}

.stale-category-tiles h2 {
  margin: 0 0 1.5rem;
  padding-inline-start: .72em;
  border-inline-start: .18em solid var(--tile-yellow);
  color: inherit;
  font-size: clamp(1.7rem, 4vw, 2.85rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: start;
  text-transform: none;
}

.stale-category-tiles ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stale-category-tiles li {
  flex: 0 1 calc((100% - 2.5rem) / 3);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stale-category-tiles li:only-child {
  flex-basis: min(100%, 28rem);
}

.stale-category-tiles a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e3dccf;
  border-radius: .85rem;
  background: var(--tile-paper);
  color: inherit;
  text-decoration: none;
}

.stale-category-tiles a:focus-visible {
  outline: 3px solid var(--tile-ink);
  outline-offset: 3px;
}

.stale-category-tiles img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.stale-category-tiles .stale-tile-caption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .8rem 1rem;
  border-top: 1px solid #e3dccf;
  text-align: start;
}

.stale-category-tiles .stale-tile-name {
  font-size: clamp(.98rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.stale-category-tiles .stale-tile-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tile-yellow);
  font-size: 1.15rem;
  line-height: 1;
}

.stale-category-tiles a:hover .stale-tile-name {
  text-decoration: underline;
  text-underline-offset: .15em;
}

@media (max-width: 767px) {
  .stale-category-tiles ul {
    gap: .75rem;
  }

  .stale-category-tiles li {
    flex-basis: calc((100% - .75rem) / 2);
  }

  .stale-category-tiles .stale-tile-caption {
    padding: .65rem;
  }

  .stale-category-tiles .stale-tile-arrow {
    width: 1.6rem;
    font-size: .95rem;
  }
}
