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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

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

img { max-width: 100%; height: auto; }

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

/* Site Header / Navigation */
.site-header {
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
}

.site-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111;
  white-space: nowrap;
}

.site-title:hover { text-decoration: none; color: #333; }

.nav-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.92rem;
  color: #555;
}

.nav-links a:hover { color: #111; text-decoration: none; }
.nav-links a.active { color: #111; font-weight: 600; }

/* Main Content */
.site-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Footer */
.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #666;
}

/* Profile Box (homepage) */
.profile-box {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

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

.profile-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.profile-affiliation {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.profile-links {
  margin-bottom: 0.3rem;
}

.profile-links a { white-space: nowrap; }

/* Homepage meta list */
.profile-meta {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
  border-top: 1px solid #eee;
  padding-top: 0.9rem;
}

.profile-meta li {
  margin: 0.35rem 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f2f2f2;
}

.profile-meta li:last-child {
  border-bottom: none;
}

/* Optional: keep the label visually consistent */
.profile-meta strong {
  display: inline-block;
  min-width: 165px; /* tweak to taste */
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 1.8rem 0 0.8rem;
}

h2:first-child { margin-top: 0; }

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.5rem;
}

p { margin-bottom: 0.8rem; }

/* Lists */
ol, ul { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

/* Paper list sub-items (details below each paper) */
ol li ul {
  list-style: none;
  padding-left: 0.2rem;
  margin-top: 0.15rem;
  margin-bottom: 0;
}

ol li ul li {
  margin-bottom: 0.1rem;
  font-size: 0.92em;
}

/* Bold journal names */
strong { font-weight: 600; }
em { font-style: italic; }

/* Responsive */
@media (max-width: 600px) {
  .profile-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .profile-photo img { width: 160px; }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links { gap: 0.8rem; }
}
