:root {
  color-scheme: dark;
  --page: #000000;
  --surface: #050505;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --button: #e98300;
  --button-text: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --button-shadow: 0 16px 30px rgba(233, 131, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background: var(--page);
}

.links-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    10px
    max(18px, env(safe-area-inset-bottom));
}

.profile-card {
  width: 100%;
  max-width: 430px;
  min-height: calc(100svh - 32px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-banner {
  width: 100%;
  height: clamp(190px, 54vw, 244px);
  overflow: hidden;
  background: #dbe9f6;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
}

.profile-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 18px 30px;
}

.profile-avatar {
  width: 116px;
  height: 116px;
  margin-top: -58px;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.profile-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 9vw, 2.6rem);
  line-height: 1;
  font-weight: 650;
}

p {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.link-list {
  width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.link-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  color: var(--button-text);
  text-decoration: none;
  background: var(--button);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: var(--button-shadow);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.link-button:active {
  transform: translateY(1px);
}

.link-button:focus-visible {
  outline: 3px solid rgba(0, 136, 204, 0.28);
  outline-offset: 3px;
}

.button-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000000;
  border-radius: 50%;
}

.button-icon img {
  width: 39px;
  height: 39px;
  display: block;
  object-fit: contain;
}

.button-text {
  min-width: 0;
  font-size: clamp(0.76rem, 3.5vw, 0.94rem);
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.button-text--wrap {
  white-space: normal;
}

@media (max-width: 360px) {
  .links-page {
    padding-inline: 8px;
  }

  .profile-content {
    padding-inline: 14px;
  }

  .link-button {
    grid-template-columns: 52px 1fr;
    min-height: 72px;
    gap: 10px;
    padding-right: 12px;
  }

  .button-icon {
    width: 52px;
    height: 52px;
  }

  .button-icon img {
    width: 38px;
    height: 38px;
  }
}
