/* Shared presentation: preserve the site's warm, restrained academic style. */
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
.wrap { max-width: 840px; padding: 52px 28px 72px; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--bg); border: 1px solid var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
header { margin-top: 0; margin-bottom: 0; padding-bottom: 26px; gap: 26px; }
.home .portrait { width: 180px; height: 216px; }
h1 { line-height: 1.12; margin-bottom: 10px; }
.role { line-height: 1.55; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; padding: 10px 0; margin-bottom: 30px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
main:focus { outline: none; }
section, h2, h3 { scroll-margin-top: 24px; }
h2 { margin-top: 48px; margin-bottom: 12px; padding-bottom: 10px; font-size: 1.4rem; line-height: 1.35; }
h3 { line-height: 1.5; }
p.lead { margin-bottom: 18px; }
.bio-figure { margin: 28px 0 24px; }
.bio-figure img { width: 360px; }
.bio-figure figcaption { max-width: 440px; margin: 10px auto 0; }
.info { gap: 8px 20px; margin: 26px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
ul.papers { margin: 0; }
ul.papers > li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
ul.papers > li:last-child { border-bottom: 0; }
.ptitle { line-height: 1.45; }
.pmeta { line-height: 1.55; margin-top: 5px; }
.pdesc { margin: 9px 0 0; line-height: 1.65; }
.tag { background: #696963; font-size: .65rem; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; padding-top: 20px; }
footer a { font-size: .85rem; }
.publications .backlink { margin: 0 0 22px; }
.publications .site-nav { margin-top: 0; }
.publications .site-nav + main > h2:first-child { margin-top: 32px; }
ul.pubs li { padding: 18px 0; }
@media (max-width: 600px) {
  .wrap { padding: 32px 22px 48px; }
  header { gap: 18px; }
  h1 { font-size: 2rem; }
  .home .portrait { width: 112px; height: 134px; }
  .role { font-size: .92rem; }
  .site-nav { gap: 0 18px; margin-bottom: 24px; }
  h2 { margin-top: 38px; font-size: 1.3rem; }
  .info { grid-template-columns: 1fr; gap: 2px; }
  .info dt { margin-top: 10px; }
  .info dt:first-child { margin-top: 0; }
  .info dd { margin-bottom: 6px; }
  .ptitle { font-size: 1.04rem; }
}
@media (max-width: 380px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .home header { flex-direction: column-reverse; }
  .home .portrait { width: 116px; height: 139px; }
  .site-nav { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#research .lead { margin-bottom: 0; }
#featured > h3 { margin-top: 30px; }
@media (max-width: 600px) {
  .home header { flex-direction: column-reverse; }
  .home .portrait { width: 116px; height: 139px; }
}
