/* Shared typography and layout for the personal site and research pages. */
:root { color-scheme: light; --ink: #222; --muted: #626262; --rule: #d7d7d2; --link: #23486c; }
* { box-sizing: border-box; }
html { background: #fff; }
body { max-width: 840px; margin: 0 auto; padding: 0 36px; color: var(--ink); font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 19px; line-height: 1.6; }
.home { max-width: 760px; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #111; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
h1, h2, h3 { color: #191919; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2.5rem; margin: 0 0 24px; font-weight: 600; }
h2 { font-size: 1.55rem; margin: 0 0 20px; }
h3 { font-size: 1.38rem; margin: 0 0 12px; }
p { margin: 0 0 18px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 20px; border-bottom: 1px solid var(--rule); }
.site-name { color: var(--ink); text-decoration: none; font-size: 1.12rem; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { text-decoration: none; padding: 6px 0; }
nav a[aria-current] { color: var(--ink); border-bottom: 1px solid; }
main { padding: 58px 0 64px; min-height: 65vh; }
.introduction { margin-bottom: 56px; }
.introduction h2 { font-size: 1em; font-weight: 700; font-style: normal; margin-bottom: 8px; }
.introduction h2:first-of-type + p { margin-bottom: 12px; }
.introduction p + h2 { margin-top: 28px; }
.affiliation { line-height: 1.5; }
.interests { max-width: 620px; margin-top: 28px; }
.separator { margin: 0 12px; color: var(--muted); }
.publication { border-top: 1px solid var(--rule); padding-top: 22px; }
.publication h3 a { color: var(--ink); text-decoration: none; }
.publication h3 a:hover { text-decoration: underline; }
.publication-meta { color: var(--muted); font-size: 1rem; }
.publication-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 1.05rem; }
.year { font-size: 1.1rem; color: var(--muted); margin-top: 40px; }
.paper-header { text-align: center; margin-bottom: 42px; }
.paper-header h1 { font-size: 2rem; line-height: 1.25; }
.paper-author { margin-bottom: 10px; }
.paper-author a { color: inherit; text-decoration: none; }
.paper-header .publication-links { justify-content: center; margin-top: 24px; }
.abstract h2 { text-align: center; }
.abstract p { text-align: left; }
.paper-details { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 38px; }
.paper-details h2 { font-size: 1.3rem; }
dl { display: grid; grid-template-columns: 70px 1fr; gap: 12px 20px; font-size: 1rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding: 20px 0 36px; color: var(--muted); font-size: .95rem; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; background: white; padding: 8px 14px; z-index: 1; }
@media (max-width: 540px) {
  body { padding: 0 22px; font-size: 18px; }
  .site-header { gap: 12px; }
  nav { gap: 18px; }
  main { padding-top: 38px; }
  h1 { font-size: 2.1rem; }
  .paper-header h1 { font-size: 1.65rem; }
  .paper-header .publication-links { gap: 10px 20px; }
  .introduction { margin-bottom: 42px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 12px; }
}
@media print {
  body { max-width: none; padding: 0; font-size: 11pt; }
  .site-header, .site-footer, .skip-link { display: none; }
  main { padding: 0; }
  a { color: inherit; }
}

.profile-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:28px; }
.profile-heading h1 { margin:0; }
.profile-subtitle { margin:10px 0 0; font-size:0.88em; line-height:1.5; font-weight:400; color:var(--muted); }
.portrait { flex-shrink:0; width:147px; height:192.23px; object-fit:cover; border-radius:0; margin-top:10px; }
@media(max-width:540px) { .profile-heading { gap:16px; } .profile-heading h1 { font-size:clamp(1.5rem, 6vw, 2.1rem); } .portrait { width:125px; height:164.75px; margin-top:8px; } }
@media(max-width:540px) { .site-header { flex-wrap:wrap; } nav { gap:18px; } }
.social-links { display:flex; gap:10px; margin-top:14px; } .social-links a { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid var(--rule); border-radius:3px; color:var(--muted); } .social-links a:hover { color:var(--link); } .social-links svg { width:18px; height:18px; }
