:root {
  --text: #242424;
  --muted: #686868;
  --link: #205f86;
  --link-hover: #123f5c;
  --border: #dedede;
  --border-strong: #c9c9c9;
  --sidebar-bg: #f7f7f7;
  --award-bg: #f5f8fa;
  --header-bg: rgba(255, 255, 255, 0.97);
  --wrapper: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 3px solid #1e4f70;
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.15rem, 4vw, 2.75rem);
  font-weight: 680;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 1.35rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid var(--border-strong);
  font-size: 1.45rem;
  font-weight: 660;
  letter-spacing: -0.012em;
}

h3 {
  margin-bottom: 0.38rem;
  font-size: 1.04rem;
  font-weight: 650;
}

p {
  margin-bottom: 1rem;
}

.wrapper {
  width: min(calc(100% - 40px), var(--wrapper));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 0.55rem 0.8rem;
  color: #ffffff;
  background: #222222;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-top: 3px solid #1e4f70;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-name {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  color: #3c3c3c;
  font-size: 0.91rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-areas:
    "intro sidebar"
    "content sidebar";
  gap: 0 58px;
  align-items: start;
  padding-top: 3.7rem;
  padding-bottom: 4.5rem;
}

.main-column {
  grid-area: content;
  min-width: 0;
}

.intro {
  grid-area: intro;
  padding-bottom: 2.7rem;
}

.position {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.intro > p:not(.position) {
  max-width: 48rem;
}

.intro-lede {
  font-size: 1.06rem;
  line-height: 1.58;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  padding: 0;
  margin: 1.05rem 0 0;
  list-style: none;
}

.profile-links li {
  position: relative;
}

.profile-link-primary {
  font-weight: 650;
}

.profile-links li:not(:last-child)::after {
  position: absolute;
  right: -0.65rem;
  color: #a2a2a2;
  content: "·";
}

.hero-highlight {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-section {
  padding: 2.55rem 0 0;
  margin-top: 0.3rem;
  border-top: 1px solid var(--border);
}

.section-intro {
  max-width: 43rem;
  margin-bottom: 1.45rem;
  color: #474747;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.featured-item {
  padding-top: 0.85rem;
  border-top: 2px solid #1e4f70;
}

.featured-item h3 a {
  color: var(--text);
  text-decoration-color: #8aa5b5;
}

.featured-item h3 a:hover {
  color: var(--link);
}

.featured-item p:last-child {
  margin-bottom: 0;
  color: #454545;
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-meta {
  margin-bottom: 0.32rem;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.research-list {
  border-top: 1px solid var(--border);
}

.research-item {
  padding: 1.35rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.research-item p:last-child {
  margin-bottom: 0;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.48rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-strong);
}

.section-heading-row h2 {
  padding: 0;
  margin: 0;
  border: 0;
}

.section-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

.publication-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.publication-item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.publication-year {
  padding-top: 0.08rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.publication-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.authors,
.venue,
.paper-links {
  margin-bottom: 0.28rem;
  font-size: 0.92rem;
}

.authors {
  color: #3f3f3f;
}

.venue {
  color: var(--muted);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.publication-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.award-note {
  padding: 0.95rem 1rem;
  margin: 0 0 1.25rem;
  border-left: 3px solid #1e4f70;
  background: var(--award-bg);
  font-size: 0.94rem;
}

.award-note a {
  display: inline-block;
  margin-left: 0.65rem;
  font-size: 0.88rem;
}

.dated-list {
  border-top: 1px solid var(--border);
}

.dated-item {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.dated-item p:last-child {
  margin-bottom: 0;
}

.date {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
}

.subsection {
  padding-top: 1.35rem;
}

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

.sidebar {
  grid-area: sidebar;
  padding: 1.35rem 1.45rem 1.5rem;
  background: var(--sidebar-bg);
  border: 1px solid #e4e4e4;
}

.sidebar-section + .sidebar-section {
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.sidebar h2 {
  padding: 0;
  margin-bottom: 0.8rem;
  border: 0;
  color: #4f4f4f;
  font-size: 0.77rem;
  font-weight: 730;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar-entry + .sidebar-entry {
  margin-top: 1rem;
}

.sidebar-entry strong,
.sidebar-entry span {
  display: block;
}

.sidebar-entry strong {
  margin-bottom: 0.12rem;
  font-size: 0.92rem;
}

.sidebar-entry span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.contact-line {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.89rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #fafafa;
}

.footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.87rem;
}

.footer-inner p {
  margin: 0;
}

.error-page {
  min-height: calc(100vh - 142px);
  padding-top: clamp(5rem, 14vh, 9rem);
  padding-bottom: 5rem;
}

.error-page > * {
  max-width: 38rem;
}

.error-code {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (max-width: 1020px) {
  .featured-list {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .profile-links li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 880px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 38px;
  }

  .sidebar {
    padding-inline: 1.15rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    display: block;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-name {
    display: inline-block;
    margin-bottom: 0.45rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.2rem 0.9rem;
  }

  .site-nav a {
    padding-block: 0.45rem;
  }

  .page-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2.35rem;
  }

  .intro {
    order: 1;
  }

  .main-column {
    order: 2;
    width: 100%;
  }

  .sidebar {
    order: 3;
    position: static;
    width: 100%;
    padding: 1.1rem 1.2rem 1.25rem;
  }

  .intro {
    padding-bottom: 1.2rem;
  }

  .content-section {
    padding-top: 2rem;
  }

  .footer-inner {
    display: block;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .footer-inner p + p {
    margin-top: 0.2rem;
  }
}

@media (max-width: 520px) {
  .wrapper {
    width: min(calc(100% - 28px), var(--wrapper));
  }

  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.34rem;
  }

  .publication-item,
  .dated-item {
    display: block;
  }

  .publication-year,
  .date {
    display: block;
    margin-bottom: 0.35rem;
  }

  .award-note a {
    display: block;
    margin-top: 0.35rem;
    margin-left: 0;
  }

  .section-heading-row {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
