/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

a { color: #1a5276; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 750px; margin: 0 auto; padding: 0 1.5rem; }

/* === Navigation === */
.site-nav {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}
.site-name:hover { text-decoration: none; color: #1a5276; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #555;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: #1a5276;
  text-decoration: none;
  border-bottom: 2px solid #1a5276;
  padding-bottom: 2px;
}

/* === Main Content === */
main { padding-bottom: 3rem; }

h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 1px solid #ddd; padding-bottom: 0.3rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 0.8rem; }
ul, ol { margin-bottom: 0.8rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

/* === Home Page === */
.home-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-photo {
  width: 200px;
  border-radius: 4px;
}

.contact-box {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-box p { margin-bottom: 0.3rem; }

.name-note {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid #1a5276;
  background: #f5f8fa;
  font-size: 0.93rem;
  font-style: italic;
}

.interests-list {
  list-style: none;
  padding-left: 0;
}
.interests-list li {
  display: inline-block;
  background: #eef3f7;
  padding: 0.25rem 0.7rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  border-radius: 3px;
  font-size: 0.9rem;
}

.profile-links {
  margin-top: 1rem;
  font-size: 0.93rem;
}
.profile-links a { margin-right: 1.2rem; }

/* === Research Page === */
.paper {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.paper:last-child { border-bottom: none; }

.paper-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.paper-authors {
  font-size: 0.93rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.paper-venue {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin-bottom: 0.5rem;
}

.paper details {
  margin-top: 0.5rem;
}

.paper summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #1a5276;
  font-weight: 600;
}

.paper details[open] summary { margin-bottom: 0.5rem; }

.paper details p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #444;
}

.paper-links {
  margin-top: 0.6rem;
}

.paper-links a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border: 1px solid #1a5276;
  border-radius: 3px;
  margin-right: 0.5rem;
  color: #1a5276;
}
.paper-links a:hover {
  background: #1a5276;
  color: #fff;
  text-decoration: none;
}

/* === CV Page === */
.cv-download {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #1a5276;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.cv-download:hover { background: #154360; text-decoration: none; }

.cv-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.cv-date {
  font-size: 0.9rem;
  color: #666;
  padding-top: 0.1rem;
}

.cv-content { font-size: 0.95rem; }
.cv-content strong { font-weight: 600; }
.cv-content .cv-detail {
  font-size: 0.88rem;
  color: #555;
}

.cv-list {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 0.93rem;
}

.cv-list li { margin-bottom: 0.5rem; }

/* === Footer === */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-photo {
    margin: 0 auto;
  }
  .cv-entry {
    grid-template-columns: 1fr;
  }
  .cv-date { margin-bottom: 0; }
  .nav-inner { justify-content: center; text-align: center; }
  .nav-links { justify-content: center; }
}
