:root {
  --bg: #0d2840;
  --btn: #1a86d1;
  --btn-hover: #2a94dc;
  --text: #ffffff;
  --muted: rgba(232, 242, 250, 0.72);
  --shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --max: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(900px 520px at 50% -80px, rgba(46, 122, 176, 0.2), transparent 58%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile h1 {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.profile-email:hover {
  color: var(--text);
}

.profile-email svg {
  width: 16px;
  height: 16px;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.link-row {
  position: relative;
  display: flex;
  min-height: 58px;
  background: var(--btn);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background 160ms ease, transform 160ms ease;
}

.link-row:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.link-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 13px 48px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.link-icon {
  position: absolute;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-more svg {
  width: 18px;
  height: 18px;
}

.link-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.link-more {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.link-more:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer {
  margin-top: 64px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #123047;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .page {
    width: min(var(--max), calc(100% - 40px));
    padding: 52px 0 56px;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .profile h1 {
    margin-top: 22px;
  }

  .bio {
    margin-top: 14px;
  }

  .profile-email {
    margin-top: 26px;
  }

  .links {
    gap: 16px;
    margin-top: 40px;
  }

  .link-row,
  .link-main {
    min-height: 64px;
  }

  .footer {
    margin-top: 72px;
  }
}

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

  .link-row:hover {
    transform: none;
  }
}
