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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
}

a {
  color: #1a3a5c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Layout === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 0 1.5rem;
}

/* === Navigation === */
nav {
  border-bottom: 1px solid #e8e8e8;
  padding: 1.25rem 0;
}

nav .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.nav-name {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-transform: uppercase;
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: #1a1a1a;
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a3a5c;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid #1a3a5c;
}

/* === Page Sections === */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
}

/* === Bio Section === */
.bio-grid {
  display: grid;
  grid-template-columns: 286px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  display: block;
}

.bio-name {
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 0.25rem;
}

.bio-contact {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.75rem;
}

.bio-affiliation {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.bio-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

/* === Research Interests === */
.research-text {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.research-topics {
  list-style: none;
}

.research-topics li {
  font-size: 0.95rem;
  padding: 0.2rem 0;
}

.research-topics li::before {
  content: "· ";
  color: #1a3a5c;
}

/* === Footer === */
footer {
  border-top: 1px solid #e8e8e8;
  padding: 1.75rem 0;
  margin-top: 1rem;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 1rem;
  color: #bbb;
  line-height: 1;
}

.footer-links a:hover {
  color: #1a3a5c;
  text-decoration: none;
}

/* === Page Header (non-home pages) === */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

/* === Publications === */
.pub-section-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin: 2.5rem 0 1rem;
}

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

.pub-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pub-list li:last-child {
  border-bottom: none;
}

/* === CV Page === */
.cv-download {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid #1a3a5c;
  color: #1a3a5c;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-family: Georgia, serif;
}

.cv-download:hover {
  background: #1a3a5c;
  color: #fff;
  text-decoration: none;
}

.cv-note {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: #666;
}

/* === Contact === */
.contact-block {
  margin-bottom: 2rem;
}

.contact-block p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border: 1px solid #e8e8e8;
  color: #1a3a5c;
}

.social-links a:hover {
  border-color: #1a3a5c;
  text-decoration: none;
}

/* === Book Placeholder === */
.book-placeholder {
  padding: 4rem 0;
  color: #888;
}

.book-placeholder p {
  font-size: 1.1rem;
}

/* === Responsive === */
@media (max-width: 640px) {
  html { font-size: 16px; }

  nav .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .bio-photo-col {
    text-align: center;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 234px;
    display: block;
    margin: 0 auto;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}
