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

:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --section-gap: 5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

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

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ── Header ── */
header {
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-links {
    justify-content: center;
  }
}

h1 {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.title {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.tagline {
  font-size: 1.05rem;
  color: #374151;
  max-width: 580px;
  margin-bottom: 2rem;
}

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

.header-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: background 0.15s, color 0.15s;
}

.header-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Main ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
  color: #374151;
}

p:last-child {
  margin-bottom: 0;
}

/* ── Research interests ── */
.interest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.interest-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.interest-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.interest-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Publications ── */
.paper {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
}

.paper-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.paper-authors {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.paper-venue {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.paper-abstract {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.paper-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.paper-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Contact ── */
.contact-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
}

.contact-table td {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.contact-table td:first-child {
  color: var(--muted);
  width: 140px;
  font-weight: 500;
}

.contact-table tr:last-child td {
  border-bottom: none;
}

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

.contact-table a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  nav ul { gap: 1rem; }
  .nav-name { display: none; }
}
