:root {
  color-scheme: light;
  color: #494e52;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 100%;
  --border: #e8e9ea;
  --link: #166582;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: fixed; z-index: 10; left: 12px; top: 6px; transform: translateY(-150%); padding: 5px 10px; background: #fff; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.masthead { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--border); background: #fff; }
.masthead__inner-wrap, #main { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.masthead__inner-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 61px; gap: 12px; }
.visible-links { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px clamp(12px, 2.7vw, 38px); }
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
.masthead__menu-item--lg { font-weight: 700; }
.home-language-switch { display: flex; gap: 2px; white-space: nowrap; }
.home-language-switch a { padding: 3px 6px; border-radius: 4px; font-size: .88rem; }
.home-language-switch a[aria-current] { background: #eef1f4; }
#main { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 62px); padding-block: 28px 42px; align-items: start; }
.sidebar { position: sticky; top: 85px; }
.author__name { font-weight: 740; font-size: 1.08rem; line-height: 1.3; }
.author__bio { margin-top: 7px; font-size: .84rem; color: #626b71; }
.page { min-width: 0; }
.page__content section { scroll-margin-top: 76px; }
.page__content h1 { font-size: clamp(1.36rem, 3vw, 1.85rem); line-height: 1.3; margin-bottom: 12px; }
.page__content h2 { margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 1.4rem; }
.page__content section > p + p { margin-top: 8px; }
.paper-box { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); align-items: center; gap: clamp(18px, 3.5vw, 44px); padding-block: 19px; border-bottom: 1px solid var(--border); }
.paper-box--text-only { display: block; padding-block: 13px; }
.paper-box-image a { display: block; width: fit-content; }
.paper-box-image img { width: min(100%, 320px); box-shadow: 1px 1px 4px #0002; }
.paper-box h3 { font-size: 1.03rem; line-height: 1.36; margin-bottom: 5px; }
.paper-box-text p { font-size: .94rem; }
.project-link { display: inline-block; margin-top: 7px; font-size: .89rem; }
#earlier-publications ul { padding-left: 1.3em; }
#earlier-publications li + li { margin-top: 5px; }
@media (max-width: 790px) {
  #main { grid-template-columns: 1fr; gap: 17px; }
  .sidebar { position: static; border-bottom: 1px solid var(--border); padding-bottom: 9px; }
}
@media (max-width: 530px) {
  .masthead__inner-wrap, #main { width: calc(100% - 30px); }
  .masthead__inner-wrap { padding-block: 7px; font-size: .86rem; }
  #main { padding-top: 17px; }
  .paper-box { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .paper-box-image { grid-row: 2; }
  .paper-box-image img { width: min(100%, 235px); }
}

.masthead-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
.masthead .portfolio-pdf { display: inline-block; white-space: nowrap; border-radius: 4px; padding: 5px 10px; color: #fff; background: var(--link); font-size: .9rem; font-weight: 650; }
.masthead .portfolio-pdf:hover { background: #104b62; }

.paper-box-image img.cover-illustration {
  width: min(100%, 265px);
}
@media (max-width: 530px) {
  .paper-box-image img.cover-illustration {
    width: min(100%, 195px);
  }
}
