@font-face {
  font-family: "Geist Serif";
  src: url("assets/fonts/GeistSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f8f7f1;
  --ink: #080808;
  --muted: #242424;
  --rule: #c6c8bc;
  --heading: "Geist Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.62 "Source Serif 4", Georgia, serif;
  text-wrap: pretty;
}

.print-filters { position: absolute; pointer-events: none; }

/* Apply the impression to the ink only. The underlying text and links stay native. */
:where(h1, h2, h3, p, nav, .full-list) {
  filter: url("#ink-impression");
  -webkit-text-stroke: .28px currentColor;
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: #92988c;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: 0;
  transform: translateY(-130%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.masthead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(1.5rem, 4vw, 3.25rem);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  color: var(--muted);
  font-size: .9375rem;
}
nav a { padding-block: .25rem; text-decoration: none; }
nav a[aria-current="page"], nav a:hover, nav a:focus-visible { text-decoration: underline; }

.masthead, main, .margin-illustration {
  width: min(38rem, calc(100% - 3rem));
  margin-inline: auto;
}
main {
  flex: 1;
  padding-block: clamp(2.75rem, 7vw, 4.5rem) 4.5rem;
}
.home-vision {
  padding-block: clamp(1.75rem, 5vw, 3rem) 1rem;
}
.margin-illustration {
  margin-bottom: clamp(1.5rem, 6vh, 3rem);
}
.margin-illustration img {
  display: block;
  width: clamp(5rem, 10vw, 7rem);
  height: auto;
  margin-inline-start: auto;
}
@media screen and (max-width: 48rem), screen and (hover: none) and (pointer: coarse) {
  html { scroll-padding-top: 6rem; }
  .masthead {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    padding: .5rem max(1.5rem, calc((100% - 38rem) / 2));
    background: var(--paper);
  }
  .skip-link:focus { z-index: 2; }
}
.home-vision h1 { font-size: clamp(1.0625rem, 4.5vw, 1.375rem); }
.home-vision h1 a { text-decoration: none; }
.news { margin-block: 2.25rem 2rem; }
section + section { margin-top: clamp(2.5rem, 6vw, 3.75rem); }

h1, h2 {
  font-family: var(--heading);
  line-height: 1.25;
  letter-spacing: -.015em;
}
h1 { font-size: 1.625rem; margin-bottom: 1rem; }
h2 { font-size: 1.3125rem; margin-bottom: 1.15rem; }
h3 { font-size: 1.125rem; line-height: 1.4; }
h1, h2, article h3 { -webkit-text-stroke: .48px currentColor; }
article + article, .paper-list li + li { margin-top: 1.4rem; }
article p { margin-top: .3rem; }

.member + .member { margin-top: 2rem; }
.member h2 { margin-bottom: .45rem; }
.member-email + h3 { margin-top: 1.4rem; }
.member-email { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }
article h2, .paper-title {
  margin-bottom: .25rem;
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: normal;
}

.paper-list { list-style: none; padding: 0; }
.venue, .authors, .full-list { font-size: .9375rem; }
.venue, .authors { color: var(--muted); }
.venue { margin-bottom: .1rem; }
.authors { margin-top: .2rem; }
.full-list { display: inline-block; margin-top: 1.25rem; }

@media print, (forced-colors: active) {
  :where(h1, h2, h3, p, nav, .full-list) {
    filter: none;
    -webkit-text-stroke-width: 0 !important;
  }
}

@media print {
  html { background: white; }
  body { display: block; min-height: 0; color: black; }
  main { width: 100%; }
  nav, .skip-link, .margin-illustration { display: none; }
  article, .paper-list li { break-inside: avoid; }
}
