:root {
  --paper: #f5f0e7;
  --paper-deep: #e9dcc8;
  --ink: #1c2222;
  --muted: #596262;
  --line: rgba(28, 34, 34, 0.18);
  --forest: #244a43;
  --rust: #a24b2a;
  --gold: #c58b32;
  --white: #fffaf2;
  --display-font: "Bodoni 72", Didot, "Iowan Old Style", "Songti SC", Georgia, serif;
  --reading-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(197, 139, 50, 0.14), transparent 28rem),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgba(28, 34, 34, 0.05) calc(25% - 1px),
      rgba(28, 34, 34, 0.05) 25%
    ),
    var(--paper);
  font-family:
    Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.4rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 231, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 0.18rem;
  text-decoration: none;
}

.brand span,
h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: 0;
}

.brand span {
  font-size: 1.2rem;
}

.eyebrow,
.section-kicker,
dt,
.publication-list > li > span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.8rem);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2vw, 1.5rem);
}

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

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 6.5rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.language-switch button {
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.language-switch button + button {
  border-left: 1px solid var(--line);
}

.language-switch button.is-active {
  background: var(--forest);
  color: var(--white);
}

nav a:hover,
.contact-links a:hover,
.section-heading a:hover,
.publication-list a:hover {
  color: var(--rust);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
  align-items: stretch;
  gap: clamp(1.4rem, 3vw, 3rem);
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.8rem) clamp(1rem, 4vw, 4rem) 1.6rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  max-width: 41rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.22vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.hero-actions a:first-child {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 88rem;
  margin: 0 auto;
  padding-right: clamp(1rem, 4vw, 4rem);
  padding-left: clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-strip div {
  min-width: 0;
  padding: 1rem 1rem 1rem 0;
}

.profile-strip div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

dd {
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

.portrait-frame {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 28rem;
  margin: 0;
  background: var(--forest);
  color: var(--white);
}

.portrait-frame::before {
  position: absolute;
  inset: 0.9rem;
  z-index: 1;
  border: 1px solid rgba(255, 250, 242, 0.4);
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.03);
}

.portrait-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 1.2rem 1.4rem;
  background: rgba(28, 34, 34, 0.82);
  line-height: 1.45;
}

.research-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.research-band p {
  min-width: 0;
  margin: 0;
  padding: 1.05rem clamp(0.8rem, 2vw, 1.4rem);
  border-right: 1px solid rgba(255, 250, 242, 0.18);
  line-height: 1.35;
}

.split-section,
.work-section,
.activity-grid,
.contact-section {
  max-width: 88rem;
  margin: 0 auto;
  padding-right: clamp(1rem, 4vw, 4rem);
  padding-left: clamp(1rem, 4vw, 4rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 4.5rem);
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 4rem);
  line-height: 1.03;
}

.prose {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1rem;
}

.work-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  grid-column: 1;
}

#publications-title {
  max-width: 13ch;
  font-size: clamp(1.65rem, 2.55vw, 2.8rem);
  line-height: 1.08;
}

