/* ================================================
   BIO LINK PAGE — Mobile-first
   ================================================ */

:root {
  --gold:       #C9A84C;
  --gold-light: #E0BC68;
  --black:      #0C0C0C;
  --dark:       #111111;
  --white:      #FFFFFF;
  --sans:       'Inter', -apple-system, sans-serif;
  --serif:      'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img.emoji { height: 1em; width: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.1em; display: inline-block; }

html, body {
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ---- Background ---- */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.bg-glow--top {
  width: 500px; height: 500px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,168,76,0.07), transparent);
}
.bg-glow--bottom {
  width: 400px; height: 400px;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,168,76,0.04), transparent);
}
.bg-skyline {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 160px;
  overflow: hidden;
}
.bg-skyline svg {
  width: 100%;
  height: 100%;
}

/* ---- Page content ---- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Profile ---- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}
.avatar-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), #8B6A20, var(--gold-light));
  margin-bottom: 16px;
  flex-shrink: 0;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid var(--black);
  display: block;
}
.handle {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.5;
  max-width: 280px;
}

/* ---- Links list ---- */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--white);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.0), rgba(201,168,76,0.0));
  transition: background 0.25s;
}
.link-btn:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.link-btn:active { transform: scale(0.98); }

.link-btn--featured {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.06));
  border-color: rgba(201,168,76,0.35);
}
.link-btn--featured:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(201,168,76,0.1));
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 8px 32px rgba(201,168,76,0.15);
}

.link-btn--subtle {
  opacity: 0.75;
}
.link-btn--subtle:hover { opacity: 1; }

.link-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
}
.link-btn--featured .link-icon {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.link-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-btn--featured .link-label { color: var(--gold-light); }
.link-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.link-btn--featured .link-sub { color: rgba(201,168,76,0.6); }

.link-arrow {
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: transform 0.22s, color 0.22s;
}
.link-btn:hover .link-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* ---- Footer ---- */
.links-footer {
  text-align: center;
}
.links-footer p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
}

/* ---- Desktop adjustments ---- */
@media (min-width: 500px) {
  .page { padding: 60px 32px 80px; }
  .avatar-ring { width: 110px; height: 110px; }
  .handle { font-size: 1.8rem; }
}
