body {
  margin: 0;
  font-family: "Lato", sans-serif;
  color: #0b1724;
  background: #f8f7f4;
}

.hero {
  height: 320px;
  background: url("assets/paulyoder-fantasy-bg.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero h1 {
  color: white;
  font-size: 64px;
  letter-spacing: 6px;
  font-weight: 400;
  text-transform: uppercase;
  font-family: Garamond, serif;
}

.hero .header-form {
  display: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

.series {
  text-align: center;
  padding: 80px 0px;
}

.series h2 {
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0px;
  font-family: Garamond, serif;
}

.series .embellishment {
  padding: 0px 20px;
}

.series p {
  margin-top: 0;
  font-size: 15px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin-top: 40px;
  place-items: center;
}

.book-card {
  position: relative;
  text-align: center;
  max-width: 300px;
  width: 100%;
}

.book-card img,
.coming-soon {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: url('assets/Realmwalker-Book3-SplinteredHorizon-PaulYoder-comingsoon.png') #071422;
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.4;
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #a7742a;
  color: white;
  padding: 7px 11px;
  font-size: 14px;
  border-radius: 4px;
}

.button,
.newsletter input[type=submit] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  border: none;
  background: #a7742a;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.audible {
  display: block;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #b8b8b8;
  color: #0b1724;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  background: white;
  border-radius: 4px;
}

.audible.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.button,
.audible,
.newsletter input[type=submit] {
  transition:
    transform 0.1s ease,
    background-color 0.1s ease,
    border-color 0.1s ease,
    color 0.1s ease,
    box-shadow 0.1s ease;
}

.button:active,
.audible:active {
  transform: scale(0.98);
}

.button:hover,
.newsletter input[type=submit]:hover {
  transform: scale(1.04);
  background: #bf8b3b; /* slightly lighter gold */
  box-shadow: 0 6px 14px rgba(167, 116, 42, 0.25);
}

.audible:hover {
  transform: scale(1.04);
  background: #f7f2e8; /* subtle warm tint */
  border-color: #a7742a;
  color: #a7742a;
  box-shadow: 0 4px 12px rgba(167, 116, 42, 0.12);
}

.audible.disabled:hover {
  transform: none;
  background: white;
  border-color: #b8b8b8;
  color: #0b1724;
  box-shadow: none;
}

.headphones {
  max-width: 16px;
  background: none !important;
  aspect-ratio: 1 / 1 !important;
  margin-right: 8px;
  position: relative;
  top: 2px;
}

.divider {
  margin: 0 auto;
  width: 333px;
  height: 19px;
  background-image: url(assets/divider.png);
}

.content {
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: linear-gradient(135deg, #071422, #10283a);
  color: white;
  padding: 10px 0;
}

.newsletter .grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter .description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.newsletter .description div {
  max-width: 300px;
}

.newsletter h2 {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: Garamond, serif;
}

.newsletter form {
  display: flex;
}

.newsletter label {
  display: none;
}

.newsletter input {
  flex: 1;
  padding: 14px;
  background: #0e2133;
  border: 1px solid #53606b;
  color: white;
  border-radius: 4px;
  width: 280px;
}

.newsletter input[type=submit] {
  margin: 0;
  padding: 14px 28px;
  border-radius: 4px;
  width: 100%;
  margin-top:6px;
}

.newsletter .quill_book {
  max-width: 100px;
}

footer {
  position: relative;
  z-index: 60;
  background: #030b13;
  color: white;
  padding: 22px 12%;
  font-size: 12px;
  text-transform: uppercase;
}

footer .grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7742a;
  transition: opacity 0.2s ease;
}

.footer-right a:hover {
  opacity: 0.8;
}

.footer-right img {
  width: 22px;
  height: 22px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 19, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-box {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: #071422;
  color: white;
  padding: 42px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: auto;
  padding: 0;
  margin: 0;
}

.popup-close:hover {
  transform: scale(1.1);
  color: #bf8b3b;
}

.popup-icon {
  max-width: 90px;
}

.popup-box h2 {
  font-family: Garamond, serif;
  text-transform: uppercase;
  font-size: 34px;
  margin-bottom: 10px;
}

.popup-box p {
  line-height: 1.6;
}

.popup-box input[type=email],
.header-form input[type=email] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin-top: 12px;
  background: #0e2133;
  border: 1px solid #53606b;
  color: white;
  border-radius: 4px;
}

.popup-box input[type=submit],
.header-form input[type=submit] {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .hero {
    height: 200px;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 38px;
    margin: 0;
  }

  .hero .header-form {
    display: block;
    width: 70%;
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .newsletter {
    position: static;
    padding: 24px;
    text-align: center;
  }

  .newsletter .grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .newsletter .description {
    flex-direction: column;
    justify-content: center;
  }

  .newsletter .description div {
    max-width: 100%;
  }

  .newsletter input {
    width: calc(100% - 30px);
  }

  .newsletter form,
  .newsletter input[type=submit],
  #mc_embed_signup_scroll,
  #mc_embed_signup
  {
    width: 100%;
  }

  .series {
    padding: 40px 0px;
  }

  .series .embellishment {
    display: none;
  }

  footer .grid {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}