@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Lato Regular"), local("Lato-Regular"), url("https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Lato Bold"), local("Lato-Bold"), url("https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Lato Italic"), local("Lato-Italic"), url("https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local("Lato Bold Italic"), local("Lato-BoldItalic"), url("https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --canvas: #ececea;
  --ink: #202020;
  --muted: #676767;
  --soft: #f7f6f2;
  --rule: #ddddda;
  --rule-dark: #c9c8c3;
  --link: #244d7e;
  --accent: #746d4f;
  --header-height: 54px;
  --page-width: 960px;
  --compact-card-height: 76px;
  --serif: "Lato", Verdana, Helvetica, sans-serif;
  --sans: "Lato", Verdana, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(36, 77, 126, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: var(--paper);
  background: var(--link);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(32, 32, 32, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 16px rgba(20, 20, 20, 0.035);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  width: 100%;
  padding: 0 50px;
}

.nav-updated {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 16px 0 13px;
  color: var(--link);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 9px 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: calc(100vh - 180px);
  margin: 78px auto 24px;
  padding: 40px 50px 52px;
  background: var(--paper);
  box-shadow: 0 5px 26px rgba(30, 30, 30, 0.055);
}

.page-section {
  padding-top: 12px;
}

.page-section + .page-section {
  margin-top: 30px;
  padding-top: 0;
}

.profile-section {
  padding-top: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  align-items: start;
  gap: 36px;
  width: 100%;
  max-width: none;
}

.profile-photo {
  width: 164px;
  margin: 0.75rem 0 0;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ddd9cf;
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(32, 32, 32, 0.1);
}

.profile-copy h1,
.page-intro h1 {
  margin: 0.1em 0 0.2em;
  color: var(--ink);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.profile-copy h1 span {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow,
.interest-number,
.publication-meta {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-affiliation {
  margin-top: 0.65rem;
  color: #454545;
  line-height: 1.35;
}

.profile-affiliation p {
  margin: 0.05rem 0;
}

.profile-affiliation .profile-position {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 700;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.22rem;
  line-height: 1.2;
}

.section-heading-action {
  font-size: 0.68em;
  font-weight: 600;
  white-space: nowrap;
}

.section-heading-action a {
  text-decoration: none;
}

.section-heading-action a:hover {
  text-decoration: underline;
}

.section-intro {
  width: 100%;
  max-width: none;
  margin: -2px 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.about-copy {
  width: 100%;
  max-width: none;
  color: #3f3f3f;
  font-size: 0.94rem;
  line-height: 1.35;
}

#short-bio,
#short-bio .about-copy,
#research-interests,
#research-interests .section-intro,
#research-interests .research-points,
#research-interests .compact-list-bullet,
#teaching,
#teaching .teaching-list,
#teaching .compact-list-bullet,
#students,
#students .students-list,
#students .compact-list-bullet {
  color: #000;
}

.about-copy p {
  margin: 0 0 0.75em;
}

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

.about-opportunity {
  display: flex;
  height: var(--compact-card-height);
  margin-bottom: 0.75em;
  padding: 9px 11px;
  flex-direction: column;
  justify-content: center;
}

#short-bio .about-opportunity p {
  margin: 0;
  color: #143d73;
  font-weight: 700;
  line-height: 1.15;
}

.about-opportunity strong {
  color: inherit;
}

.news-scroll {
  width: 100%;
  overflow: visible;
}

.news-scroll.is-scrollable,
.recent-publications-scroll.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
  scrollbar-color: #d6dee1 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.news-scroll.is-scrollable::-webkit-scrollbar,
.recent-publications-scroll.is-scrollable::-webkit-scrollbar {
  width: 14px;
}

.news-scroll.is-scrollable::-webkit-scrollbar-track,
.recent-publications-scroll.is-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll.is-scrollable::-webkit-scrollbar-thumb,
.recent-publications-scroll.is-scrollable::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 999px;
  background: #d6dee1;
  background-clip: content-box;
}

.news-scroll.is-scrollable::-webkit-scrollbar-thumb:hover,
.recent-publications-scroll.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: #bfb3a8;
  background-clip: content-box;
}

.compact-list {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.compact-list-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
}

.compact-list-bullet {
  display: block;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}

.compact-list-item > * {
  min-width: 0;
}

.compact-list-item p {
  margin: 0;
}

.news-list {
  gap: 0;
  font-size: 0.8rem;
  line-height: 1.18;
}

.news-list .compact-list-item {
  padding: 3px 0;
}

.news-entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
}

.news-entry time {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
}

.news-entry p {
  margin: 0;
}

.research-points {
  gap: 7px;
  color: #3f3f3f;
  font-size: 0.9rem;
  line-height: 1.28;
}

#research-interests .section-intro {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.28;
}

