:root {
  --paper: #f6f3ec;
  --ink: #20201e;
  --muted: #6c6861;
  --line: #d8d1c5;
  --accent: #315f7d;
  --accent-soft: #e4edf2;
  --surface: rgba(255, 255, 255, 0.36);
  --page-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(49, 95, 125, 0.42);
  text-underline-offset: 0.16em;
}

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

button,
a {
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 209, 197, 0.85);
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-wordmark {
  font-weight: 600;
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.page {
  width: min(100% - 48px, var(--page-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 56px;
  align-items: center;
  padding: 70px 0 64px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy p {
  margin-bottom: 14px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: saturate(0.92);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 24px 0 0;
  font-size: 15px;
}

.profile-links a {
  font-weight: 500;
}

section {
  scroll-margin-top: 76px;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
}

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

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.section-note {
  max-width: 780px;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.research-statement {
  max-width: 940px;
}

.research-statement p {
  margin-bottom: 20px;
}

.research-statement-lead {
  font-size: 1.08rem;
  line-height: 1.72;
}

.research-thesis {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

.research-directions {
  margin: 24px 0 0;
  padding-left: 21px;
}

.research-directions li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.research-directions strong {
  color: #244c65;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 7px 0;
}

.news-date,
.entry-year {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.js .news-list:not(.is-expanded) .news-item[data-extra="true"],
.js .research-list:not(.show-all) .publication[data-selected="false"] {
  display: none;
}

.interactive-controls {
  display: none;
}

.js .interactive-controls {
  display: flex;
}

.text-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
}

.text-button:hover,
.text-button:focus-visible,
.text-button.is-active {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.news-toggle {
  margin-top: 12px;
}

.research-filter {
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.section-heading--research {
  justify-content: flex-start;
  gap: 18px;
}

.research-list {
  display: grid;
}

.publication {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  gap: 28px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.publication:first-child {
  border-top: 0;
  padding-top: 0;
}

.publication-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.publication h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.venue {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  color: #244c65;
  background: var(--accent-soft);
  font-weight: 600;
}

.publication-summary {
  margin: 0;
  color: #4f4c46;
  font-size: 14px;
  line-height: 1.55;
}

.publication-links {
  font-size: 14px;
  font-weight: 500;
}

.publication--compact {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px 0;
}

.publication--compact .publication-meta {
  margin-bottom: 0;
}

.experience-list,
.education-list {
  display: grid;
}

.experience-entry,
.education-entry {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.experience-entry:first-child,
.education-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.entry-mark {
  width: 62px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.entry-logo {
  box-sizing: border-box;
  object-fit: contain;
  padding: 9px;
}

.entry-logo--wide {
  padding: 5px;
}

.publication-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.entry-org {
  font-weight: 600;
  text-decoration: none;
}

.entry-role {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
}

.entry-summary {
  margin: 5px 0 0;
  color: #4f4c46;
  font-size: 14px;
}

.entry-people {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 19px;
}

.plain-list li {
  margin-bottom: 8px;
}

.contact-details {
  max-width: 840px;
}

.contact-emails {
  margin: 0 0 24px;
  font-weight: 500;
}

.contact-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-addresses address {
  color: #4f4c46;
  font-style: normal;
  line-height: 1.7;
}

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

.footer {
  padding: 30px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.subpage {
  padding: 56px 0;
}

.subpage h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.subpage h2 {
  margin: 40px 0 14px;
}

.subpage h3 {
  margin: 26px 0 10px;
}

.subpage-intro {
  max-width: 760px;
  color: var(--muted);
}

.course-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(216, 209, 197, 0.65);
}

.course-title {
  flex: 1;
}

.course-professor {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.teaching-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.teaching-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

  .page {
    width: min(100% - 32px, var(--page-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 48px;
  }

  .hero-photo {
    order: -1;
    width: min(190px, 55vw);
  }

  .research-themes,
  .two-column,
  .contact-addresses,
  .publication {
    grid-template-columns: 1fr;
  }

  .contact-addresses {
    gap: 24px;
  }

  .publication {
    gap: 16px;
  }

  .publication-image {
    width: min(100%, 440px);
  }

  .section-heading {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .course-list li {
    flex-direction: column;
    gap: 2px;
  }

  .course-professor {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-wordmark {
    display: none;
  }

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

  .site-nav-links {
    gap: 4px 12px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 9px 0;
  }

  .entry-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .experience-entry,
  .education-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .entry-mark {
    width: 44px;
    height: 44px;
  }

}

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

  button,
  a {
    transition: none;
  }
}
