:root {
  --purple: #57068c;
  --purple-dark: #43056c;
  --text: #222;
  --muted: #585563;
  --border: #e5e7eb;
  --panel: #f2f2f4;
  --header-height: 64px;
  --footer-height: 66px;
  --page-width: 1160px;
  --bar-padding: 20px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  padding: var(--header-height) 0 calc(var(--footer-height) + 24px);
  background: #fff;
  color: var(--text);
  font: 400 15px/1.65 Raleway, "Segoe UI", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid #a875cc;
  outline-offset: 4px;
  border-radius: 3px;
}
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }
h1, h2, h3 { color: #111; line-height: 1.3; }
sup { font-size: .72em; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 20;
  padding: 8px 14px;
  transform: translateY(-180%);
  background: #fff;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  background: var(--purple);
  box-shadow: 0 2px 10px #00000012;
}
.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--page-width);
  height: 100%;
  margin: auto;
  padding: 0 var(--bar-padding);
  overflow-x: auto;
}
.navigation a, .footer-inner {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
}
.navigation a {
  flex: 0 0 auto;
  padding: 10px 6px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 5px;
}
.navigation a:hover { background: var(--purple-dark); }
.navigation a:first-child { padding-left: 0; }
.navigation a:last-child { padding-right: 0; }
.page-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: var(--page-width);
  margin: 24px auto 0;
  padding: 0 20px;
}
.profile-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 48px);
  overflow-y: auto;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 18px #0000000a;
}
.portrait {
  display: block;
  width: 100%;
  height: 180px;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 9px;
}
.profile-name { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.profile-title { color: var(--muted); font-size: 13px; }
.profile-details { margin: 20px 0 0; }
.profile-details dt {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.profile-details dd { margin: 5px 0 0; }
.profile-details a { text-decoration: none; overflow-wrap: anywhere; }
.profile-details a:hover { text-decoration: underline; }

main { min-width: 0; }
.content-section { padding: 24px 0; border-top: 1px solid var(--border); }
.content-section h2 { margin: 0 0 12px; font-size: 21px; font-weight: 700; }
.content-section > :last-child { margin-bottom: 0; }
.publication-filters {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.publication-filters button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid #b5adbd;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}
.publication-filters button[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.publication-filters button:hover, .button:hover { border-color: var(--purple); }
.paper { margin: 0 0 26px; }
.paper:last-child { margin-bottom: 0; }
.paper h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.paper p { margin: 0 0 4px; }
.paper .venue { font-style: italic; }
.paper-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

.experience-list { margin: 24px 0 0 6px; padding: 0; list-style: none; }
.experience {
  position: relative;
  padding: 0 0 24px 26px;
  border-left: 2px solid #d6c6e0;
}
.experience::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--purple);
  border-radius: 50%;
}
.experience:last-child { padding-bottom: 0; }
.experience-time { color: var(--muted); font-size: 12px; }
.experience h3 { margin: 3px 0; font-size: 15px; }
.experience p { margin: 0; }

.site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  min-height: var(--footer-height);
  background: var(--purple);
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--page-width);
  min-height: var(--footer-height);
  margin: auto;
  padding: 12px var(--bar-padding);
}
.site-footer a { color: #fff; }

@media (max-width: 1023px) {
  .page-shell { gap: 28px; }
}
@media (max-width: 767px) {
  :root { --header-height: 58px; --footer-height: 96px; }
  .navigation { justify-content: flex-start; gap: 14px; padding: 0 12px; }
  .navigation a { font-size: 12px; letter-spacing: .04em; }
  .page-shell { display: block; margin-top: 18px; padding: 0 18px; }
  .profile-card { position: static; max-height: none; margin-bottom: 24px; }
  .profile-details { display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; }
  .profile-details dt, .profile-details dd { margin: 0; }
  .profile-details dd { grid-column: 2; }
  .content-section { padding: 22px 0; }
  .content-section h2 { font-size: 20px; }
  .publication-filters button, .button { min-height: 44px; }
  .footer-inner { justify-content: center; gap: 4px 16px; text-align: center; }
}
