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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: #555; }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ───────────────────────────────────────────── */
header {
  padding: 16px 0 12px;
  border-bottom: 1px solid #000;
  margin-bottom: 36px;
}

nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
}

nav .site-name {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  margin-right: 20px;
  color: #000;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li::before {
  content: '|';
  color: #000;
  padding: 0 6px;
  font-family: Georgia, serif;
  font-size: 14px;
}

nav ul li:first-child::before { content: none; }

nav ul li a {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

nav ul li a:hover { text-decoration: underline; }
nav ul li a.active { font-style: italic; }

/* ─── Main content ─────────────────────────────────────────── */
main {
  padding-bottom: 80px;
}

/* ─── Section headers ──────────────────────────────────────── */
.section-title {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  color: #000;
  margin-bottom: 6px;
  margin-top: 28px;
}

.section-rule {
  border: none;
  border-top: 1px solid #000;
  margin-bottom: 18px;
}

/* ─── Home: intro block ────────────────────────────────────── */
.intro::after { content: ''; display: table; clear: both; }

.intro-photo {
  float: right;
  width: 155px;
  margin: 6px 0 20px 36px;
  display: block;
}

.intro h1 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 2px;
}

.intro .subtitle {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #000;
  margin-bottom: 18px;
  font-style: italic;
}

.intro p {
  font-size: 15px;
  margin-bottom: 14px;
  text-align: justify;
}

/* ─── Contact links (inline bracket style) ─────────────────── */
.contact-links {
  font-size: 14px;
  margin-top: 18px;
  line-height: 2;
}

.contact-links a {
  text-decoration: none;
  color: #000;
}
.contact-links a:hover { text-decoration: underline; }

/* ─── News ─────────────────────────────────────────────────── */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 15px;
  align-items: baseline;
}

.news-list .news-date {
  font-size: 14px;
  color: #000;
  white-space: nowrap;
  min-width: 36px;
  font-style: italic;
}

/* ─── Research page ────────────────────────────────────────── */
.paper {
  margin-bottom: 22px;
}

.paper-citation {
  font-size: 15px;
  margin-bottom: 6px;
}

.paper-citation a {
  text-decoration: none;
  color: #000;
}
.paper-citation a:hover { text-decoration: underline; }

.paper-status {
  font-size: 14px;
  font-style: italic;
  margin-bottom: 6px;
  color: #000;
}

.paper-abstract {
  font-size: 14px;
  text-align: justify;
  margin-bottom: 4px;
  color: #333;
}

/* ─── Teaching ─────────────────────────────────────────────── */
.course {
  margin-bottom: 14px;
  font-size: 15px;
}

.course-meta {
  font-size: 14px;
  font-style: italic;
}

/* ─── Contact page ─────────────────────────────────────────── */
.contact-block {
  margin-bottom: 28px;
}

.contact-block h3 {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
}

.contact-block p,
.contact-block address {
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

/* ─── References ───────────────────────────────────────────── */
.ref-list {
  list-style: none;
}

.ref-list li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid #000;
  padding: 12px 0;
  margin-top: 60px;
  font-size: 13px;
  color: #555;
  font-family: Georgia, serif;
  font-style: italic;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 560px) {
  .intro-photo { width: 110px; margin-left: 20px; }
  nav { gap: 4px; }
}
