:root {
  color-scheme: dark;
  --page: #191919;
  --panel: #10100f;
  --paper: #f4f1ea;
  --red: #d7272a;
  --violet: #8373d7;
  --control: rgba(126, 132, 141, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 90px), 1115px);
  margin: 55px auto 25px;
  padding-bottom: 48px;
  background: var(--panel);
}

.site-header {
  padding-top: 9px;
  text-align: center;
}

.wordmark {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 31px 0 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav li:not(:last-child)::after {
  padding: 0 10px;
  color: var(--paper);
  content: "|";
}

.site-nav a {
  color: var(--red);
}

.site-nav .is-current,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  outline: none;
}

.photo-carousel {
  position: relative;
  width: min(calc(100% - 96px), 875px);
  aspect-ratio: 1.667 / 1;
  margin: 31px auto 0;
  overflow: hidden;
  background: #272726;
  cursor: grab;
  touch-action: pan-y;
}

.photo-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  z-index: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 550ms ease;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
}

.slide img,
.slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}

.slide img.slide-portrait {
  object-position: center 62%;
}

.carousel-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0 0 3px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--control);
  color: var(--paper);
  cursor: pointer;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--paper);
  color: #272726;
  outline: none;
}

.previous {
  left: 18px;
}

.next {
  right: 18px;
}

.slide-dots {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(235, 237, 239, 0.65);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.dot:hover,
.dot:focus-visible,
.dot.is-active {
  background: var(--paper);
  outline: none;
  transform: scale(1.08);
}

.intro {
  width: min(calc(100% - 52px), 316px);
  margin: 35px auto 0;
}

.intro p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.15;
}

.intro span {
  color: var(--red);
}

@media (max-width: 700px) {
  .site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 38px;
  }

  .site-header {
    padding-top: 31px;
  }

  .wordmark {
    font-size: 18px;
  }

  .site-nav {
    margin-top: 25px;
    font-size: 11px;
  }

  .site-nav li:not(:last-child)::after {
    padding: 0 7px;
  }

  .photo-carousel {
    width: calc(100% - 40px);
    margin-top: 29px;
  }

  .carousel-control {
    width: 30px;
    height: 30px;
    font-size: 28px;
  }

  .previous {
    left: 12px;
  }

  .next {
    right: 12px;
  }

  .intro {
    width: min(calc(100% - 48px), 316px);
    margin-top: 29px;
  }

  .intro p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .carousel-control,
  .dot {
    transition: none;
  }
}
