:root {
  --ink: #494e52;
  --ink-strong: #494e52;
  --muted: #7a8288;
  --link: #52adc8;
  --link-hover: #317b91;
  --rule: #e5e7e8;
  --surface-soft: #f6f7f7;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, ".SFNSText-Regular", "San Francisco", Roboto, "Segoe UI",
    "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(47, 127, 157, 0.3);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.97);
}

.site-nav {
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  gap: 34px;
}

.site-nav a {
  color: var(--muted);
  font-size: 1em;
  font-weight: 700;
}

.site-nav a[aria-current="page"]:not(.site-name) {
  color: var(--link);
}

.site-nav .site-name {
  margin-right: auto;
  font-size: 1em;
  font-weight: 700;
}

.site-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 68px;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 48px auto 64px;
}

.profile {
  align-self: start;
  position: sticky;
  top: 32px;
}

.profile-photo {
  display: block;
  width: 175px;
  height: 175px;
  margin-bottom: 20px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.profile-copy h2 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
}

.profile-copy p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.5;
}

.profile-links {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.profile-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 8px;
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.5;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  color: var(--muted);
  fill: currentColor;
}

.page-content {
  min-width: 0;
  max-width: 790px;
}

.page-content section + section {
  margin-top: 42px;
}

.page-content h1 {
  margin: 0 0 22px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-strong);
  font-size: 1.563em;
  font-weight: 700;
  line-height: 1;
}

.page-content p {
  margin: 0 0 1rem;
}

.heading-note {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 400;
  white-space: nowrap;
}

.publication {
  margin: 0 0 28px;
}

.publication:last-child {
  margin-bottom: 0;
}

.publication h2 {
  margin: 0 0 4px;
  color: var(--ink-strong);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
}

.publication .authors,
.publication .venue {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
}

.publication .venue {
  margin-top: 2px;
}

.honors-list {
  margin: 0;
  padding-left: 1.3rem;
}

.honor {
  margin-bottom: 8px;
  padding-left: 4px;
  font-weight: 400;
}

.page-heading {
  margin-bottom: 34px;
}

.page-heading h1 {
  margin-bottom: 12px;
}

.page-heading p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-soft);
}

.site-footer p {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    min-height: 62px;
    gap: 20px;
  }

  .site-layout {
    display: block;
    margin-top: 32px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0 22px;
    margin-bottom: 42px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--rule);
  }

  .profile-photo {
    grid-row: 1 / span 2;
    width: 112px;
    height: 112px;
    margin: 0;
  }

  .profile-copy h2 {
    font-size: 1em;
  }

  .profile-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 10px;
    padding-top: 12px;
  }

  .profile-links li {
    margin: 0;
  }

  .page-content {
    max-width: none;
  }

  .heading-note {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .site-layout,
  .site-footer p {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-nav {
    gap: 16px;
  }

  .profile {
    display: block;
  }

  .profile-photo {
    width: 128px;
    height: 128px;
    margin-bottom: 18px;
  }

  .profile-links {
    display: grid;
  }

  .publication {
    margin-bottom: 24px;
  }
}
