:root {
  --max-width: 720px;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --bg: #ffffff;
  --chip-bg: #f3f4f6;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

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

a:hover { text-decoration: underline; }

/* Sticky navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-inner a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-inner a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}

/* About */
.about-header {
  display: flex;
  gap: 30px;
  align-items: center;
}

.about-header img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}

.bio { margin-top: 22px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: var(--chip-bg);
  color: #374151;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 13px;
}

.education {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.links {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

/* Entry cards (publications, projects) */
.entry {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
}

.entry:last-child { margin-bottom: 0; }

.entry .thumb {
  width: 168px;
  flex-shrink: 0;
}

.entry .thumb img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.entry-title {
  font-weight: 700;
  font-size: 16px;
}

.entry-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.entry-body {
  margin-top: 8px;
  font-size: 15px;
}

.entry-links {
  margin-top: 7px;
  font-size: 14px;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .about-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .links { justify-content: center; }
  .tags { justify-content: center; }
  .entry { flex-direction: column; }
  .entry .thumb { width: 100%; max-width: 260px; }
}
