:root {
  color-scheme: light;
  --ink: #20272b;
  --text: #3f4b51;
  --muted: #69767c;
  --faint: #929ca1;
  --line: #e0e5e7;
  --soft-line: #edf0f1;
  --paper: #ffffff;
  --band: #f7f8f8;
  --accent: #087f99;
  --accent-dark: #06677d;
  --accent-soft: #eaf4f6;
  --red: #a33b42;
  --gold: #987126;
  --green: #3f765f;
  --header-height: 64px;
  --page-width: 980px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

[hidden] {
  display: none !important;
}

a {
  color: var(--accent-dark);
  text-decoration-color: rgba(6, 103, 125, 0.3);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

:focus-visible {
  outline: 3px solid rgba(8, 127, 153, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--ink);
}

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

.section-shell,
.header-inner {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(224, 229, 231, 0.92);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-name {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  text-decoration: none;
}

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

.site-nav a {
  position: relative;
  padding: 21px 0 18px;
  color: #4a555b;
  font-size: 13.5px;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--accent);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  color: var(--accent-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px 58px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 58px;
}

.about-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 700;
}

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

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-weight: 760;
  line-height: 1.12;
}

.lead {
  max-width: 650px;
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.lead a {
  color: var(--text);
  font-weight: 650;
}

.bio {
  max-width: 660px;
  color: var(--text);
}

.bio p {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
}

.primary-links a,
.section-link a {
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.primary-links a {
  position: relative;
}

.primary-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8b0b4;
}

.openings-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  padding: 17px 19px 18px;
  border: 1px solid #d5e7eb;
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  background: var(--accent-soft);
}

.openings-label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 760;
}

.openings-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.35;
}

.openings-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.openings-card p + p {
  margin-top: 8px;
}

.opening-group {
  margin-top: 17px;
}

.opening-group h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.4;
}

.opening-group ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.opening-group li {
  padding: 2px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.opening-group li::marker {
  color: var(--accent);
}

.profile {
  width: 210px;
  justify-self: end;
  margin-top: 140px;
}

.profile img {
  width: 210px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--band);
}

.profile-details {
  padding-top: 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.profile-details p {
  margin: 2px 0;
}

.profile-details strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.profile-location {
  padding-top: 5px;
}

.news,
.publications,
.service {
  padding-top: 50px;
  padding-bottom: 60px;
  border-top: 1px solid var(--line);
}

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

.section-heading > div {
  width: 100%;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 26px;
  font-weight: 720;
  line-height: 1.25;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.compact-heading {
  margin-bottom: 18px;
}

.section-intro {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.publications .section-intro {
  max-width: 100%;
  font-size: 16px;
}

.news-list {
  width: 100%;
}

.news-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--soft-line);
}

.news-item:first-child {
  border-top: 1px solid var(--soft-line);
}

.news-item time {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.news-item p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
}

.section-band {
  background: var(--band);
}

.research .section-shell,
.experience .section-shell {
  padding-top: 58px;
  padding-bottom: 64px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 42px;
}

.research-area {
  position: relative;
  min-height: 150px;
  padding: 20px 0 22px;
  border-top: 1px solid #d8dddf;
}

.research-number {
  margin: 0 0 22px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.research-area h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.research-area h3::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 3px;
  margin: 0 9px 4px 0;
  background: var(--accent);
}

.research-area-red h3::before { background: var(--red); }
.research-area-gold h3::before { background: var(--gold); }
.research-area-green h3::before { background: var(--green); }

.research-area p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

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

.publication-year > h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 740;
  line-height: 1.25;
}

.publication-year-list {
  min-width: 0;
}

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

.publication + .publication {
  padding-top: 22px;
}

.publication:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.venue {
  align-self: start;
  display: block;
  padding: 7px 10px;
  border: 1px solid #c9e0e5;
  border-left: 3px solid currentColor;
  border-radius: 3px;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.venue span {
  display: block;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
}

.venue time {
  display: none;
}

.venue-red,
.venue-gold,
.venue-green {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.publication-copy h3 {
  margin: -2px 0 5px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.publication-copy p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.publication-copy strong {
  color: var(--text);
  font-weight: 720;
}

.publication-copy sup {
  margin-left: 1px;
  color: var(--accent-dark);
  font-size: 0.72em;
}

.publication-copy .publication-meta {
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 650;
}

.section-link {
  margin: 24px 0 0 100px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  margin: 1px 0 0;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline-item h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 680;
}

.timeline-item p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.service-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 880px;
  gap: 32px;
}

.service .section-heading {
  width: 100%;
  max-width: 900px;
}

.service .section-intro {
  max-width: 100%;
  font-size: 16px;
}

.service-group h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.service-group ul {
  margin: 14px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.service-group li {
  padding: 5px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.service-year {
  display: inline-block;
  min-width: 48px;
  color: var(--accent-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-group li::marker {
  color: var(--accent);
}

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

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

.footer-inner p {
  margin: 0;
}

@media (max-width: 820px) {
  :root {
    --header-height: 60px;
  }

  .section-shell,
  .header-inner {
    width: min(calc(100% - 34px), var(--page-width));
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.99);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 3px;
    border-bottom: 1px solid var(--soft-line);
    font-size: 20px;
  }

  .site-nav a::after {
    display: none;
  }

  .about {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 38px;
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .profile {
    width: 190px;
  }

  .profile img {
    width: 190px;
  }

  h1 {
    font-size: 40px;
  }

  .research-grid {
    gap: 8px 30px;
  }

  .service-columns {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .header-inner {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .about {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .profile {
    order: -1;
    width: 148px;
  }

  .profile img {
    width: 148px;
  }

  .profile-details {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 15.5px;
  }

  .bio {
    font-size: 15px;
  }

  .news,
  .publications,
  .service {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .research .section-shell,
  .experience .section-shell {
    padding-top: 46px;
    padding-bottom: 50px;
  }

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

  .section-heading h2 {
    font-size: 23px;
  }

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

  .research-grid,
  .service-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-area {
    min-height: 0;
  }

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

  .publication-year > h2 {
    font-size: 19px;
  }

  .publication {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
  }

  .publication + .publication {
    padding-top: 18px;
  }

  .venue {
    padding: 6px 7px;
  }

  .publication-copy h3 {
    font-size: 15px;
  }

  .publication-copy p {
    font-size: 13.5px;
  }

  .section-link {
    margin: 20px 0 0;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .service-columns {
    gap: 34px;
  }

  .footer-inner {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }
}

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

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