:root {
  --text: #1f2933;
  --muted: #66727d;
  --accent: #1769e0;
  --background: #faf9f6;
  --surface: #ffffff;
  --border: #e3e5e7;
}

body.profile-page {
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.profile-page #header {
  background: rgba(250, 249, 246, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.profile-page #header .container,
.profile-page #body-wrapper > .container,
.profile-page #footer .container {
  max-width: 840px;
}

.profile-page .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 650;
}

.profile-page .brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--text);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.profile-page .dropmenu ul li a {
  color: var(--muted);
}

.profile-page #body-wrapper {
  padding: 8rem 1.25rem 5rem;
}

.profile-page #body-wrapper h2:first-child {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.045em;
}

.profile-page .profile-photo {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0;
  border: 6px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(31, 41, 51, 0.13);
  object-fit: cover;
}

.profile-page #body-wrapper .profile-photo-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.profile-page .profile-title {
  margin: 1.25rem 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

.profile-page hr {
  height: 1px;
  margin: 3.25rem 0;
  border: 0;
  background: var(--border);
}

.profile-page #body-wrapper h3 {
  margin: 0 0 1.1rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.profile-page #body-wrapper p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.profile-page #body-wrapper strong {
  color: var(--text);
  font-weight: 650;
  font-style: normal;
}

.profile-page #body-wrapper a:not(.navbar-brand) {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

.profile-page #body-wrapper a:not(.navbar-brand):hover {
  text-decoration: underline;
}

.profile-page .contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.profile-page .contact-social a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  color: var(--text) !important;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 620;
  text-decoration: none !important;
  transition: border-color 160ms ease, transform 160ms ease;
}

.profile-page .contact-social a:hover {
  border-color: #b8c0c7;
  transform: translateY(-1px);
}

.profile-page #footer {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-top: 1px solid var(--border);
}

.profile-page .site-footer {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-page .site-footer p {
  margin: 0;
  font-size: 0.72rem;
}

.profile-page .site-footer a {
  color: var(--text);
}

@media (max-width: 620px) {
  .profile-page #body-wrapper {
    padding-top: 6.5rem;
  }

  .profile-page .brand-name {
    display: none;
  }

  .profile-page .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
  }
}
