body {
  max-width: 940px;
}

body > nav .menu {
  margin-top: 0;
}

a {
  color: #181819;
  text-decoration: underline;
  text-decoration-color: #3d3b3b;
  text-underline-offset: 2px;
}

a:hover {
  color: #333;
  text-decoration-color: #333;
}

.profile-intro {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: -1px;
}

.profile-intro-text {
  flex: 1;
  max-width: 700px;
}

.profile-intro-text p {
  margin-bottom: 0;
}

.profile-intro-text h1 {
  margin-bottom: 0.01rem;
}

.name-pronounce {
  font-size: 0.56em;
  font-weight: normal;
  color: #666;
  margin-left: 0.4rem;
}

.profile-intro + h2 {
  margin-top: -0em;
}

.profile-photo-frame {
  width: 184px !important;
  height: 184px !important;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 184px;
  margin: 0;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 98%;
}

.profile-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  margin-left: -10px;
}

@media (max-width: 760px) {
  .profile-intro {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-intro-text {
    min-width: 0;
  }

  .profile-intro-text h1 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .profile-side {
    margin-left: 0;
    gap: 6px;
  }

  .profile-photo-frame {
    width: 126px !important;
    height: 126px !important;
    flex: 0 0 126px;
  }
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efefef;
  text-decoration: none;
  color: #333;
}

.profile-links a svg {
  width: 15.5px;
  height: 15.5px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-links .scholar-logo {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) contrast(1.2) brightness(0.2);
}

.pub-entry .pub-muted,
.pub-entry .pub-muted a {
  color: #555;
}

.pub-entry .pub-strong,
.pub-entry .pub-title {
  color: #181819;
}

.contact-muted,
.contact-muted a {
  color: #555;
}

.news-list .news-content,
.news-list .news-content a {
  color: #555;
}

.home-news-list .news-list li:nth-child(n + 4) {
  display: none;
}

.profile-intro strong,
.news-list strong,
.pub-title strong {
  font-weight: inherit;
}

.news-list strong {
  color: #222;
}

.news-list,
h2 {
  max-width: 820px;
}

.news-list {
  margin-top: 0.05rem;
}

.pub-list {
  max-width: 1000px;
}

.gh-inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.gh-inline-icon path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h2 {
  margin-bottom: 0.2rem;
}

h2 + p,
h2 + ul,
h2 + ol,
h2 + div {
  margin-top: 0.2rem;
}

.pub-list {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #efefef;
}

.pub-entry {
  margin: 0;
}

.hiking-gallery {
  column-count: 3;
  column-gap: 10px;
}

.hiking-photo-link {
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
}

.hiking-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #f2f2f2;
  transition: transform 0.18s ease;
}

.hiking-photo-link:hover img {
  transform: scale(1.01);
}

.hiking-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.hiking-lightbox[hidden] {
  display: none !important;
}

.hiking-lightbox-img {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  border-radius: 10px;
}

.hiking-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hiking-gallery { column-count: 2; }
}

@media (max-width: 560px) {
  .hiking-gallery { column-count: 1; }
}

.site-footer {
  margin-top: 2.2rem;
  text-align: center;
}

.footer-divider {
  margin-bottom: 0.9rem;
}

.footer-menu {
  display: inline-flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  display: inline-flex;
}

.footer-menu a {
  text-decoration: none;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  color: #444;
  border: 1px solid #e4e4e4;
}

.footer-menu a:hover {
  color: #111;
  border-color: #cfcfcf;
  text-decoration: none;
}

.footer-meta {
  color: #666;
  margin-top: 0.9rem;
  margin-bottom: 0;
}
