:root {
  --text: #292929;
  --accent: #C8102E;
  --accent-hover: #A30D25;
  --muted: #555555;
  --line: #E0DDD7;
  --paper: #FFFFFF;
  --wash: #F5F4F1;
  --ivory: #F8F7F4;
  --section-surface: #F2E9E9;
  --header: 4rem;
  --site-width: 90rem;
  --sidebar-width: 17rem;
  --sidebar-inset: 1.35rem;
  --gutter: clamp(1rem, 2.7vw, 2.5rem);
  --content-inset: clamp(1.25rem, 3.1vw, 3rem);
  --reading-width: 72ch;
}
html { font-size: 100%; }
body.academic-site {
  margin: 0;
  padding: 0;
  background: var(--wash);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, sans-serif;
}
.academic-site a { color: var(--accent); }
.academic-site :focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .7rem;
  left: .7rem;
  background: var(--paper);
  padding: .5rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  background: var(--ivory);
  color: var(--text);
  box-shadow: inset 0 2px var(--accent), inset 0 -1px var(--line);
}
.header-inner, .workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  max-width: var(--site-width);
  margin-inline: auto;
}
.header-inner {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) auto;
  height: var(--header);
  align-items: center;
}
.site-header a { color: var(--text); text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-self: start;
  margin-inline-start: var(--sidebar-inset);
  font: 650 1.12rem/1.2 Georgia, serif;
}
.site-header .wordmark { color: var(--accent-hover); }
.mobile-portrait { display: none; }
.desktop-nav ul, .section-nav ul, .mobile-panel ul, .academic-profiles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-nav { padding-inline: var(--gutter); border-inline-start: 1px solid var(--line); }
.desktop-nav ul { display: flex; gap: .35rem; margin-inline-start: -.65rem; }
.desktop-nav a { white-space: nowrap; }
.desktop-nav a, .mobile-primary a {
  position: relative;
  display: block;
  padding: .4rem .65rem;
  border-radius: .3rem;
  font-size: .78rem;
  font-weight: 650;
}
:is(.desktop-nav, .mobile-primary) a:hover,
:is(.desktop-nav, .mobile-primary) a[aria-current="page"] {
  background: var(--section-surface);
  color: var(--accent-hover);
}
:is(.desktop-nav, .mobile-primary) a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-top: .1rem;
  background: var(--accent);
}
.site-header .header-qr {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .35rem;
  margin-inline-end: var(--gutter);
  color: var(--muted);
  font: italic .72rem/1.1 Georgia, serif;
}
.header-qr img {
  display: block;
  flex: none;
  width: 58px;
  height: 58px;
}
.mobile-menu { display: none; }
.workspace {
  position: fixed;
  inset: var(--header) 0 0;
}
.profile {
  padding: 1.35rem var(--sidebar-inset) 1rem;
  background: var(--ivory);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.portrait {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 3px solid var(--line);
}
.portrait-initials {
  display: grid;
  place-items: center;
  background: var(--wash);
  font: 2.5rem Georgia, serif;
}
.profile-identity { text-align: left; }
.profile-name {
  margin: .65rem 0 .12rem;
  font: 650 1.04rem/1.65 Georgia, serif;
}
.profile-identity .affiliation {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}
.profile-identity .affiliation .academic-label {
  color: var(--accent-hover);
  font-size: .78125rem;
  font-weight: 600;
}
.profile-identity .research-summary {
  margin: .4rem 0 0;
  padding-top: .4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  font-style: italic;
  line-height: 1.4;
}
.profile-identity .profile-email {
  margin: .35rem 0 0;
  font-size: .84375rem;
  overflow-wrap: anywhere;
}
:is(.profile, .mobile-panel) .profile-identity + .academic-profiles {
  padding-top: .28rem;
  border-top: 1px solid var(--line);
}
.profile .academic-profiles { margin-block: .35rem .5rem; }
.academic-profiles a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 1.65rem;
  font-size: .88rem;
}
:is(.profile, .mobile-panel) .academic-profiles a { font-size: .84375rem; }
.profile .academic-profiles li + li { margin-top: .1rem; }
.academic-profiles img { flex: none; width: 1rem; height: 1rem; }
.mobile-panel .academic-profiles,
.mobile-panel .profile-identity { grid-column: 1 / -1; }
.mobile-panel .academic-profiles ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mobile-panel .academic-profiles a,
.mobile-panel .profile-email a { color: var(--accent-hover); }
.section-nav {
  border: 1px solid var(--line);
  border-radius: .45rem;
  align-self: start;
}
.section-nav-label {
  margin: 0;
  padding: .45rem .55rem;
  border-radius: .4rem .4rem 0 0;
  background: var(--section-surface);
  color: var(--accent-hover);
  font-size: .75rem;
  font-weight: 700;
}
.section-nav-label::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-top: .18rem;
  background: var(--accent);
}
.section-nav li + li { border-top: 1px solid var(--line); }
.section-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  border-inline-start: 2px solid transparent;
  color: var(--text);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  padding: .34rem .48rem;
}
.section-nav a::after {
  content: "";
  flex: none;
  width: .3rem;
  height: .3rem;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  opacity: .65;
}
.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a[aria-current] {
  background: var(--section-surface);
  color: var(--accent-hover);
}
.section-nav a[aria-current] { border-inline-start-color: var(--accent); }
.section-nav li:last-child a { border-radius: 0 0 .4rem .4rem; }
.section-nav a:focus-visible { outline-offset: -2px; }
#content {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(1rem, 2.3vw, 2rem) var(--gutter);
  scroll-padding-top: 1.5rem;
}
.panel { max-width: 64rem; }
.page-heading {
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: .65rem;
}
.page-heading-title {
  padding: .85rem var(--content-inset) .95rem;
  border-radius: .5rem .5rem 0 0;
  background: var(--section-surface);
}
.page-heading-title:last-child { border-radius: .5rem; }
.page-heading h1 {
  margin: 0;
  font: 500 clamp(1.65rem, calc(1.4rem + 1vw), 2.25rem)/1.16 Georgia, serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.page-heading h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: .5rem;
  background: var(--accent);
}
.page-category,
.research-kicker {
  margin: 0 0 .35rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-heading-summary {
  padding: .6rem var(--content-inset) .7rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 .6rem .6rem;
  background: var(--ivory);
  color: var(--muted);
}
.page-subtitle,
.page-heading .page-intro {
  max-width: var(--reading-width);
  margin: 0;
  line-height: 1.5;
}
.page-subtitle { font-style: italic; }
.page-heading .page-intro { margin-top: .2rem; }
.page-back {
  display: inline-block;
  margin-bottom: .6rem;
  font-size: .9rem;
  font-weight: 650;
}
.page-back:hover { color: var(--accent-hover); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .55rem;
  padding: 0;
  margin: 0 0 .65rem;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.breadcrumbs li + li { border-inline-start: 1px solid var(--line); padding-inline-start: .55rem; }
.hero h1 {
  font: 500 clamp(1.95rem, 3.1vw, 3.2rem)/1.12 Georgia, serif;
  letter-spacing: -.035em;
  margin: 0;
  color: inherit;
}
.hero h1,
.profile-name,
.wordmark {
  font-variant-caps: small-caps;
  letter-spacing: .03em;
}
.panel :is(h2, h3, h4, h5, h6),
.academic-label,
.hero-role,
.hero-details strong,
.home-academic-profile li strong,
.academic-page strong:has(+ .entry-meta),
.desktop-nav a,
.mobile-primary a,
.section-nav :is(a, .section-nav-label),
.mobile-menu > summary {
  text-transform: uppercase;
  letter-spacing: .025em;
}
.panel .institution-name { text-transform: none; }
.hero .eyebrow {
  margin: 0 0 .55rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .85rem;
  font-weight: 700;
}
.hero-role { margin: .45rem 0 0; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.home-frame {
  margin-block: .75rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 11px;
  background: var(--ivory);
}
.home-academic-profile section + section {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.home-frame h2,
.prose .home-frame h2 {
  margin: 0 0 4px;
  padding: .25rem .4rem;
  border-radius: .25rem;
  background: var(--section-surface);
  color: var(--accent-hover);
  font: 700 .9rem/1.25 system-ui, -apple-system, sans-serif;
  letter-spacing: .025em;
}
.home-frame ul,
.prose .home-frame ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-frame li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: .5rem;
  margin: 0;
  font-size: .85rem;
  line-height: 1.25;
}
.home-academic-profile li strong {
  display: block;
  font-weight: 600;
}
.home-academic-date,
.home-academic-institution {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}
.home-academic-date {
  line-height: calc(.85rem * 1.25);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (width > 64rem) {
  .home-frame,
  .site-welcome-home {
    max-width: max(43rem, 83%);
  }
}
@media (max-width: 38rem) {
  .home-frame li {
    grid-template-columns: 5.75rem minmax(0, 1fr);
  }
}
.home-frame > p,
.prose .home-frame > p {
  margin: 4px 0 0;
  font-size: .85rem;
  line-height: 1.25;
  text-underline-offset: .15em;
}
.site-welcome {
  margin: 0 0 .4rem;
  padding: .15rem .65rem;
  background: var(--ivory);
  color: #365675;
  font: italic .85rem/1.4 Georgia, serif;
}
.site-welcome span {
  position: relative;
  display: block;
  width: fit-content;
  max-width: calc(100% - .5rem);
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: no-preference) {
  .site-welcome span {
    animation: site-welcome-drift 20s ease-in-out infinite alternate;
  }
  .site-welcome:hover span,
  .site-welcome:focus span { animation-play-state: paused; }
}
@keyframes site-welcome-drift {
  from { left: 0; transform: translateX(0); }
  to { left: 100%; transform: translateX(-100%); }
}
.hero.home-frame {
  margin-block-start: 0;
  padding: 0;
  border-top-width: 3px;
  overflow: hidden;
}
.hero-identity,
.hero-professional {
  padding: .85rem clamp(.875rem, 2vw, 1.35rem);
}
.hero-identity {
  background: var(--section-surface);
  border-bottom: 1px solid var(--line);
}
.hero .hero-details {
  max-width: var(--reading-width);
  gap: .4rem;
}
.hero-details > li {
  grid-template-columns: 1rem minmax(0, 1fr);
  line-height: 1.45;
}
.hero-details > li + li {
  padding-top: .4rem;
  border-top: 1px solid var(--line);
}
.hero-details strong,
.hero-details svg { color: var(--accent-hover); }
.hero-details svg {
  width: 1rem;
  height: 1rem;
  margin-top: .1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.hero a.button {
  padding: .4rem .7rem;
  border-radius: .35rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 650;
}
.hero a.primary { background: var(--accent); color: var(--paper); }
.hero a.button:hover { background: var(--accent-hover); color: var(--paper); }
.prose, .site-footer {
  background: var(--paper);
  border-inline: 1px solid var(--line);
  padding-inline: var(--content-inset);
}
.prose { padding-block: 1.35rem; }
.prose p, .prose ul, .prose ol { max-width: var(--reading-width); margin-block: 0 1rem; }
.prose li + li { margin-top: .3rem; }
.prose a, .site-footer a {
  overflow-wrap: anywhere;
  text-underline-offset: .15em;
}
.prose a:hover, .site-footer a:hover { color: var(--accent-hover); }
.site-footer {
  padding-block: 1rem;
  border: 1px solid var(--line);
  border-radius: 0 0 .45rem .45rem;
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 64rem) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    padding-inline: var(--gutter);
  }
  .wordmark { margin-inline-start: 0; }
  .mobile-portrait { display: inline-flex; flex: none; }
  .mobile-portrait .portrait {
    width: 2.15rem;
    height: 2.15rem;
    border-width: 1px;
    font-size: .85rem;
  }
  .panel { margin-inline: auto; }
  html { scroll-padding-top: calc(var(--header) + 1rem); }
  .workspace { display: block; position: static; padding-top: var(--header); }
  #content { overflow: visible; }
  .profile, .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .header-inner { gap: .45rem; }
  .site-header .header-qr { flex: none; margin-inline-end: 0; }
  .header-qr span { max-width: 2.25rem; text-align: right; }
  .mobile-menu summary {
    cursor: pointer;
    white-space: nowrap;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    border-radius: .3rem;
  }
  .mobile-panel {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--header));
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    background: var(--ivory);
    color: var(--text);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .65rem;
  }
}

@media (max-width: 26rem) {
  .header-inner { padding-inline: .65rem; gap: .35rem; }
  .site-header .header-qr {
    flex-direction: column-reverse;
    gap: 0;
    font-size: 8px;
    line-height: 1;
  }
  .header-qr img { width: 56px; height: 56px; }
  .header-qr span { max-width: none; }
}

.prose .recent-publications .bibliography-list {
  padding: 0;
  list-style: none;
}
.prose .recent-publications .bibliography-list > li {
  margin: 0;
  padding-block: .65rem;
  border-bottom: 1px solid var(--line);
}
.prose .recent-publications .bibliography-list p { margin: .2rem 0 0; }
.prose .recent-publications .publication-title,
.prose .recent-publications .publication-all-link { font-weight: 680; }
.prose .recent-publications .entry-meta { color: var(--muted); font-size: .9rem; }

.prose:has(> .home-highlights) {
  padding: 0;
  border: 0;
  background: none;
}
.home-highlights { margin-block-start: 0; }
.prose .home-highlights li + li {
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.home-highlight-date { white-space: normal; }
