* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--heading-color);
  background:
    linear-gradient(
      145deg,
      var(--background-top) 0%,
      var(--background-middle) 48%,
      var(--background-bottom) 100%
    );
  overflow-x: hidden;
}

#snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.snowflake {
  position: fixed;
  top: 0;
  left: 0;

  pointer-events: none;
  user-select: none;

  line-height: 1;

  will-change: transform;
  color: #8fc4e3;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(35px, 50vh, 0) rotate(180deg);
  }

  100% {
    transform: translate3d(-20px, 110vh, 0) rotate(360deg);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--page-top-padding) 20px 45px;
}

.profile {
  width: min(100%, var(--content-width));
  text-align: center;
}

.avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--avatar-border-color);
  box-shadow: var(--avatar-shadow);
  background: white;
}

.bio h1 {
  margin: 0 0 8px;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.1;
}

.bio p {
  margin: 0 auto 27px;
  color: var(--bio-color);
  line-height: 1.65;
  font-size: 15px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--button-gap);
}

.social-button {
  position: relative;
  display: grid;
  grid-template-columns: var(--icon-size) 1fr var(--icon-size);
  align-items: center;
  min-height: var(--button-height);
  padding: 8px 10px;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  background: var(--button-background);
  color: var(--button-text-color);
  text-decoration: none;
  box-shadow: var(--button-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.social-button:hover {
  transform: translateY(-3px);
  background: var(--button-hover-background);
  box-shadow: var(--button-hover-shadow);
}

.button-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 14px;
  overflow: hidden;
  background: var(--icon-background);
  display: grid;
  place-items: center;
}

.button-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button-text {
  font-weight: 650;
  font-size: 16px;
}

.button-arrow {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--bio-color);
  font-size: 18px;
}

.footer {
  margin-top: 28px;
  color: var(--footer-color);
  font-size: 13px;
}

@media (max-width: 600px) {
  :root {
    --avatar-size: 105px;
    --button-height: 64px;
    --icon-size: 44px;
    --button-radius: 16px;
  }

  .page {
    padding-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none;
    display: none;
  }

  .social-button {
    transition: none;
  }
}
