/* Shelfish link-in-bio pages — shelfish.me/{handle}
   Mobile-first: nearly all traffic arrives from an in-app social browser. */

body.bio {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.bio .wrap {
  width: min(30rem, calc(100% - 2rem));
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bio-main {
  flex: 1;
  padding: 2.5rem 0 2rem;
}

/* Profile */

.bio-profile {
  text-align: center;
  margin-bottom: 2rem;
}

.bio-avatar {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(250, 247, 243, 0.22);
  box-shadow: 0 12px 36px rgba(1, 7, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Handle avatars are often wide illustrations — contain, don't crop. */
.bio-avatar img {
  width: 100%;
  height: 100%;
  padding: 0.45rem;
  object-fit: contain;
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}

.bio-handle {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--purple-bright);
}

.bio-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Featured card */

.bio-featured {
  display: block;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(155, 126, 189, 0.3);
  background:
    linear-gradient(140deg, rgba(155, 126, 189, 0.16), rgba(212, 175, 55, 0.05)),
    var(--ink-elevated);
  box-shadow: 0 16px 44px rgba(1, 7, 23, 0.5);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bio-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 126, 189, 0.55);
  box-shadow: 0 20px 52px rgba(1, 7, 23, 0.58);
}

.bio-featured__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

.bio-featured__body {
  padding: 1.35rem;
}

.bio-featured__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.bio-featured__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

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

.bio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
  padding: 0;
  list-style: none;
}

.bio-meta li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--cream-muted);
}

.bio-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--purple-bright);
}

/* Link list */

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.bio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.bio-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(155, 126, 189, 0.4);
}

.bio-link__label {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.bio-link__sublabel {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bio-link__arrow {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--purple-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Social icons */

.bio-social {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.bio-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream-muted);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.bio-social__link:hover {
  transform: translateY(-1px);
  background: rgba(155, 126, 189, 0.16);
  border-color: rgba(155, 126, 189, 0.45);
  color: var(--purple-bright);
}

.bio-social__link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* Loading skeleton — shown until data.json resolves */

.bio-skeleton {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-elevated);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.bio-skeleton__media {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.bio-skeleton__line {
  height: 0.85rem;
  border-radius: 999px;
  margin: 0.75rem 1.35rem;
}

.bio-skeleton__line--title {
  height: 1.3rem;
  margin-top: 1.35rem;
  width: 70%;
}

.bio-skeleton__line--short {
  width: 45%;
  margin-bottom: 1.5rem;
}

.bio-shimmer {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 70%
  );
  background-size: 220% 100%;
  animation: bio-shimmer 1.4s ease-in-out infinite;
}

@keyframes bio-shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-shimmer {
    animation: none;
  }

  .bio-featured:hover,
  .bio-link:hover {
    transform: none;
  }
}

/* Footer */

.bio-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}

.bio-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bio-powered:hover {
  color: var(--purple-bright);
}

.bio-powered .logo-mark {
  width: auto;
  height: 1.3rem;
}

.bio-powered strong {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--cream);
}

.bio-footer__note {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  text-wrap: balance;
  font-size: 0.8rem;
  color: rgba(250, 247, 243, 0.5);
}

.bio-footer__note a {
  color: var(--purple-bright);
}

[hidden] {
  display: none !important;
}
