@font-face {
  font-family: Plex;
  src: url("assets/fonts/plex-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/fonts/plex-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/fonts/plex-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: SourceSerif;
  src: url("assets/fonts/source-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #292922;
  --muted: #72736b;
  --accent: #495b4b;
  --line: #ddded5;
  --paper: #f7f7f2;
  --width: 1040px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Plex, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
header {
  max-width: var(--width);
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
.header-code {
  font-size: 13px;
  display: flex;
  gap: 9px;
}
main {
  max-width: var(--width);
  margin: auto;
}
.hero {
  text-align: center;
  padding: 50px 0 49px;
}
h1 {
  font-family: SourceSerif, Georgia, serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 1.14;
  margin: 0 0 17px;
}
.paper-title {
  font-family: SourceSerif, Georgia, serif;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 0 auto;
  max-width: 780px;
}
.hero-summary {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 21px;
}
.resource-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.code-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 400;
}
.code-link:hover {
  background: var(--accent);
  color: white;
}
.code-symbol {
  font-family: monospace;
  font-size: 13px;
}
.paper-status {
  font-size: 12px;
  color: var(--muted);
}
section {
  padding: 67px 0;
}
section + section {
  border-top: 1px solid var(--line);
}
#demos {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 65px;
  padding: 0 0 55px;
  align-items: center;
  border: 0;
}
.demo-viewer {
  background: #eeeee8;
  border-radius: 8px;
  overflow: hidden;
}
.demo-viewer video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #eeeee8;
}
.demo-viewer video[hidden] {
  display: none;
}
.demo-copy h2 {
  font-family: SourceSerif, Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.75px;
  font-weight: 400;
  margin: 0 0 20px;
}
.demo-copy > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 340px;
}
.demo-options {
  display: flex;
  flex-direction: column;
}
.demo-option {
  position: relative;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 15px 30px 15px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  transition: padding-left 0.18s ease;
}
.demo-option > span:first-child {
  font-size: 16px;
  font-weight: 400;
}
.demo-option small {
  font-size: 11px;
  color: var(--muted);
}
.demo-option.active {
  padding-left: 13px;
  border-left: 2px solid var(--accent);
  background: #efefe8;
}
.demo-option:hover {
  background: #efefe8;
}
.selection-mark {
  position: absolute;
  right: 6px;
  top: 19px;
  font-size: 15px;
  color: var(--muted);
}
.active .selection-mark {
  color: var(--ink);
}
#toggle-demos {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 0;
  border: 0;
  background: transparent;
  margin-top: 23px;
}
.section-heading {
  max-width: 740px;
  margin: 0 auto 37px;
}
h2 {
  font-family: SourceSerif, Georgia, serif;
  font-size: 37px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 400;
  margin: 0;
}
.section-heading h2 {
  margin-bottom: 23px;
}
.section-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #5b5d55;
}
.section-heading > div {
  margin: 0;
}
figure {
  margin: 0;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.image-button {
  padding: 0;
  border: 0;
  display: block;
  background: white;
  width: 100%;
  cursor: zoom-in;
  border-radius: 5px;
  overflow: hidden;
}
figcaption {
  max-width: 740px;
  margin: 17px auto 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
figcaption a {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 10px;
}
h3 {
  font-weight: 500;
  letter-spacing: -0.35px;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 37px;
  padding: 11px 0 35px;
}
.steps article {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 11px;
  align-content: start;
}
.step-number {
  color: var(--accent);
  font-size: 12px;
  border: 1px solid #c5cdc3;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  grid-row: 1/3;
  margin-top: 3px;
}
.steps h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.effect-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: center;
}
.effect-copy h2 {
  font-size: 30px;
}
.effect-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.effect-copy p.small {
  font-size: 12px;
  margin-top: 23px;
}
.results-layout {
  max-width: 740px;
  margin: 25px auto 33px;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 12px;
}
.chart-top h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.chart-top .small {
  font-size: 10px;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 11px;
  padding: 3px 0 6px;
  color: var(--muted);
}
.tabs .active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.bar-row {
  display: grid;
  grid-template-columns: 46px 1fr 126px;
  gap: 14px;
  align-items: center;
  margin: 21px 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  position: relative;
  height: 24px;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(25% - 1px),
    var(--line) calc(25% - 1px),
    var(--line) 25%
  );
  border-left: 1px solid var(--line);
}
.bar {
  height: 100%;
  background: #bfc3b9;
  transition: width 0.25s ease;
}
.bar-row:last-child .bar {
  background: var(--accent);
}
.bar-error {
  position: absolute;
  top: 11px;
  height: 2px;
  background: var(--ink);
  min-width: 2px;
}
.bar-error::before,
.bar-error::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 10px;
  background: var(--ink);
}
.bar-error::before {
  left: 0;
}
.bar-error::after {
  right: 0;
}
.chart-axis {
  margin: -10px 140px 25px 60px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chart-axis > div {
  position: relative;
  height: 16px;
}
.chart-axis span {
  position: absolute;
  transform: translateX(-50%);
}
.chart-axis span:nth-child(1) {
  left: 0;
}
.chart-axis span:nth-child(2) {
  left: 25%;
}
.chart-axis span:nth-child(3) {
  left: 50%;
}
.chart-axis span:nth-child(4) {
  left: 75%;
}
.chart-axis span:nth-child(5) {
  left: 100%;
}
#results details {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.bar-row:last-child .bar-value {
  font-weight: 500;
}
.bar-value {
  text-align: right;
}
.chart-note {
  font-size: 13px;
  margin: 25px 0 13px;
}
details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 27px;
}
summary {
  cursor: pointer;
  display: flex;
  list-style: none;
  padding: 19px 0;
  font-size: 13px;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-size: 23px;
}
details[open] summary span {
  transform: rotate(45deg);
}
.table-scroll {
  overflow-x: auto;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
td,
th {
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
th {
  color: var(--muted);
}
td:first-child,
th:first-child {
  text-align: left;
  padding-left: 0;
}
td:last-child,
th:last-child {
  background: #eeefe6;
}
td.best {
  font-weight: 600;
}
.analysis-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
  align-items: center;
}
.analysis-section h2 {
  font-size: 29px;
}
.analysis-section p {
  font-size: 14px;
  color: var(--muted);
}
.analysis-section p.small {
  font-size: 12px;
}
footer {
  max-width: var(--width);
  margin: auto;
  padding: 29px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
}
footer p {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  padding: 52px 20px 20px;
  border: 0;
  border-radius: 7px;
  width: min(1400px, 94vw);
  max-height: 94vh;
  background: white;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #292922b0;
}
dialog img {
  object-fit: contain;
  max-height: 78vh;
}
#close-lightbox {
  position: absolute;
  right: 17px;
  top: 13px;
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 5px;
}
@media (max-width: 1120px) {
  header,
  main,
  footer {
    margin-left: 36px;
    margin-right: 36px;
  }
  #demos {
    gap: 45px;
  }
}
@media (max-width: 800px) {
  .hero {
    padding: 35px 0 40px;
  }
  h1 {
    font-size: 61px;
  }
  .paper-title {
    font-size: 25px;
  }
  #demos {
    gap: 30px;
    grid-template-columns: 1.1fr 1fr;
  }
  .demo-copy h2 {
    font-size: 27px;
  }
  .demo-copy > p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .demo-option {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .selection-mark {
    top: 15px;
  }
  .section-heading {
    max-width: 640px;
  }
  .steps {
    gap: 22px;
  }
  .effect-section,
  .analysis-section {
    gap: 35px;
  }
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    margin-left: 22px;
    margin-right: 22px;
  }
  header {
    height: 66px;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    gap: 20px;
    font-size: 11px;
  }
  nav a:first-child,
  nav a:last-child,
  .header-code {
    display: none;
  }
  .hero {
    padding: 31px 0 34px;
  }
  h1 {
    font-size: clamp(42px, 12.4vw, 61px);
    letter-spacing: -1.7px;
    margin-bottom: 16px;
  }
  .paper-title {
    font-size: 23px;
    max-width: 360px;
    line-height: 1.35;
  }
  .hero-summary {
    font-size: 10px;
    margin: 18px 0;
  }
  .resource-links {
    gap: 17px;
  }
  .code-link {
    font-size: 12px;
    padding: 6px 15px;
  }
  .paper-status {
    font-size: 10px;
  }
  #demos {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-bottom: 36px;
  }
  .demo-copy h2 {
    font-size: 27px;
  }
  .demo-copy h2 br {
    display: none;
  }
  .demo-copy > p {
    max-width: none;
    margin: 13px 0 18px;
  }
  .demo-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .demo-option {
    border-bottom: 1px solid var(--line);
    padding: 12px 5px;
    text-align: center;
    align-items: center;
    gap: 4px;
  }
  .demo-option.active {
    border-left: 0;
    border-top: 2px solid var(--accent);
    padding: 11px 5px 12px;
  }
  .demo-option > span:first-child {
    font-size: 12px;
  }
  .demo-option small {
    font-size: 9px;
  }
  .selection-mark {
    display: none;
  }
  #toggle-demos {
    margin-top: 15px;
  }
  section {
    padding: 42px 0;
  }
  .section-heading {
    margin-bottom: 25px;
  }
  h2 {
    font-size: 30px;
  }
  .section-heading h2 {
    margin-bottom: 20px;
  }
  .section-heading p {
    font-size: 14px;
    line-height: 1.75;
  }
  figcaption {
    font-size: 11px;
  }
  figcaption a {
    display: block;
    margin: 6px 0;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 28px;
  }
  .effect-section,
  .analysis-section {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .effect-copy h2,
  .analysis-section h2 {
    font-size: 27px;
  }
  .results-layout {
    margin-top: 0;
  }
  .chart-axis {
    margin-left: 46px;
    margin-right: 121px;
    font-size: 9px;
  }
  .chart-top {
    flex-direction: column;
    gap: 10px;
  }
  .bar-row {
    gap: 9px;
    grid-template-columns: 37px 1fr 112px;
    font-size: 11px;
  }
  .chart-note {
    font-size: 12px;
  }
  td,
  th {
    padding: 10px;
  }
  footer {
    gap: 17px;
    padding-bottom: 30px;
  }
  footer p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar,
  .demo-option {
    transition: none;
  }
}
