/* Midnight-blue academic homepage. No external fonts or layout scripts. */
:root {
  color-scheme: light;
  --midnight: #191970;
  --paper: #ffffff;
  --ink: #242833;
  --muted: #4f5868;
  --link: #233e78;
  --line: #d6dce6;
  --measure: 53rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
a { color: var(--link); text-underline-offset: .16em; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 10; background: white; padding: .5rem; }
.skip-link:focus { top: 1rem; }

/* The only full-width colored region is the academic masthead. */
.site-header { background: var(--midnight); color: white; }
.header-inner, .page { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.header-inner { padding-block: 1.65rem 1.15rem; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 2.65rem); font-weight: 400; line-height: 1.15; margin: 0; }
.affiliation { margin: .3rem 0 1rem; color: #e6e9f6; font-size: .96rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: baseline; }
.site-header nav a { color: white; font-size: .91rem; padding-block: .2rem; }
.site-header nav a:hover { color: #dbe3ff; }
.nav-demo { font-weight: 600; }
.page { padding-bottom: 2rem; }
.intro { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 2.5rem); padding-block: 1.7rem; }
.academic-portrait { display: block; width: 100%; max-width: 16rem; height: auto; }
.intro-copy { min-width: 0; padding-top: .25rem; }
.intro p { margin: 0; }
.contact-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .65rem; padding-top: .8rem; font-size: .94rem; overflow-wrap: anywhere; }
.hero-visual { width: min(100%, 18rem); margin: .25rem auto 0; }
.surface-mount { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.surface-mount canvas, .surface-fallback { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-visual figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
.surface-toggle { display: grid; place-items: center; margin: 0; width: 44px; height: 44px; padding: 0; font: inherit; color: var(--link); background: transparent; border: 1px solid transparent; border-radius: .2rem; cursor: pointer; }
.surface-mount canvas { cursor: grab; touch-action: none; }
.surface-mount canvas:active { cursor: grabbing; }
.surface-mount canvas:focus-visible { outline-offset: -3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Keep the optional non-drag controls out of the way until requested. */
.surface-controls { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: .25rem; }
.surface-adjust { color: var(--link); }
.surface-adjust summary, .surface-adjust-panel button { display: grid; place-items: center; width: 44px; min-height: 44px; margin: 0 auto; padding: 0; border: 1px solid transparent; border-radius: .2rem; background: transparent; color: var(--link); font: inherit; cursor: pointer; }
.surface-adjust summary { list-style: none; }
.surface-adjust summary::-webkit-details-marker { display: none; }
.surface-adjust-panel { display: flex; flex-wrap: wrap; justify-content: center; }
.surface-toggle:hover, .surface-adjust summary:hover, .surface-adjust-panel button:hover { border-color: var(--link); }
@media (forced-colors: active) {
  .surface-toggle, .surface-adjust summary, .surface-adjust-panel button { border-color: ButtonText; }
}
/* Reserve space without exposing an unusable button to the accessibility tree. */
.surface-toggle:disabled { visibility: hidden; }

/* A single reading column, with conventional headings and citation lists. */
.content-section { padding-block: 1.25rem 1.45rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; color: var(--midnight); font-weight: 400; line-height: 1.25; margin: 0 0 .85rem; }
h3 { font-size: 1rem; line-height: 1.45; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.research-list { margin: 0; padding-left: 1.5rem; }
.research-list > li { padding-left: .2rem; }
.research-list > li::marker { color: var(--muted); }
.research-list > li + li { margin-top: 1.1rem; }
.research-list h3 { font-weight: 600; }
.talk-list, .education-list { list-style: none; margin: 0; padding: 0; }
.talk-list > li + li, .education-list > li + li { margin-top: .8rem; }
.education-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .1rem 1rem; }
.dates, .details, .paper-status, .demo-status { color: var(--muted); font-size: .91rem; }
.dates { white-space: nowrap; font-variant-numeric: tabular-nums; }
.degree, .details, .paper-status { margin: .15rem 0; }
.paper-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .92rem; }
.paper-abstract { margin: .5rem 0; }
.paper-abstract summary { cursor: pointer; color: var(--link); }
.paper-abstract p { max-width: 72ch; }
.paper-video { max-width: 36rem; margin-top: .8rem; }
.paper-video > a { font-size: .9rem; }
.video-load { font: inherit; font-size: .92rem; color: var(--link); background: white; border: 1px solid var(--link); padding: .35rem .65rem; cursor: pointer; margin: 0 .6rem .4rem 0; }
.video-load:hover { background: #eef2f8; }
.video-player { aspect-ratio: 16 / 9; margin-bottom: .5rem; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.software-panel p { margin: .35rem 0; }
.site-footer { border-top: 1px solid var(--line); padding-top: .8rem; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 35rem) {
  .header-inner { padding-block: 1.3rem .95rem; }
  .site-header nav { gap: .25rem .9rem; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding-block: 1.25rem; }
  .academic-portrait { width: min(100%, 13rem); justify-self: center; }
  .intro-copy { padding-top: 0; }
  .hero-visual { width: min(100%, 17rem); margin: .65rem auto 0; }
  .content-section { padding-block: 1.1rem; }
}
