/* === Home masthead === */
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.profile .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 6px var(--bg-primary),
    0 0 0 7px var(--accent-border);
  transition: box-shadow var(--theme-fade);
}

.profile h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.profile .role {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--theme-fade);
}

.social-links {
  margin-bottom: 56px;
}

/* === Purpose === */
.about {
  margin-bottom: 56px;
}

.about p {
  font-size: var(--text-lg);
  line-height: 1.45;
  text-wrap: pretty;
  margin-bottom: 14px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* === Topics === */
.topics {
  margin-bottom: 64px;
}

/* === Pagination === */
.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}

.pagination-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.pagination-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pagination-links a:hover {
  color: var(--accent);
}

.pagination-nav p {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .profile {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .profile .avatar {
    width: 72px;
    height: 72px;
  }
}
