:root {
  color-scheme: light;

  --white: #ffffff;
  --ink: #251f27;
  --ink-soft: #787177;
  --line: #eee8eb;

  --pink: #ffa0c4;
  --pink-deep: #ee7fa9;
  --yellow: #e8cf83;
  --green: #a9cfb0;
  --blue: #a9c8e8;

  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* Top navigation */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;

  width: 100%;
  padding: 28px 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.labmark,
.paper-link {
  position: relative;
  text-decoration: none;
}

.labmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #9e95a1;
}

.labmark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.labmark span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-link {
  padding: 4px 0 7px;
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.paper-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1.5px;

  background: currentColor;
  transform-origin: left;
  transition: transform 180ms ease;
}

.paper-link:hover::after {
  transform: scaleX(0.62);
}

/* Hero */

.hero {
  position: relative;

  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: 96px 28px 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  transform: translateY(-1vh);
  text-align: center;
}

h1 {
  margin: 0;

  color: var(--pink);

  font-family:
    "Avenir Next Rounded",
    "Arial Rounded MT Bold",
    "Avenir Next",
    Avenir,
    sans-serif;

  font-size: clamp(76px, 11.5vw, 148px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.paper-title {
  max-width: 920px;
  margin: 26px auto 0;

  color: #6f676e;

  font-size: clamp(19px, 2.25vw, 29px);
  font-weight: 520;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.authors {
  max-width: 1040px;
  margin: 28px auto 0;

  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;

  column-gap: 18px;
  row-gap: 8px;
}

.author {
  position: relative;

  color: #3f3940;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;

  transition:
    color 160ms ease,
    transform 160ms ease;
}

a.author::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 1px;

  background: var(--pink);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;

  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

a.author:hover {
  color: var(--pink-deep);
  transform: translateY(-1px);
}

a.author:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.author-unlinked {
  cursor: default;
}

.author sup,
.affiliations sup {
  color: var(--pink-deep);
  font-size: 0.62em;
  font-weight: 700;
  vertical-align: super;
}

.affiliations {
  max-width: 930px;
  margin: 13px auto 0;

  color: #827a80;

  font-size: 12.5px;
  line-height: 1.58;
}

.affiliations p {
  margin: 2px 0;
}

.contribution-note {
  margin: 11px auto 0;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;

  color: #9a9197;

  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.015em;
}

/* Resource links */

.resource-links {
  margin-top: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 50px;
}

.resource {
  --accent: var(--pink);
  --glow: rgba(255, 160, 196, 0.3);

  position: relative;
  z-index: 0;

  padding: 8px 4px 6px;

  color: var(--accent);
  text-decoration: none;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.resource-ami {
  --accent: var(--yellow);
  --glow: rgba(232, 207, 131, 0.34);
}

.resource-data {
  --accent: var(--green);
  --glow: rgba(169, 207, 176, 0.34);
}

.resource-code {
  --accent: var(--blue);
  --glow: rgba(169, 200, 232, 0.34);
}

.resource::before {
  content: "";

  position: absolute;
  z-index: -1;

  left: 50%;
  bottom: -3px;

  width: calc(100% + 34px);
  height: 24px;

  border-radius: 999px;

  background: var(--glow);
  filter: blur(10px);

  opacity: 0;
  transform: translate(-50%, 5px) scale(0.82);

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.resource::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 1px;

  width: 100%;
  height: 1.5px;

  border-radius: 999px;
  background: currentColor;
  transform-origin: left;

  transition: transform 180ms ease;
}

.resource:hover {
  transform: translateY(-2px);
}

.resource:hover::before {
  opacity: 0.72;
  transform: translate(-50%, 1px) scale(1);
}

.resource:hover::after {
  transform: scaleX(0.74);
}

.scroll-link {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;

  margin: 0;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;

  width: fit-content;

  color: #aca4aa;
  text-decoration: none;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-link span:last-child {
  color: var(--pink);
  font-size: 16px;
  transition: transform 180ms ease;
}

.scroll-link:hover span:last-child {
  transform: translateY(4px);
}

/* Editorial sections */

.editorial-section {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0 128px;

  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 42px;

  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 18px;
}

.section-number {
  padding-top: 5px;

  color: var(--pink-deep);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-copy {
  max-width: 650px;
}

.section-copy h2 {
  margin: 0;

  color: var(--ink);

  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-copy p {
  margin: 8px 0 0;

  color: var(--ink-soft);

  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  display: block;

  width: 100%;
  height: auto;

  border: 1px solid #eee8eb;
  border-radius: 16px;

  background: #fff;

  box-shadow:
    0 20px 50px rgba(76, 53, 63, 0.07);
}

.paper-figure figcaption {
  margin-top: 15px;

  color: #948d93;
  text-align: center;

  font-size: 12px;
  line-height: 1.6;
}

/* Citation */

.citation-section {
  padding-bottom: 135px;
}

.bibtex-wrap {
  position: relative;

  max-width: 930px;
  margin-left: 60px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

pre {
  margin: 0;
  padding: 35px 150px 35px 0;

  overflow-x: auto;
}

code {
  color: #50484f;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
  line-height: 1.8;
}

.copy-button {
  position: absolute;
  top: 28px;
  right: 0;

  padding: 6px 0 8px;

  border: 0;
  border-bottom: 1.5px solid var(--pink);

  color: var(--pink-deep);
  background: transparent;

  cursor: pointer;

  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.copy-button:hover {
  color: #e56f9b;
  border-bottom-color: #e56f9b;
}

.copy-status {
  min-height: 20px;
  margin: 12px 0 0 60px;

  color: #9b9298;
  font-size: 11px;
}

/* Acknowledgements */

.acknowledgements-section {
  padding-bottom: 115px;
}

.acknowledgements-copy {
  max-width: 790px;
  margin-left: 60px;

  color: #5f575e;

  font-size: 14px;
  line-height: 1.8;
}

.acknowledgements-copy p {
  margin: 0 0 13px;
}

.acknowledgements-copy a {
  position: relative;

  color: var(--pink-deep);
  text-decoration: none;
}

.acknowledgements-copy a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 1px;

  background: currentColor;
}

.acknowledgements-placeholder {
  color: #9a9298;
}

footer {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 38px;

  display: flex;
  justify-content: space-between;

  border-top: 1px solid var(--line);

  color: #a29aa0;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


@media (max-height: 820px) and (min-width: 721px) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 58px;
  }

  .hero-inner {
    transform: translateY(-1vh);
  }

  .scroll-link {
    bottom: 14px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .topbar {
    padding: 22px;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding: 110px 20px 92px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner {
    transform: none;
  }

  h1 {
    font-size: clamp(68px, 19vw, 108px);
  }

  .paper-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .paper-title br {
    display: none;
  }

  .authors {
    margin-top: 26px;
    column-gap: 14px;
  }

  .author {
    font-size: 14px;
  }

  .affiliations {
    font-size: 11.5px;
  }

  .resource-links {
    gap: 25px 31px;
  }

  .resource {
    font-size: 15px;
  }

  .scroll-link {
    position: static;
    margin: 24px auto 0;
    transform: none;
  }

  .editorial-section {
    width: min(100% - 30px, 1160px);
    padding: 86px 0 96px;
  }

  .section-heading {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .paper-figure img {
    border-radius: 10px;
  }

  .bibtex-wrap,
  .acknowledgements-copy {
    margin-left: 42px;
  }

  pre {
    padding: 70px 0 28px;
  }

  .copy-button {
    top: 18px;
    left: 0;
    right: auto;
  }

  code {
    font-size: 11px;
  }

  .copy-status {
    margin-left: 42px;
  }

  footer {
    width: min(100% - 30px, 1160px);
  }
}


@media (max-width: 720px) {
  .labmark img {
    width: 28px;
    height: 28px;
  }

  .labmark span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
}


/* Section 02: Benchmark overview */

.showcase-section {
  padding-top: 96px;
  padding-bottom: 118px;
}

.showcase-section .section-heading {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.section-side-note {
  color: #b2a9af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 3px;
}

.showcase-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #eadfe6 transparent;
}

.showcase-rail::-webkit-scrollbar {
  height: 8px;
}

.showcase-rail::-webkit-scrollbar-thumb {
  background: #eadfe6;
  border-radius: 999px;
}

.showcase-rail::-webkit-scrollbar-track {
  background: transparent;
}

.showcase-card {
  flex: 0 0 min(860px, 78vw);
  scroll-snap-align: start;
  border: 1px solid #efe8ec;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(73, 58, 67, 0.05);
}

.showcase-card-task {
  flex-basis: min(760px, 72vw);
}

.showcase-card-example {
  flex-basis: min(660px, 64vw);
}

.showcase-media {
  padding: 18px 18px 0;
}

.showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #f0eaee;
  border-radius: 14px;
  background: #fff;
}

.showcase-meta {
  padding: 18px 22px 22px;
}

.showcase-kicker {
  margin: 0 0 6px;
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-meta h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.showcase-meta p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 900px) {
  .showcase-section .section-heading {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .section-side-note {
    grid-column: 2;
    padding-bottom: 0;
  }

  .showcase-card,
  .showcase-card-task,
  .showcase-card-example {
    flex-basis: 88vw;
  }

  .showcase-meta {
    padding: 16px 18px 18px;
  }

  .showcase-meta h3 {
    font-size: 18px;
  }
}
