:root {
  color-scheme: light;
  --paper: #f8f9fc;
  --white: #fff;
  --ink: #141c32;
  --muted: #4d5870;
  --accent: #2547bd;
  --line: #dce2ee;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }

.shell {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.chip-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  aspect-ratio: 1;
  background:
    linear-gradient(var(--accent), var(--accent)) center 32% / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center 68% / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 32% center / 2px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 68% center / 2px 100% no-repeat;
}

.chip-mark::before {
  content: "";
  width: 75%;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 0.22rem;
  background: linear-gradient(var(--accent), var(--accent)) center / 45% 45% no-repeat var(--paper);
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.55rem 1.55rem; }
.site-nav a, .footer-inner > a:last-child { color: var(--muted); font-size: 0.9375rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .wordmark:hover { color: var(--accent); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 5.65vw, 5.4rem);
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

h1 span { color: var(--accent); }
.hero-content p { max-width: 57ch; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.13rem); }
.hero-content h1 + p { margin-top: 1.65rem; }
.hero-content p + p { margin-top: 0.65rem; }

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-links a {
  display: inline-block;
  padding: 0.3rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 680;
  text-decoration: none;
}

.resource-links a:hover { border-color: var(--accent); background: #edf1ff; }
.hero-links { gap: 0.65rem; margin-top: 1.65rem; }
.hero-links a { padding: 0.55rem 1rem; }
.hero-links .primary-link { border-color: var(--accent); background: var(--accent); color: var(--white); }
.hero-links .primary-link:hover { background: #18359d; }

.featured-figure, .paper-figure {
  padding: clamp(1rem, 2.2vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
}

.featured-figure { max-width: 26rem; justify-self: center; }
.featured-figure img, .paper-figure img { display: block; width: 100%; height: auto; }
figure > a { display: block; }
figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }

.content-section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
h2 { margin-bottom: 1.35rem; font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.1; letter-spacing: -0.045em; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.project {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.45vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
}

.venue { color: var(--accent); font: 650 0.875rem / 1.4 var(--mono); }
.project h3 { margin-block: 0.45rem 0.65rem; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.035em; }
.project h3 + p, .news-list p { color: var(--muted); }
.project .resource-links { margin-top: auto; padding-top: 1.3rem; }

.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: 0; }
.news-list h3 { font-size: 1.125rem; line-height: 1.35; }
.news-list p { margin-top: 0.3rem; }
.site-footer { border-top: 1px solid var(--line); }

@media (max-width: 54rem) {
  .hero { grid-template-columns: 1fr; }
  .featured-figure { justify-self: start; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  .shell { width: calc(100% - 2rem); }
  .project-grid { grid-template-columns: 1fr; }
}

.project-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  margin-bottom: 1.25rem;
}

.project-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--accent); text-decoration: underline; }

.paper { max-width: 64rem; padding-block: clamp(2rem, 6vw, 5rem); }
.paper-header { margin: 0 auto 2.5rem; text-align: center; }
.paper-header h1 {
  max-width: 35ch;
  margin: 0.6rem auto 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.authors { margin-inline: auto; max-width: 70ch; }
.affiliations, .equal-credit { color: var(--muted); font-size: 0.9375rem; }
.affiliations { margin-block: 0.5rem 0.2rem; }
.paper-header .resource-links { justify-content: center; }
.paper-section { max-width: 78ch; margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.paper-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.paper-section pre {
  margin: 0;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font: 0.875rem / 1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
