:root {
  --text: #2d3439;
  --muted: #66727b;
  --border: #e2e6e9;
  --link: #1261a0;
  --link-hover: #0b3f6a;
  --page-width: 1120px;
  --sidebar-width: 250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--page-width);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  margin-right: auto;
}

.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #4a545b; font-weight: 600; font-size: 0.94rem; }
.nav-links a[aria-current="page"] { color: var(--link); }

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  padding: 7px 11px;
  font: inherit;
}

.site-shell {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 48px 24px 70px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 64px;
}

.profile { text-align: center; }
.profile-image {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.profile h2 { margin: 18px 0 3px; font-size: 1.22rem; }
.profile-role, .profile-affiliation { margin: 2px 0; color: var(--muted); font-size: 0.94rem; }
.profile-links { margin-top: 18px; display: grid; gap: 5px; }

.content { min-width: 0; }
.content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 26px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.025em;
}
.content h2 { margin-top: 38px; font-size: 1.55rem; }
.content h3 { margin: 27px 0 4px; font-size: 1.12rem; line-height: 1.35; }
.content p { margin: 8px 0 16px; }

.lead { font-size: 1.12rem; max-width: 780px; }
.muted { color: var(--muted); }

.paper { margin-bottom: 30px; }
.paper-meta { color: var(--muted); margin-top: 1px !important; }
.paper-links { font-size: 0.95rem; }

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--link);
  border-radius: 4px;
  font-weight: 650;
}
.button:hover { text-decoration: none; background: #f4f8fb; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 24px;
  text-align: center;
}

@media (max-width: 760px) {
  .nav-inner { min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .menu-button { display: block; }
  .nav-links { display: none; width: 100%; padding: 7px 0 12px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .site-shell { grid-template-columns: 1fr; gap: 36px; padding-top: 34px; }
  .profile { text-align: left; display: grid; grid-template-columns: 105px 1fr; column-gap: 18px; align-items: center; }
  .profile-image { width: 105px; height: 105px; grid-row: 1 / span 4; }
  .profile h2 { margin: 0; }
  .profile-links { grid-column: 1 / -1; grid-template-columns: repeat(2, max-content); gap: 4px 20px; }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.image-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}