.research-points p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.recent-publications-scroll {
  width: 100%;
  overflow: visible;
  font-size: 0.8rem;
  line-height: 1.18;
}

.recent-publications-list {
  display: grid;
  gap: 6px;
}

.recent-publication-card {
  display: flex;
  height: var(--compact-card-height);
  padding: 9px 11px;
  border: 1px solid #ddd9cf;
  border-left: 3px solid var(--accent);
  background: #f5f3ed;
  box-shadow: 0 1px 3px rgba(32, 32, 32, 0.035);
  flex-direction: column;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.recent-publication-card:hover,
.recent-publication-card:focus-within {
  border-color: #b9ad8a;
  background: #e9e4d8;
  box-shadow: 0 5px 14px rgba(32, 32, 32, 0.12);
  transform: translateY(-2px);
}

.recent-publication-card h3 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.recent-publication-card h3 a {
  text-decoration: none;
}

.recent-publication-card h3 a:hover {
  text-decoration: underline;
}

.recent-publication-authors,
.recent-publication-venue {
  margin: 2px 0 0;
  color: #515151;
  font-size: inherit;
  line-height: inherit;
}

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

.teaching-list,
.students-list {
  color: #3f3f3f;
  font-size: 0.84rem;
  line-height: 1.2;
}

.empty-state {
  width: 100%;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
}

.empty-state p {
  margin: 0.15rem 0;
  color: var(--muted);
}

.empty-state .empty-state-title {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto 24px;
  padding: 0 4px;
  color: #676767;
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0;
}

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

.site-footer.copyright-footer {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.copyright-footer .copyright-notice {
  color: #4b4b4b;
  font-size: 0.72rem;
}

.copyright-footer .copyright-notice strong {
  color: var(--ink);
  font-weight: 700;
}

.publications-page {
  padding-top: 44px;
}

.page-intro {
  max-width: 42rem;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule-dark);
}

.publications-page .page-intro {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-bottom: 12px;
  border-bottom: 0;
  text-align: center;
}

.publications-page #preprints {
  padding-top: 10px;
}

.publications-page .publication-index {
  justify-content: center;
}

.publication-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.publication-index > span {
  color: var(--rule-dark);
  font-weight: 400;
}

.publication-index a {
  text-decoration: none;
}

.publication-index a:hover {
  text-decoration: underline;
}

.publication-index a span {
  color: var(--muted);
  font-weight: 600;
}

.page-intro .publication-total {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.publication-category {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding-top: 24px;
}

.publication-category + .publication-category {
  margin-top: 12px;
}

.publication-category .section-heading {
  margin-bottom: 10px;
}

.publication-count {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
}

.publication-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.publication-entry {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
}

.publication-entry .compact-list-bullet {
  font-size: 0.9rem;
  line-height: 1.3;
}

.publication-content {
  min-width: 0;
}

.publication-entry h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.3;
}

.publication-resource {
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.publication-authors,
.publication-venue {
  margin: 2px 0 0;
  color: #525252;
  font-size: 0.82rem;
  line-height: 1.3;
}

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

.back-link {
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 650;
}

.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px;
  flex-direction: column;
}

.not-found {
  width: min(100%, 620px);
  margin: auto 0;
  padding: 54px;
  background: var(--paper);
  box-shadow: 0 5px 26px rgba(30, 30, 30, 0.055);
}

.not-found-page .site-footer {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.not-found h1 {
  margin: 0.15em 0 0.3em;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-shell {
    padding: 0 50px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    order: 3;
    width: calc(100% + 100px);
    margin: 0 -50px;
    padding: 7px 50px 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 20px rgba(20, 20, 20, 0.07);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #ececea;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

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

  .news-scroll.is-scrollable,
  .recent-publications-scroll.is-scrollable {
    max-height: none !important;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .page-shell {
    width: 100%;
    margin: var(--header-height) 0 0;
    padding: 30px 22px 40px;
    box-shadow: none;
  }

  .nav-shell {
    padding-right: 22px;
    padding-left: 22px;
  }

  .nav-links {
    width: calc(100% + 44px);
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-header {
    left: 0;
    width: 100%;
    transform: none;
  }

  .profile-copy h1 {
    font-size: 1.85rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-photo {
    width: min(150px, 45vw);
    margin-top: 0;
  }

  .page-section + .page-section {
    margin-top: 24px;
    padding-top: 0;
  }

  .about-opportunity,
  .recent-publication-card {
    height: auto;
    min-height: var(--compact-card-height);
  }

  .site-footer {
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 18px 22px 22px;
    background: var(--paper);
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nav-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nav-links {
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .not-found {
    padding: 36px 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
