/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 4vw, 24px);
}

.avatar {
  width: clamp(82px, 22vw, 96px);
  height: clamp(82px, 22vw, 96px);
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.profile-subtitle {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 640px) {
  .profile-header {
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 3vw, 28px);
  }
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-title {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.about-text {
  max-width: 60ch;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(23, 23, 23, 0.8);
}

/* Elsewhere */
.elsewhere-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.elsewhere-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition:
    background-color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.elsewhere-link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

.elsewhere-link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.75);
  outline-offset: 4px;
}

.elsewhere-icon {
  width: clamp(22px, 5vw, 26px);
  height: clamp(22px, 5vw, 26px);
  display: block;
}

.elsewhere-label {
  font-size: var(--fs-sm);
}

/* Email copy tooltip */
#email-copy {
  position: relative;
}

.email-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}

.email-tooltip .clipboard-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.email-tooltip.show {
  opacity: 1;
}

/* Footer */
.footer {
  margin-top: var(--space-4);
  padding-bottom: var(--space-2);
  text-align: center;
}

.footer p {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
