* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
}

header {
  display: flex;
  height: 8rem;
  align-items: flex-end;
  justify-content: center;
  font-size: 2rem;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

h1 {
  background: linear-gradient(0deg, #0032a8, #004cff);
  color: white;
  display: inline-block;
  padding: 1rem;
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: 3rem;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

a {
  display: flex;
  align-items: flex-end;
  position: relative;
  aspect-ratio: 1 / 1;
  color: #fff;
  text-decoration: none;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s;
} a > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
} a > div {
  display: flex;
  padding: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50%;
  background: #000c;
  transition: opacity 0.2s;
  font-size: 1.25rem;
  text-align: center;
} a:hover {
  transform: scale(1.05);
}




