/* ── Link page layout ────────────────────────────────────────────────────── */
body { padding: 48px 20px 0; }

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding-bottom: 48px;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar-wrap { display: flex; justify-content: center; margin-bottom: 16px; position: relative; }

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(180,160,220,.5);
  animation: ring-spin 18s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background-image: url('../assets/IMG_0129.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(.88) brightness(1.12) hue-rotate(10deg);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.75),
    0 0 18px rgba(180,155,230,.45),
    0 0 40px rgba(180,155,230,.2);
  animation: avatar-glow 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes avatar-glow {
  0%,100% { box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 0 18px rgba(180,155,230,.45), 0 0 40px rgba(180,155,230,.2); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 28px rgba(180,155,230,.65), 0 0 60px rgba(180,155,230,.28); }
}

/* ── Name + tagline ──────────────────────────────────────────────────────── */
.name {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 2.8rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: .03em;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #2a2040 20%, #b0a0d8 40%, #d4c0ec 50%, #b0a0d8 60%, #2a2040 80%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-shimmer 5s linear infinite;
}

.tagline {
  font-family: 'VT323', monospace;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── Link buttons ────────────────────────────────────────────────────────── */
.links { display: flex; flex-direction: column; gap: 7px; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 2px 14px rgba(120,90,190,.07), inset 0 1px 0 rgba(255,255,255,.55);
  position: relative;
  overflow: hidden;
}
.link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.link-btn:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 28px rgba(120,90,190,.16), inset 0 1px 0 rgba(255,255,255,.7);
  background: rgba(248,246,255,.75);
  border-color: rgba(180,155,225,.65);
}
.link-btn:hover .link-sym { transform: scale(1.15); }
.link-btn:active { transform: translateY(0) scale(1); }

.link-sym {
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: var(--periwinkle);
  transition: transform .18s ease;
}
.link-text { flex: 1; }
.link-text .lt {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: .08em;
  display: block;
}
.link-text .ls { display: none; }
.link-arrow {
  color: var(--lavender);
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.link-btn:hover .link-arrow { transform: translateX(3px); }

.link-btn.featured {
  background: linear-gradient(135deg, rgba(214,198,248,.5), rgba(192,200,248,.38));
  border-color: rgba(180,155,230,.6);
}
.link-btn.featured .link-text .lt { color: #4a38a0; }
.link-btn.featured .link-sym { color: #7858c8; font-size: 1.15rem; }
.link-btn.featured:hover { background: linear-gradient(135deg, rgba(214,198,248,.68), rgba(192,200,248,.55)); }

/* ── Dividers ────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 1px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed rgba(180,155,220,.38);
}
.divider span {
  font-family: 'VT323', monospace;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(180,155,220,.7);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-height: 780px) {
  body { padding-top: 28px; }
  .card { padding-bottom: 28px; }
  .moon-wrap { margin-bottom: 6px; }
  .moon { font-size: 1.25rem; }
  .avatar { width: 76px; height: 76px; }
  .avatar-wrap { margin-bottom: 10px; }
  .name { font-size: 2.3rem; margin-bottom: 2px; }
  .tagline { margin-bottom: 4px; }
  .links { gap: 5px; }
  .link-btn { padding: 9px 14px; }
  .divider { margin: 2px 0 0; }
}

@media (max-height: 680px) {
  body { padding-top: 12px; }
  .card { padding-bottom: 12px; }
  .moon-wrap { margin-bottom: 4px; }
  .moon { font-size: 1rem; }
  .avatar { width: 62px; height: 62px; }
  .avatar-wrap { margin-bottom: 8px; }
  .deco { display: none; }
  .name { font-size: 1.9rem; margin-bottom: 1px; }
  .tagline { font-size: 1rem; margin-bottom: 3px; }
  .links { gap: 3px; }
  .link-btn { padding: 7px 12px; }
  .link-text .lt { font-size: .8rem; }
  .divider { margin: 1px 0 0; }
  .divider span { font-size: .72rem; }
}
