/* The home page: a tile per service. Colours come from common.css (light and dark).
   The tiles share the logo's 8-bit manner: square corners, a solid border and
   a hard shadow without blur, which the tile sinks into when pointed at. */

.home-page { max-width: 1040px; }

.tile-group {
  margin: 1.6rem 0 0.6rem;
  font-family: "VT323", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  -webkit-font-smoothing: none;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 0.9rem;
  margin: 0.6rem 0 0.4rem;
}
.tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--fg);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.06s steps(2), box-shadow 0.06s steps(2);
}
.tile:hover, .tile:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent);
  border-color: var(--accent);
  outline: none;
}
.tile:active { transform: translate(4px, 4px); box-shadow: none; }
.tile-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--accent); }
.tile-icon .icon-svg { width: 1.5rem; height: 1.5rem; }
.tile-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.tile-name { font-weight: 700; font-size: 0.95rem; word-break: break-word; }
.tile-about { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.tile-note { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tile.placeholder { border-style: dashed; border-color: var(--border); box-shadow: none; }
.tile.placeholder .tile-icon, .tile.placeholder .tile-name { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .tile, .tile:hover, .tile:focus-visible, .tile:active { transition: none; transform: none; }
}

/* a tile of an outside link: a small arrow after its name */
.tile-ext { display: inline-flex; margin-left: 0.35rem; color: var(--muted); font-size: 0.8rem; vertical-align: middle; }
