:root {
  --background: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #e3e3e3;
  --link: #0066b3;
  --venue-highlight: #26736b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.shell {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-size: 1rem;
  font-weight: 600;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3rem;
  align-items: start;
  padding-block: 3.5rem 3rem;
}

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

h1 {
  margin-bottom: 0.25rem;
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.affiliation,
.contact-line {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.contact-line {
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.introduction {
  max-width: 620px;
  margin-bottom: 1rem;
}

.introduction p {
  margin-bottom: 0.8rem;
}

.introduction p:last-child {
  margin-bottom: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-links span {
  border-bottom: 1px dotted #aaaaaa;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.publications {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.publication {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 1px solid var(--line);
}

.publication-year-column {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.publication-venue-highlight {
  color: var(--venue-highlight);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.publication h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.publication-authors,
.publication-venue {
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.publication-authors strong {
  font-weight: 650;
}

.publication-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--muted);
}

.publication-venue-name {
  color: var(--muted);
}

.publication-status {
  color: var(--muted);
  font-weight: 400;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, 540px);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.5rem;
  }

  .portrait {
    order: -1;
    width: 140px;
  }

  .publication {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
