:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #fefdf8;
  --ink: #15282e;
  --muted: #4d605f;
  --accent: #006355;
  --line: #d8dfd7;
  --dark: #10292d;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #a24424; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: .85rem; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.047em; }
h1 { font-size: clamp(2.9rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.2rem; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 3.5rem), 75rem); margin-inline: auto; }
.skip, .skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus, .skip-link:focus { transform: none; }

header { border-bottom: 1px solid var(--line); }
.mast { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 750; text-decoration: none; line-height: 1.2; }
.monogram { display: inline-grid; place-items: center; width: 2.35rem; min-height: 2.35rem; flex: none; background: var(--dark); color: var(--surface); font-size: .73rem; letter-spacing: .08em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.25rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin: 0; padding: 0; list-style: none; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-weight: 650; font-size: .85rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
nav summary { min-height: 2.75rem; padding-block: .55rem; cursor: pointer; color: var(--accent); font-weight: 700; }

.intro { min-width: 0; container-type: inline-size; }
.intro h1 { font-size: clamp(1.55rem, 9cqi, 4.6rem); overflow-wrap: normal; }
.eyebrow, .meta { color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .095em; line-height: 1.45; text-transform: uppercase; }
.eyebrow { margin-bottom: .85rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.55; max-width: 37rem; margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; background: var(--accent); border: 1px solid var(--accent); color: white; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.button.secondary { background: transparent; color: var(--accent); }
figcaption { color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: .6rem; }

.section { padding-block: clamp(2rem, 5vw, 4.3rem); border-top: 1px solid var(--line); }
.sectionhead { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; column-gap: 1rem; row-gap: .55rem; margin-bottom: 1.35rem; }
.sectionhead a { font-size: .9rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cardbody { display: grid; align-content: start; gap: .65rem; padding: clamp(.95rem, 2vw, 1.35rem); }
.cardbody h3 { font-family: var(--serif); font-size: clamp(1.28rem, 2.3vw, 1.65rem); font-weight: 600; letter-spacing: -.02em; }
.cardbody h3 a { color: var(--ink); }
.cardbody p:not(.meta) { color: var(--muted); font-size: .95rem; margin: 0; }

.pagehead { display: grid; gap: .8rem; padding-block: clamp(2.7rem, 6vw, 4.75rem); }
.pagehead h1 { max-width: 19ch; overflow-wrap: anywhere; }
.pagehead p:not(.eyebrow, .meta) { max-width: 65ch; color: var(--muted); }
.pagehead .lead, .pagehead .eyebrow { margin: 0; }
.prose { max-width: 69ch; padding-bottom: 3rem; overflow-wrap: anywhere; }
.prose h2 { margin: 2rem 0 .65rem; }
.prose h3 { margin: 1.4rem 0 .55rem; }
.prose :is(ul, ol, blockquote, pre, figure, table) { margin-block: 1rem; }
.prose :first-child:is(h2, h3) { margin-top: 0; }
.prose pre { white-space: pre-wrap; }
.prose figure img { width: 100%; }
.detail-figure { width: min(100%, 60rem); margin-bottom: 2rem; }
.listrow { padding-block: 1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.listrow h2, .listrow h3 { margin-bottom: .5rem; }
.listrow p { color: var(--muted); }
.empty { max-width: 70ch; padding: 1rem 1.2rem; background: var(--surface); border-left: 3px solid var(--accent); color: var(--muted); }
main { min-height: 53vh; padding-bottom: 2rem; }
footer { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer > .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.35rem; }
footer p + p { margin-top: 0; }
summary { color: var(--accent); cursor: pointer; }

@media (max-width: 57rem) {
  .mast { flex-wrap: wrap; padding-top: .65rem; gap: .15rem 1.5rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .mast { display: block; }
  nav, nav ul { column-gap: .85rem; row-gap: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* Content groups use aligned rules so long labels can wrap naturally. */
.areas, .facts, .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .8rem 1.4rem;
}
.areas { padding: 0; margin: 0; list-style: none; }
.areas li, .facts > div { border-top: 1px solid var(--line); padding-top: .65rem; }
.areas li { font-weight: 620; }
.facts { margin: 0 0 1.7rem; }
.facts dt { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: .2rem 0 0; }
.gallery { align-items: start; }
.gallery img { width: 100%; }
.section:has(> .empty) { padding-block: 1.2rem; }
.section:has(> .empty) .sectionhead { margin-bottom: .35rem; }
.section:has(> .empty) .sectionhead h2 { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; letter-spacing: -.025em; }
.section > .empty { border: 0; background: transparent; padding: 0; }

/* Long identifiers can occur in project titles, venues and institutional names. */
.shell { overflow-wrap: anywhere; }
.card { position: relative; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover, .card:focus-within { border-color: var(--accent); }
.card:hover h3 a, .card:focus-within h3 a { color: var(--accent); }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
nav a[aria-current="location"] { color: var(--accent); text-decoration: underline; }

.article-layout { display:grid; grid-template-columns:minmax(0,68ch) minmax(12rem,22rem); justify-content:space-between; gap:clamp(1.4rem,5vw,5rem); margin-block:2rem; }
.article-layout aside { border-left:1px solid var(--line); padding-inline-start:1.5rem; }
.article-layout aside h2 { font:700 1rem var(--sans); margin-bottom:.5rem; }
.article-layout .facts { grid-template-columns:1fr; }
.article-layout .prose { padding-bottom:0; }
.research-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem 1rem; margin-block: 1rem; }
.research-filter label { display: grid; min-width: 0; width: min(100%, 22rem); gap: .35rem; font-weight: 650; }
.research-filter select { min-width: 0; width: 100%; min-height: 2.75rem; padding: .5em; font: inherit; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.research-filter output { color:var(--muted); }
[hidden] { display:none !important; }
@media(max-width:48rem) {
  .article-layout { grid-template-columns:1fr; }
  .article-layout aside { border-left:0; padding-inline-start:0; }
}
main > a.secondary:first-child { display:inline-block; margin-top:1.25rem; }
.detail-figure img { max-height:30rem; object-fit:contain; object-position:left; }
/* Long citation titles need space for the byline and publication links. */
.pagehead:has(.eyebrow) h1 { font-size:clamp(2.35rem,4.4vw,4.2rem); max-width:28ch; }
.cards:has(> .card:only-child) { grid-template-columns:minmax(0,47rem); }


.spotlight {
  max-width: 37rem;
  margin-top: 1.35rem;
  padding: .8rem 1rem .85rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.spotlight h2 { margin: .25rem 0 .4rem; font: 500 1rem/1.4 var(--sans); letter-spacing: normal; }
.spotlight p:not(.meta) { max-width: 54ch; color: var(--ink); }
#featured .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-citations { padding: 0; margin: 0; list-style: none; }
.compact-citations li { display: grid; gap: .18rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.compact-citations li a { justify-self: start; color: var(--ink); font-weight: 680; line-height: 1.3; }
.compact-citations li span { color: var(--muted); font-size: .88rem; }

@media (max-width: 42rem) {
  .mast { padding-top: .5rem; }
  .mast nav a { min-height: 2.25rem; }
  .intro .eyebrow { margin-bottom: .4rem; }
  .intro .lead { margin-top: .55rem; }
  #featured .cards { grid-template-columns: minmax(0, 1fr); }
}

.paper-preview { background: white; padding: .9rem; }
.card .paper-preview img { width: 100%; height: clamp(10rem, 18vw, 15rem); object-fit: contain; }
.detail-figure.paper-preview { width: min(100%, 48rem); }
.detail-figure.paper-preview a { display: block; }
.detail-figure.paper-preview img { width: 100%; height: auto; object-position: center; }
.spotlight .spotlight-finding { margin: .45rem 0; font-weight: 680; }
.spotlight .actions { margin-top: .65rem; font-size: .9rem; }
.card .paper-preview { margin-top: auto; }
.prose .paper-preview { margin-block: 1.4rem; }
@media (max-width: 42rem) {
  .mast nav { column-gap: .6rem; }
}

/* Identity and featured work form two consecutive bands. */
.hero { padding-bottom: clamp(1.5rem, 3vw, 2.7rem); }
.intro-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: .9rem 0 .65rem;
}
.intro-topics li {
  padding: .25rem .68rem;
  border-radius: 100rem;
  background: #243c56;
  color: var(--paper);
  font-size: .78rem;
  font-weight: 700;
}
.intro-topics li:nth-child(2) { background: #18554d; }
.intro-topics li:nth-child(3) { background: #634623; }
.intro .intro-bio { max-width: 61ch; font-size: 1rem; line-height: 1.65; }
main > .spotlight { max-width: none; margin: 0 0 clamp(1.5rem, 3vw, 2.7rem); padding: 1.1rem clamp(.85rem, 2vw, 1.6rem); }
main > .spotlight .spotlight-finding { max-width: 65ch; font-size: clamp(1rem, 1.7vw, 1.25rem); }
main > .spotlight h2 { max-width: 78ch; }

.experience-list { list-style: none; padding: 0; margin: 0; max-width: 56rem; }
.experience-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem 1.5rem;
  position: relative;
  border-left: 1px solid var(--line);
  padding: 0 0 1.6rem 1.25rem;
}
.experience-list li:last-child { padding-bottom: 0; }
.experience-list li::before {
  content: '';
  width: .55rem;
  height: .55rem;
  position: absolute;
  top: .45rem;
  left: -.3rem;
  background: var(--accent);
  border-radius: 50%;
}
.experience-list h3 { grid-column: 1; line-height: 1.3; }
.experience-list .experience-organization,
.experience-list .experience-summary { grid-column: 1; margin: 0; }
.experience-list .experience-organization { color: var(--muted); }
.experience-list .experience-dates { grid-column: 2; grid-row: 1; margin: 0; color: var(--muted); font-size: .9rem; }
.experience-cv { margin-top: 1.1rem; }
@media (max-width: 42rem) {
  .hero { padding-bottom: 1.15rem; }
  .intro .actions { margin-top: .85rem; }
  .experience-list li { grid-template-columns: minmax(0, 1fr); }
  .experience-list .experience-dates { grid-column: 1; grid-row: auto; margin: 0; }
}

.hero-banner {
  height: clamp(10rem, 18vw, 15rem);
  background: var(--dark);
  box-shadow: 0 0 0 100vmax var(--dark);
  clip-path: inset(0 -100vmax);
  overflow: hidden;
}
.hero-banner img {
  width: min(89%, 64rem);
  height: 100%;
  margin-left: auto;
  object-fit: cover;
  object-position: center 55%;
  mask-image: linear-gradient(90deg, transparent, black 16%, black 91%, transparent);
}
.hero-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem clamp(1.75rem, 5vw, 4.5rem);
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}
.hero-profile.has-portrait { grid-template-columns: clamp(9.25rem, 16vw, 12.25rem) minmax(0, 1fr); }
.hero-profile .portrait { grid-column: 1; grid-row: 1; margin-top: -6.25rem; position: relative; align-self: start; }
.hero-profile .portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border: .24rem solid var(--surface);
  box-shadow: 0 .45rem 1.15rem #10292d32;
}
.hero-profile.has-portrait .intro { grid-column: 2; grid-row: 1 / span 2; }
.hero-profile .intro h1 { font-size: clamp(1.55rem, 9cqi, 4.3rem); }
.hero-profile .eyebrow { margin: .6rem 0 0; }
.hero-profile > .actions { margin-top: 0; align-self: start; }
.hero-profile.has-portrait > .actions { flex-direction: column; align-items: start; gap: .35rem; }
@media (max-width: 42rem) {
  .hero-banner { height: 6rem; }
  .hero-banner img { width: 100%; }
  .hero-profile.has-portrait { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; padding-top: .75rem; }
  .hero-profile .portrait { width: 4.75rem; margin-top: -2.55rem; }
  .hero-profile.has-portrait > .actions { flex-direction: row; gap: .3rem .8rem; }
}

.article-layout.with-visuals { gap: clamp(1.4rem, 4vw, 3.5rem); }
.project-visuals { margin-top: 1.75rem; }
.project-visuals .paper-preview {
  padding: .5rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
}
.project-visuals .paper-preview img { height: auto; max-height: none; }
.project-visuals .tracking-demo { margin-bottom: 1.5rem; }
.tracking-demo img { margin-top: .7rem; }
.tracking-demo p { font-size: .85rem; }
@media (min-width: 48.01rem) {
  .article-layout.with-visuals { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}

.collaborations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}
.collaborations article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .65rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}
.collaborations h3 { line-height: 1.25; }
.collaborations p:not(.meta) { margin: 0; color: var(--muted); }
.collaborations a { justify-self: start; font-weight: 650; }
