@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  overflow-y: scroll;
  --background: #ffffff;
  --text: #252b32;
  --muted: #626b75;
  --link: #265d8c;
  --line: #e4e7eb;
  color-scheme: light;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #181b20;
    --text: #dce1e7;
    --muted: #a6afba;
    --link: #a3c6e6;
    --line: #343b44;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: #181b20;
  --text: #dce1e7;
  --muted: #a6afba;
  --link: #a3c6e6;
  --line: #343b44;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site { max-width: 48rem; margin: 0 auto; padding: 0 24px 44px; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.site-header { padding-top: 54px; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.name { color: var(--text); font-size: 1.65rem; font-weight: 500; letter-spacing: -0.7px; line-height: 1.35; }
.name:hover { text-decoration: none; }
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 4px 0 0 -11px;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border-radius: 3px;
}
.profile-link svg { display: block; width: 18px; height: 18px; }
.profile-link:hover, .profile-link:focus-visible { color: var(--link); text-decoration: none; }
.profile-link:focus-visible { outline-offset: -2px; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 25px;
  padding: 7px 0 18px;
  margin-bottom: 31px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.site-header nav a { color: var(--muted); padding: 3px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { display: block; }
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }
main { min-height: 255px; }
main:focus { outline: none; }
h1, h2, p, ul, dl { margin: 0; }
h1 { font-size: 1.4rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.3px; margin-bottom: 18px; }
h2 { font-size: 1.06rem; font-weight: 500; line-height: 1.5; margin: 30px 0 14px; }
.home-section-title { font-size: 1.4rem; line-height: 1.4; letter-spacing: -0.3px; margin-bottom: 18px; }
h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; margin: 19px 0 5px; }
p { margin-bottom: 19px; }
p:last-child { margin-bottom: 0; }
.page-note { color: var(--muted); font-size: 0.94rem; margin: -7px 0 25px; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin-bottom: 23px; }
.plain-list li:last-child { margin-bottom: 0; }
.entry-title { font-weight: 500; line-height: 1.5; }
.publications .entry-title, .code .entry-title { font-weight: 600; }
.entry-meta { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.entry-meta em { font-style: normal; }
.entry-links { font-size: 0.9rem; line-height: 1.55; margin-top: 4px; }
.entry-links span { color: var(--muted); }
.entry-note { color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.index-links { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 3px; }
.talks time { white-space: nowrap; }
.talks li { margin-bottom: 25px; }
.talks li > a { font-size: 0.94rem; }
.separator { color: var(--muted); margin: 0 5px; }
.code p { margin: 3px 0 5px; }
.code { margin-top: 27px; }
.cv-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; margin-bottom: 22px; }
.cv-list dt { color: var(--muted); font-size: 0.94rem; padding-top: 1px; }
.cv-list dd { margin: 0; line-height: 1.55; }
.cv-list strong { font-weight: 500; }
.cv-description { font-size: 0.94rem; margin: 7px 0 0; }
.awards { padding-left: 20px; }
.awards li { margin-bottom: 5px; }
.thesis { font-size: 0.94rem; margin-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2; padding: 8px 12px; color: var(--background); background: var(--text); }
.skip-link:focus { top: 12px; }

@media (max-width: 540px) {
  .site { padding: 0 21px 34px; }
  .site-header { padding-top: 27px; }
  .name { font-size: 1.5rem; }
  .site-header nav { gap: 0 20px; padding-top: 5px; padding-bottom: 16px; margin-bottom: 26px; }
  .cv-list > div { display: block; margin-bottom: 19px; }
  .cv-list dt { margin-bottom: 2px; }
}

@media (max-width: 360px) {
  .site { padding: 0 18px 34px; }
  .site-header nav { gap: 0 10px; }
}

@media print {
  :root { --background: #fff; --text: #000; --muted: #444; --link: #000; --line: #ccc; font-size: 11pt; overflow-y: visible; }
  .site { max-width: none; padding: 0; }
  .site-header { padding-top: 0; }
  .site-header nav, .profile-links, .theme-toggle, .skip-link { display: none; }
  .site-header { margin-bottom: 22px; }
  .cv-list > div, .plain-list li { break-inside: avoid; }
  .cv-list > div { display: grid; }
}
