@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fafaf6;
  --ink: #20231f;
  --soft: #4e544f;
  --blue: #3044a7;
  --rule: #cccec5;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; font: 1rem/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: rgba(49,68,167,.12); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { color: #fff; background: var(--blue); }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.wrap { width: min(77rem, calc(100% - clamp(3rem, 12vw, 13rem))); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .65rem 1.2rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 1.72rem/1 var(--serif); letter-spacing: -.025em; white-space: nowrap; }
.wordmark img { object-fit: contain; }
nav { display: flex; height: 100%; gap: clamp(1.2rem, 3.2vw, 3rem); align-items: center; }
nav a { position: relative; padding: .7rem 0; font-size: .94rem; font-weight: 500; }
nav a::after { content: ""; position: absolute; height: 2px; background: var(--blue); bottom: .24rem; left: 0; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .17s; }
nav a[aria-current], nav a:hover { color: var(--blue); }
nav a[aria-current]::after, nav a:hover::after { transform: scaleX(1); }
.hero { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); grid-template-areas: "intro portrait" "body portrait"; column-gap: clamp(3rem, 7.2vw, 7rem); padding-block: clamp(3.4rem, 5.1vw, 5.5rem) clamp(3.5rem, 5.3vw, 5.5rem); align-content: center; }
.profile-intro { grid-area: intro; align-self: end; }
.eyebrow { display: flex; align-items: center; gap: .8rem; color: var(--blue); text-transform: uppercase; letter-spacing: .145em; font-size: .82rem; line-height: 1.4; font-weight: 650; }
.short-line { flex: 0 0 2rem; background: currentColor; height: 1px; }
h1 { font-size: clamp(5.2rem, 8.75vw, 8.6rem); line-height: .97; letter-spacing: -.048em; margin: 1.2rem 0 1.1rem; }
h1 em { font-weight: 400; }
.appointment p:first-child { font-weight: 540; font-size: clamp(1.12rem,1.58vw,1.4rem); letter-spacing: -.028em; color: var(--ink); }
.appointment p + p { font-size: 1.05rem; margin-top: .04rem; color: var(--soft); }
.profile-body { grid-area: body; align-self: start; padding-top: 1.3rem; max-width: 36.4rem; font-size: clamp(1rem,1.26vw,1.13rem); line-height: 1.6; color: #464b46; }
.profile-body p + p { margin-top: .7rem; }
.profile-actions { display: flex; align-items: center; gap: 1.7rem; margin-top: 1.55rem; }
.action { display: inline-flex; align-items: center; justify-content: center; font-size: .94rem; font-weight: 550; color: white; background: var(--blue); border: 1px solid var(--blue); padding: .65rem 1.15rem; transition: background .15s; }
.action:hover { background: #1d307f; }
.inline-link, .cite-link, .top-link { width: fit-content; color: var(--blue); font-size: .94rem; font-weight: 550; text-decoration: underline; text-decoration-color: #929ac2; text-underline-offset: .27em; text-decoration-thickness: 1px; }
.inline-link:hover, .cite-link:hover, .top-link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.portrait-print { grid-area: portrait; position: relative; align-self: center; justify-self: end; width: min(100%,27.5rem); margin-right: .6rem; isolation: isolate; }
.portrait { width: 100%; height: auto; display: block; }
.portrait-print::after { content: ""; z-index: -1; position: absolute; inset: .65rem -.65rem -.65rem .65rem; border: 1px solid #7b86b9; }
.ruled { border-top: 1px solid var(--rule); }
.section-layout { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr); gap: clamp(1.8rem, 4.8vw, 4.5rem); padding-block: clamp(3rem,5.4vw,5.5rem); }
.section-intro h2, .contact h2 { font-size: clamp(3.2rem,5.1vw,5rem); line-height: 1; letter-spacing: -.035em; margin-top: .66rem; }
.research { background: #fff; }
.paper + .paper { margin-top: 2.15rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.paper-meta { color: var(--blue); font-size: .85rem; font-weight: 600; letter-spacing: .065em; display: flex; align-items: center; gap: .8rem; }
.paper-meta i { width: 1.8rem; height: 1px; background: #9ea7cc; }
.paper-meta abbr { text-decoration: none; }
h3 { font-size: clamp(2rem,3vw,3rem); line-height: 1.1; margin: .6rem 0 .85rem; letter-spacing: -.023em; text-wrap: pretty; }
h3 a:hover { color: var(--blue); }
.authors, .journal { max-width: 47rem; color: var(--soft); }
.authors strong { color: var(--ink); font-weight: 650; }
.journal { margin-top: .2rem; font-size: .96rem; }
.paper-links { display: flex; align-items: baseline; gap: 1.6rem; margin-top: 1rem; }
.cite-link { color: var(--soft); text-decoration-color: #a6aaa3; font-weight: 450; }
.teaching { background: #edf0f8; }
.courses { border-top: 1px solid #a8b2cb; }
.course { border-bottom: 1px solid #b9c0d1; }
.course summary, .course-listing { font: 400 clamp(1.7rem, 2.35vw, 2.25rem)/1.14 var(--serif); letter-spacing: -.018em; padding: 1.28rem 0; }
.course summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; }
.course summary::-webkit-details-marker { display: none; }
.course summary:hover { color: var(--blue); }
.course summary small, .course-listing small { margin-left: .4rem; color: var(--soft); font: 550 .8rem var(--sans); letter-spacing: .07em; vertical-align: middle; }
.toggle { position: relative; flex: 0 0 1rem; height: 1rem; color: var(--blue); }
.toggle::before, .toggle::after { content: ""; width: 100%; height: 1.5px; position: absolute; left: 0; top: calc(50% - .75px); background: currentColor; }
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { display: none; }
.resources { padding: 0 0 1.1rem; list-style: none; }
.resources li { margin: 0; }
.resources a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; color: var(--blue); align-items: baseline; }
.resources li + li { border-top: 1px solid #d9deea; }
.resources a > span { text-decoration: underline; text-decoration-color: #b9c3dc; text-underline-offset: .2em; }
.resources a:hover > span { text-decoration-color: currentColor; }
.resources small { font: 400 .85rem var(--sans); color: var(--soft); white-space: nowrap; }
.resources .lesson { display: inline-block; margin-left: .4rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding-block: clamp(3.3rem,5.6vw,5.5rem); }
.contact h2 { margin-bottom: 1.4rem; }
.email-large { display: block; width: fit-content; color: var(--blue); font: 400 clamp(1.8rem,3.25vw,3.2rem)/1.1 var(--serif); letter-spacing: -.015em; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; text-decoration-color: #a7afd1; }
.email-large:hover { text-decoration-color: currentColor; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.4rem; row-gap: .6rem; margin-top: 1.1rem; }
.contact-links a:last-child { font-size: .95rem; color: var(--soft); }
.contact-links a:hover { text-decoration: underline; text-underline-offset: .22em; }
.building { display: block; width: 100%; height: auto; aspect-ratio: 2.18; object-fit: cover; }
footer { min-height: 5.3rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; color: var(--soft); font-size: .9rem; }
.footer-name { color: var(--ink); font: 1.5rem var(--serif); }
.top-link { margin-left: auto; }
@media (max-width: 850px) and (min-width: 701px) {
  .wrap { width: calc(100% - 4rem); }
  .hero { column-gap: 2.3rem; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
  .portrait-print { margin-right: 0; }
  h1 { font-size: 5rem; }
  .section-layout { grid-template-columns: 1fr 2.4fr; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 4.2rem; }
  .wrap { width: min(34.5rem, calc(100% - 2.5rem)); }
  .masthead-inner { height: 3.8rem; gap: .6rem; }
  .wordmark { gap: .36rem; font-size: 1.42rem; }
  .wordmark img { width: 1.65rem; height: 1.65rem; }
  nav { gap: clamp(.7rem,2.7vw,1.4rem); }
  nav a { font-size: .87rem; }
  .profile-link { display: none; }
  .hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "portrait" "body"; padding-block: 2.6rem 2.8rem; }
  h1 { font-size: clamp(4.75rem,16.5vw,6.2rem); margin-block: .65rem .65rem; }
  .eyebrow { font-size: .79rem; }
  .portrait-print { width: calc(100% - .52rem); margin:.0rem .52rem 0 0; margin-top: 1.65rem; }
  .portrait { aspect-ratio: 1.18; object-fit: cover; object-position: 50% 19%; }
  .portrait-print::after { inset: .45rem -.45rem -.45rem .45rem; }
  .profile-body { padding-top: 1.8rem; }
  .section-layout, .contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .section-intro h2, .contact h2 { margin-top: .4rem; }
  .paper + .paper { margin-top: 1.85rem; padding-top: 1.8rem; }
  .course summary, .course-listing { padding: 1.05rem 0; }
  .resources a { gap: .35rem 1rem; flex-wrap: wrap; }
  .contact-grid { gap: 1.8rem; }
  footer { font-size: .8rem; min-height: 4.5rem; column-gap: .8rem; }
  .footer-name { font-size: 1.22rem; }
  .top-link { font-size: .8rem; }
}
@media (max-width: 370px) {
  .wordmark img { display: none; }
  nav { gap: .65rem; }
  footer span { display: none; }
}
@media print {
  html { scroll-padding-top: 0; }
  body { background: white; color: black; font-size: 10pt; }
  .masthead, .profile-actions, .paper-links, footer, .building, .toggle { display: none; }
  .wrap { width: 100%; }
  .hero { padding: 0 0 1rem; grid-template-columns: 2fr 1fr; grid-template-areas: "intro portrait" "body portrait"; gap: .5rem 2rem; }
  h1 { font-size: 4rem; }
  .portrait-print { max-width: 11rem; margin: 0; }
  .portrait { aspect-ratio: auto; }
  .section-layout, .contact-grid { display: block; padding: 1.3rem 0; }
  .section-intro { margin-bottom: 1rem; }
  .paper { break-inside: avoid; }
  .paper + .paper { margin-top: 1rem; padding-top: 1rem; }
  .research, .teaching { background: white; }
}
