@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/Noto-Sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/Noto-Sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/Noto-Sans-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --accent: #782f47;
  --rule: #e5e5e5;
}

body {
  margin: 0;
  padding: 58px;
  background: #fff;
  color: #727272;
  font: .875rem/1.5 "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

a, summary { color: var(--accent); text-decoration: none; }
a[href]:hover, summary:hover, .metadata a, #about p a {
  text-decoration: underline;
  text-underline-offset: .15em;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 10px;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.page {
  display: grid;
  grid-template-columns: 270px minmax(0, 700px);
  gap: 90px;
  max-width: 1060px;
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 1161px) and (min-height: 760px) {
  .profile { position: sticky; top: 58px; }
}

h1, h2, h3 { line-height: 1.1; }
h1 { margin: 0 0 20px; color: #222; font-size: 1.75rem; letter-spacing: -.01em; }
h2 { margin: 0 0 20px; color: #393939; font-size: 1.3125rem; }
h3 { margin: 0 0 5px; color: #494949; font-size: 1.02375rem; }

p, ul { margin: 0 0 20px; }
strong { color: #222; }

.profile nav {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-top: 20px;
  margin-bottom: 20px;
  border-top: 1px solid var(--rule);
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
}

main { min-width: 0; overflow-wrap: break-word; }
section + section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
section, article[id] { scroll-margin-block-start: 20px; }

.paper + .paper { margin-top: 20px; }
.paper .metadata, .paper-links li { margin-bottom: 5px; }
.paper-links { margin: 0; padding-inline-start: 1.25em; }
.paper-links li::marker { font-size: .75em; }
.pending { color: inherit; }

summary { display: inline-block; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.abstract-colon, details[open] .abstract-hint { display: none; }
details[open] .abstract-colon { display: inline; }
details[open] summary { margin-inline-end: .25em; }
details[open]::details-content { display: contents; }

.teaching { padding-inline-start: 1.25em; }
.teaching li + li { margin-top: 5px; }

@media screen and (max-width: 1160px) {
  .page { display: block; max-width: none; }
  .profile { padding-inline-end: 320px; }
  .portrait { display: inline-block; width: auto; max-width: 100%; }

  main {
    margin-bottom: 20px;
    padding-block: 20px;
    border-block: 1px solid var(--rule);
  }
}

@media screen and (max-width: 720px) {
  body { overflow-wrap: break-word; }
  .profile { padding-inline-end: 0; }
}

@media screen and (max-width: 480px) {
  body { padding: 23px; }
}

@media print {
  body { padding: 0; }
  .page { display: block; }
  .profile nav, .portrait, .skip-link { display: none; }
  .paper { break-inside: avoid; }
}
