@font-face {
  font-family: Roboto;
  src: url('../fonts/Roboto.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { color-scheme: light; --background: #fff; --text: #000; --link: #0076df; --line: #e0e0e0; --footer: #1c1c1d; --year: #e0e0e0; --shadow: 0 2px 5px #00000029, 0 2px 10px #0000001f; }
:root[data-theme='dark'] { color-scheme: dark; --background: #1c1c1d; --text: #e8e8e8; --link: #74b9ff; --line: #424246; --footer: #121213; --year: #55555b; --shadow: 0 2px 10px #0006; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; padding-top: 56px; display: flex; flex-direction: column; min-height: 100vh; background: var(--background); color: var(--text); font: 300 16px/1.5 Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 40px; font-weight: 300; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 32px; font-weight: 300; line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 500; line-height: 1.5; margin-bottom: 6px; }
p { margin-bottom: 16px; }
strong, b { font-weight: 700; }
ul { padding-left: 24px; margin-top: 0; margin-bottom: 16px; }
li { margin-bottom: 6px; }
.container { width: 100%; max-width: 1080px; padding: 0 15px; margin: 0 auto; }
.skip-link { position: fixed; top: -60px; left: 15px; z-index: 20; padding: 8px 12px; background: var(--background); }
.skip-link:focus { top: 8px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.social-links { display: flex; align-items: center; gap: 10px; }
.social-links a { display: inline-flex; color: var(--text); }
.social-links svg { width: 25px; height: 25px; fill: currentColor; }
.social-links a:hover { color: var(--link); }
.nav-menu { margin-left: auto; }
.nav-menu > summary { display: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text); white-space: nowrap; }
.nav-links a[aria-current='page'] { color: var(--link); font-weight: 400; }
.theme-toggle { border: 0; background: transparent; color: var(--text); padding: 6px; display: inline-flex; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.page { flex: 1; padding-top: 48px; padding-bottom: 60px; }
.page-heading { margin-bottom: 36px; }
.portrait { float: right; width: 300px; height: 300px; margin: 8px 12px 24px 48px; border-radius: 50%; object-fit: cover; object-position: center 65%; box-shadow: 0 8px 18px #0003; }
.profile-heading { margin-bottom: 28px; }
.subtitle { margin-bottom: 0; }
.bio p { margin-bottom: 30px; }
.about-columns { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.about-columns li { margin-bottom: 7px; }
.home-contact, .news { margin-top: 28px; }
.home-contact a { overflow-wrap: anywhere; }
.news-table { width: 100%; border-collapse: collapse; }
.news-table th { width: 130px; padding: 6px 20px 6px 0; text-align: left; font-weight: 300; white-space: nowrap; vertical-align: top; }
.news-table td { padding: 6px 0; vertical-align: top; }
.publication-year { position: relative; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 36px; }
.year-label { position: absolute; right: 0; top: 16px; margin: 0; color: var(--year); font-size: 32px; }
.pub-list { list-style: none; margin: 0 0 0 180px; padding: 0; }
.pub-item { margin: 0 0 26px; padding-right: 90px; }
.pub-title { margin-bottom: 2px; }
.pub-item > p { margin: 0 0 2px; }
.self-author { text-decoration: underline; text-underline-offset: 3px; }
.pub-links { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; margin-top: 6px; }
.pub-link, .pub-abstract summary { display: inline-block; min-width: 62px; padding: 3px 12px; border: 1px solid var(--text); border-radius: 2px; color: var(--text); text-align: center; font-size: 11px; font-weight: 400; line-height: 1.5; text-transform: uppercase; cursor: pointer; }
.pub-link:hover, .pub-abstract summary:hover { color: var(--link); border-color: var(--link); text-decoration: none; }
.pub-abstract { min-width: 62px; }
.pub-abstract summary { list-style: none; }
.pub-abstract summary::-webkit-details-marker { display: none; }
.pub-abstract[open] { width: 100%; }
.pub-abstract[open] summary { border-color: var(--link); color: var(--link); }
.pub-abstract p { margin: 12px 0 0; }
.page > article > section:not(.cv-card):not(.publication-year) { margin-top: 24px; }
.project { margin: 20px 0; }
.project h3 { margin-bottom: 4px; }
.project p { margin-bottom: 0; }
.cv-download { float: right; font-size: 20px; font-weight: 700; margin-top: 10px; }
.cv-card { padding: 16px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.cv-card h2 { font-size: 28px; margin-bottom: 18px; }
.information { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 8px; margin: 0 4px 18px; }
.information dt { font-weight: 700; }
.information dd { margin: 0; overflow-wrap: anywhere; }
.cv-entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; padding: 16px 20px; }
.cv-entry + .cv-entry { border-top: 1px solid var(--line); }
.cv-date { align-self: start; width: fit-content; margin: 3px 0 0; padding: 2px 8px; background: var(--link); color: var(--background); box-shadow: var(--shadow); border-radius: 2px; font-size: 12px; font-weight: 500; }
.cv-entry h3 { font-weight: 700; }
.cv-entry p { margin-bottom: 8px; }
.cv-entry ul { margin: 12px 0 0; list-style: circle; }
.site-footer { padding: 10px 0; background: var(--footer); color: #fff; font-size: 12px; }
.site-footer a { color: inherit; }
@media (max-width: 1100px) { .container { max-width: 960px; } }
@media (max-width: 991px) {
  .container { max-width: 720px; }
  .portrait { width: 240px; height: 240px; margin-left: 30px; margin-right: 0; }
  .nav-links { gap: 18px; }
  .about-columns { gap: 30px; }
  .pub-list { margin-left: 110px; }
  .cv-entry { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .container { max-width: 540px; }
  .nav-links { gap: 12px; font-size: 14px; }
  .social-links { gap: 8px; }
  .social-links svg { width: 22px; height: 22px; }
  .nav { gap: 10px; }
  .portrait { width: 180px; height: 180px; margin-left: 24px; }
  .about-columns { grid-template-columns: 1fr; gap: 16px; }
  .pub-list { margin-left: 0; }
  .pub-item { padding-right: 60px; }
  .cv-entry { padding: 16px 0; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 575px) {
  .page { padding-top: 32px; padding-bottom: 40px; }
  h1 { font-size: 36px; }
  .nav-menu > summary { display: block; cursor: pointer; font-size: 24px; padding: 3px 8px; list-style: none; }
  .nav-menu > summary::-webkit-details-marker { display: none; }
  .nav-menu[open] .nav-links { position: absolute; top: 56px; left: 0; right: 0; padding: 16px; background: var(--background); border-bottom: 1px solid var(--line); flex-direction: column; align-items: start; font-size: 16px; gap: 12px; }
  .portrait { float: none; display: block; width: 220px; height: 220px; margin: 0 auto 28px; }
  .profile-heading { margin-bottom: 24px; }
  .bio p { margin-bottom: 24px; }
  .year-label { position: static; margin-bottom: 20px; }
  .pub-item { padding-right: 0; }
  .news-table th { width: 90px; padding-right: 12px; font-size: 14px; }
  .information { grid-template-columns: 1fr; gap: 4px; }
  .information dd { margin-bottom: 8px; }
  .cv-entry { grid-template-columns: 1fr; gap: 10px; }
}
