:root {
  color-scheme: light;
  --ink: #17213c;
  --muted: #4e5b73;
  --navy: #111b36;
  --accent: #25488d;
  --accent-light: #b2cbff;
  --surface: #f7f9fd;
  --line: #dce3f1;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #315cbe; outline-offset: 4px; }
.hero a:focus-visible { outline-color: var(--accent-light); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(69rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .65rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.hero {
  color: #f4f7ff;
  background: radial-gradient(ellipse at 90% 90%, #263e79, transparent 58%), var(--navy);
  border-bottom: .2rem solid #82aaff;
}
.topbar { display: flex; min-height: 4.4rem; justify-content: space-between; align-items: center; gap: 1.25rem; border-bottom: 1px solid #ffffff29; }
.wordmark { font-size: 1.05rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: .4rem clamp(.75rem, 4vw, 2rem); align-items: center; flex-wrap: wrap; }
nav a { color: #dbe5fa; font-size: .9rem; text-decoration: none; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(1.75rem, 5vw, 3.4rem); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(3.8rem, 8vw, 7.2rem); line-height: .96; }
.positioning { max-width: 31ch; margin-top: .85rem; color: var(--accent-light); font-size: clamp(1.15rem, 2.55vw, 1.65rem); font-weight: 650; line-height: 1.3; }
.intro-copy { max-width: 43ch; margin-top: .65rem; color: #e1e9fc; }
.portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 24rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #ffffff4a;
  border-radius: .55rem;
  box-shadow: 0 1rem 2.5rem #09112666;
}
.portrait img { position: absolute; top: -16%; left: -49%; width: 164%; max-width: none; }

main { padding-block: clamp(1.9rem, 5vw, 3.75rem) clamp(2.25rem, 6vw, 4.25rem); }
.section { display: grid; grid-template-columns: minmax(9rem, .25fr) minmax(0, 1fr); gap: clamp(1.35rem, 4vw, 3.5rem); scroll-margin-top: 1.3rem; }
.section + .section { margin-top: clamp(2.25rem, 5vw, 3.65rem); padding-top: clamp(2.25rem, 5vw, 3.3rem); border-top: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.05; }
h3 { font-size: 1.08rem; font-weight: 680; line-height: 1.35; }
.dated-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .32rem 1.25rem; padding-block: .92rem; }
.dated-row:first-child { padding-top: .12rem; }
.dated-row:last-child { padding-bottom: .12rem; }
.dated-row + .dated-row, .publication + .publication { border-top: 1px solid var(--line); }
.dated-row p { margin-top: .22rem; }
.detail, .dates, .citation, .byline { color: var(--muted); }
.detail { max-width: 64ch; }
.dates { font-size: .9rem; font-variant-numeric: tabular-nums; }

.publication { padding-block: 1.12rem; }
.publication:first-child { padding-top: 0; }
.publication:last-child { padding-bottom: 0; }
.featured { scroll-margin-top: 1.3rem; }
.paper-header { display: flex; justify-content: space-between; align-items: start; gap: .8rem 1.15rem; }
.venue { margin-bottom: .42rem; color: var(--accent); font-size: .9rem; font-weight: 700; }
.featured h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.31; }
.byline, .citation { margin-top: .38rem; font-size: .93rem; }
.byline strong { color: var(--ink); font-weight: 700; }
.paper-summary { max-width: 65ch; margin-top: .68rem; }
.paper-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .45rem; }
.paper-link { display: inline-flex; align-items: center; min-height: 2.55rem; padding: .25rem .85rem; color: var(--accent); border: 1px solid #90a6d0; border-radius: .28rem; font-size: .9rem; font-weight: 650; text-decoration: none; }
.paper-link:hover { background: #e0eaff; }
.design { margin-top: 1.12rem; padding: clamp(1rem, 3vw, 1.35rem); border: 1px solid #c6d6f2; border-radius: .48rem; background: #edf3fd; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin-top: .92rem; }
figure { min-width: 0; }
figure a { display: block; background: white; border: 1px solid #d3ddef; border-radius: .32rem; overflow: hidden; }
figure a:hover { border-color: #6c87ba; }
figure img { width: 100%; height: 100%; aspect-ratio: 5 / 4; object-fit: contain; }
figcaption { margin-top: .36rem; color: var(--muted); font-size: .88rem; }
.sa-figure { margin-top: .9rem; max-width: 45rem; }
.sa-figure img { height: auto; aspect-ratio: auto; border: 1px solid #d3ddef; border-radius: .32rem; background: white; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 52rem) {
  .section { grid-template-columns: 1fr; gap: 1.15rem; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .portrait { justify-self: start; }
}
@media (max-width: 33rem) {
  .topbar { justify-content: center; align-items: flex-start; flex-direction: column; gap: .44rem; padding-block: .75rem; }
  .dated-row, .figures { grid-template-columns: 1fr; }
  .paper-header { flex-wrap: wrap; }
  .paper-link { min-height: 2.75rem; }
}

