:root {
  --text: #111;
  --muted: #666;
  --line: #ddd;
  --link: #0645ad;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hero {
  display: flex;
  align-items: flex-start;
  gap: 16px; /* decrease this to move name leftward */
/*  border-bottom: 1px solid var(--line);*/
  padding-bottom: 0;
  margin-bottom: 0;
}


.job-market-note {
  margin: 10px 0 0 0;
  padding: 8px 12px;
  border-left: 4px solid var(--link);
  background: #ffedd5;
  line-height: 1.4;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

#about h2 {
  margin-top: 20px;
}


p {
  margin: 12px 0;
}

.subtitle {
  color: var(--muted);
  margin: 0;
  line-height: 1.1;
}

nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

a:hover {
  text-decoration: underline;
}

.profile-photo {
  width: 190px;
  height: 225px;
  object-fit: cover;
  border-radius: 6px;
}

.publication {
  margin: 0 0 1.15rem 0;
  padding: 0;
}

.publication p {
  margin: 0;
}

.teaching-list {
  padding-left: 20px;
}

.teaching-list li {
  margin: 8px 0;
}




html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

.floating-nav {
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.floating-nav a {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

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


@media (max-width: 640px) {
  .page {
    padding: 16px 18px 64px;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-photo {
    width: 155px;
    height: 185px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    margin-top: 32px;
  }

  .floating-nav {
/*    justify-content: flex-start;*/
    overflow-x: auto;
    gap: 18px;
  }
}


.pub-title,
.pub-authors,
.pub-venue,
.pub-links {
  display: block;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

.pub-title {
  font-weight: 600;
  line-height: 1.35;
}

.pub-authors,
.pub-venue,
.pub-links,
.pub-venue {
  line-height: 1.35;
  color: var(--text);
  font-style: normal;
  font-weight: normal;
}


.pub-title a,
.pub-authors a,
.pub-links a {
  margin-left: 0;
  padding-left: 0;
}

.pub-links a {
  margin-right: 0.2rem;
}

.pub-authors a {
  color: var(--text);
  text-decoration: none;
}

.pub-authors a:hover {
  text-decoration: underline;
}