:root {
  --accent: #1f77d0;
  --accent-dark: #0b5cad;
  --text: #222;
  --muted: #666;
  --line: #eee;
  --page-width: 800px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

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

h1,
h2,
h3 {
  font-weight: 300;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: 3rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.section-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.45rem 0.7rem;
  transform: translateY(-160%);
  background: #222;
  color: #fff;
}

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

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-nav-inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  width: min(calc(100% - 2.5rem), calc(var(--page-width) + 4rem));
  min-height: 3.4rem;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-inner::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.85rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.site-nav a[aria-current="location"] {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.is-active::after,
.site-nav a[aria-current="location"]::after {
  background: var(--accent);
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 2.5rem), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  width: min(calc(100% - 2.5rem), calc(var(--page-width) + 4rem));
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 0.75rem;
  align-items: center;
  padding: 2rem;
  margin-top: 3.75rem;
  margin-bottom: 2.5rem;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-intro h1 {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.profile-intro p {
  margin-bottom: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 400;
}

.profile-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-header .about-copy {
  margin-top: 2rem;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.contact-block {
  grid-column: 1 / -1;
  padding-top: 1.35rem;
  border-top: 1px solid #b9d9e8;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
}

.profile-location svg,
.profile-links svg {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.page-section {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--line);
}

.news-section {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  padding-bottom: 1rem;
}

.news-section h2 {
  margin-bottom: 0.75rem;
}

.section-heading > p {
  display: none;
}

.about-copy > p {
  margin-bottom: 1rem;
}

.interest-list {
  margin: 0 0 1rem 0.7rem;
  padding: 0;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.65;
  list-style: none;
}

.interest-list li {
  margin: 0;
  font-weight: 400;
}

.interest-heading {
  margin-bottom: 0.35rem !important;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.about-copy > .availability {
  margin-bottom: 0;
}

.news-years {
  margin: 0;
  padding: 0;
}

.news-year {
  padding: 1.25rem 0;
  border-top: 1px solid #b9d9e8;
}

.news-year:first-child {
  border-top: 0;
  padding-top: 0.5rem;
}

.news-year:last-child {
  padding-bottom: 0.5rem;
}

.news-year h3 {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.news-year-list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.news-year-list li:last-child {
  margin-bottom: 0;
}

.news-year-list p {
  margin-bottom: 0;
}

.news-year-list time {
  justify-self: start;
  color: #999;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}

.education-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 2rem;
}

.education-item:last-child,
.experience-item:last-child {
  margin-bottom: 0;
}

.institution-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.institution-logo img {
  width: auto;
  max-width: 72%;
  max-height: 3.2rem;
  object-fit: contain;
}

.item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.item-heading h3,
.item-heading p,
.item-role,
.item-detail,
.experience-advisor {
  margin-bottom: 0.15rem;
}

.item-heading p,
.experience-period {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.item-role {
  font-size: 0.94rem;
}

.item-detail,
.experience-advisor {
  color: var(--muted);
  font-size: 0.88rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.experience-period {
  padding-top: 0.1rem;
  color: var(--muted);
  font-weight: 400;
}

.experience-copy .item-heading h3 {
  font-size: 1rem;
}

.publication-item {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.publication-item--text-only {
  grid-template-columns: 1fr;
}

.publication-image img {
  width: 100%;
  height: auto;
}

.publication-year {
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.78rem;
}

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

.publication-authors,
.publication-venue {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

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

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.publication-links svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.publication-links .link-emoji {
  font-size: 1.05em;
  line-height: 1;
}

.publication-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  .site-nav-inner {
    justify-content: flex-start;
    gap: 1.1rem;
    width: calc(100% - 2rem);
  }

  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    margin: 2.5rem auto;
  }

  .site-header .about-copy {
    margin-top: 1.75rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  .page-section {
    padding: 1.25rem 0 3rem;
  }

  .news-section {
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .news-year-list li {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .education-item {
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
  }

  .item-heading {
    display: block;
  }

  .item-heading p {
    margin-bottom: 0.35rem;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .publication-image {
    width: min(100%, 21rem);
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

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