:root {
  --background: #F3EFEB;
  --text: #403c39;
  --muted: #746d68;
  --faint: #938b86;
  --accent: #9D5248;
  --line: rgba(64, 60, 57, 0.13);
  --page-width: 980px;
  --reading-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 300 16px/1.6 Spectral, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(64, 60, 57, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--muted);
  text-decoration-color: currentColor;
}

.quiet-link {
  color: var(--muted);
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--text);
  text-decoration: none;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 7px 12px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-150%);
}

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

.site-header {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.site-mark {
  margin-right: auto;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-main {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 76px) 0 100px;
}

.site-footer {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

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

/* Home */
.home-grid {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 52px);
  align-items: start;
}

.portrait-frame {
  width: 158px;
  margin: 0;
}

.portrait-frame img {
  width: 158px;
  height: 210px;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid rgba(64, 60, 57, 0.08);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(64, 60, 57, 0.08);
}

.photo-email {
  margin-top: 9px;
  color: var(--muted);
  font: 300 12px/1.45 Spectral, Georgia, serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.home-intro {
  max-width: 620px;
  padding-top: 2px;
}

.home-intro h1,
.page-title {
  margin-bottom: 4px;
  font: 400 30px/1.35 Spectral, Georgia, serif;
  letter-spacing: -0.02em;
}

.affiliation {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.affiliation-role,
.affiliation-school {
  display: block;
}

.affiliation-school {
  white-space: nowrap;
}

.section-label {
  margin-bottom: 16px;
  color: var(--accent);
  font: 400 17px/1.35 Spectral, Georgia, serif;
  letter-spacing: 0.015em;
}

.home-intro p:not(.affiliation),
.other-intro p {
  margin-bottom: 17px;
  font: 300 14px/1.6 Spectral, Georgia, serif;
}

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

/* Shared page heading */
.page-heading {
  max-width: var(--reading-width);
  margin-bottom: clamp(54px, 8vw, 78px);
}

.page-heading .page-title {
  margin-bottom: 10px;
}

.page-deck {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

/* Research */
.research-content {
  max-width: var(--reading-width);
}

.research-section {
  margin-bottom: clamp(68px, 9vw, 94px);
}

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

.research-section > h2,
.vita-section > h2 {
  margin-bottom: 34px;
  color: var(--accent);
  font: 400 19px/1.35 Spectral, Georgia, serif;
  letter-spacing: 0.01em;
}

.paper-list {
  display: grid;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-title {
  margin-bottom: 7px;
  font: 500 17px/1.38 Spectral, Georgia, serif;
  letter-spacing: -0.01em;
}

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

.paper-authors,
.paper-status,
.paper-links {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.paper-status .highlight,
.journal,
.paper-links .accent-link,
.accent-link {
  color: var(--accent);
}

.paper-links a {
  margin-right: 12px;
}

.abstract {
  margin-top: 9px;
}

.abstract summary {
  width: max-content;
  color: var(--faint);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.03em;
  list-style: none;
}

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

.abstract summary::after {
  display: inline-block;
  margin-left: 6px;
  content: "+";
}

.abstract[open] summary::after {
  content: "−";
}

.abstract p {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
  text-align: justify;
}

/* Vita */
.vita-content {
  max-width: var(--reading-width);
  font: 300 14px/1.6 Spectral, Georgia, serif;
}

.vita-section {
  margin-bottom: clamp(58px, 8vw, 78px);
}

.vita-section:last-child {
  margin-bottom: 0;
}

.vita-list,
.teaching-list,
.education-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vita-list {
  display: grid;
  gap: 12px;
}

.vita-list li {
  position: relative;
  padding-left: 18px;
}

.vita-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "·";
  font-weight: 600;
}

.teaching-list,
.education-list {
  display: grid;
  gap: 24px;
}

.teaching-group + .teaching-group {
  margin-top: 36px;
}

.institution-heading {
  margin-bottom: 18px;
  color: var(--muted);
  font: 600 15px/1.45 Spectral, Georgia, serif;
  letter-spacing: 0.01em;
}

.vita-item-title {
  margin-bottom: 3px;
  font-weight: 400;
}

.vita-item-detail {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.reference-card p {
  margin-bottom: 2px;
}

.reference-name {
  font-weight: 400;
}

/* Other */
.other-intro {
  max-width: 700px;
  margin-bottom: clamp(84px, 13vw, 132px);
}

.other-intro .page-title {
  margin-bottom: 30px;
}

.ballet-gallery {
  max-width: 820px;
}

.ballet-photo {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: clamp(96px, 16vw, 170px);
}

.ballet-photo:last-child {
  margin-bottom: 0;
}

.ballet-photo img {
  height: auto;
  border-radius: 2px;
  box-shadow: 0 9px 30px rgba(64, 60, 57, 0.08);
}

.ballet-photo figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.025em;
}

.photo-left {
  margin-right: auto;
  margin-left: 5%;
}

.photo-center {
  margin-right: auto;
  margin-left: auto;
}

.photo-right {
  margin-right: 4%;
  margin-left: auto;
}

.photo-portrait img {
  width: clamp(150px, 20vw, 205px);
}

.photo-landscape img {
  width: clamp(250px, 38vw, 355px);
}

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

@media (max-width: 820px) and (min-width: 721px) {
  .home-grid {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .portrait-frame,
  .portrait-frame img {
    width: 148px;
  }

  .portrait-frame img {
    height: 197px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .site-header {
    padding-top: 20px;
  }

  .header-inner {
    align-items: center;
    gap: 14px;
  }

  .site-mark {
    font-size: 14px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .site-main {
    padding-top: 34px;
    padding-bottom: 74px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portrait-frame {
    width: 120px;
  }

  .portrait-frame img {
    width: 120px;
    height: 159px;
  }

  .home-intro h1,
  .page-title {
    font-size: 26px;
  }

  .affiliation-school {
    white-space: normal;
  }

  .page-heading {
    margin-bottom: 48px;
  }

  .research-section,
  .vita-section {
    margin-bottom: 60px;
  }

  .research-section > h2,
  .vita-section > h2 {
    margin-bottom: 27px;
    font-size: 18px;
  }

  .paper-list {
    gap: 36px;
  }

  .paper {
    padding-left: 27px;
  }

  .abstract p {
    text-align: left;
  }

  .other-intro {
    margin-bottom: 76px;
  }

  .ballet-photo {
    margin-bottom: 84px;
  }

  .photo-left {
    margin-left: 0;
  }

  .photo-right {
    margin-right: 0;
  }
}

@media (max-width: 500px) {
  .header-inner {
    display: block;
  }

  .site-mark {
    display: none;
  }

  .site-nav {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav a {
    font-size: 12.5px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
