:root {
  --purple: #4b2e83;
  --purple-dark: #2d1957;
  --gold: #b7a57a;
  --ink: #1f2328;
  --text: #333842;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f7f5fb;
  --background: #ffffff;
  --font: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--purple);
  text-decoration-color: rgba(75, 46, 131, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--purple-dark);
  text-decoration-color: currentColor;
}

.site-header,
.page,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: #756f82;
  font-size: 0.98rem;
  font-weight: 450;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--purple);
}

.page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 38px;
}

.profile-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 20px;
  align-self: start;
}

.profile-card {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.intro {
  max-width: none;
  padding-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.section-spacer {
  display: block;
}

h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.lead {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.48;
}

.intro p:last-child,
.section-content p:last-child {
  margin-bottom: 0;
}

.portrait {
  display: block;
  width: 248px;
  height: 248px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 4px;
}

.role {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.link-list {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.section {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

#research {
  border-bottom: 0;
}

.section-content {
  max-width: none;
}

.section h2 {
  margin-bottom: 14px;
}

.main-column {
  min-width: 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.topic-list article {
  padding-top: 0;
}

.topic-list p,
.paper p,
.side-list p {
  color: var(--muted);
}

.callout-section {
  background: var(--soft);
  padding: 22px 24px;
}

.callout-section p {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
}

.callout-section p:last-child {
  margin-bottom: 0;
}

.publications-section .section-content {
  max-width: none;
}

.publications-section {
  padding-top: 28px;
}

.publications-section > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-index label {
  display: block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
}

.tab-index label:hover {
  color: var(--purple);
}

#tab-publications:checked ~ .tab-index label[for="tab-publications"],
#tab-awards:checked ~ .tab-index label[for="tab-awards"] {
  border-color: var(--purple);
  background: var(--soft);
  color: var(--purple-dark);
}

.tab-panel {
  display: none;
}

#tab-publications:checked ~ .tab-panels .publications-panel,
#tab-awards:checked ~ .tab-panels .awards-panel {
  display: block;
}

.tab-panels {
  min-width: 0;
}

.section-note {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.publication-scroll,
.award-scroll {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 10px;
}

.publication-scroll::-webkit-scrollbar,
.award-scroll::-webkit-scrollbar {
  width: 8px;
}

.publication-scroll::-webkit-scrollbar-thumb,
.award-scroll::-webkit-scrollbar-thumb {
  background: #d8dbe2;
  border-radius: 999px;
}

.paper {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 52px;
  gap: 16px;
  padding: 12px 0;
}

.paper:last-child {
  border-bottom: 0;
}

.paper-thumb {
  display: block;
  width: 170px;
  height: 108px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.paper h3 {
  margin-bottom: 4px;
}

.paper-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #1f1a10;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: 0.08em;
}

.paper p {
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.paper-year {
  margin: 0;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: right;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 5px;
  font-size: 0.86rem;
  font-weight: 600;
}

.paper-actions a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  text-decoration-color: transparent;
}

.paper-actions details {
  position: relative;
}

.paper-actions summary {
  color: var(--purple);
  cursor: pointer;
  list-style: none;
}

.paper-actions summary::-webkit-details-marker {
  display: none;
}

.paper-actions code {
  display: block;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  white-space: normal;
}

.award {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.award:last-child {
  border-bottom: 0;
}

.award-year {
  margin: 0;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 650;
}

.award h3 {
  margin-bottom: 4px;
}

.award p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.award p.award-year {
  color: var(--purple);
}

.side-section {
  padding: 14px 14px 16px;
  background: var(--soft);
  border-radius: 4px;
}

.side-section h2 {
  margin-bottom: 7px;
}

.side-list {
  display: grid;
  gap: 0;
  max-height: 360px;
  margin: 0;
  padding: 0;
  padding-right: 8px;
  overflow-y: auto;
  list-style: none;
}

.side-list li {
  padding: 0 0 7px;
  margin-bottom: 7px;
}

.side-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.side-list time {
  display: block;
  margin-bottom: 2px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 650;
}

.side-list p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
}

.side-list a {
  font-weight: 500;
}

.side-list::-webkit-scrollbar {
  width: 7px;
}

.side-list::-webkit-scrollbar-thumb {
  background: #d8dbe2;
  border-radius: 999px;
}

.site-footer {
  text-align: center;
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 30px;
  }

  .profile-column {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .portrait {
    width: 128px;
    height: 128px;
  }

  .link-list {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .callout-section {
    background: var(--soft);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .paper {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .paper-thumb {
    width: 92px;
    height: 68px;
  }

  .paper-year {
    grid-column: 1 / -1;
    text-align: left;
  }

  .tab-index label {
    flex: 1 1 180px;
  }

  #tab-publications:checked ~ .tab-index label[for="tab-publications"],
  #tab-awards:checked ~ .tab-index label[for="tab-awards"] {
    border-color: var(--purple);
    background: var(--soft);
  }
}

@media (max-width: 520px) {
  .site-header,
  .page,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  body {
    font-size: 15.8px;
  }

  .lead {
    font-size: 1.08rem;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .award {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .paper-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 315;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 4px;
  }
}
