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

body {
  font-family: 'Georgia', serif;
  font-size: 15px;
  line-height: 1.65;
  color: #222;
  background: #fff;
}

/* ── Layout ───────────────────────────────── */
.site-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ── Header ───────────────────────────────── */
header {
  padding: 36px 0 0;
  border-bottom: 2px solid #222;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

header h1 {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  white-space: nowrap;
}

/* ── Nav ──────────────────────────────────── */
nav {
  display: flex;
  gap: 0;
  margin-bottom: -2px;
  flex-shrink: 0;
}

nav a {
  display: inline-block;
  padding: 8px 18px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: #222;
  border-bottom-color: #aaa;
}

nav a.active {
  color: #222;
  border-bottom-color: transparent;
}

/* ── Main content ─────────────────────────── */
main {
  padding-top: 8px;
}

/* ── Home page ────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  margin-top: 16px;
}

.home-photo img {
  width: 270px;
  height: auto;
  border: 1px solid #ddd;
  display: block;
}

.home-bio h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 2px;
}

.home-bio p {
  margin-bottom: 12px;
  color: #333;
}

.contact-list {
  margin-top: 18px;
  list-style: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.87rem;
}

.contact-list li {
  margin-bottom: 5px;
  display: flex;
  gap: 8px;
}

.contact-list .label {
  color: #888;
  min-width: 80px;
}

.contact-list a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

.contact-list a:hover {
  border-bottom-color: #222;
}

/* ── CV page ──────────────────────────────── */
.cv-section {
  margin-bottom: 28px;
}

.cv-section h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.cv-table {
  width: 100%;
  border-collapse: collapse;
}

.cv-table td {
  padding: 3px 0;
  vertical-align: top;
}

.cv-table .year {
  color: #666;
  white-space: nowrap;
  padding-right: 24px;
  font-size: 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-width: 110px;
}

.cv-table .detail {
  color: #222;
}

.cv-table .detail em {
  color: #555;
  font-style: italic;
}

.cv-pub {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.cv-text {
  font-size: 0.95rem;
  color: #333;
}

.cv-download {
  margin-bottom: 28px;
}

.cv-download a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.cv-download a:hover {
  background: #f5f5f5;
}

/* ── Research page ────────────────────────── */
.research-intro {
  margin-bottom: 28px;
}

.research-interests {
  font-size: 1rem;
  color: #333;
  margin-bottom: 28px;
}

.research-interests strong {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  display: block;
  margin-bottom: 6px;
}

.research-section {
  margin-bottom: 32px;
}

.research-section h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.paper {
  margin-bottom: 18px;
}

.paper-title {
  font-weight: bold;
  font-size: 0.97rem;
  margin-bottom: 2px;
}

.paper-authors {
  font-size: 0.88rem;
  color: #555;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 2px;
}

.paper-venue {
  font-size: 0.88rem;
  color: #777;
  font-style: italic;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Paper buttons & abstract toggle ─────── */
.paper-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-abstract,
.btn-fulltext {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-abstract:hover,
.btn-fulltext:hover {
  background: #e4e4e4;
  color: #222;
}

.btn-abstract.active {
  background: #e0e0e0;
  color: #222;
}

.fulltext-request {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #999;
}

.paper-abstract {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  border-left: 3px solid #ddd;
  padding-left: 12px;
}

.paper-abstract.open {
  display: block;
}

.paper-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

.paper-title a:hover {
  border-bottom-color: #222;
}

/* ── Footer ───────────────────────────────── */
footer {
  margin-top: 60px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 560px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-photo img {
    width: 160px;
    height: 192px;
  }
  header h1 {
    font-size: 1.5rem;
  }
}
