:root {
  --ink: #242329;
  --muted: #68656c;
  --accent: #820000;
  --line: #e7e5e4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
p { margin: 0 0 1.3em; }
h1, h2, h3 { color: var(--ink); }
.wrap { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 8px 16px; background: #fff; border: 1px solid var(--accent); z-index: 5; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 1.5625rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.wordmark:hover { text-decoration: none; color: var(--accent); }
nav { display: flex; gap: 36px; align-items: center; }
nav a { color: var(--ink); font-size: .9375rem; line-height: 1.4; padding-block: 9px; border-bottom: 1px solid transparent; }
nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
nav a:hover { text-decoration: none; border-color: var(--accent); }
h1 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(2.55rem, 4vw, 3.625rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.home { padding-block: 65px 85px; }
.home-title { grid-area: title; margin-bottom: 34px; }
.role { font-size: 1.125rem; color: var(--muted); margin-bottom: 2px; }
.affiliation { color: var(--accent); font-size: 1.125rem; margin: 0; font-weight: 500; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; grid-template-areas: "title profile" "bio profile"; grid-template-rows: auto 1fr; column-gap: 76px; align-items: start; }
.bio { grid-area: bio; }
.profile { grid-area: profile; }
.bio p:last-of-type { margin-bottom: 0; }
.bio .pronunciation { color: var(--muted); font-size: inherit; }
.bio .pronunciation-aside { color: #9c989d; margin-left: .25em; }
.file-label { font-size: .875rem; font-weight: 400; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.contact { margin-top: 26px; }
.contact h2 { font-size: .875rem; font-weight: 600; margin: 0 0 7px; }
.email { font-size: 1rem; }
.contact p { font-size: .875rem; line-height: 1.65; color: var(--muted); margin: 15px 0 0; }
.profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 18px; font-size: .875rem; }
.site-footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; align-content: center; color: var(--muted); font-size: .875rem; padding-block: 25px; }
.site-footer a { color: var(--muted); }
.page-heading { margin-bottom: 55px; }
.page-heading p { color: var(--muted); margin: 0; }
.research { padding-block: 64px 50px; }
.research-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 42px; border-top: 1px solid var(--line); padding-top: 29px; margin-top: 25px; }
.research-section h2 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin: 0; line-height: 1.4; }
.research-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.research-section .section-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin: 0; line-height: 1.4; letter-spacing: normal; }
.research-upcoming { border-top: 1px solid var(--line); margin: 18px 0 0; padding-top: 29px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.5; }
.research-upcoming span { color: var(--muted); font-family: var(--sans); font-size: 1rem; }
.paper { margin-bottom: 33px; }
.paper h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.5; margin: 0 0 7px; }
.paper p { margin: 0 0 4px; font-size: .9375rem; line-height: 1.55; }
.authors { color: var(--muted); }
.authors strong { font-weight: 600; color: var(--ink); }
.publication-status { color: #514b51; }
.paper-link { display: inline-block; font-size: .875rem; margin-top: 7px; }
.cv-page { padding-block: 64px 65px; }
.cv-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.cv-heading h1 { font-size: clamp(2.2rem, 3.4vw, 3.05rem); margin: 0; }
.download { display: inline-block; flex-shrink: 0; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 2px; font-size: .9375rem; }
.download:hover { background: #f8f3f3; text-decoration: none; }
.cv-document { display: block; width: 100%; height: 1000px; border: 1px solid var(--line); background: #f8f8f8; }
.pdf-fallback { padding: 40px; }
@media (min-width: 1500px) { .home { padding-top: 78px; } }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 64px); }
  .home-grid { grid-template-columns: minmax(0, 1fr) 245px; column-gap: 40px; }
  .research-section { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
  .wordmark { font-size: 1.375rem; }
  nav { gap: 21px; }
  nav a { font-size: .875rem; }
  .home, .research, .cv-page { padding-top: 40px; }
  .home { padding-bottom: 50px; }
  .role, .affiliation { font-size: 1rem; }
  .home-title { margin-bottom: 0; order: -2; }
  .home-grid { display: flex; flex-direction: column; gap: 36px; }
  .profile { display: contents; }
  .portrait { width: min(245px, 100%); order: -1; }
  .bio { order: 1; }
  .contact { order: 2; margin: 0; width: 100%; padding-top: 24px; border-top: 1px solid var(--line); }
  .contact p, .profile-links { font-size: .875rem; }
  .email { font-size: .9375rem; overflow-wrap: anywhere; }
  .contact p { margin-top: 11px; }
  .profile-links { gap: 9px; margin-top: 14px; }
  .page-heading { margin-bottom: 34px; }
  .research-section { display: block; margin-top: 14px; padding-top: 23px; }
  .research-section h2 { color: var(--accent); margin-bottom: 23px; }
  .research-section .section-title { color: var(--accent); margin-bottom: 23px; }
  .paper { margin-bottom: 28px; }
  .paper h3 { font-size: 1.0625rem; }
  .cv-heading { display: block; margin-bottom: 20px; }
  .download { margin-top: 23px; }
  .cv-document { height: 620px; }
  .site-footer { font-size: .8125rem; gap: 6px 20px; }
}
@media (max-width: 370px) {
  nav { gap: 16px; }
  .portrait { max-width: 245px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .wrap { width: 100%; }
  .home, .research { padding: 0; }
  a { color: inherit; }
  .paper { break-inside: avoid; }
}