.section-heading > p:last-child {
  grid-column: 2;
  max-width: 28rem;
  justify-self: end;
  margin: 0 0 0.3rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading a {
  text-underline-offset: 0.18em;
}

.publication-list {
  display: grid;
  grid-auto-columns: clamp(17rem, 40vw, 24rem);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0.2rem;
  scroll-snap-type: x mandatory;
  margin: 0;
  padding: 0.1rem 0 1rem;
  list-style: none;
  scrollbar-color: var(--forest) rgba(30, 79, 69, 0.12);
}

.publication-groups {
  display: grid;
  gap: clamp(2rem, 4vw, 3.2rem);
}

.publication-group {
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.publication-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.publication-group h3 {
  max-width: 11ch;
  color: var(--forest);
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
}

.carousel-controls {
  display: flex;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.carousel-controls button {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.66);
  color: var(--forest);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.45rem;
  line-height: 1;
}

.carousel-controls button:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.publication-list li {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 15.5rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.5);
  scroll-snap-align: start;
}

.publication-list > li > span {
  width: fit-content;
  padding: 0.35rem 0.48rem 0.28rem;
  border: 1px solid rgba(166, 74, 42, 0.32);
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.publication-list a {
  display: inline-block;
  font-family: var(--reading-serif);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  line-height: 1.38;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.publication-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.publication-list a + p {
  margin-top: 0.52rem;
}

.publication-list li div > p:first-child {
  max-width: 52rem;
  color: var(--ink);
  font-family: var(--reading-serif);
  font-size: clamp(1rem, 1.22vw, 1.24rem);
  line-height: 1.5;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.activity-grid .compact {
  grid-column: 1 / -1;
  display: block;
  margin-bottom: 1rem;
}

.activity-grid .compact h2 {
  max-width: 13ch;
}

.activity-grid article {
  min-height: 19rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border-top: 0.3rem solid var(--gold);
  background: var(--white);
}

.activity-grid article:nth-of-type(2) {
  border-color: var(--rust);
}

.activity-grid article:nth-of-type(3) {
  border-color: var(--forest);
}

.presentation-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(1.2rem, 2vw, 1.8rem);
}

.gallery-heading h3 {
  max-width: 9ch;
  margin-bottom: 0;
  color: var(--forest);
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(8.8rem, 13.6rem));
  gap: 1rem;
}

.gallery-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.gallery-photo::after {
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(255, 250, 242, 0.38);
  content: "";
  pointer-events: none;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.gallery-photo.tall {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
}

.gallery-photo.tall img {
  object-position: center;
}

.gallery-photo.feature {
  grid-column: 3 / 7;
  grid-row: 1 / 2;
}

.gallery-photo.feature img {
  object-position: center 34%;
}

.gallery-photo.portrait {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
}

.gallery-photo.portrait img {
  object-position: center bottom;
}

.gallery-photo.forum {
  grid-column: 5 / 7;
  grid-row: 2 / 3;
}

.gallery-photo.forum img {
  object-position: center 34%;
}

.gallery-photo.stand {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
}

.gallery-photo.stand img {
  object-position: center 45%;
}

h3 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

li + li {
  margin-top: 0.62rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.contact-links {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.contact-links a {
  min-width: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .header-tools,
  .hero,
  .split-section,
  .publication-group,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 7.2vw, 4.1rem);
  }

  .profile-strip,
  .research-band,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .profile-strip div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 27rem;
  }

  .research-band p {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.18);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p:last-child {
    margin-top: 1rem;
  }

  .publication-group h3 {
    max-width: none;
    margin-bottom: 0;
  }

  .publication-group-header {
    align-items: center;
  }

  .presentation-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .gallery-photo.tall,
  .gallery-photo.feature,
  .gallery-photo.portrait,
  .gallery-photo.forum,
  .gallery-photo.stand {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-photo.tall,
  .gallery-photo.portrait,
  .gallery-photo.stand {
    aspect-ratio: 4 / 5;
  }

  .gallery-photo.stand {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 22rem);
  }

  .activity-grid article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  nav {
    justify-content: flex-start;
  }

  h1 {
    max-width: 13.5ch;
    font-size: 2.45rem;
    line-height: 1.03;
  }

  .lede {
    margin-top: 1.15rem;
    line-height: 1.58;
  }

  .hero-actions a {
    flex: 1 1 9.2rem;
    justify-content: center;
  }

  .publication-list {
    grid-auto-columns: minmax(16rem, 82vw);
  }

  .publication-list li {
    gap: 0.85rem;
    min-height: 14.5rem;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 24rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-heading h3 {
    max-width: none;
  }

  .gallery-photo.tall,
  .gallery-photo.portrait,
  .gallery-photo.stand {
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-photo.feature,
  .gallery-photo.forum {
    aspect-ratio: 4 / 3;
  }

  .gallery-photo.stand {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
