* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

a,
.inactive-link {
  display: inline-flex;
}

.corner-links {
  position: fixed;
  top: 8px;
  right: 30px;
  z-index: 1;
  display: grid;
  gap: 0;
  justify-items: end;
}

.corner-links a,
.corner-links .inactive-link {
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.corner-links img,
.links img {
  object-fit: contain;
  transition: transform 1s ease;
}

.site-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 80px 12px;
}

.links {
  display: grid;
  width: min(360px, calc(100vw - 24px));
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
}

.links a {
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
}

.links img {
  width: 100%;
  height: 100%;
}

.links a:nth-child(3) img {
  width: 90%;
  height: 90%;
}

.corner-links a:hover img,
.corner-links .inactive-link:hover img,
.links a:hover img {
  transform: scale(1.2);
}

.corner-links a:focus-visible,
.links a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #111;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  .corner-links {
    right: 12px;
  }

  .site-main {
    padding-block: 76px;
  }
}
