:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #242724;
  --muted: #4f5750;
  --accent: #295648;
  --rule: #d8ddd5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 1; padding: .5rem 1rem; background: var(--paper); }
.skip:focus { transform: translateY(0); }
.shell { width: min(100% - 3rem, 67rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.3rem; }
.wordmark { color: var(--ink); font: 1.3rem/1.2 var(--serif); font-weight: bold; text-decoration: none; white-space: nowrap; }
nav ul, .links, .project-list, .bibliography { padding: 0; margin: 0; list-style: none; }
nav ul, .links { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a[aria-current], nav a:hover { color: var(--accent); text-decoration: underline; }
main { padding-block: clamp(2.3rem, 5vw, 5rem); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.12; }
h1 { font-size: clamp(2.45rem, 5.6vw, 4.7rem); letter-spacing: -.045em; max-width: 18ch; }
h2 { font-size: clamp(1.76rem, 3.1vw, 2.55rem); letter-spacing: -.024em; margin-bottom: 1.18rem; }
h3 { font-size: 1.38rem; }
p { max-width: 72ch; }
p + p { margin-top: .9rem; }
section { border-top: 1px solid var(--rule); padding-top: 1.55rem; margin-top: clamp(2.4rem, 5.5vw, 4.4rem); }
section > p:last-child { margin-top: 1rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); align-items: start; gap: clamp(1.4rem, 6vw, 6rem); }
.eyebrow { color: var(--accent); font-size: .91rem; font-weight: 650; margin-bottom: .65rem; }
.affiliation { color: var(--muted); margin: .55rem 0 1.4rem; }
.intro { color: var(--ink); font-size: clamp(1.07rem, 1.6vw, 1.24rem); max-width: 63ch; }
.hero .links { margin-top: 1.35rem; }
.portrait { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center; background: #e9ece6; }
.page-head { margin-bottom: 1.7rem; }
.page-head .intro { margin-top: .9rem; }
.project-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.75rem;
  max-width: 52rem;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #edf2ee;
  border-left: 3px solid var(--accent);
}
.project-overview dt { color: var(--muted); font-size: .875rem; }
.project-overview dd { margin: .18rem 0 0; font-weight: 650; }
.project-nav { margin-top: .6rem; }
.project-nav a { color: var(--accent); text-decoration: underline; }
.project-nav + section { margin-top: 1.25rem; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.project-list li { padding: .9rem 0 .6rem; border-top: 2px solid #9bb1a8; }
.project-list h3 { margin: .4rem 0 .55rem; }
.project-list h3 a { text-decoration-thickness: .05em; }
.meta, .date { color: var(--muted); font-size: .91rem; }
.bibliography { max-width: 54rem; }
.citation { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .45rem; padding: 1rem 0; }
.citation + .citation { border-top: 1px solid var(--rule); }
.citation > div:only-child { grid-column: 2; }
.citation h3 { font-size: 1.2rem; }
.citation p { margin-top: .24rem; }
.citation .links { margin-top: .35rem; }
.experience { margin: 0; max-width: 55rem; }
.experience div { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.35fr) minmax(10rem, .85fr); gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.experience dt { font-weight: 650; }
.experience dd { margin: 0; }
.plain-list { padding-left: 1.35rem; }
.plain-list li + li { margin-top: .45rem; }
.button { display: inline-block; background: var(--accent); color: white; padding: .7rem 1rem; text-decoration: none; }
.button:hover { text-decoration: underline; }
.back { margin-bottom: 1.35rem; }
figure { max-width: 52rem; margin-top: 2rem; }
figcaption { font-size: .91rem; color: var(--muted); padding-top: .5rem; }
.research-figure img { width: 100%; object-fit: contain; }
.research-figure + .research-figure { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.figure-link { display: block; border: 1px solid var(--rule); background: white; }
.figure-link:hover { border-color: var(--accent); }
.method-flow {
  max-width: 52rem;
  padding: 1.25rem;
  background: #edf2ee;
  border: 1px solid var(--rule);
  scroll-margin-block-start: 1rem;
}
.method-flow h3 { margin-bottom: .9rem; color: var(--accent); }
.method-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.method-flow li {
  position: relative;
  padding: .8rem;
  background: #fff;
  border-top: 2px solid #9bb1a8;
}
.method-flow li + li::before {
  position: absolute;
  inset-inline-start: -1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  line-height: 1;
  content: "→";
}
.method-flow li p { margin: .25rem 0 0; }
.method-flow figcaption { padding-top: 1rem; }
.method-flow figcaption p { max-width: 85ch; }
.method-flow figcaption p + p { margin-top: .45rem; }
.pipeline-artwork {
  max-width: 56rem;
  margin-top: 1.6rem;
  scroll-margin-block-start: 1rem;
}
.pipeline-artwork h3 { color: var(--accent); }
.pipeline-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .85rem;
}
.pipeline-panels .research-figure {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.pipeline-panels.single { grid-template-columns: minmax(0, 1fr); max-width: 37rem; }
.model-metrics {
  width: 100%;
  max-width: 48rem;
  margin: 1.6rem 0 .55rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.model-metrics caption { text-align: left; font-weight: 650; margin-bottom: .45rem; }
.model-metrics th, .model-metrics td { border-bottom: 1px solid var(--rule); padding: .5rem .35rem; }
.model-metrics th { text-align: left; font-weight: 650; }
.model-metrics td { white-space: nowrap; }
.model-metrics thead { background: #edf2ee; }
.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; }
.footer-inner { display: grid; gap: .9rem; }
.footer-inner p { margin-top: .3rem; }
small { color: var(--muted); font-size: .85rem; }

@media (max-width: 52rem) {
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .experience .date { grid-column: 2; }
}

@media (max-width: 45rem) {
  .method-flow ol { grid-template-columns: minmax(0, 1fr); }
  .pipeline-panels { grid-template-columns: minmax(0, 1fr); }
  .method-flow li + li::before {
    inset-inline-start: 50%;
    top: -1.4rem;
    transform: translateX(-50%);
    content: "↓";
  }
}

@media (max-width: 40rem) {
  .shell { width: min(100% - 2rem, 67rem); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-top: .85rem; gap: .2rem; }
  nav ul { gap: 0 .86rem; }
  .hero, .project-list { grid-template-columns: minmax(0, 1fr); }
  .project-overview { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: min(58%, 12rem); }
  .experience div, .citation { display: block; }
  .citation .date { display: block; margin-bottom: .25rem; }
  .experience dd + dd { margin-top: .15rem; }
}
