:root {
  --ink: #12231f;
  --muted: #60706b;
  --paper: #f4f7f4;
  --white: #fff;
  --accent: #0b7a5c;
  --lime: #c8f169;
  --line: #cbd6d1;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}
.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.site-header nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:hover {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font: 600 14px var(--sans);
}
main {
  max-width: 1500px;
  margin: auto;
}
.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 110px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 8vw;
  position: relative;
}
.eyebrow,
.section-index {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent);
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3vw, 44px);
}
h1 em,
h2 em {
  color: var(--accent);
  font-weight: 500;
}
.lede,
.role {
  font-size: clamp(15px, 1.3vw, 19px);
  max-width: 720px;
  line-height: 1.5;
}
.lede {
  margin: 34px 0 18px;
}
.role {
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 30px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 13px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}
.button.primary {
  background: var(--ink);
  color: #fff;
}
.button:hover {
  transform: translateY(-2px);
}



.portrait-wrap {
  position: relative;
  justify-self: center;
}
.portrait-frame {
  width: min(34vw, 430px);
  aspect-ratio: 0.78;
  border-radius: 48% 48% 8px 8px;
  overflow: hidden;
  background: #d7e4dd;
  position: relative;
  z-index: 2;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86);
}
.orbit {
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  left: -10%;
  top: -10%;
  z-index: 1;
  animation: spin 18s linear infinite;
}
.orbit span {
  width: 11px;
  height: 11px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: absolute;
}
.orbit span:first-child {
  left: 12%;
  top: 15%;
}
.orbit span:nth-child(2) {
  right: 4%;
  top: 50%;
}
.orbit span:last-child {
  left: 38%;
  bottom: -5px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.portrait-note {
  position: absolute;
  z-index: 3;
  right: -40px;
  bottom: 22px;
  background: var(--lime);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.portrait-note a {
  text-decoration: underline;
}
.statement,
.contact {
  padding: 110px clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5vw;
  border-top: 1px solid var(--line);
}
.statement h2,
.section-heading h2,
.contact h2 {
  font-size: clamp(50px, 7vw, 96px);
}
.statement > div > p {
  max-width: 850px;
  font-size: 19px;
  color: #334540;
}



.research,
.publications {
  padding: 110px clamp(24px, 7vw, 110px);
  background: var(--ink);
  color: #fff;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 64px;
}
.research .section-index,
.publications .section-index {
  color: var(--lime);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #40514d;
}
.research-grid article {
  padding: 40px 50px 50px 0;
  border-bottom: 1px solid #40514d;
}
.research-grid article:nth-child(odd) {
  border-right: 1px solid #40514d;
}
.research-grid article:nth-child(even) {
  padding-left: 50px;
}
.research-grid span {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--lime);
}
.research-grid h3 {
  font: 500 clamp(26px, 3vw, 42px) / 1.15 var(--serif);
  margin: 20px 0 12px;
}
.research-grid p {
  color: #aebdb8;
  max-width: 520px;
}



.publications {
  background: #fff;
  color: var(--ink);
}
.publication-heading {
  align-items: end;
}
.publication-heading > a {
  font-weight: 600;
  border-bottom: 1px solid;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  padding: 9px 17px;
  font: 600 13px var(--sans);
  cursor: pointer;
}
.filters button.active,
.filters button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.publication-list {
  border-top: 1px solid var(--line);
}
.pub {
  display: grid;
  grid-template-columns: 82px 220px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.2s;
}
.pub:hover {
  padding-left: 10px;
  background: #f8faf8;
}
.pub-year {
  font: 500 25px var(--serif);
  color: var(--accent);
}
.pub-image {
  width: 220px;
  height: 126px;
  object-fit: contain;
  background: #f0f4f1;
  border: 1px solid #e2e9e5;
}
.pub h3 {
  font: 500 clamp(20px, 2vw, 27px) / 1.22 var(--serif);
  margin: 0 0 8px;
}
.pub-authors,
.pub-venue {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pub-authors strong {
  color: var(--ink);
}
.paper-link {
  width: 45px;
  height: 45px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}
.paper-link:hover {
  background: var(--lime);
}
.contact {
  background: var(--lime);
  border-top: 0;
}
.contact .section-index {
  color: var(--ink);
}
.contact a {
  display: inline-flex;
  gap: 30px;
  margin-top: 38px;
  font-size: 19px;
  font-weight: 700;
  border-bottom: 2px solid;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 80px);
  background: var(--ink);
  color: #aebdb8;
  font-size: 13px;
}
@media (max-width: 850px) {
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 24px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }
  .portrait-wrap {
    margin-top: 35px;
  }
  .portrait-frame {
    width: min(80vw, 430px);
  }
  .statement,
  .contact {
    grid-template-columns: 1fr;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-grid article:nth-child(odd) {
    border-right: 0;
  }
  .research-grid article:nth-child(even) {
    padding-left: 0;
  }
  .pub {
    grid-template-columns: 60px 130px 1fr;
  }
  .pub-image {
    width: 130px;
    height: 90px;
  }
  .paper-link {
    grid-column: 3;
    justify-self: start;
  }
  .portrait-note {
    right: -10px;
  }
  .publication-heading {
    align-items: start;
    gap: 25px;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 70px;
  }
  .hero {
    padding-bottom: 80px;
  }
  .statement,
  .research,
  .publications,
  .contact {
    padding-top: 78px;
    padding-bottom: 78px;
  }
  .pub {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pub-year {
    font-size: 18px;
  }
  .pub-image {
    width: 100%;
    height: 180px;
  }
  .paper-link {
    grid-column: auto;
  }
  .section-heading {
    margin-bottom: 40px;
  }
  footer {
    display: block;
  }
  .portrait-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -24px 12px 0 42px;
  }
}

/* Compact News layout */
.news-list article {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 11px 0;
}

.news-list time {
  flex: 0 0 90px;
  font-weight: 700;
  line-height: 1.35;
}

.news-list p {
  flex: 1;
  margin: 0;
  color: #334540;
  line-height: 1.5;
}

.news-list a {
  color: var(--accent);
}

.news-list a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .news-list article {
    gap: 16px;
  }

  .news-list time {
    flex-basis: 72px;
  }
}


