/* One system font and a fixed type scale throughout the portfolio. */
:root {
  color-scheme: light;
  --text: #363b40;
  --heading: #292e33;
  --muted: #596169;
  --link: #654071;
  --rule: #e3e5e7;
  --gutter: clamp(18px, 4.45vw, 72px);
  --sidebar: clamp(204px, 18vw, 250px);
  --columns-gap: clamp(36px, 4.8vw, 78px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 1.0625rem; line-height: 1.58; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, .author-name, .site-name { font-family: inherit; font-weight: 700; color: var(--heading); }
h1 { font-size: 2rem; line-height: 1.2; margin-bottom: .8rem; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.7rem 0 .55rem; }
h3 { font-size: 1.105rem; line-height: 1.4; }
strong, b { font-weight: 700; }
p + p { margin-top: .75rem; }
a, .link-button, summary { color: var(--link); text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
a:hover, summary:hover, .link-button:hover { color: #42244e; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
a, summary, button { touch-action: manipulation; }
button, input { font: inherit; }
[hidden] { display: none !important; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .24rem; }
::selection { color: var(--heading); background: #e9e1ed; }
.site-frame { width: min(calc(100% - 2 * var(--gutter)), 87rem); margin-inline: auto; }
.skip-link { position: absolute; top: .4rem; left: .4rem; z-index: 5; background: white; padding: .3rem .6rem; transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.masthead { background: white; border-bottom: 1px solid var(--rule); position: relative; z-index: 2; }
.masthead-inner, .academic-layout { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); column-gap: var(--columns-gap); }
.masthead-inner { min-height: 4.4rem; align-items: center; }
.site-name { width: fit-content; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.site-name:hover { color: var(--heading); }
#primary-nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(18px, 2.25vw, 36px); align-items: center; }
#primary-nav a { padding: .55rem 0; color: var(--muted); font-size: 1.01rem; text-decoration: none; }
#primary-nav a[aria-current="page"] { font-weight: 700; color: var(--heading); }
#primary-nav a:hover { color: var(--link); text-decoration: underline; }
.menu-toggle { display: none; }
.academic-layout { align-items: start; padding-block: 2.65rem 3.6rem; }
.author-sidebar { position: sticky; top: 1.7rem; min-width: 0; }
.author-photo { display: block; width: 11.2rem; height: 11.2rem; padding: 4px; border: 1px solid #e0e2e4; border-radius: 50%; background: white; object-fit: cover; object-position: 50% 15%; }
.author-name { font-size: 1.25rem; line-height: 1.3; margin: 1.05rem 0 .34rem; }
.author-bio > p + p { margin-top: 0; color: var(--text); font-size: .9375rem; line-height: 1.5; }
.profile-links { list-style: none; padding: 0; margin: 1rem 0 0; }
.profile-links li { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .91rem; line-height: 1.45; min-height: 1.9rem; }
.profile-links a { color: var(--text); text-decoration: none; padding-block: .17rem; }
.profile-links a:hover { color: var(--link); text-decoration: underline; }
.profile-icon { --position: 0; flex: none; display: inline-block; height: 1rem; width: 1rem; background-color: #43494f; mask: url("../ui/profile-icons.png") no-repeat; mask-size: 4rem 1rem; mask-position: calc(-1rem * var(--position)) center; }
.profile-icon.github { --position: 1; }
.profile-icon.scholar { --position: 2; }
.profile-icon.orcid { --position: 3; }
.article-column { width: 100%; min-width: 0; max-width: 56rem; }
.article-column:focus { outline: none; }
.article-column > :first-child, .page-intro h1 { margin-top: 0; }
.home > p, .page-intro > p { max-width: 80ch; }
.home > section, .content-section, .cv-page > section, .event-page > section { scroll-margin-top: 1.25rem; }
.interests { padding-left: 1.35rem; }
.interests a { color: var(--text); text-decoration-color: #bca9c2; }
.interests a:hover { color: var(--link); }
.section-link, .related-links, .page-tools { font-size: .94rem; }
.section-link, .related-links { margin-top: .54rem; }
.page-tools { margin: .65rem 0 1rem; }
.page-tools > span, .related-links > span { color: #81868a; padding-inline: .3rem; }
.paper, .project-entry, .cv-item { margin-top: .9rem; }
.paper + .paper, .project-entry + .project-entry, .cv-item + .cv-item { margin-top: 1.38rem; }
.paper h3 a, .cv-item h3 a { color: var(--heading); text-decoration-color: #b7a4be; text-underline-offset: .17em; }
.paper h3 a:hover, .cv-item h3 a:hover { color: var(--link); }
.authors, .publication-info { margin: .13rem 0 0; font-size: .99rem; }
.authors strong { color: var(--heading); }
.publication-info cite { font-style: italic; }
.meta { font-size: .91rem; color: var(--muted); }
.paper .meta { margin-top: .18rem; }
.paper-actions { align-items: baseline; column-gap: .95rem; row-gap: .28rem; margin-top: .35rem; font-size: .90rem; }
.doi-link, .article-column a { overflow-wrap: anywhere; }
details { min-width: 0; }
summary { width: fit-content; cursor: pointer; }
.citation[open] { flex-basis: 100%; }
.citation pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0 0; padding: .65rem .8rem; background: #f6f6f6; font: .84rem/1.5 Consolas, monospace; }
.project-entry > .meta, .cv-item > .meta { margin-top: .15rem; }
.project-entry > .meta + p, .cv-item > .meta + p { margin-top: .38rem; }
.project-entry ul { margin-top: .35rem; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.link-button { padding: 0; background: none; border: 0; cursor: pointer; }
.cv-contact { margin: 1rem 0; }
.cv-contact p { margin: 0; }
.cv-item p { margin-top: .18rem; }
.courses { margin-top: .25rem; font-size: .93rem; }
.courses ul { margin-top: .3rem; }
.cv-list li + li { margin-top: .4rem; }
.poster-title { font-size: 1.1rem; font-weight: 600; }
.poster-authors { list-style: none; padding: 0; margin: .65rem 0; }
.poster-authors li { display: inline; font-size: .96rem; }
.poster-authors li:not(:last-child)::after { content: ", "; }
.schedule { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .34rem 1.35rem; font-size: 1rem; }
.schedule dt, .method-list dt { font-weight: 700; }
.method-list { margin: .75rem 0 0; }
.method-list dt:not(:first-child) { margin-top: .65rem; }
.method-list dd { margin-top: .03rem; }
.event-page ul:not(.poster-authors) { margin-top: .45rem; }
@media (max-width: 60rem) {
  :root { --sidebar: 180px; --columns-gap: 32px; }
  .author-photo { width: 9.2rem; height: 9.2rem; }
  #primary-nav { column-gap: 1rem; }
}
@media (max-width: 48rem) {
  body { font-size: 1rem; }
  .masthead-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; min-height: 3.7rem; position: relative; }
  .masthead-inner #primary-nav { gap: 0 .9rem; }
  .js .menu-toggle { display: inline-flex; gap: .5rem; min-height: 44px; align-items: center; border: 0; background: white; padding: 0 .25rem; color: var(--text); font-size: .96rem; cursor: pointer; }
  .menu-bars { width: 16px; height: 12px; border-block: 1.5px solid currentColor; position: relative; }
  .menu-bars::before { content: ""; position: absolute; inset-inline: 0; top: calc(50% - .75px); border-top: 1.5px solid currentColor; }
  .js #primary-nav { position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-block: 1px solid var(--rule); background: white; padding: .3rem var(--gutter) .55rem; }
  .js #primary-nav a { display: block; padding: .55rem .2rem; min-height: 44px; }
  .js .menu-toggle[aria-expanded="false"] + #primary-nav { display: none; }
  .academic-layout { display: block; padding-block: 1.3rem 2.6rem; }
  .author-sidebar { position: static; border-bottom: 1px solid var(--rule); padding-bottom: .9rem; margin-bottom: 1.4rem; }
  .author-identity { display: flex; align-items: center; gap: .85rem; }
  .author-photo { width: 5.1rem; height: 5.1rem; padding: 2px; flex: none; }
  .author-name { margin: 0 0 .14rem; font-size: 1.15rem; }
  .author-bio > p + p { font-size: .88rem; }
  .profile-links { display: flex; flex-wrap: wrap; gap: .02rem .9rem; margin: .55rem 0 0; }
  .profile-links li { min-height: 1.75rem; gap: .35rem; font-size: .85rem; }
  .profile-icon { height: .9rem; width: .9rem; mask-size: 3.6rem .9rem; mask-position: calc(-.9rem * var(--position)) center; }
  .article-column { max-width: none; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.3rem; margin-top: 1.4rem; }
  .schedule { gap: .35rem .8rem; }
}
@media (max-width: 36rem) {
  .profile-links { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.2rem; }
}
@media print {
  @page { margin: 17mm; }
  body { color: #111; font: 10pt/1.4 Arial, Helvetica, sans-serif; }
  .masthead, .author-sidebar, .skip-link, .cv-actions, .courses, .cv-page .section-link { display: none !important; }
  .site-frame, .article-column { width: 100%; max-width: none; }
  .academic-layout { display: block; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .cv-page h1 { display: none; }
  .cv-contact { margin-top: 0; }
  .cv-contact > strong { font-size: 19pt; }
  h2 { font-size: 14pt; margin: 9pt 0 3pt; }
  h3 { font-size: 10.5pt; }
  h2, h3 { break-after: avoid; }
  .cv-item, .paper, .cv-list li { break-inside: avoid; }
  .cv-item, .paper, .cv-item + .cv-item, .paper + .paper { margin-top: 5pt; }
  .meta, .authors, .publication-info, .paper-actions { font-size: 9pt; }
}
