:root {
  --ink: #1a1a1a;
  --muted: #606060;
  --line: #dedede;
  --accent: #23527c;
  --page-width: 1020px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
}

img {
  max-width: 100%;
}

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

a:hover {
  color: #163750;
}

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

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

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

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

.page-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
  padding-block: 54px 72px;
  display: grid;
  grid-template-columns: minmax(270px, 30%) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 32px);
  align-items: start;
}

.profile {
  position: sticky;
  top: 24px;
  margin-top: 58px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  align-self: start;
  padding-bottom: 10px;
}

.headshot {
  display: block;
  width: 90%;
  height: auto;
}

.profile-copy {
  max-width: 100%;
}

.profile h1 {
  margin: 22px 0 6px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.position {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--sans);
}

.contact {
  margin-bottom: 15px;
  font-size: 0.86rem;
  font-style: normal;
  overflow-wrap: anywhere;
  font-family: var(--sans);
}

.profile-links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-family: var(--sans);
}

.profile-links li + li {
  margin-top: 4px;
}

.site-header {
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 0.9rem;
  font-family: var(--sans);
}

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

nav a:hover {
  color: var(--accent);
}

.introduction {
  padding-block: 46px 58px;
  font-family: var(--sans);
  font-size: 1.08rem;
}

.introduction p {
  max-width: 670px;
  margin-bottom: 15px;
}

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

.introduction strong,
.plain-summary strong,
.abstract-text strong {
  font-weight: 400;
}

.research-subsection {
  padding-block: 42px 52px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.research-subsection > h2,
.major-section > h2 {
  margin-bottom: 34px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.2;
}

.job-market-paper {
  display: block;
}

.placeholder-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.paper-text h3,
.research-item h3,
.teaching-list h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
}

.paper-text h3 {
  font-size: 1.45rem;
}

.coauthors,
.publication-details {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--sans);
}

.plain-summary {
  margin-bottom: 0;
}

.paper-tabs {
  position: relative;
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.86rem;
}

.abstract-toggle {
  display: block;
}

.abstract-toggle summary {
  width: fit-content;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
  list-style: none;
}

.abstract-toggle summary::-webkit-details-marker {
  display: none;
}

.abstract-toggle summary:hover {
  color: #163750;
}

.resource-separator {
  position: absolute;
  top: 0;
  left: 60px;
  color: #a0a0a0;
}

.paper-coming {
  position: absolute;
  top: 0;
  left: 75px;
  color: var(--muted);
}

.paper {
  position: absolute;
  top: 0;
  left: 75px;
}

.abstract-text {
  width: auto;
  max-width: 680px;
  margin-top: 16px;
  padding-left: 16px;
  border-left: 1px solid #b8b8b8;
}

.abstract-text p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

/* .visual-summary {
  margin: 0;
}

.visual-placeholder {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid #cfcfcf;
  color: #777;
  text-align: center;
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.visual-placeholder::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 62px;
  border-left: 1px solid #a7a7a7;
  border-bottom: 1px solid #a7a7a7;
}

.visual-placeholder span {
  position: relative;
  z-index: 1;
  padding: 5px 7px;
  background: #fff;
}

.visual-summary figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  font-family: var(--sans);
} */

.research-item {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ededed;
}

.research-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.research-item h3 {
  font-size: 1.15rem;
}

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

#publications .research-item {
  padding-bottom: 0;
  margin-bottom: 17px;
  border-bottom: 0;
}

#publications .research-item:last-child {
  margin-bottom: 0;
}

#publications .research-item h3 {
  margin-bottom: 2px;
  font-size: 1.02rem;
  line-height: 1.35;
}

#publications .publication-details {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.major-section {
  padding-block: 42px 52px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.major-section > h2 {
  margin-bottom: 34px;
  font-size: 1.42rem;
}

.teaching-list article + article {
  margin-top: 13px;
}

.teaching-list h3 {
  margin-bottom: 1px;
  font-size: 1.02rem;
}

.teaching-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--sans);
}

.teaching-award {
  margin-bottom: 1px;
  font-size: 0.9rem;
}

.teaching-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--sans);
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .profile {
    position: static;
    margin-top: 0;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .profile h1 {
    margin-top: 0;
  }

  .headshot {
    width: 100%;
  }

  .site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    padding-block: 12px;
    background: #fff;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(calc(100% - 36px), var(--page-width));
    padding-block: 30px 48px;
    gap: 36px;
  }

  .profile {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 20px;
  }

  .profile h1 {
    font-size: 1.45rem;
  }

  .position {
    font-size: 0.82rem;
  }

  .contact,
  .profile-links {
    font-size: 0.8rem;
  }

  nav {
    justify-content: flex-start;
    gap: 22px;
  }

  .introduction {
    padding-block: 38px 46px;
    font-size: 1rem;
  }

  .research-subsection {
    padding-block: 36px 44px;
  }

  .job-market-paper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .visual-summary {
    max-width: 360px;
  }

  .visual-placeholder {
    min-height: 190px;
  }

  .major-section {
    padding-block: 50px 44px;
  }
}

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

@media print {
  .page-shell {
    display: block;
    width: 100%;
    padding: 0;
  }

  .profile {
    position: static;
    margin-bottom: 36px;
  }

  .site-header,
  .visual-summary {
    display: none;
  }
}