/* Align About and News */
.about-page .hero,
.about-page .news {
  padding-left: clamp(24px, 7vw, 110px);
  padding-right: clamp(24px, 7vw, 110px);
}


/* Compact academic homepage */
.hero {
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 64px;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero .lede {
  margin-top: 22px;
}

.hero .portrait-frame {
  width: 240px;
}

.hero .portrait-note {
  right: -12px;
  padding: 10px 12px;
  font-size: 12px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero .portrait-wrap {
    margin-top: 0;
  }

  .hero .portrait-frame {
    width: min(60vw, 220px);
  }
}


/* Research directions: compact list matching About and News */
section.research {
  margin-top: 120px;
  padding: 40px clamp(24px, 7vw, 110px);
  background: var(--ink);
  color: var(--paper);
}

.research h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.research-list {
  margin: 0;
  padding-left: 22px;
}

.research-list li {
  padding-left: 4px;
  margin-bottom: 14px;
  line-height: 1.6;
}



/* Teaching section */
section.teaching {
  padding: 64px clamp(24px, 7vw, 110px);
  background: #fff;
  color: var(--ink);
}

.teaching h2 {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 28px;
}

.teaching-intro {
  margin: 0 0 24px;
  line-height: 1.6;
}

.teaching-course {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.teaching-course:last-child {
  border-bottom: 1px solid var(--line);
}

.teaching-course h3 {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.teaching-course p {
  line-height: 1.6;
  margin: 0 0 16px;
}

.teaching-course .course-meta {
  font-style: italic;
}

.teaching-course p:last-child {
  margin-bottom: 0;
}



/* Publication categories */
.publication-group + .publication-group {
  margin-top: 48px;
}

.publication-group-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Display the full book cover */
.pub-book .pub-image {
  width: 110px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


.publications .publication-heading h2 {
  font-family: var(--sans);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}
