:root {
  --text: #222;
  --text-secondary: #555;
  --accent: #1a0dab;
  --bg: #fff;
  --border: #ddd;
  --max-width: 720px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Navigation */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

nav .site-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

nav .site-name:hover {
  text-decoration: none;
}

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

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* Hero / intro section */
.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.intro .photo {
  width: 160px;
  min-width: 160px;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;
}

.intro .bio h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.intro .bio .affiliation {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.intro .bio p {
  margin-bottom: 0.5rem;
}

/* Social / contact links */
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-links a {
  color: var(--text-secondary);
}

.contact-links a:hover {
  color: var(--accent);
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

/* Timeline items (education, experience) */
.timeline-item {
  margin-bottom: 1rem;
}

.timeline-item .period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-item .title {
  font-weight: 600;
}

.timeline-item .detail {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Publication list */
.publication {
  margin-bottom: 1.25rem;
}

.publication .pub-title {
  font-weight: 600;
}

.publication .pub-authors {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.publication .pub-venue {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
}

.publication .pub-links {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.publication .pub-links a {
  margin-right: 0.75rem;
}

/* Teaching table */
.teaching-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.teaching-table th,
.teaching-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.teaching-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro .photo {
    width: 140px;
    height: 175px;
  }

  .contact-links {
    justify-content: center;
  }

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