/* ---------- Tokens ---------- */
:root {
  /* Deep red-rose palette */
  --bg-base: #1a0608;
  --bg-deep: #0d0304;

  --rose-100: #ffe1e6;
  --rose-200: #ffb3c1;
  --rose-300: #ff7a93;
  --rose-400: #e23e57;
  --rose-500: #c41e3a;   /* crimson */
  --rose-600: #8b1a2b;   /* deep rose */
  --wine: #4a0e1a;
  --gold: #e6c79c;

  --text: #fff5f3;
  --text-soft: #f3d9de;
  --text-muted: #c39aa3;

  --card-border: rgba(255, 180, 195, 0.14);
  --card-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02);

  --btn-radius: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      #3a0c14 0%,
      #1a0608 55%,
      #0d0304 100%
    );
  overflow-x: hidden;
  position: relative;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora__blob--rose {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, #ff7a93 0%, transparent 70%);
}

.aurora__blob--crimson {
  top: 38%;
  right: -140px;
  background: radial-gradient(circle, #c41e3a 0%, transparent 70%);
  animation-delay: -6s;
  opacity: 0.45;
}

.aurora__blob--wine {
  bottom: -160px;
  left: 28%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b1a2b 0%, transparent 70%);
  animation-delay: -12s;
  opacity: 0.5;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, 30px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-15px, 10px, 0) scale(0.96);
  }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 44px 28px 32px;
  border-radius: 28px;
  background: linear-gradient(
      180deg,
      rgba(255, 180, 195, 0.08) 0%,
      rgba(255, 180, 195, 0.03) 100%
    ),
    rgba(26, 6, 8, 0.55);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a93 0%, #c41e3a 60%, #4a0e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 6px rgba(255, 122, 147, 0.10),
    0 18px 50px -10px rgba(196, 30, 58, 0.55);
  background-size: cover;
  background-position: 56% 6%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.avatar.has-image .avatar__initial {
  display: none;
}

.avatar__initial {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 52px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 230px;
}

.hero__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 180, 195, 0.5),
    transparent
  );
}

.hero__icon {
  color: var(--rose-300);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2em;
  filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.5));
}

.name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff5f3 0%, #ffb3c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 16px 26px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 180, 195, 0.16);
  background: rgba(255, 220, 226, 0.06);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.link-btn:hover {
  background: rgba(255, 220, 226, 0.1);
  border-color: rgba(255, 180, 195, 0.3);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(255, 122, 147, 0.35);
}

.link-btn:hover::after {
  transform: translateX(120%);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

.link-btn:focus-visible {
  outline: 2px solid var(--rose-200);
  outline-offset: 3px;
}

/* Primary button — deep red rose gradient */
.link-btn--primary {
  background: linear-gradient(135deg, #ff7a93 0%, #e23e57 50%, #c41e3a 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(90, 10, 25, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -8px 24px rgba(120, 15, 35, 0.3) inset,
    0 16px 36px -10px rgba(196, 30, 58, 0.6);
}

.link-btn--primary:hover {
  background: linear-gradient(135deg, #ff93a8 0%, #ef506a 50%, #d6294a 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -8px 24px rgba(120, 15, 35, 0.35) inset,
    0 22px 44px -12px rgba(196, 30, 58, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
  .card {
    padding: 38px 22px 28px;
    border-radius: 24px;
  }

  .name {
    font-size: 34px;
  }

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

  .avatar__initial {
    font-size: 46px;
  }

  .link-btn {
    min-height: 54px;
    font-size: 14.5px;
  }
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .card {
    max-width: 440px;
    padding: 56px 36px 36px;
  }

  .name {
    font-size: 44px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .card,
  .link-btn,
  .link-btn::after {
    animation: none !important;
    transition: none !important;
  }
  .link-btn:hover {
    transform: none;
  }
}
