:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #f1f0eb;
  --ink: #202429;
  --muted: #515860;
  --accent: #253f58;
  --rule: #d5d5cf;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: #dae3ea; color: var(--ink); }

.shell {
  width: min(73rem, calc(100% - 6rem));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 2;
  padding: .65rem 1rem;
  background: var(--accent);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--rule); }
.header-row {
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  padding-block: .5rem;
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -.075em;
  text-decoration: none;
}
#nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); }
#nav a {
  padding-block: .7rem;
  color: var(--ink);
  font-size: .89rem;
  font-weight: 520;
  text-decoration: none;
}
#nav a:hover { color: var(--accent); text-decoration: underline; }
.menu { display: none; }

.kicker {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 670;
  letter-spacing: .065em;
  line-height: 1.45;
  text-transform: uppercase;
}
.introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.75rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.introduction h1 {
  margin-block: .85rem 1.1rem;
  font: 400 clamp(2.8rem, 5vw, 4.4rem)/.99 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.introduction-text {
  color: var(--muted);
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.5;
}
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: 1rem;
  padding-block: .5rem;
  font-size: .93rem;
  font-weight: 650;
}
.reference-image { align-self: center; }
.reference-image img { width: 100%; }
.reference-image figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.48;
}
.reference-image figcaption a { white-space: normal; }

.feature {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(9rem, .26fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
.section-title {
  font: 400 clamp(1.8rem, 2.65vw, 2.45rem)/1.12 var(--serif);
  letter-spacing: -.03em;
}
.section-description {
  margin-top: .65rem;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--muted);
}
.ruled + .ruled { border-top: 1px solid var(--rule); }
.feature-project h3 {
  max-width: 50rem;
  margin-block: .65rem .85rem;
  font: 400 clamp(1.95rem, 3.5vw, 3.15rem)/1.06 var(--serif);
  letter-spacing: -.032em;
  text-wrap: pretty;
}
.feature-project h3 a { color: var(--ink); text-decoration: none; }
.feature-project h3 a:hover { color: var(--accent); text-decoration: underline; }
.feature-project > p:not(.kicker), .prose p, .profile-details > p {
  max-width: 65ch;
  color: var(--muted);
}
.proposed {
  margin-top: 1.7rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}
.proposed h3 { font-size: 1rem; font-weight: 660; }
.proposed ul {
  margin: .55rem 0 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  font-size: .91rem;
}
.proposed li + li { margin-top: .35rem; }
.proposed strong { color: var(--ink); font-weight: 620; }

.research-list > div {
  display: grid;
  grid-template-columns: minmax(9.5rem, .42fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.research-list > div:first-child { padding-top: 0; }
.research-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.research-list dt { font-size: .98rem; font-weight: 650; }
.research-list dd { color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: minmax(10.5rem, .48fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.profile h3 {
  font: 400 clamp(1.8rem, 2.75vw, 2.55rem)/1.12 var(--serif);
  letter-spacing: -.028em;
}
.role { margin-top: .5rem; color: var(--accent); font-size: .9rem; font-weight: 630; }
.education {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .91rem;
}
.education dt, .project-meta dt { color: var(--accent); font-size: .78rem; font-weight: 650; }
.education dd, .project-meta dd { margin-top: .2rem; }
.prose p + p { margin-top: .85rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.45rem;
  color: var(--muted);
  font-size: .84rem;
}
.footer-row a { white-space: nowrap; }

.project-page { padding-block: 2.35rem 4.75rem; }
.breadcrumb { margin-bottom: 1.65rem; font-size: .9rem; }
.project-heading {
  padding-bottom: 2.1rem;
  border-bottom: 1px solid var(--rule);
}
.project-heading h1 {
  max-width: 58rem;
  margin-block: .8rem 1rem;
  font: 400 clamp(2.5rem, 4.45vw, 4.05rem)/1.03 var(--serif);
  letter-spacing: -.042em;
  text-wrap: pretty;
}
.project-deck {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.19rem);
  line-height: 1.5;
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .34fr);
  column-gap: clamp(2rem, 6vw, 5.8rem);
  padding-top: 2.35rem;
}
.project-sidebar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  border-left: 1px solid var(--rule);
  padding-left: 1.35rem;
}
.project-meta { font-size: .91rem; line-height: 1.48; }
.project-meta > div + div { margin-top: 1rem; }
.contents { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); }
.contents ul { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .87rem; }
.contents a { display: inline-block; padding-block: .28rem; }
.project-article { grid-column: 1; grid-row: 1; max-width: 71ch; }
.project-article section + section {
  margin-top: 1.7rem;
  padding-top: 1.55rem;
  border-top: 1px solid var(--rule);
}
.project-article h2 {
  margin-bottom: .55rem;
  font: 400 clamp(1.56rem, 2.3vw, 2.1rem)/1.1 var(--serif);
  letter-spacing: -.025em;
}
.project-article p, .project-article li { color: var(--muted); }
.project-article ul { margin: .65rem 0 0; padding-inline-start: 1.25rem; }
.project-article li + li { margin-top: .4rem; }
.method-note {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.method-note h3 { margin-bottom: .4rem; font-size: .97rem; font-weight: 670; }

@media (max-width: 950px) {
  .shell { width: calc(100% - 4rem); }
  .introduction h1 { font-size: clamp(2.6rem, 5.8vw, 3.65rem); }
  .profile { grid-template-columns: 1fr; gap: 1.15rem; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-row { min-height: 3.8rem; flex-wrap: wrap; gap: 0; }
  .menu:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 44px;
    padding: .4rem .15rem .4rem .8rem;
    background: transparent;
    color: var(--accent);
    border: 0;
    cursor: pointer;
    font-size: .89rem;
    font-weight: 650;
  }
  .menu[aria-expanded="true"] span { font-size: 0; }
  .menu[aria-expanded="true"] span::after { content: "−"; font-size: 1rem; }
  #nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0 1.2rem;
    border-top: 1px solid var(--rule);
    padding-bottom: .5rem;
  }
  #nav a { min-height: 44px; }
  .js #nav { display: none; }
  .js #nav.open { display: flex; flex-direction: column; align-items: stretch; }

  .introduction { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem 2.35rem; }
  .introduction h1 {
    margin-block: .65rem .85rem;
    font-size: clamp(1.9rem, 9.5vw, 3.65rem);
  }
  .introduction .text-link { margin-top: .65rem; }
  .reference-image { max-width: 33rem; }
  .section-grid { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 2.35rem; }
  .section-description { margin-top: .35rem; }
  .research-list > div { grid-template-columns: 1fr; gap: .25rem; padding-block: .85rem; }
  .project-page { padding-block: 1.55rem 2.75rem; }
  .breadcrumb { margin-bottom: 1.35rem; }
  .project-heading { padding-bottom: 1.55rem; }
  .project-heading h1 { font-size: clamp(2.3rem, 7.5vw, 3.5rem); }
  .project-layout { grid-template-columns: 1fr; row-gap: 1.6rem; padding-top: 1.4rem; }
  .project-sidebar, .project-article { grid-column: auto; grid-row: auto; }
  .project-sidebar { border-left: 0; padding: 0 0 1.2rem; border-bottom: 1px solid var(--rule); }
  .project-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .project-meta > div + div { margin: 0; }
  .contents { display: none; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 2rem); }
  .footer-row { flex-direction: column; gap: .5rem; }
}
