:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #5f5f5f;
  --line: #d8d3c8;
  --soft: #f3f0e8;
  --accent: #1f4e79;
  --accent-dark: #173a59;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

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

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 20px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.16;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.summary {
  max-width: 790px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-weight: 700;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button:hover { text-decoration: none; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); color: white; }

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  /* border: 1px solid var(--line); */
  display: block;
  background: white;
}

.profile-details { margin-top: 16px; font-size: 0.96rem; }
.profile-details h2 { font-size: 1.35rem; margin: 0 0 6px; }
.profile-details p { margin: 6px 0; color: var(--muted); }

.section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.section-title { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: 1.58rem; }
.section-title p { margin: 0; color: var(--muted); max-width: 690px; }

.entry-list { display: grid; gap: 18px; }

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 0;
}

.keyword-list span {
  display: inline-flex;
  align-items: center;
  /* border: 1px solid var(--line); */
  background: #e5e5e5;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
}

.project-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.project-grid h3,
.entry h3 { margin: 0 0 7px; font-size: 1.12rem; }
.project-grid p,
.entry p { margin: 0; color: var(--muted); }

.pub-list {
  list-style-position: outside;
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 16px;
}
.pub-list li {
  padding: 0 0 14px 0;
  /* border-bottom: 1px solid var(--line); */
}
.pub-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.pub-title a { color: var(--ink); }
.pub-title a:hover { color: var(--accent); }
.pub-authors, .pub-venue { color: var(--muted); margin-top: 5px; }
.pub-venue { font-style: italic; }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
  padding-bottom: 14px;
  /* border-bottom: 1px solid var(--line); */
}
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.date { color: var(--accent); font-weight: 700; text-align: right; white-space: nowrap; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.project-card li {
  margin: 6px 0;
  color: var(--ink);
}
.project-affiliation {
  margin: 4px 0 8px;
  color: var(--muted);
  font-style: italic;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.contact-section h2 { margin: 0 0 12px; font-size: 1.58rem; }
.contact-section p { margin: 0; color: var(--muted); }
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.contact-box a { font-weight: 700; }

.site-footer { padding: 26px 0 40px; color: var(--muted); text-align: center; font-size: 0.92rem; }

@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 2px; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .profile-card { max-width: 340px; }
  .section-title, .contact-section { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .date { text-align: left; }
  .project-grid { grid-template-columns: 1fr; }
}
