:root {
  --surface: #1a0f24;
  --surface-deep: #140a1c;
  --text: #faf5ff;
  --text-muted: #c4b5d4;
  --text-dim: #9b8aad;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface-deep);
  background-image: radial-gradient(
    ellipse 120% 80% at 50% -10%,
    rgb(190 80 160 / 18%),
    transparent 55%
  );
}

.page {
  max-width: 26rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

@media (min-width: 480px) {
  .page {
    margin: 0 auto;
    border-radius: 0;
  }
}

/* —— Profile header —— */
.profile {
  padding: 1.1rem 1.1rem 1.35rem;
  text-align: center;
  background: var(--surface);
}

.banner-wrap {
  border-radius: 1.35rem;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 28px rgb(0 0 0 / 45%);
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.avatar {
  width: 7.25rem;
  height: 7.25rem;
  margin: -3.6rem auto 0;
  border-radius: 50%;
  border: 4px solid var(--surface);
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgb(0 0 0 / 5);
}

.name {
  margin: 0.8rem 0 0.1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.handle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* —— Social grid —— */
.links {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0 1rem 0.5rem;
  background: var(--surface);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 10.75rem;
  border-radius: 1.2rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgb(255 255 255 / 8%);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgb(0 0 0 / 45%);
  }
}

.card:active {
  transform: scale(0.98);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 15%) 0%,
    rgb(0 0 0 / 45%) 55%,
    rgb(0 0 0 / 72%) 100%
  );
  pointer-events: none;
}

.card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  z-index: 1;
}

.card__icon--brand {
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon--brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 45%));
}

.card__icon--x img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgb(0 0 0 / 5));
}

.card__icon svg {
  width: 3.5rem;
  height: 3.5rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 45%));
}

.card__icon--instagram svg {
  width: 3.75rem;
  height: 3.75rem;
}

.card__label {
  position: relative;
  z-index: 1;
  padding: 0 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgb(0 0 0 / 55%);
}

.footer {
  padding: 0.85rem 1rem max(1.1rem, env(safe-area-inset-bottom));
  text-align: center;
  background: var(--surface);
  font-size: 0.72rem;
}

.footer a {
  color: rgb(255 255 255 / 32%);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.footer a:hover {
  color: rgb(255 255 255 / 50%);
}

@media (min-width: 480px) {
  .links {
    gap: 0.95rem;
    padding: 0 1.15rem 0.5rem;
  }

  .card {
    min-height: 11.75rem;
  }
}
