:root {
  --paper: #f7f7f3;
  --surface: #ffffff;
  --ink: #17211e;
  --muted: #65706b;
  --line: #d9ded9;
  --accent: #1f6150;
  --accent-soft: #e6f0ec;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 22px 55px rgba(24, 48, 40, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: rgba(31, 97, 80, 0.42);
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease, background-color 160ms ease;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
}

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

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 217, 0.85);
  background: rgba(247, 247, 243, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: var(--serif);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: white;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  font-size: 0.87rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-cv {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.78rem;
}

.nav-cv:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.page-grid {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: clamp(56px, 8vw, 112px);
  padding-top: 72px;
}

.profile {
  position: sticky;
  top: 112px;
  align-self: start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow);
}

.avatar-monogram {
  background: var(--ink);
  color: white;
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.profile h2 {
  margin: 1.35rem 0 0.18rem;
  font-family: var(--serif);
  font-size: 1.47rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.profile h2 span {
  color: var(--muted);
  font-weight: 400;
}

.role,
.location {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.location {
  margin-top: 0.48rem;
  font-size: 0.8rem;
}

.profile-links {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

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

.profile-links span {
  color: var(--muted);
  font-weight: 400;
}

main {
  min-width: 0;
}

.section {
  padding: 0 0 88px;
}

.intro {
  padding-bottom: 96px;
}

.eyebrow,
.section-number,
.project-label,
.background-label {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.9rem;
}

.research-statement {
  max-width: 760px;
  margin: 1.3rem 0 0;
  color: #3f4c47;
  font-size: 1.04rem;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section-number {
  margin: 0;
}

.subheading {
  margin-top: 4.5rem;
}

.featured-paper {
  position: relative;
  overflow: hidden;
  border: 1px solid #d0dbd6;
  border-radius: 3px;
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.featured-paper::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.paper-meta span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: #174b3f;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.featured-paper h3 {
  max-width: 680px;
  margin: 1.1rem 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.featured-paper p {
  color: #4b5752;
}

.authors {
  font-size: 0.88rem;
}

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

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.paper-links a,
.project-grid a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.note {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.research-list {
  display: grid;
}

.research-list article {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.research-list article:first-child {
  padding-top: 0;
}

.research-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.research-title h3,
.project-grid h3,
.background-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.research-title time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.research-list p {
  max-width: 740px;
  margin: 0.65rem 0 0;
  color: #4c5853;
  font-size: 0.93rem;
}

.research-list .collab {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-grid article {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.62);
  padding: 1.45rem;
}

.project-label,
.background-label {
  margin: 0 0 0.65rem;
}

.project-grid p:not(.project-label),
.background-grid p:not(.background-label) {
  color: #53605b;
  font-size: 0.88rem;
}

.background-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
}

.background-grid p {
  margin: 0.35rem 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 32px, 720px);
  }

  .nav-links {
    gap: 0.85rem;
    font-size: 0.78rem;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 45px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 1.2rem;
    align-items: center;
  }

  .avatar {
    grid-row: 1 / span 4;
    width: 112px;
    height: 112px;
    border-width: 6px;
  }

  .profile h2 {
    margin-top: 0;
  }

  .profile-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.1rem;
    margin-top: 1.4rem;
  }

  .section,
  .intro {
    padding-bottom: 68px;
  }

}

@media (max-width: 560px) {
  .research-title {
    display: block;
  }

  .research-title time {
    display: block;
    margin-top: 0.35rem;
  }

  .project-grid,
  .background-grid {
    grid-template-columns: 1fr;
  }

  .background-grid {
    gap: 2rem;
  }

  footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
