:root {
  --bg: #ffffff;
  --text: #222;
  --muted: #666;
  --faint: #8a8a8a;
  --rule: #e6e6e6;
  --link: #245a8d;
  --nav: #555;
  --page-width: 840px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #171717;
  --text: #eeeeee;
  --muted: #aaaaaa;
  --faint: #888888;
  --rule: #343434;
  --link: #8ab4e8;
  --nav: #bbbbbb;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-shell {
  width: min(calc(100% - 44px), var(--page-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--nav);
  font-size: .94rem;
}

nav a.active {
  color: var(--text);
  font-weight: 500;
}

.profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 70px 0 80px;
}

.photo-column {
  padding-top: 5px;
}

.profile-photo {
  display: block;
  width: 190px;
  height: auto;
  max-width: 100%;
  border-radius: 0;
}

.profile-copy {
  max-width: 570px;
}

h1,
h2,
p {
  margin-top: 0;
}

.profile-copy h1 {
  margin-bottom: 5px;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}

.position {
  margin-bottom: 28px;
  color: var(--nav);
}

.profile-copy p {
  margin-bottom: 18px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  font-size: .95rem;
}

.page {
  padding: 58px 0 84px;
}

.page-title {
  margin: 0 0 38px;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}

.research-section h2 {
  margin: 0 0 24px;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 600;
}

.research-section + .research-section {
  margin-top: 46px;
}

.numbered {
  counter-reset: paper;
}

.numbered .paper {
  counter-increment: paper;
}

.numbered .paper-line::before {
  content: "[" counter(paper) "] ";
  font-weight: 600;
}

.paper {
  margin-bottom: 22px;
}

.paper-line {
  margin: 0;
}

.paper-title {
  font-weight: 600;
}

.paper-authors {
  color: var(--nav);
}

.paper-authors::before {
  content: " ";
}

.abstract-toggle {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.abstract-toggle::before {
  content: "[+]";
}

.abstract-toggle[aria-expanded="true"]::before {
  content: "[\2212]";
}

.abstract-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.abstract-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.abstract p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .nav {
    min-height: 54px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: .9rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 62px;
  }

  .profile-photo {
    width: 170px;
  }

  .profile-copy h1,
  .page-title {
    font-size: 1.8rem;
  }

  .page {
    padding: 44px 0 64px;
  }
}


html,
body,
.site-header,
a,
nav a,
.position,
.paper-authors {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

nav {
  position: relative;
}

.theme-toggle {
  width: 30px;
  height: 30px;
  padding: 5px;
  margin-left: -4px;
  border: 0;
  background: transparent;
  color: var(--nav);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: block;
}






.media-list {
  max-width: 720px;
}

.media-item {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.media-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.media-title:hover {
  color: var(--link);
}

.media-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
