:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1d2326;
  --muted: #5d6569;
  --line: #dfe4df;
  --accent: #2d6a4f;
  --accent-2: #8a3d34;
  --link: #174f8a;
  --shadow: 0 18px 45px rgba(25, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  color: var(--ink);
  font-weight: 720;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
}

.portrait {
  width: min(210px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.intro h1 {
  margin: 0.25rem 0 0;
  font-size: 2.25rem;
  line-height: 1.15;
}

.role {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 620;
}

.content {
  min-width: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2rem;
  align-items: start;
}

.section {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0.35rem;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.section h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.section p {
  margin: 0.55rem 0 0;
}

.intro {
  font-size: 1.04rem;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 740;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.publication {
  padding: 0.15rem 0 0.4rem;
}

.pub-year {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 740;
}

.authors,
.venue {
  color: var(--muted);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-top: 0.75rem;
}

.pub-links > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.timeline-item time {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.muted {
  color: var(--muted);
}

.award-list {
  margin: 0;
  padding-left: 1.15rem;
}

.award-list li + li {
  margin-top: 0.45rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page {
    margin-top: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .publication,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item time {
    text-align: left;
  }
}

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

  .page,
  .nav,
  .footer {
    width: min(100% - 1rem, 1120px);
  }

  .portrait {
    width: min(12rem, 100%);
    aspect-ratio: 4 / 5;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
