:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #494e52;
  --heading: #2f3437;
  --muted: #6f777d;
  --line: #e5e7eb;
  --accent: #1f77b4;
  --accent-dark: #0f5f9c;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(31, 119, 180, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--heading);
  color: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  max-width: var(--max);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--accent);
  text-decoration: none;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 32px 64px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 28px;
  color: var(--muted);
}

.profile-photo-frame {
  display: block;
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f4efe5;
  margin: 0 0 20px;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.22);
  transform-origin: center center;
}

.profile-name {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.role {
  margin: 0 0 20px;
  max-width: 220px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.follow-label {
  margin: 18px 0 8px;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-links {
  display: grid;
  gap: 4px;
}

.profile-links a {
  display: block;
  width: fit-content;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-links a::before {
  content: "\2022";
  color: var(--accent);
  margin-right: 7px;
}

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

.content {
  max-width: 820px;
  min-width: 0;
}

.section {
  scroll-margin-top: 84px;
  margin: 0 0 34px;
}

.section + .section {
  padding-top: 6px;
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: 0;
  line-height: 1.25;
}

h1 {
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 2rem;
}

h2 {
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}

.heading-link {
  float: right;
  margin-top: 0.22rem;
  font-size: 0.82rem;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

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

.page-intro {
  color: var(--muted);
  margin-top: -8px;
}

.compact-list,
.timeline {
  margin: 0 0 20px;
  padding-left: 20px;
}

.compact-list li + li,
.timeline li + li {
  margin-top: 8px;
}

.news-date {
  color: var(--heading);
  font-weight: 700;
}

.publication-list {
  display: grid;
  gap: 22px;
}

.publication {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 0;
}

.publication h3 {
  display: inline;
}

.publication h3 a {
  color: var(--accent);
}

.authors,
.meta,
.pub-links {
  margin: 0;
}

.authors {
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.pub-links {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.button-link {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  background: var(--accent);
  padding: 8px 13px;
  font-weight: 700;
}

.button-link:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 22px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 22px 50px;
  }

  .profile-panel {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
  }

  .profile-photo-frame {
    width: 126px;
    margin: 0;
    grid-row: span 4;
  }

  .role {
    max-width: none;
    margin-bottom: 8px;
  }

  .follow-label {
    margin-top: 4px;
  }

  .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .content {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: auto;
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
  }

  .page-shell {
    padding: 24px 18px 44px;
  }

  .profile-panel {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
  }

  .profile-photo-frame {
    width: 98px;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.24rem;
  }

  .site-footer {
    padding: 20px 18px 28px;
    flex-direction: column;
  }
}
