html {
  color: light-dark(#333b3c, #c0caf5);
  background-color: light-dark(#efedea, #1a1b26);
}

.stage {
  container: stage / inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ascii {
  display: none;
  color: light-dark(#333b3c, #c0caf5);
  background-color: light-dark(#efedea, #1a1b26);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

.social-links {
  container: social-grid / inline-size;
  margin-top: 80px;
}

.link-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.social-link-item {
  position: relative;
  display: flex;
  width: 80%;
  height: auto;
  aspect-ratio: 3/2;
  margin: 20px 10px;
  justify-content: center;
  align-items: center;
  color: light-dark(#fff, #000);
  background-color: light-dark(#1a1b26, #bb9af7);
  will-change: scale;
  scale: 1;
  transition: scale 0.1s ease-in;
}

.social-link-item:focus {
  border: 1px solid white;
}

.social-link-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid #bb9af7;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: translateX(-50%) translateY(-50%);
}

@container stage (width > 774px ) {
  h1 {
    opacity: 0;
  }

  .ascii {
    display: block;
  }
}

@container social-grid (width > 400px ) {
  .social-link-item {
    width: 50%;
  }
}
@container social-grid (width > 660px ) {
  .link-grid {
    flex-direction: row;
    justify-content: center;
  }

  .social-link-item {
    width: 300px;
    margin: 30px;
  }

  .social-link-item:hover {
    scale: 1.1;
    transition: scale 0.1s ease-in;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link-item:hover {
    scale: 0;
  }
}
