:root {
  color-scheme: dark;
  --paper: #18141d;
  --white: #110e15;
  --ink: #f3eef4;
  --muted: #c0b5c3;
  --accent: #705087;
  --accent-readable: #b993d0;
  --accent-soft: #30233a;
  --rule: #493e50;
  --panel: #261d2f;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 10; padding: 8px 12px; color: var(--ink); background: var(--accent); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-top: 5px solid var(--accent); border-bottom: 1px solid var(--rule); background: rgba(17, 14, 21, .97); }
.header-inner { width: min(1100px, calc(100% - 48px)); min-height: 80px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.identity { display: flex; flex-direction: column; gap: 2px; }
.identity a { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.15; text-decoration: none; }
.identity span { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 25px; }
nav a { padding: 7px 0 5px; border-bottom: 2px solid transparent; font-size: 14px; text-decoration: none; }
nav a:hover, nav a.active { border-bottom-color: var(--accent); color: var(--accent-readable); }
.home-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; align-items: start; }
.home-sidebar { position: sticky; top: 106px; margin-top: 20px; padding: 10px 0 16px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); }
.intro { margin-top: 20px; padding: 20px 0 24px; border-top: 3px solid var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.intro h1 { max-width: 690px; margin: 0 0 24px; font-size: 23px; line-height: 1.45; letter-spacing: 0; }
.intro-copy > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.headshot-placeholder { width: 120px; margin: 0 0 15px; }
.headshot-placeholder div, .headshot-placeholder img { display: block; width: 100%; aspect-ratio: 4 / 5; border: 1px solid #6c5f73; background: #29232f; object-fit: cover; }
.headshot-placeholder figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
.home-sidebar dl { margin: 0 0 14px; }
.home-sidebar dl div + div { margin-top: 11px; }
.home-sidebar dt { margin-bottom: 2px; color: var(--accent-readable); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.home-sidebar dd { margin: 0; font-size: 13px; line-height: 1.45; }
.sidebar-links { margin: 0; font-size: 13px; line-height: 1.65; }
.sidebar-links a { color: var(--accent-readable); text-underline-offset: 3px; }
.text-link, .cv-note a { color: var(--accent-readable); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover, .cv-note a:hover { text-decoration-thickness: 2px; }
.work-section { margin-inline: -24px; padding: 42px 24px 52px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); background: var(--panel); }
.work-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 45px; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.1; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.work-list article { padding-block: 24px; border-top: 1px solid var(--rule); }
.work-list article:first-child { padding-top: 0; border-top: 0; }
.work-list article:last-child { padding-bottom: 0; }
.work-list h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.25; }
.work-list h3 a { text-decoration: none; }
.work-list h3 a:hover { color: var(--accent-readable); }
.work-list p { margin: 0; color: var(--muted); font-size: 15px; }
.home-lower { padding: 52px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.home-lower > div + div { padding-left: 35px; border-left: 1px solid var(--rule); }
.home-lower h2 { margin: 0 0 18px; font-size: 32px; }
.home-lower p { max-width: 470px; margin: 0 0 18px; color: var(--muted); }
.page-main { padding: 20px 0 96px; }
.page-title { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 70px; padding: 20px 0 36px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); }
.page-title h1 { margin: 0; font-size: 40px; line-height: 1.15; }
.page-title p { margin: 3px 0 0; color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.page-title-link { display: inline-block; margin-top: 10px; font-size: 14px; }
.content-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 70px; padding-top: 42px; }
.side-index { position: sticky; top: 106px; align-self: start; font-size: 13px; }
.side-index p { margin: 0 0 10px; color: var(--muted); }
.side-index a { display: block; padding: 7px 0; color: var(--accent-readable); text-decoration: none; }
.side-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.2; }
.prose h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.3; }
.prose p { margin: 0 0 20px; }
.prose section + section { margin-top: 54px; padding-top: 46px; border-top: 1px solid var(--accent); }
.status { margin-bottom: 14px !important; color: var(--accent-readable); font-size: 13px; font-weight: 600; }
.details { color: var(--muted); }
.past-research-list { margin-top: 22px; border-top: 1px solid var(--rule); }
.past-project { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.past-project h3 { margin-bottom: 5px; font-size: 22px; }
.past-project .status { margin-bottom: 8px !important; }
.past-project > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.course-list, .cv-list { list-style: none; margin: 24px 0 0; padding: 0; }
.course-list li { padding: 15px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.course-name { font-weight: 500; }
.course-term { color: var(--muted); font-size: 14px; text-align: right; }
.course-list li:last-child { border-bottom: 0; }
.cv-section + .cv-section { margin-top: 54px; }
.cv-section > h2 { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cv-list li { display: grid; grid-template-columns: 135px 1fr; gap: 25px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cv-list li:last-child { border-bottom: 0; }
.cv-list time { color: var(--muted); font-size: 13px; }
.cv-list strong { display: block; font-weight: 600; }
.cv-list span { color: var(--muted); font-size: 14px; }
.cv-list .entry-details { margin-top: 6px; color: var(--muted); font-size: 14px; }
.cv-list .entry-details p { margin: 0; }
.contact-block { padding: 0 0 28px; }
.contact-block p { margin: 0 0 20px; }
.contact-block address { color: var(--muted); font-style: normal; }
.contact-block .contact-links { margin: 24px 0 0; }
.schedule-prompt { padding: 0; }
.schedule-prompt > p { max-width: 580px; color: var(--muted); }
.schedule-button { display: inline-block; padding: 9px 14px; border: 1px solid var(--accent-readable); color: var(--accent-readable); font-size: 14px; font-weight: 500; text-decoration: none; }
.schedule-button:hover { color: var(--ink); background: var(--accent); }
.schedule-back { margin: 24px 0 0; font-size: 14px; }
.schedule-embed-section { margin-top: 24px; overflow: hidden; border-top: 3px solid var(--accent); background: var(--paper); }
.schedule-embed-section noscript p { margin: 0; padding: 28px; }
.schedule-embed-section noscript a { color: var(--accent-readable); }
.error-page > p { margin: 36px 0 0; }
footer { padding-block: 24px; border-top: 1px solid var(--rule); background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner p { margin: 0; }
a:focus-visible { outline: 2px solid var(--accent-readable); outline-offset: 4px; }
@media (max-width: 800px) {
  .header-inner { min-height: 0; padding-block: 12px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .identity span { display: none; }
  nav { width: 100%; gap: 6px 20px; flex-wrap: wrap; overflow: visible; }
  .home-shell { grid-template-columns: 1fr; gap: 0; }
  .home-content { display: contents; }
  .intro { order: 1; }
  .home-sidebar { order: 2; position: static; margin-top: 18px; margin-bottom: 42px; display: grid; grid-template-columns: 150px 1fr; gap: 32px; }
  .home-sidebar.no-headshot { display: block; max-width: 320px; }
  .work-section { order: 3; }
  .home-lower { order: 4; }
  .intro { padding: 20px 0 24px; }
  .work-layout, .page-title, .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .side-index { position: static; display: flex; flex-wrap: wrap; gap: 2px 20px; }
  .side-index p { width: 100%; }
  .home-lower { gap: 45px; }
  .home-lower > div + div { padding-left: 40px; }
}
@media (max-width: 560px) {
  .wrap, .header-inner { width: min(100% - 32px, 1100px); }
  .identity a { font-size: 27px; }
  nav { gap: 4px 17px; }
  .intro h1 { font-size: 21px; }
  .home-sidebar { display: block; max-width: 270px; }
  .work-section { margin-inline: -16px; padding: 38px 16px 44px; }
  .home-lower { grid-template-columns: 1fr; padding-block: 60px; }
  .home-lower > div + div { padding: 38px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .page-main { padding: 20px 0 70px; }
  .page-title h1 { font-size: 35px; }
  .page-title p { font-size: 18px; }
  .course-list li { grid-template-columns: 1fr; gap: 2px; }
  .course-term { text-align: left; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .schedule-embed-section { margin-inline: -16px; }
  .footer-inner { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { nav, .side-index, footer { display: none; } body, .site-header { color: #182329; background: #fff; } .page-main { padding: 20px 0; } }
