:root {
  color-scheme: light;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  --links-profile-size: 20px;
  --links-empty-size: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #fff;
}

.link-profile {
  width: min(100%, 680px);
  margin: 0 auto;
  padding-top: 26px;
  text-align: center;
}

.link-profile img {
  display: block;
  width: 65px;
  height: 65px;
  margin: 0 auto;
  border-radius: 50%;
}

.link-profile h1 {
  min-height: 36px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: var(--links-profile-size);
  font-weight: 700;
  line-height: 1.2;
}

main {
  margin-top: 47px;
  padding-bottom: 40px;
}

.link-grid {
  width: min(100%, 680px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.link-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ececec;
  transition: opacity 180ms ease, outline-color 180ms ease;
}

.link-grid a:focus-visible {
  z-index: 1;
  outline: 3px solid #c9002f;
  outline-offset: -3px;
}

.link-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.links-empty {
  width: min(calc(100% - 40px), 680px);
  margin: 0 auto;
  color: #444;
  font-size: var(--links-empty-size);
  line-height: 1.5;
  text-align: center;
}

.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 (hover: hover) {
  .link-grid a:hover {
    opacity: .82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-grid a {
    transition-duration: .01ms;
  }
}
