* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e9e9e9;
  color: #161616;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.page {
  width: min(900px, calc(100% - 28px));
  margin: 64px auto 48px;
}

.head {
  text-align: center;
  margin-bottom: 40px;
}

.head h1 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.copy {
  width: min(690px, 100%);
  margin: 0 auto 28px;
  font-size: 15px;
}

.copy p {
  margin: 0 0 18px;
}

.shot {
  width: min(900px, 100%);
  margin: 0 auto;
}

.compare {
  --split: 50%;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.compare__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.compare__overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare__overlay .compare__img {
  width: 100%;
  height: auto;
}

.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 7px 9px;
  text-transform: lowercase;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.compare__range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
  border: 0;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 100vh;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

.compare__range::-moz-range-track {
  height: 100%;
  background: transparent;
  border: 0;
}

.compare__range::-moz-range-thumb {
  width: 40px;
  height: 100vh;
  border: 0;
  background: transparent;
  border-radius: 0;
  cursor: ew-resize;
}

.compare__range:focus-visible {
  outline: none;
}

.compare:has(.compare__range:focus-visible) .compare__knob {
  box-shadow: 0 0 0 2px #111, 0 0 0 4px #fff;
}

@media (max-width: 640px) {
  .page {
    width: min(900px, calc(100% - 16px));
    margin: 26px auto 24px;
  }

  .head {
    margin-bottom: 24px;
  }

  .copy {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .compare__knob {
    font-size: 10px;
    padding: 6px 8px;
  }
}
