:root {
  --ink: #333333;
  --muted: #616161;
  --paper: #ffffff;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: #000000;
}

.site-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  padding-top: 3.35rem;
  text-align: center;
}

.site-title {
  display: inline-block;
  color: #262626;
  font-size: clamp(2.35rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
}

.site-title:hover,
.site-title:focus-visible {
  color: #262626;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.9rem;
  margin-top: 1.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-nav a {
  color: #444444;
  font-size: 1.07rem;
  font-weight: 300;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #111111;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.page-content {
  padding-top: clamp(5rem, 9vw, 7.6rem);
  padding-bottom: 6rem;
}

.portrait {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(280px, 365px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.home-layout .portrait {
  aspect-ratio: 3 / 4;
}

.home-introduction {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.58;
}

.home-introduction p {
  margin: 0;
}

.home-introduction strong {
  font-weight: 700;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
}

.bio-sidebar .portrait {
  aspect-ratio: 3 / 4;
}

.contact-details {
  margin-top: 1.85rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-details p {
  margin: 0 0 1rem;
}

.contact-details strong {
  display: block;
  margin-bottom: 0.1rem;
}

.bio-copy {
  max-width: 750px;
}

.bio-copy p {
  margin: 0 0 1.35rem;
}

.page-heading {
  margin: 0 0 2.3rem;
  color: #2c2c2c;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.papers-page {
  width: min(100%, 900px);
  margin-inline: auto;
}

.paper {
  margin-bottom: 2rem;
}

.paper-title {
  margin: 0;
  color: #2c2c2c;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.paper-title a {
  text-decoration: none;
}

.paper-title a:hover,
.paper-title a:focus-visible {
  text-decoration: underline;
}

.paper-authors,
.paper-status {
  margin: 0.25rem 0 0;
}

.paper-authors {
  color: #444444;
}

.paper-status {
  color: var(--muted);
  font-size: 0.96rem;
}

.empty-page {
  min-height: 45vh;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header {
    padding-top: 2.35rem;
  }

  .site-nav {
    gap: 0.75rem 1.3rem;
    margin-top: 1.35rem;
  }

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

  .page-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .home-layout,
  .bio-layout {
    grid-template-columns: 1fr;
  }

  .home-layout {
    align-items: start;
  }

  .home-layout > :first-child,
  .bio-sidebar {
    width: min(100%, 360px);
  }

  .home-introduction {
    font-size: 1.02rem;
  }
}
