:root {
  font-size: 1.95122vw;

  --code-ink: #1f2328;
  --code-title: #1f2328;
  --code-key: #1a6fd4;
  --code-str: #2b7de0;
  --code-const: #5b7a9c;
  --code-prop: #7f46ff;
  --code-hush: 0.42;
}

:root.dark {
  --code-ink: #e4e0ec;
  --code-title: #f2f0f7;
  --code-key: #79b8ff;
  --code-str: #3d90f9;
  --code-const: #8ea6c0;
  --code-prop: #c58af9;
  --code-hush: 0.38;
}

html,
body {
  height: 100%;
}

.compare-scene {
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 0.8rem;
  background: transparent;
  color: var(--code-ink);
  font-size: 1rem;
}

.compare {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4.5rem;
}

.compare-title {
  margin: 0 0 1.6rem;
  color: var(--code-title);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.code {
  width: fit-content;
  margin-inline: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.53;
}

.code-line {
  margin: 0;
  white-space: pre;
}

.tok-key {
  color: var(--code-key);
}

.tok-str {
  color: var(--code-str);
}

.tok-const {
  color: var(--code-const);
}

.tok-prop {
  color: var(--code-prop);
}

.code--after .code-line {
  opacity: var(--code-hush);
}

.code--after .code-line--focus {
  opacity: 1;
}
