:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #090909;
  color: #f7f7f2;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.09), transparent 38rem),
    #090909;
}

.linktree {
  width: min(100% - 32px, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 24px;
  display: flex;
  flex-direction: column;
}

.profile {
  text-align: center;
  margin-bottom: 32px;
}

.profile__heading {
  margin: 0 0 20px;
}

.profile__logo {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

.profile p {
  margin: 10px 0 0;
  color: #aaa9a4;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links {
  display: grid;
  gap: 12px;
}

.link {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f7f2;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.link::before {
  content: "";
  width: 40px;
}

.link__icon {
  width: 24px;
  height: 24px;
  justify-self: end;
  margin-right: 12px;
  grid-column: 1;
  grid-row: 1;
}

.link__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.link__icon-dot {
  fill: currentColor;
  stroke: none;
}

.link__icon-fill {
  fill: currentColor;
  stroke: none;
}

.link > span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.link:focus-visible {
  outline: 3px solid #f7f7f2;
  outline-offset: 4px;
}

footer {
  margin-top: auto;
  padding-top: 48px;
  color: #777772;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 480px) {
  .linktree {
    width: min(100% - 32px, 560px);
    padding-top: 40px;
  }

  .profile__logo {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }
}
