:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --text: #171a1f;
  --muted: #646b75;
  --line: #dfe3e8;
  --accent: #1f5f99;
  --accent-soft: #e8f0f8;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(23, 26, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(31, 95, 153, 0.3); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-rule { border-top: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 249, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 227, 232, 0.8);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }

.hero { padding-top: 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 72px; align-items: center; }
.eyebrow, .section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.16; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(48px, 7vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: 18px; }
.hero-title { margin: 22px 0 0; font-size: 21px; font-weight: 600; }
.hero-bio { max-width: 730px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button, .chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover, .chip-link:hover { transform: translateY(-1px); border-color: #b9c0c8; }
.button.primary { background: var(--text); border-color: var(--text); color: white; }

.portrait-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait-card img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; background: var(--surface-soft); }
.portrait-meta { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--muted); font-size: 12px; }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.prose { color: var(--muted); font-size: 17px; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-note { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.research-card {
  padding: 24px;
  min-height: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.card-meta { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.research-card h3 { margin-top: 14px; }
.research-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.tag { padding: 4px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }

.publication-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.publication {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pub-year { color: var(--muted); font-size: 13px; font-weight: 600; }
.pub-title { font-weight: 700; line-height: 1.4; }
.pub-authors, .pub-venue { color: var(--muted); font-size: 13px; margin-top: 5px; }
.pub-link { color: var(--accent); font-size: 13px; font-weight: 600; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project-visual {
  aspect-ratio: 16 / 9;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 20% 20%, rgba(31,95,153,.22), transparent 34%),
    linear-gradient(135deg, #e8edf2, #f8fafc 58%, #dfe7ee);
  color: #4f6070;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
}
.project-body { padding: 22px; }
.project-body p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.project-footer { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.project-status { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-time { color: var(--muted); font-size: 13px; }
.timeline-place { margin-top: 4px; color: var(--muted); font-size: 14px; }
.timeline-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }

.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-footer { padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .two-col, .contact-panel { grid-template-columns: 1fr; gap: 42px; }
  .portrait-card { max-width: 440px; }
  .card-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 64px 0; }
  .hero { padding-top: 74px; }
  .publication { grid-template-columns: 48px minmax(0, 1fr); }
  .pub-link { grid-column: 2; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-wrap { flex-direction: column; }
}
