.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-m);
  border: var(--tile-border) solid var(--colour-ink);
  border-radius: var(--tile-radius);
  box-shadow: var(--tile-shadow);
  background-color: var(--colour-paper);
  color: var(--colour-ink);
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease, box-shadow 80ms ease;
  animation: tile-enter 300ms ease backwards;
}

.tile.is-pressed,
.tile:active {
  transform: translate(6px, 6px);
  box-shadow: var(--tile-shadow-pressed);
}

.tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  max-width: 10rem;
  aspect-ratio: 1;
  pointer-events: none;
}

.tile__icon svg,
.tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile__word { pointer-events: none; }

.tile--moss { background-color: var(--colour-moss); color: var(--colour-paper); }
.tile--tomato { background-color: var(--colour-tomato); color: var(--colour-paper); }
.tile--mustard { background-color: var(--colour-mustard); }
.tile--sky { background-color: var(--colour-sky); color: var(--colour-paper); }
.tile--plum { background-color: var(--colour-plum); color: var(--colour-paper); }
.tile--ink { background-color: var(--colour-ink); color: var(--colour-paper); }
.tile--nav { font-size: 1.5rem; }

@keyframes tile-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.launcher-grid__page .tile:nth-child(2) { animation-delay: 60ms; }
.launcher-grid__page .tile:nth-child(3) { animation-delay: 120ms; }
.launcher-grid__page .tile:nth-child(4) { animation-delay: 180ms; }
.launcher-grid__page .tile:nth-child(5) { animation-delay: 240ms; }
.launcher-grid__page .tile:nth-child(6) { animation-delay: 300ms; }

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