* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
}

.bio-links {
  width: 100%;
  max-width: 480px;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon {
  width: 32px;
  height: 32px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initial {
  font-size: 2.5rem;
  font-weight: 600;
}

.name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.tagline {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.link-button:hover {
  transform: translateY(-2px);
}

.link-button .icon {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.horiz-list {
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.horiz-list .link-button {
  width: auto;
}

.footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer a {
  color: inherit;
}

/* Light theme (default) */
body.theme-light {
  background: #f5f5f7;
  color: #16161a;
}

body.theme-light .avatar {
  background: #e4e4e8;
}

body.theme-light .link-button {
  background: #ffffff;
  color: #16161a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

body.theme-light .link-button:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Dark theme */
body.theme-dark {
  background: #121214;
  color: #f2f2f4;
}

body.theme-dark .avatar {
  background: #2a2a2e;
}

body.theme-dark .link-button {
  background: #1e1e22;
  color: #f2f2f4;
  border: 1px solid #333338;
}

body.theme-dark .link-button:hover {
  border-color: #55555c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
