:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #1f2933;
  --muted: #596773;
  --link: #245b78;
  --link-hover: #173f55;
  --border: #d7dde2;
  --focus: #9d4e00;
  --content-width: 68rem;
  --page-width: 60rem;
  --reading-width: 72ch;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: min(100% - 2.5rem, var(--content-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: #ffffff;
  transform: translateY(-160%);
}

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

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

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-name {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem 1.35rem;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.site-main {
  min-height: calc(100vh - 11rem);
  padding-block: clamp(2.25rem, 5vw, 4rem) 4.5rem;
}

.home-page {
  width: 100%;
}

.content-page {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.profile-hero {
  display: grid;
  grid-template-columns: clamp(13.75rem, 24vw, 17rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.profile-photo-wrap {
  width: 100%;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.22;
  color: #17212a;
}

h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 5vw, 2.65rem);
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  font-size: 1.32rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.position {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 650;
}

.affiliation {
  margin-top: 0.15rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.profile-links,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.94rem;
}

.profile-links a,
.section-nav a,
.section-link {
  font-weight: 600;
}

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

.biography {
  max-width: var(--reading-width);
}

section {
  margin-top: 3rem;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.section-heading-row h2 {
  margin-bottom: 0;
  border: 0;
}

.section-link {
  font-size: 0.9rem;
  white-space: nowrap;
}

.compact-list,
.presentation-list {
  margin: 0;
  padding-left: 1.25rem;
}

.compact-list li,
.presentation-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
}

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

.publication-item {
  padding: 1.05rem 0 1.15rem;
  border-top: 1px solid var(--border);
}

.publication-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.publication-title {
  margin: 0 0 0.3rem;
  font-size: 1.03rem;
  font-weight: 680;
}

.publication-authors,
.publication-meta,
.publication-note {
  margin-bottom: 0.22rem;
  font-size: 0.93rem;
}

.publication-meta,
.publication-note,
.author-note {
  color: var(--muted);
}

.resource-links,
.resource-link {
  white-space: nowrap;
}

.resource-links a,
.resource-link {
  font-size: 0.9rem;
}

.page-heading {
  margin-bottom: 2.5rem;
}

.page-heading h1 {
  margin-bottom: 0.8rem;
}

.author-note {
  max-width: 55ch;
  font-size: 0.92rem;
}

.content-page section:first-of-type {
  margin-top: 0;
}

.course-list {
  margin-bottom: 1.5rem;
}

.honors-list strong {
  font-weight: 650;
}

.contact-details {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.87rem;
}

.footer-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 2rem, var(--content-width));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 0.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0 1.2rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-photo-wrap {
    width: 10rem;
  }

  section {
    margin-top: 2.5rem;
  }
}

@media (max-width: 380px) {
  .shell {
    width: min(100% - 1.5rem, var(--content-width));
  }

  .site-nav {
    gap: 0 0.85rem;
  }

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

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.45rem;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .section-nav {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  a {
    color: inherit;
  }
}
