/* Shared typography; al-folio's existing post styles remain available. */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

a {
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--global-theme-color);
  outline-offset: 4px;
}
.site-header {
  border-bottom: 1px solid var(--global-divider-color);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 930px;
  min-height: 70px;
  margin: auto;
  padding: 12px 15px;
}
.site-name,
.site-name:hover {
  color: var(--global-text-color);
  font-size: 21px;
  white-space: nowrap;
}
.site-name strong {
  font-weight: 650;
}
.site-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.site-nav-links a {
  color: var(--global-text-color);
}
.site-nav-links a[aria-current] {
  color: var(--global-theme-color);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--global-bg-color);
}
.skip-link:focus {
  top: 8px;
}
.profile-page {
  padding-top: 16px;
}
.profile-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.4px;
}
.profile-heading h1 strong {
  font-weight: 650;
}
.profile-role {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}
.profile-location {
  margin: 5px 0 28px;
  color: #666;
  font-size: 15px;
}
.profile-portrait {
  float: right;
  width: 260px;
  height: auto;
  margin: 28px 0 24px 36px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
}
.profile-bio p {
  margin-bottom: 18px;
}
.profile-links {
  display: flex;
  clear: both;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}
.profile-links a,
.profile-more a {
  text-decoration: underline;
}
.profile-section {
  clear: both;
  margin-top: 44px;
  scroll-margin-top: 24px;
}
.profile-section h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--global-divider-color);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.profile-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.profile-date {
  padding-top: 2px;
  color: #666;
  font-size: 14px;
}
.profile-entry h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.profile-entry p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.profile-entry-description {
  margin-top: 8px !important;
  max-width: 65ch;
}
.profile-more {
  margin: 4px 0 0;
  font-size: 15px;
}
footer.sticky-bottom {
  margin-top: 48px !important;
  padding: 18px 0 26px;
  border-top: 1px solid var(--global-divider-color);
  font-size: 12px;
}
footer.sticky-bottom .container {
  color: #666;
}
@media (max-width: 767px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 24px;
  }
  .site-nav-links {
    gap: 4px 18px;
  }
  .site-nav-links a {
    padding: 5px 0;
  }
  body > .container {
    padding-right: 24px;
    padding-left: 24px;
  }
  .profile-page {
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }

  .profile-heading {
    order: -2;
  }
  .profile-portrait {
    float: none;
    display: block;
    width: 180px;
    height: auto;
    margin: 0 0 28px;
    order: -1;
  }
  .profile-entry {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
  }
}
@media (max-width: 420px) {
  .profile-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .profile-links {
    gap: 10px 22px;
  }
}
