@font-face {
  font-family: "InterVariable";
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #252428;
  --muted: #626068;
  --accent: #900c25;
  --accent-dark: #65051a;
  --banner: #490d1c;
  --line: #ddd9da;
  --paper: #fff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
#main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; }
h2 { margin-bottom: 0.8rem; font-size: 2rem; }
h3 { margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
p { margin-bottom: 1rem; }
::selection { background: #f1dcdc; color: #520000; }
.container, .header-inner, .footer-inner {
  width: min(1280px, calc(100% - 6rem));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--accent);
}
.skip-link:focus { top: 1rem; color: white; }

/* A compact academic masthead, shared by all six pages. */
.site-header { border-top: 4px solid var(--accent); background: white; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 1.25rem;
}
.wordmark { color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--accent); }
.wordmark-title {
  display: block;
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.wordmark-subtitle {
  display: block;
  margin-top: 0.35rem;
  color: #555058;
  font-size: 1.25rem;
  line-height: 1.5;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.site-nav a {
  padding-block: 0.6rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.5;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-nav a[aria-current="page"] { font-weight: 650; }

/* The wave motif is decorative vector artwork, not research data. */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--banner);
  color: white;
}
.page-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("light-waves.svg") right center / auto 210% no-repeat;
  opacity: 0.55;
}
.banner-inner { padding-block: 2.6rem 2.9rem; }
.banner-kicker {
  margin: 0 0 1.25rem;
  color: #e5b7c5;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}
.page-banner h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.page-banner .lead {
  max-width: 50rem;
  margin-block: 0.9rem 0;
  color: #f3e9ec;
  font-size: 1.08rem;
  line-height: 1.55;
}
.page-research .page-banner .lead {
  max-width: min(50rem, calc(60vw - max(3rem, (100vw - 1280px) / 2) - 2rem));
  margin-top: 1.1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}
/* Keep the Research banner artwork beyond the paragraph's right edge. */
.page-research .page-banner::before {
  left: 60%;
  background-size: auto 140%;
  background-position: right center;
}
.page-content { padding-block: 2.5rem 3.5rem; }
.lead { color: #3e3a40; font-size: 1.23rem; line-height: 1.7; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Home introduces the group; the three research directions live on Research. */
.page-home .banner-inner { padding-block: 3.9rem 4.25rem; }
.page-home .page-banner::before { background-size: auto 120%; opacity: 0.8; }
.page-home .page-banner h1 {
  max-width: 24ch;
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 1.08;
}
.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.home-overview .lead {
  min-width: 0;
  max-width: none;
  margin-bottom: 0;
  color: #4a464d;
  font-family: "InterVariable", var(--sans);
  font-size: 1.625rem;
  font-weight: 450;
  font-synthesis: none;
  text-wrap: pretty;
}
.home-overview .keep-together { white-space: nowrap; }
.home-figure {
  width: min(100%, 26rem);
  min-width: 0;
  justify-self: center;
  background: white;
}
.home-figure img { width: 100%; height: auto; background: white; }
@media (min-width: 901px) {
  .home-overview .lead { transform: translateY(6px); }
  .home-figure { position: relative; aspect-ratio: 1546 / 1178; }
  .home-figure img {
    position: absolute;
    top: -18px;
    left: 0;
    width: min(calc(100% + 2rem), 30rem);
    max-width: none;
  }
}
@media (min-width: 1300px) {
  .home-figure img { width: min(calc(100% + 4rem), 30rem); }
}

/* Equal columns and image frames keep the three directions balanced. */
@media (min-width: 901px) {
  .page-research .page-content { width: min(1440px, calc(100% - 4rem)); }
}
.research-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
}
.research-teaser {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}
.research-teaser + .research-teaser::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.75rem;
  content: "";
  border-left: 1px solid var(--line);
}
.research-teaser h2 {
  margin: 0;
  align-self: end;
  text-align: center;
  font-size: clamp(1.4rem, 2.15vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.research-teaser .paper-link { text-align: center; }
#photocurrents .paper-link { transform: translateX(-0.75rem); }
#photocurrents h2 { transform: translateX(-4px); }
.direction-figure { min-width: 0; background: white; }
.figure-link { display: block; background: white; cursor: zoom-in; }
.figure-link img { width: 100%; height: auto; aspect-ratio: 1741 / 1079; object-fit: contain; object-position: center top; background: white; }
figcaption { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.figure-zoom { margin-top: 0.35rem; }
.figure-zoom summary { width: fit-content; padding-block: 0.5rem; cursor: pointer; }
.figure-zoom summary:hover { color: var(--accent); }
.figure-zoom p { margin-block: 0.4rem; }
.research-details {
  min-width: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  padding-top: 0.65rem;
}
.direction-summary { margin-block: 0 0.85rem; padding-inline: 26px; color: #4a464d; font-family: "InterVariable", var(--sans); font-size: 1.375rem; font-weight: 450; font-synthesis: none; line-height: 1.65; }
.paper-link { margin-bottom: 0; font-size: 1.125rem; line-height: 1.6; }

.news-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.news-row time {
  padding-top: 0.25rem;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}
.news-row h2, .news-row h3 {
  margin-bottom: 0.3rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.news-row p { margin-bottom: 0; color: #4a464d; font-size: 0.97rem; }
.page-news .page-content { max-width: 1080px; }
.page-news .news-row:first-child { padding-top: 0; }

/* Traditional citations, with a year margin and the complete publication list. */
.page-publications .page-content { max-width: 1080px; }
.publication-year {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: 1.6rem 0.2rem;
  border-top: 1px solid var(--line);
}
.publication-year h2 { color: var(--accent); font-size: 1.9rem; }
.publication-list { list-style: none; margin: 0; padding: 0; }
.publication-list li { margin-bottom: 1.4rem; }
.pub-title { margin-bottom: 0.25rem; font-size: 1.4375rem; font-weight: 600; line-height: 1.45; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); text-decoration: underline; }
.publication-number { color: var(--muted); font-size: 0.9em; font-weight: 400; }
.pub-authors { margin-bottom: 0.15rem; color: #555058; font-size: 1.3125rem; line-height: 1.55; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-details { margin-bottom: 0; font-size: 1.3125rem; line-height: 1.5; }

/* One real portrait and an unboxed biography. */
.person-profile {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  align-items: start;
  gap: 3.5rem;
  max-width: 1060px;
}
.portrait { width: 100%; height: auto; }
.profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding-top: 0.9rem; font-size: 1.375rem; }
.person-bio { min-width: 0; font-size: 1.5rem; }
.biography-text { color: #4a464d; font-family: "InterVariable", var(--sans); font-weight: 450; font-synthesis: none; }
.person-bio h2 { margin-bottom: 0.65rem; font-size: 2.5rem; }
.person-bio .role { margin-bottom: 0.3rem; color: var(--accent); font-size: 1.375rem; font-weight: 600; }
.person-bio .affiliation { margin-bottom: 1.875rem; color: #66616B; font-size: 1.3125rem; font-weight: 500; line-height: 1.6; }
.person-bio > p { margin-bottom: 1rem; }
.person-bio .eyebrow { margin-bottom: 0.6rem; font-size: 1.25rem; }
.person-bio .text-link { font-size: 1.375rem; }

.openings-summary { max-width: 57rem; }
.openings-summary > p { color: #4a464d; font-family: "InterVariable", var(--sans); font-size: 1.5rem; font-weight: 450; font-synthesis: none; }
.openings-summary > p:first-child {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  font-synthesis: auto;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.openings-list { margin-block: 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.openings-list li {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.openings-list strong { font-weight: 600; }
.openings-list span { color: #555058; }
.openings-contact { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); background: #f7f5f5; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.footer-brand { color: var(--muted); font-size: 1.125rem; }
.footer-brand > p { margin-bottom: 0; }

@media (max-width: 1200px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-block: 1.2rem 0; }
  .wordmark-title { font-size: 2rem; }
  .site-nav { column-gap: 2rem; }
  .site-nav a { padding-block: 0.5rem 0.75rem; }
  .research-index { column-gap: 1.5rem; }
  .research-teaser + .research-teaser::before { left: -0.75rem; }
}

@media (max-width: 900px) {
  .direction-summary { padding-inline: 12px; }
  .page-research .page-banner .lead { max-width: 50rem; }
  .page-research .page-banner::before {
    inset: 0.5rem 0 auto auto;
    width: 32%;
    height: 5rem;
  }
  .container, .header-inner, .footer-inner { width: calc(100% - 3.5rem); }
  .home-overview { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .home-overview .lead { max-width: none; }
  .research-index { column-gap: 1rem; }
  .research-teaser + .research-teaser::before { left: -0.5rem; }
  .research-teaser h2 { font-size: 1.4rem; }
  .person-profile { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; }
  .person-bio h2 { font-size: 2.2rem; }
  .news-row { grid-template-columns: 11rem minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 2.5rem); }
  .header-inner { padding-top: 1rem; }
  .wordmark-title { max-width: 22ch; font-size: 1.85rem; }
  .wordmark-subtitle { font-size: 0.9rem; }
  .site-nav { column-gap: 1.2rem; }
  .site-nav a { padding-block: 0.5rem; font-size: 1.125rem; }
  .banner-inner { padding-block: 2rem 2.2rem; }
  .page-banner h1 { font-size: 2.8rem; }
  .page-banner .lead { font-size: 1rem; }
  .page-research .page-banner .lead { font-size: 1.375rem; }
  .page-banner::before { background-position: left center; opacity: 0.3; }
  .page-home .banner-inner { padding-block: 2.75rem 3rem; }
  .page-home .page-banner h1 { max-width: 21ch; font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .page-home .page-banner::before { background-position: left center; opacity: 0.35; }
  .page-content { padding-block: 1.8rem 2.5rem; }
  .lead { font-size: 1.1rem; }
  .home-overview .lead { font-size: 1.375rem; }
  .research-index { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .research-teaser { display: block; grid-row: auto; }
  .research-details { display: block; grid-row: auto; }
  .research-teaser + .research-teaser { padding: 1.8rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .research-teaser + .research-teaser::before { display: none; }
  .research-teaser h2 { max-width: 30ch; margin: 0 auto 0.35rem; font-size: 1.65rem; }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; padding-block: 1rem; }
  .news-row time { padding-top: 0; font-size: 1.125rem; }
  .news-row h2, .news-row h3 { font-size: 1.625rem; }
  .publication-year { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding-top: 1.1rem; }
  .publication-year h2 { margin-bottom: 0.6rem; font-size: 1.65rem; }
  .pub-title { font-size: 1.3125rem; }
  .pub-authors, .pub-details { font-size: 1.1875rem; }
  .person-profile { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .person-identity { max-width: 16rem; }
  .person-bio { font-size: 1.375rem; }
  .person-bio .affiliation { margin-bottom: 1.75rem; font-size: 1.25rem; }
  .person-bio h2 { font-size: 2.25rem; }
  .person-bio .text-link { font-size: 1.25rem; }
  .openings-summary > p { font-size: 1.375rem; }
  .openings-summary > p:first-child { font-size: 1.625rem; }
  .openings-list li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding-block: 0.8rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding-block: 1.25rem; }
}

@media (max-width: 380px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 2rem); }
  .wordmark-title { font-size: 1.7rem; }
  .wordmark-subtitle { max-width: 30ch; }
  .site-nav { column-gap: 1rem; }
  .page-home .page-banner h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media print {
  body { display: block; min-height: 0; font-size: 10pt; }
  .container, .header-inner, .footer-inner { width: 100%; }
  .site-header { border-top: 0; }
  .header-inner { padding-top: 0; }
  .wordmark-title { font-size: 22pt; }
  .page-banner { color: black; background: none; }
  .page-banner::before { display: none; }
  .banner-inner, .page-home .banner-inner { padding-block: 1.5rem 0.5rem; }
  .page-banner h1, .page-home .page-banner h1 { font-size: 28pt; }
  .page-banner .lead { color: black; }
  .page-content { padding-block: 1rem; }
  .site-nav, .figure-zoom { display: none; }
  .publication-list li, .person-profile { break-inside: avoid; }
  .site-footer { background: none; }
  a { color: inherit; }
}

/* Desktop comparison: reproduce the original layout at 67% browser zoom.
   Rem-based lengths scale with the root font. Fixed pixel lengths below scale
   by the same factor; viewport-relative lengths remain viewport-relative.
   Keep the established tablet/mobile rules and print output unchanged.
   This file is appended only by `python site/build.py --compact`.
*/
@media screen and (min-width: 901px) {
  html { font-size: 67%; }

  .container, .header-inner, .footer-inner {
    width: min(857.6px, calc(100% - 6rem));
  }
  .site-header { border-top-width: 2.68px; }
  .site-nav a { border-bottom-width: 1.34px; }
  a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline-width: 2.01px;
    outline-offset: 3.35px;
  }

  /* At this scale the original 1200px header breakpoint is 804px.
     Restore its single-row desktop layout throughout the compact range. */
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem 2rem;
    padding-block: 1.25rem;
  }
  .wordmark-title { font-size: 2.25rem; }
  .site-nav { column-gap: 1.5rem; }
  .site-nav a { padding-block: 0.6rem; }

  .page-research .page-banner .lead {
    max-width: min(50rem, calc(60vw - max(3rem, (100vw - 857.6px) / 2) - 2rem));
  }
  .page-research .page-content {
    width: min(964.8px, calc(100% - 4rem));
  }
  .direction-summary { padding-inline: 17.42px; }
  #photocurrents h2 { transform: translateX(-2.68px); }

  .home-overview .lead { transform: translateY(4.02px); }
  .home-figure img {
    top: -12.06px;
    /* The original wide-image breakpoint scales from 1300px to 871px. */
    width: min(calc(100% + 4rem), 30rem);
  }
  .page-news .page-content,
  .page-publications .page-content { max-width: 723.6px; }
  .person-profile { max-width: 710.2px; }
}
