:root {
  --ink: #18202a;
  --muted: #65707c;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e7e3dc;
  --accent: #173d67;
  --accent-soft: #eaf0f6;
  --max: 1050px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .76; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.paper-title-link { color: inherit; text-decoration: none; }
.paper-title-link:hover { color: var(--accent); opacity: 1; }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 25px; align-items: center; }
nav a { color: var(--muted); font-size: .93rem; font-weight: 600; text-decoration: none; }
nav a.active, nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 78px;
}
.portrait-wrap { text-align: center; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(28, 34, 41, .10);
}
.portrait-note { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); line-height: 1.18; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.35rem, 4.5vw, 3.65rem); letter-spacing: -.035em; }
.position { margin: 0 0 24px; color: var(--muted); font-size: 1.12rem; }
.position a { color: inherit; text-decoration: none; }
.intro { max-width: 690px; margin: 0 0 28px; font-size: 1.18rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-block; padding: 9px 15px; border: 1px solid #cfd5db; border-radius: 6px; color: var(--ink); background: var(--surface); font-size: .9rem; font-weight: 700; text-decoration: none; }
.button.primary { color: white; border-color: var(--accent); background: var(--accent); }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 52px 0 62px; border-top: 1px solid var(--line); }
.section-grid h2, .highlight h2, .course-card h2 { margin: 0 0 14px; font-size: 1.6rem; }
.section-grid p { margin: 0 0 10px; color: #3c4651; }
.text-link { font-weight: 650; }

.highlight { padding: 70px 0 88px; border-top: 1px solid var(--line); }
.highlight > h2 { margin-bottom: 28px; font-size: 2.25rem; }
.paper-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paper-card, .course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.paper-card h3 { margin: 4px 0 12px; font-size: 1.35rem; }
.paper-card p { color: #4b5662; }
.paper-type { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.paper-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; }
.paper-links a { font-size: .9rem; font-weight: 750; text-decoration: none; }
.more-link { margin-top: 28px; font-weight: 750; }

.page { padding-top: 74px; padding-bottom: 90px; }
.page-heading { max-width: 760px; margin-bottom: 64px; }
.page-heading h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -.03em; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.13rem; }

/* Research page: two-column layout with section labels on the left. */
.research-page {
  padding-top: 66px;
  width: min(1220px, calc(100% - 40px));
}
.research-section {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  column-gap: 44px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.research-section:first-child {
  padding-top: 0;
  border-top: none;
}
.research-section > h2 {
  grid-column: 1;
  margin: 3px 0 0;
  font-size: 1.48rem;
  white-space: nowrap;
}
.paper-list {
  grid-column: 2;
  min-width: 0;
}
.paper {
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line);
}
.paper:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.paper h3 {
  margin: 0 0 10px;
  font-size: clamp(1.18rem, 1.45vw, 1.34rem);
  white-space: nowrap;
}
.paper p { margin: 0 0 10px; color: #434e59; }
.paper p:last-child { margin-bottom: 0; }
.paper-meta { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }

/* Teaching page. */
.teaching-heading { margin-bottom: 46px; }
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  min-height: 190px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.course-card h2 {
  margin: 0 0 12px;
  min-height: 2.5em;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.course-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}
.course-meta span {
  padding: 0 5px;
  color: #a2a8ae;
}
.course-award {
  display: inline-block;
  width: max-content;
  max-width: none;
  margin: 24px 0 0;
  padding: 7px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
  font-size: .80rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.small-note { margin-top: 28px; color: var(--muted); font-size: .9rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner a { color: inherit; }

@media (max-width: 900px) {
  .teaching-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 0; }
  .course-card h2 { min-height: 0; }
  .course-award { width: auto; max-width: 100%; white-space: normal; }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-wrap { min-height: 64px; align-items: flex-start; padding-top: 18px; padding-bottom: 15px; flex-direction: column; gap: 10px; }
  nav { gap: 17px; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; }
  .portrait-wrap { width: min(220px, 70vw); text-align: left; }
  .hero h1 { font-size: 2.75rem; }
  .section-grid, .paper-preview-grid { grid-template-columns: 1fr; gap: 28px; }
  .research-page {
    padding-top: 52px;
    width: min(var(--max), calc(100% - 28px));
  }
  .research-section {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 42px 0;
  }
  .research-section:first-child { padding-top: 0; }
  .research-section > h2 {
    grid-column: 1;
    margin: 0;
    font-size: 1.45rem;
    white-space: normal;
  }
  .paper-list { grid-column: 1; }
  .paper h3 {
    font-size: 1.28rem;
    white-space: normal;
  }
  .footer-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; padding: 24px 0; }
}
