:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #262626;
  --muted: #666666;
  --border: #d8d8d8;
  --link: #075c9c;
}

* {
  box-sizing: border-box;
}

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

body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.4rem;
  color: var(--text);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  color: var(--text);
  background: #dcecf7;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  color: var(--background);
  background: var(--text);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  padding: 1.5rem 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.site-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 44rem);
  gap: clamp(3rem, 7vw, 6rem);
  justify-content: center;
}

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

.profile-panel {
  min-width: 0;
  align-self: stretch;
}

.profile-sticky {
  position: sticky;
  top: 2rem;
  padding-top: 2rem;
}

.profile-name {
  margin-bottom: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.profile-degree,
.profile-role,
.profile-field,
.profile-contact {
  font-size: 0.84rem;
  line-height: 1.5;
}

.profile-degree {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.profile-role {
  margin-bottom: 0.9rem;
}

.profile-field {
  color: var(--muted);
}

.profile-contact {
  margin-top: 2rem;
}

.profile-label {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.profile-contact address {
  margin-bottom: 1rem;
  font-style: normal;
}

.profile-contact address span,
.profile-contact address a {
  display: block;
}

.profile-contact address a {
  overflow-wrap: anywhere;
}

.profile-links {
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
  flex-direction: column;
  font-size: 0.8rem;
}

nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.88rem;
}

main {
  padding: 4.5rem 0 2rem;
}

section {
  margin-bottom: 4rem;
}

.introduction {
  max-width: 44rem;
  margin-bottom: 4.5rem;
}

.meta,
.venue {
  color: var(--muted);
  font-size: 0.88rem;
}

.portrait {
  display: block;
  width: 9rem;
  height: auto;
  margin: 0 0 1.5rem;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 span {
  white-space: nowrap;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

h3 {
  margin: 2rem 0 0.15rem;
  font-size: 1.06rem;
}

p {
  margin: 0 0 1.15rem;
}

.lead {
  max-width: 38rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.5;
}

.entry {
  padding-bottom: 0;
}

.entry h3 {
  margin-top: 0;
}

.entry + .entry {
  padding-top: 1.5rem;
}

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

.meta {
  margin: 0.15rem 0 0.6rem;
}

.compact-list,
.publications {
  padding-left: 1.3rem;
}

.page-columns {
  display: block;
}

.affiliations {
  margin: 0.85rem 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.affiliations li + li {
  margin-top: 0.25rem;
}

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

.publications {
  margin: 2rem 0;
}

.publications .venue {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 600;
}

footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 56rem) {
  body {
    max-width: 44rem;
  }

  .site-layout {
    display: block;
  }

  .profile-panel {
    margin-bottom: 2rem;
  }

  .profile-sticky {
    position: static;
  }

  .site-header {
    display: block;
  }

  nav {
    margin-top: 0.7rem;
    gap: 0.8rem 1rem;
    flex-wrap: wrap;
  }

  main {
    padding-top: 3rem;
  }

  section {
    margin-bottom: 3.5rem;
  }

  .introduction {
    margin-bottom: 4rem;
  }

  h1 span {
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17191a;
    --text: #eeeeec;
    --muted: #b2b2ae;
    --border: #3c3f40;
    --link: #77bce8;
  }
}

@media print {
  :root {
    --background: #ffffff;
    --text: #000000;
    --muted: #444444;
    --border: #bbbbbb;
    --link: #000000;
  }

  body {
    max-width: none;
    font-size: 10pt;
  }

  nav,
  .skip-link {
    display: none;
  }

  main {
    padding-top: 2rem;
  }

  section {
    margin-bottom: 2.5rem;
  }
}
