* {
  box-sizing: border-box;
}

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

body {
  background: #fff;
  color: #111;
  font-family: system-ui, sans-serif;
  text-align: center;
}

header {
  padding-top: 2em;
  font-size: .8em;
  letter-spacing: 0.03em;
}

main {
  width: min(480px, calc(100% - 2em));
  margin: 120px auto 2em;
}

.intro {
  margin: 0;
  font-size: 1em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: .5px;
}

a:hover {
  text-decoration: none;
}

figure {
  margin: 1em 0 0;
}

.slideshow {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

figcaption {
  margin-top: 1em;
  opacity: .4;
  font-size: .8em;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow img {
    transition: none;
  }
}
