:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #e3e6e8;
  --accent: #3f5f78;
  --accent-dark: #29465c;
  --soft: #f7f8f9;
  --white: #ffffff;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a:hover { text-decoration: underline; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.narrow { max-width: 840px; }

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

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

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

.site-title:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  padding: 25px 0 21px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 55px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 62px;
}

.portrait-column { text-align: center; }

.portrait-photo {
  display: block;
  width: 190px !important;
  height: 250px !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
}

.portrait-placeholder {
  width: 230px;
  height: 280px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #f0f2f3, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  color: #a4acb2;
}

.photo-note {
  margin: 10px 0 0;
  color: #8a9095;
  font-size: 0.77rem;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

h3 { font-size: 1.15rem; }

.affiliation {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 1.25rem;
}

.market-note {
  display: inline-block;
  margin: 3px 0 24px;
  padding: 7px 11px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.content-section {
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
}

.content-section p { margin: 0 0 1em; }

.highlights { padding-bottom: 76px; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.interest-grid > div {
  padding: 22px 24px;
  background: var(--soft);
  border-top: 2px solid var(--accent);
}

.interest-grid h3 { margin: 0 0 8px; }
.interest-grid p { margin: 0; color: var(--muted); }

.page-content {
  min-height: calc(100vh - 160px);
  padding-top: 70px;
  padding-bottom: 80px;
}

.page-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

.page-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 18px;
}

.page-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.research-list {
  max-width: 880px;
}

.paper-card {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.paper-card:last-child { border-bottom: 1px solid var(--line); }

.paper-card h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.paper-card p { margin: 0 0 10px; }

.paper-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paper-links {
  font-size: 0.92rem;
  font-weight: 600;
}

.paper-links span { color: #a0a5a9; margin: 0 5px; }

.timeline {
  max-width: 820px;
}

.timeline article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline article:last-child { border-bottom: 1px solid var(--line); }
.timeline h2 { margin-bottom: 8px; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--muted); }

.cv-panel {
  max-width: 760px;
  padding: 34px;
  background: var(--soft);
  border-top: 3px solid var(--accent);
}

.cv-panel h2 { margin-bottom: 4px; }
.cv-panel p { margin-top: 6px; }
.cv-status { color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: var(--white);
  font-size: 0.92rem;
}

.button:hover { text-decoration: none; }
.button.disabled { opacity: 0.55; cursor: default; }

.no-side-padding { margin: 50px 0 0; }

.edit-note {
  max-width: 820px;
  margin-top: 30px;
  padding: 12px 14px;
  background: #fffbea;
  border-left: 3px solid #c5aa45;
  color: #5f5840;
  font-size: 0.9rem;
}

code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef0f1;
  font-size: 0.88em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

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

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-wrap {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .site-nav a { padding: 7px 0 11px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 46px;
  }

  .portrait-column { text-align: left; }
  .portrait-photo {
    margin-left: 0;
    width: 140px;
    height: 178px;
  }
  .portrait-placeholder { margin-left: 0; width: 190px; height: 230px; }
  .photo-note { max-width: 190px; text-align: center; }

  .interest-grid { grid-template-columns: 1fr; }

  .footer-inner {
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}
