:root {
  --background: #ffffff;
  --text: #202633;
  --muted: #606a79;
  --accent: #1769d2;
  --accent-soft: #edf4ff;
  --border: #dfe4ea;
  --surface: #f7f9fb;
  --container: 980px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: white;
  background: var(--text);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.wordmark {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.94rem;
}

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

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

.profile {
  padding-block: 72px 64px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.profile-photo {
  width: 168px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.profile-copy {
  max-width: 700px;
}

.profile-status,
.project-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.profile h1 span {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 500;
}

.profile-role {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.profile-copy > p:not(.profile-status, .profile-role) {
  margin: 0 0 12px;
}

.profile-links,
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.profile-links {
  margin-top: 22px;
}

.profile-links a,
.paper-links a {
  font-weight: 600;
}

.profile-links a::after,
.paper-links a::after,
.section-heading > a::after {
  content: " ↗";
  font-size: 0.78em;
}

.section {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 28px;
  color: #172033;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section h3 {
  margin: 0;
  color: #172033;
  font-size: 1.12rem;
  line-height: 1.42;
}

.section-intro {
  max-width: 720px;
  margin: -10px 0 26px;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > a {
  flex: 0 0 auto;
  font-size: 0.95rem;
}

.news-list {
  max-width: 820px;
}

.news-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0;
}

.news-item time,
.publication-year,
.background-date {
  color: var(--muted);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

.news-item:first-child time {
  color: var(--accent);
  font-weight: 700;
}

.news-item p {
  margin: 0;
}

.interest-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  border-block: 1px solid var(--border);
}

.interest-list li {
  min-width: 0;
  padding: 24px 26px;
  border-right: 1px solid var(--border);
}

.interest-list li:first-child {
  padding-left: 0;
}

.interest-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.interest-list strong,
.interest-list span {
  display: block;
}

.interest-list strong {
  margin-bottom: 7px;
  color: #172033;
}

.interest-list span {
  color: var(--muted);
  font-size: 0.97rem;
}

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

.publication {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.publication-year {
  padding-top: 2px;
  color: var(--accent);
  font-weight: 650;
}

.authors,
.venue {
  margin: 6px 0 0;
  font-size: 0.98rem;
}

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

.paper-links {
  margin: 10px 0 0;
  font-size: 0.93rem;
}

.project {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 38px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.project-copy h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.project-copy > p:not(.project-label, .paper-links) {
  margin: 0;
  color: var(--muted);
}

.project-image {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.project-image:hover {
  text-decoration: none;
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

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

.background-item {
  padding: 21px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid var(--border);
}

.background-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 24px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a + a {
  margin-left: 18px;
}

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

  .container {
    width: min(100% - 36px, var(--container));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    padding-block: 17px;
    display: block;
  }

  .site-nav {
    margin-top: 12px;
    gap: 8px 18px;
    flex-wrap: wrap;
    font-size: 0.87rem;
  }

  .profile {
    padding-block: 48px 50px;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 24px;
  }

  .profile-photo {
    width: 124px;
  }

  .profile-copy {
    display: contents;
  }

  .profile-status,
  .profile h1,
  .profile-role {
    grid-column: 2;
  }

  .profile-status {
    align-self: end;
    margin-bottom: -12px;
  }

  .profile h1 {
    align-self: center;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .profile-role {
    align-self: start;
    margin: -12px 0 0;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .profile-copy > p:not(.profile-status, .profile-role),
  .profile-links {
    grid-column: 1 / -1;
  }

  .profile-copy > p:not(.profile-status, .profile-role) {
    margin-bottom: 10px;
  }

  .profile-links {
    margin-top: 6px;
  }

  .section {
    padding-block: 46px;
  }

  .section-heading {
    align-items: center;
  }

  .news-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

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

  .interest-list li,
  .interest-list li:first-child,
  .interest-list li:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .interest-list li:last-child {
    border-bottom: 0;
  }

  .publication {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .project {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-image {
    order: -1;
  }

  .background-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    padding-block: 26px;
    display: block;
  }

  .footer-inner p + p {
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .profile {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
  }

  .profile-photo {
    width: 104px;
  }

  .profile-status {
    font-size: 0.72rem;
  }

  .profile h1 {
    font-size: 1.76rem;
    letter-spacing: -0.025em;
  }

  .profile-role {
    font-size: 0.86rem;
  }
}

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

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .section,
  .profile {
    break-inside: avoid;
  }
}
