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

:root {
  --bg: #fafafa;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --accent: #b07052;
  --accent-hover: #965d44;
  --nav-bg: #fff;
  --border: #e8e4e0;
  --max-width: 780px;
}

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

body {
  font-family: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .site-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav .site-name:hover { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 450;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--accent); }

/* ── Main content ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Typography ── */
h1 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1rem; }

a { color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ── Home page ── */
.home-header {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.home-header .photo {
  width: 180px;
  min-width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.intro { margin-bottom: 2rem; }

.intro .subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.intro p { font-size: 1rem; }

/* ── Research & Teaching cards ── */
.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  background: #fff;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.card .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── Publication list ── */
.pub-list { list-style: none; }

.pub-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.pub-list .pub-title { font-weight: 600; }
a.pub-title { text-decoration: none; }
a.pub-title:hover { text-decoration: underline; }
.pub-list .pub-venue { color: var(--text-light); font-style: italic; }

/* ── Contact ── */
.contact-info {
  font-size: 1rem;
  line-height: 2;
}

.contact-info a { font-weight: 500; }

/* ── CV ── */
.cv-section { margin-bottom: 2rem; }

.cv-entry {
  padding: 0.6rem 0;
  display: flex;
  gap: 1.5rem;
}

.cv-year {
  min-width: 100px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 450;
}

.cv-detail { flex: 1; }
.cv-detail strong { font-weight: 600; }
.cv-detail .cv-sub {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Footer ── */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  nav .nav-inner { flex-direction: column; gap: 0.8rem; }
  nav ul { gap: 1.2rem; }
  .home-header { flex-direction: column; gap: 1.5rem; }
  .home-header .photo { width: 140px; min-width: 140px; height: 170px; }
  .cv-entry { flex-direction: column; gap: 0.2rem; }
  .cv-year { min-width: auto; }
}
