* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

a:hover {
  border-bottom-color: #1a1a1a;
}

a:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Main section */
.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.main-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 900px;
  width: 100%;
}

.details {
  flex: 1;
}

.details h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.details p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.links a {
  font-size: 0.9rem;
  color: #555;
  border-bottom: 1px solid #ddd;
}

.links a:hover {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.portrait {
  flex-shrink: 0;
  width: 280px;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* Research section */
.research {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.research h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.research h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.paper-list {
  list-style: none;
}

.paper-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #555;
}

.paper-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.paper-info {
  flex: 1;
}

.paper-info em {
  display: block;
  margin-top: 0.15rem;
}

.date {
  flex-shrink: 0;
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
}

.paper-list li a {
  border-bottom: none;
}

.paper-list li a:hover {
  border-bottom: 1px solid #1a1a1a;
}

.paper-list li strong {
  color: #1a1a1a;
}

.coauthors {
  display: block;
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.1rem;
}

/* Writings page */
.writings-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.writings-page h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.writings-page p {
  font-size: 0.95rem;
  color: #333;
  margin-top: 1.5rem;
}

.writings-page .paper-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}

/* Contact page */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.contact-page h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.contact-page p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main {
    padding: 3rem 1.5rem;
  }

  .main-content {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .portrait {
    width: 200px;
  }

  .details h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .research {
    padding: 1.5rem 1.5rem 3rem;
  }

}
