:root {
  color-scheme: light;
  --text: #17191b;
  --muted: #6b7379;
  --link: #1f6fd1;
  --link-dark: #154f98;
  --header: #f1f4f7;
  --line: #dce1e5;
  --soft: #f7f8f9;
  --accent: #b6522d;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  transform: translateY(-160%);
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 76px;
  margin: 0 auto;
}

.site-title {
  color: var(--text);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.site-title:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  padding: 25px 0 23px;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.wrapper {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 54px 0 92px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px 42px;
  align-items: start;
}

.intro-copy {
  padding-top: 6px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.intro-copy p {
  margin: 0 0 18px;
}

.intro-copy strong {
  font-weight: 700;
}

.profile-photo-frame {
  width: 230px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.48);
  transform-origin: 50% 38%;
}

.intro-details {
  grid-column: 1 / -1;
  max-width: 780px;
}

.intro-details > p:first-child {
  margin-top: 0;
}

.accomplishment-list {
  display: grid;
  gap: 10px;
  margin: 15px 0 25px;
  padding-left: 25px;
}

.accomplishment-list li {
  padding-left: 3px;
}

.keyword-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 12px 0 25px;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: center;
}

.profile-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: center;
}

.profile-links {
  justify-content: center;
  margin: 26px 0 0;
}

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

.profile-links span,
.inline-links span {
  color: #a6adb2;
}

.availability-note {
  margin: 32px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  color: #3b4247;
}

.home-publications {
  margin-top: 62px;
}

.home-publications > h2 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 500;
}

.home-latest {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.home-latest img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.home-latest h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.home-latest p {
  margin: 0 0 10px;
  color: #353b40;
}

.all-publications-link {
  margin: 18px 0 0;
  font-weight: 600;
}

.section-label,
.item-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-header {
  max-width: 760px;
  margin-bottom: 54px;
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.page-header h1.section-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.page-header p {
  margin: 0;
  color: #3d4449;
  font-size: 1.08rem;
  line-height: 1.72;
}

.page-section {
  margin-top: 72px;
}

.page-section > h2 {
  margin: 0 0 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
  font-weight: 500;
}

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

.work-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.work-media {
  margin: 0;
}

.work-media img {
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.work-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.work-copy h2,
.work-copy h3 {
  margin: 0 0 7px;
  font-size: 1.18rem;
}

.work-copy > p {
  margin: 10px 0 0;
}

.work-copy .authors,
.work-copy .venue {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.work-copy .authors strong {
  color: var(--text);
}

.work-copy .impact {
  color: #383e43;
}

.work-copy .inline-links {
  margin-top: 11px;
  font-size: 0.84rem;
}

.research-question {
  margin-top: 18px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  color: #343a3f;
}

.research-points {
  margin: 15px 0 0;
  padding-left: 21px;
  color: #41484d;
}

.research-points li {
  margin: 6px 0;
}

.featured-papers {
  margin-top: 18px;
}

.featured-papers > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.featured-papers ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-papers li {
  scroll-margin-top: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.45;
}

.featured-paper-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.featured-paper-heading a {
  font-weight: 600;
}

.featured-paper-heading span {
  flex: 0 0 auto;
  color: var(--muted);
}

.featured-papers li > p {
  margin: 5px 0 0;
  color: #383e43;
  font-size: 0.82rem;
  line-height: 1.55;
}

.publication-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: -25px 0 45px;
  color: var(--muted);
  font-size: 0.88rem;
}

.publication-group {
  margin-top: 62px;
}

.publication-group:first-of-type {
  margin-top: 0;
}

.publication-group > h2 {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 500;
}

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

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

.publication-year {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.publication-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.publication-authors,
.publication-venue {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.publication-authors strong {
  color: var(--text);
}

.publication-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-left: 7px;
}

.publication-links a {
  font-weight: 600;
}

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

.software-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.software-index {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.software-item h2 {
  margin: 0 0 7px;
  font-size: 1.22rem;
}

.software-item p {
  margin: 8px 0 0;
}

.software-item .inline-links {
  margin-top: 11px;
  font-size: 0.86rem;
}

.feature-block,
.contact-block {
  padding: 25px 28px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.feature-block h2,
.contact-block h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.feature-block p,
.contact-block p {
  margin: 8px 0 0;
}

.teaching-columns,
.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.column-section h2 {
  margin: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 500;
}

.simple-list,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li,
.timeline li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.simple-list strong,
.timeline strong {
  display: block;
  line-height: 1.45;
}

.simple-list span,
.timeline span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.about-copy p {
  margin: 0 0 18px;
}

.service-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.service-list li {
  margin: 8px 0;
}

.contact-list {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 9px 18px;
  margin: 18px 0 0;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 90px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a {
  font-weight: 600;
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 13px;
    padding: 16px 0 13px;
  }

  .site-title {
    width: 100%;
    font-size: 2.15rem;
  }

  .site-nav {
    width: 100%;
    gap: 10px 18px;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 4px 0 6px;
    font-size: 0.82rem;
  }

  .work-item {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
  }

  .work-media img {
    height: 130px;
  }

  .software-item {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 22px;
  }

  .teaching-columns,
  .about-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .wrapper,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-nav {
    gap: 9px 14px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .wrapper {
    padding-top: 38px;
    padding-bottom: 70px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr) 145px;
    gap: 22px 18px;
  }

  .intro-copy {
    padding-top: 0;
    font-size: 0.98rem;
  }

  .profile-photo-frame {
    width: 145px;
  }

  .intro-details {
    font-size: 0.98rem;
  }

  .keyword-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-latest {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-latest img {
    height: auto;
    max-height: 125px;
  }

  .page-header {
    margin-bottom: 42px;
  }

  .page-header h1 {
    font-size: 2.35rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .page-section {
    margin-top: 55px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .work-media img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }

  .work-media figcaption {
    display: none;
  }

  .work-copy h2,
  .work-copy h3 {
    font-size: 1.04rem;
  }

  .work-copy .impact {
    font-size: 0.93rem;
  }

  .publication-entry {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 11px;
  }

  .publication-links {
    display: flex;
    margin: 6px 0 0;
  }

  .software-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 25px 0;
  }

  .feature-block,
  .contact-block {
    padding: 22px 20px;
  }

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

  .contact-list dd {
    margin-bottom: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 390px) {
  .home-intro {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .profile-photo-frame {
    width: 128px;
  }

}

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