* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family: Garamond, serif;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #777;
}

nav {
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  background: #fff;
}

.logo {
  z-index: 1101;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-size: 20px;
}

.logo img {
  order: -1;
  display: block;
  width: 20px;
  height: 20px;
}

.logo:hover {
  color: #000;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #000;
  font-size: 20px;
  opacity: 0;
  transition: color 0.3s ease, opacity 2s ease;
}

.nav-links a:hover {
  color: #777;
}

.hamburger {
  z-index: 1100;
  display: none;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 2s ease;
}

.hamburger .line {
  position: relative;
  width: 20px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #000;
  transition: transform 0.3s ease;
}

.page-content {
  max-width: 430px;
  padding-top: 100px;
}

.about-intro {
  margin: 0 0 40px;
  padding-left: 20px;
  padding-right: 20px;
  color: #000;
  text-align: left;
}

.about-section {
  margin: 0 0 40px;
  padding-left: 20px;
  padding-right: 20px;
  color: #000;
  text-align: left;
}

.about-section h2 {
  margin-bottom: 5px;
  color: #000;
  font-size: 1.2rem;
  font-weight: 300;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.25;
}

.about-footer {
  margin: 0 0 40px;
  padding-left: 20px;
  padding-right: 20px;
  color: #999;
  text-align: left;
}

.about-footer h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 100;
}

.content-wrapper {
  margin: 0 0 40px;
  padding-left: 20px;
  padding-right: 20px;
  color: #000;
  font-size: 13px;
  text-align: left;
}

.content-wrapper p {
  font-size: 1em;
  line-height: 1.25;
}

.content-wrapper h2 {
  margin-bottom: 5px;
  color: #000;
  font-size: 1.2em;
  font-weight: 300;
}

.content-wrapper h3 {
  margin-bottom: 5px;
  color: #000;
  font-size: 1em;
  font-weight: 100;
  opacity: 0.5;
}

.stock-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
  width: 100%;
  padding: 100px 20px 60px;
}

.book-listing {
  width: 100%;
  max-width: 900px;
  color: #000;
  font-size: 1.1em;
  text-align: left;
}

.book-images {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  margin-bottom: 14px;
}

.book-image {
  display: block;
  width: 100%;
}

.book-image-portrait {
  aspect-ratio: 3 / 4;
  background: #d8d2c3;
}

.book-image-landscape {
  aspect-ratio: 6 / 4;
  background: #c8d0d1;
}

.book-slide-frame {
  position: relative;
  overflow: hidden;
}

.book-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.book-slide.is-active {
  display: block;
}

.book-slide-one {
  background: #c8d0d1;
}

.book-slide-two {
  background: #d8b4a0;
}

.book-slide-three {
  background: #b7c9a8;
}

.book-slide-four {
  background: #c4b8d4;
}

.book-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: max-content;
  margin-left: auto;
  margin-top: 8px;
  gap: 6px;
}

.book-slide-count {
  display: inline-block;
  color: #999;
  font-size: 0.9em;
  line-height: 1;
  transform: translateX(-10px);
}

.book-slideshow-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.book-slideshow-button:hover {
  color: #777;
}

.book-title {
  margin-bottom: 2px;
  font-size: 20px;
  font-weight: 400;
}

.author-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 400;
  
}

.book-meta {
  margin-bottom: 10px;
  color: #777;
}

.book-description {
  width: 100%;
  max-width: none;
  margin-bottom: 10px;
  line-height: 1.25;
  text-align: left;
  font-size: 1.1rem;
}

.book-purchase {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.book-price {
  font-weight: 700;
}

.buy-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 500px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100vw;
    height: 100vh;
    padding-top: 100px;
    padding-right: 20px;
    background: #fff;
    text-align: right;
  }

  .nav-links li {
    width: 100%;
    margin-left: 0;
    margin-bottom: 5px;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 20px;
    text-align: right;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .stock-feed {
    padding-top: 90px;
  }

  .book-images {
    grid-template-columns: 1fr;
  }

  .book-image-landscape {
    display: none;
  }

  .book-slideshow {
    display: none;
  }

  #menu-toggle:checked + .hamburger .line:nth-child(1) {
    animation: drop-rotate-down 0.5s forwards;
  }

  #menu-toggle:checked + .hamburger .line:nth-child(2) {
    animation: drop-rotate-up 0.5s forwards;
  }

  #menu-toggle:not(:checked) + .hamburger .line:nth-child(1) {
    animation: drop-rotate-down-reverse 0.5s forwards;
  }

  #menu-toggle:not(:checked) + .hamburger .line:nth-child(2) {
    animation: drop-rotate-up-reverse 0.5s forwards;
  }

  @keyframes drop-rotate-down {
    0% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(6px) rotate(0);
    }
    100% {
      transform: translateY(6px) rotate(45deg);
    }
  }

  @keyframes drop-rotate-up {
    0% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(-6px) rotate(0);
    }
    100% {
      transform: translateY(-6px) rotate(-45deg);
    }
  }

  @keyframes drop-rotate-down-reverse {
    0% {
      transform: translateY(6px) rotate(45deg);
    }
    50% {
      transform: translateY(6px) rotate(0);
    }
    100% {
      transform: translateY(0) rotate(0);
    }
  }

  @keyframes drop-rotate-up-reverse {
    0% {
      transform: translateY(-6px) rotate(-45deg);
    }
    50% {
      transform: translateY(-6px) rotate(0);
    }
    100% {
      transform: translateY(0) rotate(0);
    }
  }
}
