:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #62666f;
  --line: #ded8ce;
  --green: #1f6f5b;
  --green-dark: #155141;
  --rust: #a4512b;
  --blue: #315f8d;
  --shadow: 0 18px 42px rgba(37, 34, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
}

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

.nav a:hover {
  color: var(--green-dark);
}

.section {
  width: min(1440px, calc(100% - 20px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: 270px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-media {
  position: relative;
}

.hero-media::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 72%;
  height: 62%;
  border: 2px solid var(--rust);
  content: "";
  z-index: -1;
}

.hero-media img {
  display: block;
  width: 100%;
  max-height: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.venue,
.tag,
time {
  margin: 0 0 8px;
  color: var(--rust);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 500;
}

h1 span {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

h3 {
  font-size: 1.18rem;
}

.role {
  margin: 12px 0 0;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 750;
}

.intro {
  max-width: min(700px, 100%);
  margin: 8px 0;
  color: #34373d;
  font-size: 1.1rem;
}

#research {
  padding-top: 8px;
  padding-bottom: 32px;
}

#research .section-heading {
  margin-bottom: 16px;
}

#research h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
}

#research .research-card {
  padding: 12px;
}

#research .research-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

#research .research-card p {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

#research .research-card a {
  font-size: 0.9rem;
  font-weight: 700;
}

.theme-details {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.theme-details summary {
  width: fit-content;
  color: var(--green-dark);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
}

#research .theme-details p {
  display: block;
  margin: 10px 0 0;
  overflow: visible;
  color: #3f4248;
  font-size: 0.95rem;
  line-height: 1.58;
  -webkit-line-clamp: unset;
}

.theme-details[open] {
  grid-column: 1 / -1;
}

.research-card:has(.theme-details[open]) {
  grid-column: 1 / -1;
}

.quick-links,
.paper-links,
.contact-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.paper-links a,
.contact-actions a,
.filter-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.quick-links a:hover,
.paper-links a:hover,
.contact-actions a:hover,
.filter-button:hover,
.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.filter-button {
  cursor: pointer;
}

.hero-bio {
  margin-top: 12px;
}

.hero-bio summary {
  width: fit-content;
  color: var(--green-dark);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-bio p {
  margin: 10px 0 0;
  color: #3f4248;
  font-size: 0.98rem;
  line-height: 1.55;
}

.two-column,
.split-band,
.funding-awards,
.contact {
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.two-column,
.split-band {
  grid-template-columns: 0.72fr 1.28fr;
}

.funding-awards {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.contact {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.prose p {
  margin-top: 0;
}

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

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.research-card,
.publication {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.research-card {
  padding: 22px;
}

.publication {
  padding: 11px 14px;
}

.research-card h3,
.publication h3 {
  margin-bottom: 6px;
}

.research-card p,
.publication p {
  margin: 0 0 16px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
}

.publication-heading {
  align-items: center;
}

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

.publication {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 5px 14px;
  align-items: start;
}

.publication.hidden {
  display: none;
}

.publication .venue {
  grid-row: span 2;
  min-width: 0;
  margin-top: 2px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.publication-heading-line {
  grid-column: 2;
  min-width: 0;
}

.publication h3 {
  display: inline;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.22;
}

.authors {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.publication-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 10px;
  margin-top: 1px;
}

.paper-links {
  margin: 0;
  justify-content: flex-start;
  gap: 5px;
}

.paper-links a {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.abstract {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.abstract[open] {
  flex-basis: 100%;
}

.abstract summary {
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  list-style-position: inside;
}

.abstract p {
  margin: 8px 0 0;
  color: #3f4248;
  font-size: 0.94rem;
  line-height: 1.5;
}

.show-publications,
.show-courses {
  display: block;
  margin: 18px auto 0;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.show-publications:hover,
.show-courses:hover {
  background: var(--green-dark);
}

.show-publications[hidden],
.show-courses[hidden] {
  display: none;
}

.notes-section {
  border-top: 1px solid var(--line);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--line);
}

.note-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-height: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(205, 209, 201, 0.55);
  background: transparent;
}

.note-card h3 {
  margin: 0;
  color: #596069;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.note-card p {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.35;
}

.note-card p::before,
.note-card a::before,
.note-links::before {
  color: var(--muted);
  content: "- ";
  font-weight: 400;
}

.note-card a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.note-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.note-links a::before {
  content: none;
}

.note-card:hover {
  background: transparent;
}

.note-card a:hover {
  color: var(--green-dark);
}

.split-band h3 {
  margin: 0 0 8px;
  color: var(--blue);
}

.split-band p {
  margin: 0 0 24px;
}

.teaching-groups {
  display: grid;
  gap: 24px;
}

.teaching-group h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 1.18rem;
}

.course-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.course-list div {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.course-list div.hidden {
  display: none;
}

.course-list p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.funding-awards ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.links-section {
  border-top: 1px solid var(--line);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.links-grid a {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(205, 209, 201, 0.55);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.links-grid a:hover {
  background: transparent;
  color: var(--green-dark);
}

.links-grid span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.links-grid small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.contact {
  align-items: center;
  padding-bottom: 32px;
}

.contact h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.contact p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-actions {
  justify-content: flex-start;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .two-column,
  .split-band,
  .funding-awards,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: min(420px, 100%);
  }

  .hero-media::after {
    right: 0;
  }

  .research-grid,
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-links,
  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .section {
    width: min(100% - 18px, 1440px);
    padding: 48px 0;
  }

  .site-header {
    position: static;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .nav a {
    min-width: 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .hero-copy p {
    max-width: 32ch;
  }

  .role {
    max-width: 30ch;
  }

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

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

  .publication .venue,
  .publication-heading-line,
  .publication-actions {
    grid-column: 1;
  }

  .research-grid,
  .notes-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .course-list div {
    display: block;
  }

  .footer {
    flex-direction: column;
  }
}
