:root {
  color-scheme: light;
  --ink: #232627;
  --secondary: #464d54;
  --link: #285675;
  --rule: #d9dce0;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--link); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.page { width: min(55rem, calc(100% - 7rem)); margin: 0 auto; padding: clamp(4.25rem, 8vw, 7.5rem) 0 8rem; }
.skip { position: absolute; inset: .7rem auto auto .7rem; padding: .35rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }

.masthead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.name, h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.name { color: var(--ink); font-size: clamp(3rem, 4.8vw, 3.85rem); font-weight: 400; line-height: 1.12; letter-spacing: -.042em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.45rem; }
nav a { padding-block: .3rem; font-size: .94rem; color: var(--secondary); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--link); text-decoration: underline; }
.profile { max-width: 41rem; padding-top: 2.35rem; }
.profile p { line-height: 1.65; }
.profile p + p { margin-top: 1.85rem; }
.appointment { font-size: 1.08rem; }
.contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.65rem; margin-top: 1.65rem; }
.cv { white-space: nowrap; }

.section { max-width: 43rem; margin-top: 6rem; }
.section + .section { margin-top: 6.75rem; }
.section h2, .page-heading { line-height: 1.2; letter-spacing: -.035em; }
.section h2 { font-size: 2.25rem; font-weight: 400; }
.papers, .degrees { list-style: none; padding: 0; margin-top: 2.5rem; }
.papers li + li { margin-top: 3rem; }
.papers h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.papers .authors { margin-top: .4rem; color: var(--secondary); }
.papers .reference { margin-top: .2rem; color: var(--secondary); font-size: .96rem; }
.degrees li + li { margin-top: .85rem; }
.page-heading { font-size: clamp(1.85rem, 3vw, 2.1rem); border-top: 1px solid var(--rule); margin-top: 1.6rem; padding-top: 1.7rem; }
.tools { margin-top: 1.4rem; max-width: 44rem; }
.tools article + article { margin-top: 1.35rem; }
.tools h2 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.tools p { margin-top: .22rem; }
.tools .tool-links { margin-top: .45rem; word-spacing: .25em; }

@media screen and (max-width: 42rem) {
  .page { width: auto; margin: 0 clamp(1.45rem, 6.5vw, 2.25rem); padding: 2.65rem 0 4.5rem; }
  .masthead { flex-direction: column; gap: .8rem; align-items: flex-start; }
  .name { font-size: 2.7rem; }
  nav { gap: .1rem 1.1rem; }
  nav a { display: inline-flex; align-items: center; min-height: 2.55rem; }
  .profile { padding-top: 1.75rem; }
  .profile p + p { margin-top: 1.5rem; }
  .contact { margin-top: 1.3rem; }
  .section, .section + .section { margin-top: 3.75rem; }
  .section h2 { font-size: 2rem; }
  .papers, .degrees { margin-top: 1.75rem; }
  .papers li + li { margin-top: 2.35rem; }
  .papers h3 { font-size: 1.3rem; }
}

@media print {
  .page { width: 100%; padding: 0; }
  .profile, .section { max-width: none; }
  .profile { padding-top: 1rem; }
  .profile p + p, .contact { margin-top: .75rem; }
  .section, .section + .section { margin-top: 2.2rem; }
  .papers, .degrees, .papers li + li { margin-top: 1.25rem; }
  nav, .skip { display: none; }
  .papers li, .tools article { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}
