:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5f6b76;
  --line: #dfe4e8;
  --accent: #254f7a;
  --accent-soft: #edf3f8;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 228, 232, 0.9);
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(10px);
}
.nav-wrap { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--text); font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.nav a:hover, .brand:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding-top: 86px;
  padding-bottom: 78px;
  align-items: start;
}
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; }
.subtitle { max-width: 760px; margin: 28px 0 0; font-size: 1.22rem; line-height: 1.55; }
.hero-text { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); font-weight: 650; font-size: 0.94rem; text-decoration: none; transition: transform 120ms ease, border-color 120ms ease, background 120ms ease; }
.button:hover { border-color: #bec8d1; transform: translateY(-1px); }
.button.primary { border-color: var(--accent); color: white; background: var(--accent); }

.profile-card {
  width: 280px;
  justify-self: end;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(26, 42, 56, 0.055);
}
.profile-photo {
  position: relative;
  overflow: hidden;
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 12px;
  margin: 0 auto 18px;
  background: var(--accent-soft);
}
.profile-photo img {
  /* Show a 540px square around the upper body in the 1706px original. */
  position: absolute;
  width: 315.926%;
  max-width: none;
  height: auto;
  left: -150%;
  top: -29.63%;
}
.profile-meta { padding: 0 4px 2px; }
.meta-block + .meta-block { margin-top: 12px; }
.meta-label { color: var(--muted); font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; }
.meta-value { margin-top: 2px; font-size: 0.96rem; font-weight: 600; }

.section { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 42px; padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.section-heading { align-self: start; }
.section-heading span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: -0.02em; }
.section-body, .cards, .publication, .two-col { min-width: 0; }
.prose p { max-width: 760px; margin-top: 0; font-size: 1.06rem; }

.cards { display: grid; gap: 22px; }
.card { position: relative; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.current-research { border-top: 3px solid var(--accent); padding-top: 24px; }
.card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.tag { color: var(--accent); font-size: 0.79rem; font-weight: 800; letter-spacing: 0.035em; text-transform: uppercase; }
.date { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.card h3, .publication h3, .mini-heading { margin: 0; font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.018em; }
.card h3 { font-size: 1.29rem; }
.card p { color: var(--muted); margin: 12px 0 0; }
.card ul { margin: 16px 0 0; padding-left: 20px; }
.card li + li { margin-top: 8px; }
.card-actions { margin-top: 18px; }
.card-actions a { font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.card-actions a:hover { text-decoration: underline; }

.publication { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; }
.pub-year { color: var(--accent); font-size: 0.88rem; font-weight: 800; }
.publication h3 { font-size: 1.27rem; }
.publication h3 a { color: var(--text); text-decoration: none; }
.publication h3 a:hover { color: var(--accent); }
.authors, .venue, .pub-note { margin: 8px 0 0; }
.venue { color: var(--muted); font-style: italic; }
.pub-note { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mini-heading { font-size: 1.12rem; margin-bottom: 16px; }
.timeline-item { display: flex; justify-content: space-between; gap: 22px; padding-bottom: 18px; }
.timeline-date { color: var(--muted); text-align: right; white-space: nowrap; }
.timeline-date span { font-size: 0.86rem; }
.honor { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid #eceff1; }
.honor:first-of-type { padding-top: 0; }
.honor time { color: var(--muted); white-space: nowrap; }
.skills-heading { margin-top: 28px; }
.compact { margin: 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 820px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; }
  .profile-card { width: 260px; justify-self: start; }
  .profile-photo { width: 210px; height: 210px; }
  .section { grid-template-columns: 1fr; gap: 26px; }
  .section-heading { display: flex; align-items: baseline; gap: 10px; }
  .section-heading span { margin: 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 52px; padding-bottom: 58px; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .subtitle { font-size: 1.1rem; }
  .profile-card { width: 240px; padding: 16px; }
  .profile-photo { width: 190px; height: 190px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .card { padding: 22px 20px; }
  .current-research { padding-top: 20px; }
  .card-topline, .timeline-item, .honor, .footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .publication { grid-template-columns: 1fr; gap: 6px; }
  .timeline-date { text-align: left; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #111417; --surface: #171b1f; --text: #e9edf0; --muted: #a8b0b8; --line: #2a3137; --accent: #8ab4dd; --accent-soft: #1f2c38; }
  .site-header { background: rgba(17, 20, 23, 0.92); }
  .honor { border-bottom-color: #262d33; }
}
