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

:root {
  --bg: #F5F3F0;
  --text: #0a0a0a;
  --text-secondary: #6b6860;
  --text-body: #374151;
  --border: #e2ddd8;
  --accent: #4f46e5;
  --accent-bg: #eef2ff;
  --max-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ──────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── Main ─────────────────────────────────────────── */

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

/* ── Sections ─────────────────────────────────────── */

section {
  padding-top: 64px;
  padding-bottom: 64px;
}

section + section {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

#profile {
  padding-bottom: 0;
}

h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Profile ──────────────────────────────────────── */

.profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}

.profile-photo {
  width: 200px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: block;
}

.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}

.profile-bio a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.profile-bio a:hover {
  text-decoration-color: var(--accent);
}

.profile-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.profile-link:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

/* ── Research ─────────────────────────────────────── */

#research p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

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

/* ── Ongoing Work ─────────────────────────────────── */

.ongoing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ongoing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.ongoing-item:first-child {
  padding-top: 0;
}

.ongoing-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ongoing-title {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.review {
  color: #b45309;
  background: #fffbeb;
}

.status-badge.ongoing {
  color: var(--text-secondary);
  background: #f3f4f6;
}

/* ── Publications ─────────────────────────────────── */

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  padding-top: 0;
}

.pub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-meta {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.venue {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.pub-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
}

.pub-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pub-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 5px;
  transition: color 0.15s, border-color 0.15s;
}

.pub-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.award-badge {
  font-size: 11px;
  font-weight: 500;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.link-soon {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

/* ── News ─────────────────────────────────────────── */

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.news-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.news-list li:first-child {
  padding-top: 0;
}

.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news-text {
  font-size: 15px;
  color: var(--text-body);
}

/* ── Education ────────────────────────────────────── */

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:first-child {
  padding-top: 0;
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.edu-school {
  font-size: 14px;
  color: var(--text-secondary);
}

.cum-laude {
  color: var(--text-secondary);
  font-style: italic;
}

.edu-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2px;
}

.edu-year {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────── */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 12px;
  color: var(--text-secondary);
}

footer p + p {
  margin-top: 4px;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 580px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .profile-grid {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .profile-photo {
    width: 120px;
    height: auto;
    border-radius: 8px;
  }

  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  section + section {
    padding-top: 44px;
  }

  .edu-item {
    flex-direction: column;
    gap: 4px;
  }

  .edu-year {
    color: var(--text-secondary);
    font-size: 12px;
  }
}
