:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: #161616;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
main { max-width: 900px; margin: 32px 32px 64px; }
a, a:visited { color: #0000b8; text-decoration: underline; text-underline-offset: 2px; }
a:hover, summary:hover { color: #5b2387; }
a:focus-visible, summary:focus-visible { outline: 2px solid #3159a7; outline-offset: 4px; }

.profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; }
.portrait { display: block; width: 310px; height: 276px; object-fit: cover; object-position: 50% 53%; }
h1 { font-size: 32px; line-height: 1.18; margin: -4px 0 20px; }
.affiliation { margin: 0 0 18px; }
.affiliation:last-child { margin-bottom: 0; }
.profile-text { margin: 0 60px 0; }
.contact { margin: 22px 0 26px; overflow-wrap: anywhere; }

section { border-top: 1px solid #aaa; padding-top: 17px; margin-top: 25px; }
h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
p { margin: 0; }
.publication { margin: 0 0 22px; }
.publication:last-child { margin-bottom: 0; }
.publication-title { font-weight: bold; }
.publication-title, .publication-authors, .publication-venue { margin: 0; font-size: 1em; line-height: 1.5; }
.publication-venue { font-style: normal; }
.publication-venue em { font-style: italic; }
.publication-links { margin-top: 1px; }
.publication-links > a { margin-right: 6px; }
details.bibtex { display: inline; }
details.bibtex > summary { display: inline; cursor: pointer; color: #0000b8; text-decoration: underline; text-underline-offset: 2px; list-style: none; }
details.bibtex > summary::-webkit-details-marker { display: none; }
details.bibtex > summary::marker { content: ""; }
pre { margin: 8px 0 0; padding: 14px 16px; border: 1px solid #ddd; background: #f7f7f7; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.course { margin: 0 0 4px; }

@media (max-width: 768px) {
  main { margin: 24px 20px 40px; }
  .profile { grid-template-columns: 1fr; gap: 23px; }
  .profile-text { margin: 0; }
  .portrait { width: min(310px, 100%); height: auto; }
  h1 { font-size: 29px; margin: 0 0 17px; }
  .contact { margin-top: 23px; }
}
@media print {
  main { max-width: none; margin: 0; }
  body { font-size: 11pt; }
  .publication, .profile { break-inside: avoid; }
  .bibtex { display: none; }
}
