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

:root {
  color-scheme: light;
  color: #424242;
  background: white;
  font: 100%/1.55 "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(calc(100% - 3rem), 60rem); margin: 0 auto 4rem; }
h1, h2, .authors, .affiliations, .resources { font-family: "Google Sans", Arial, sans-serif; }
h1, h2 { color: #363636; }
a { color: #28679a; }
a:hover { color: #17456b; }
:focus-visible { outline: 2px solid #2874ad; outline-offset: 4px; }

header { padding: clamp(2.25rem, 4.8vw, 3.7rem) 0 2rem; text-align: center; }
h1 {
  margin: 0 auto 1.2rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.authors, .affiliations { margin: 0; line-height: 1.55; }
.authors { font-size: 1.25rem; }
.authors a { color: hsl(204, 86%, 53%); text-decoration: none; }
.authors a:hover, .authors a:focus-visible { color: #1473a9; text-decoration: underline; }
.authors span, .affiliations span { display: inline-block; }
.affiliations { font-size: 1.08rem; }
.affiliations span + span { margin-left: .6rem; }
sup { font-size: .64em; vertical-align: super; line-height: 0; }
.equal { font-size: .9rem; }
.resources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 1rem;
}
.resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .47rem;
  min-height: 2.5rem;
  padding: .38rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #363636;
  color: white;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  text-decoration: none;
}
a.resource:hover, a.resource:focus-visible { background: #262626; color: white; }
.resource:disabled { background: #e3e3e3; color: #555; opacity: 1; cursor: default; }
.resource img { width: 1em; height: 1em; }
a.resource img { filter: invert(1); }
.resource:disabled img { opacity: .66; }

main > section { max-width: 52rem; margin-inline: auto; }
main > .teaser { max-width: 39rem; margin: .25rem auto clamp(2rem, 4vw, 3rem); }
.teaser a { display: block; }
.abstract p { max-width: 48rem; margin-inline: auto; }
main > .demo { max-width: 56rem; }
section + section { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 2.9vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}
p { margin: .5rem 0 1rem; }

.choices { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem .95rem; margin-bottom: .55rem; }
.choices button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .35rem .15rem;
  background: transparent;
  color: #565656;
  font: inherit;
  font-size: .96rem;
  cursor: pointer;
}
.choices button:hover { color: #222; }
.choices button[aria-pressed="true"] { border-color: #363636; color: #272727; font-weight: 600; }
figure { margin: .85rem 0 1rem; }
figure img, video { display: block; width: 100%; height: auto; }
video { background: #202020; }
figcaption { color: #555; font-size: .93rem; }
figcaption { margin-top: .55rem; }
.finding p { margin-bottom: .55rem; }
@media (prefers-contrast: more) {
  .authors a { color: #006b9d; text-decoration: underline; }
}
pre {
  overflow-x: auto;
  margin: .75rem 0; padding: 1.25rem 1.5rem;
  font: 400 .875rem/1.5 monospace;
  color: #4a4a4a; background: #f5f5f5;
}
pre code { font: inherit; color: inherit; }

@media (max-width: 38rem) {
  main { width: calc(100% - 2rem); }
  header { padding-bottom: 1.5rem; }
  .authors { font-size: 1.05rem; }
  .affiliations { font-size: .98rem; }

  .choices { column-gap: .6rem; }
  .choices button { font-size: .9rem; }
}
