@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]::details-content { display: contents; }

.teaching { padding: 0; list-style: none; }
.teaching li + li { margin-top: 5px; }

@media screen and (max-width: 1160px) {
  .page { display: block; max-width: 700px; }

  .profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(100px, 28vw, 144px);
    align-items: start;
    column-gap: clamp(16px, 4vw, 32px);
    margin-bottom: 20px;
    overflow-wrap: anywhere;
  }

  .profile h1 { grid-column: 1 / -1; margin-bottom: 14px; }
  .affiliation { grid-column: 1; grid-row: 2; margin-bottom: 10px; }

  .profile nav {
    grid-column: 1;
    grid-row: 3;
    justify-items: stretch;
    gap: 0;
    padding-top: 4px;
    margin-bottom: 0;
  }

  .profile nav a {
    display: flex;
    align-items: center;
    min-block-size: 36px;
    padding-inline-end: 14px;
  }

  .portrait { grid-column: 2; grid-row: 2 / span 2; }
  main { border-top: 1px solid var(--rule); padding-top: 20px; }
}

@media screen and (max-width: 720px) {
  body {
    padding: clamp(16px, 5.8vw, 28px);
    font-size: 1rem;
  }

  h3 { font-size: 1.0625rem; }
  .paper + .paper { margin-top: 24px; }
  .paper-links li { margin-bottom: 0; }
  .paper-links a[href], .paper-links summary { padding-block: 4px; }
  .paper-links a[href] { display: inline-block; }
}

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