:root {
  --text: #1a1a1a;
  --muted: #666;
  --link: #1a1a1a;
  --border: #e4e4e4;
  --bg: #fdfdfc;
  --max-width: 700px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 0 80px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #bbb;
  text-underline-offset: 2px;
}

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

header.intro {
  margin-bottom: 40px;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.avatar {
  width: 160px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.name {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.role {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px;
}

nav.sections {
  font-family: var(--sans);
  font-size: 14px;
  margin: 0;
}

nav.sections a {
  margin-right: 16px;
  text-decoration: none;
  color: var(--muted);
}

nav.sections a:hover {
  color: var(--text);
  text-decoration: underline;
}

.bio p {
  margin: 0 0 14px;
}

.contact-links {
  font-family: var(--sans);
  font-size: 14px;
  margin: 20px 0 0;
}

.contact-links a {
  margin-right: 4px;
}

.contact-links span.sep {
  color: var(--border);
  margin: 0 8px;
}

section {
  margin-top: 48px;
}

section > h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.education-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.education-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.education-list .degree {
  flex: 1;
}

.education-list .year {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.entry {
  margin-bottom: 26px;
}

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

.entry-title {
  font-weight: 600;
  margin: 0 0 3px;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-with-teaser {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.entry-teaser {
  display: block;
  flex-shrink: 0;
  width: 160px;
}

.entry-teaser img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

.entry-body {
  flex: 1;
  min-width: 0;
}

.entry-authors {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 3px;
}

.entry-authors .me {
  color: var(--text);
  font-weight: 600;
}

.entry-venue {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 6px;
}

.entry-desc {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.entry-links {
  font-family: var(--sans);
  font-size: 13.5px;
}

.entry-links a {
  margin-right: 12px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.entry-links a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* Paper / project pages */

.back-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
}

.back-link:hover {
  color: var(--text);
}

.paper-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.paper-authors {
  font-family: var(--sans);
  font-size: 15px;
  margin: 0 0 4px;
}

.paper-authors .me {
  font-weight: 600;
}

.paper-venue {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.paper-links {
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 32px;
}

.paper-links a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
}

.paper-links a:hover {
  border-color: var(--text);
}

.paper-hero {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: block;
}

.paper-section h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 12px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bibtex {
  background: #f4f3f1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 480px) {
  .container {
    padding: 40px 0 56px;
  }

  .name {
    font-size: 26px;
  }

  .education-list li {
    flex-direction: column;
    gap: 2px;
  }

  .entry-with-teaser {
    flex-direction: column;
    gap: 10px;
  }

  .entry-teaser {
    width: 100%;
  }

  .entry-teaser img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
