:root {
  --surface: #3d1a32;
  --surface-deep: #2a1224;
  --surface-soft: #4a2240;
  --text: #fff5fa;
  --text-muted: #f0c4dd;
  --text-dim: #d89bb8;
  --accent: #ff6eb4;
  --accent-glow: rgb(255 110 180 / 35%);
}

*,
*::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 100% 70% at 50% 0%, rgb(255 120 180 / 28%), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgb(180 60 140 / 22%), transparent 45%),
    linear-gradient(180deg, #351428 0%, var(--surface-deep) 100%);
}

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

/* —— 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 32px rgb(80 20 50 / 45%);
}

.banner-wrap--art {
  aspect-ratio: 2 / 1;
  position: relative;
}

.banner-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  background: linear-gradient(
    135deg,
    #ff9ecf 0%,
    #e84a9a 35%,
    #9b3d7a 65%,
    #4a1a3a 100%
  );
  overflow: hidden;
}

.banner-art__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.75;
}

.banner-art__orb--1 {
  width: 55%;
  height: 70%;
  top: -20%;
  left: -10%;
  background: rgb(255 200 230 / 90%);
}

.banner-art__orb--2 {
  width: 45%;
  height: 55%;
  bottom: -15%;
  right: -5%;
  background: rgb(255 100 160 / 85%);
}

.banner-art__orb--3 {
  width: 30%;
  height: 40%;
  top: 30%;
  right: 25%;
  background: rgb(255 240 250 / 70%);
}

.banner-art__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgb(255 255 255 / 18%) 48%,
    transparent 56%
  );
  animation: banner-shine 6s ease-in-out infinite;
}

@keyframes banner-shine {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.9;
    transform: translateX(8%);
  }
}

.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 0 0 3px var(--accent-glow),
    0 10px 28px rgb(40 10 30 / 55%);
}

.name {
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.65rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 2px 24px var(--accent-glow);
}

.cta {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  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 180 220 / 12%);
  -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(60 15 40 / 5);
  }
}

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

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(60 10 40 / 12%) 0%,
    rgb(40 8 28 / 48%) 55%,
    rgb(25 5 18 / 75%) 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;
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 45%));
}

.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 220 235 / 38%);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.footer a:hover {
  color: rgb(255 220 235 / 58%);
}

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

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

.links--three {
  grid-template-columns: 1fr 1fr;
}

.links--three .card:last-child {
  grid-column: 1 / -1;
  min-height: 10rem;
}

@media (min-width: 480px) {
  .links--three .card:last-child {
    min-height: 11rem;
  }
}
