/* Global */
body {
  margin: 0;
  font-family: "Cinzel", serif;
  color: #f4f4f4;
  background: radial-gradient(circle at top, #172230 0, #06070b 55%, #020308 100%);
}

/* Header */
header {
  padding: 22px 20px 22px;
  text-align: center;
  background: linear-gradient(135deg, #1a1f2b, #090c12);
  border-bottom: 1px solid rgba(224, 179, 92, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
h1 {
  font-size: 2rem;
  margin-bottom: 4px;
  color: #e0b35c;
  animation: fadeSlide 0.6s ease-out both;
}

h2 {
  font-size: 1rem;
  margin-top: 0;
  animation: fadeSlide 0.6s ease-out both;
}

h1, h2, h3, .section-title {
  font-family: "Cinzel", serif;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 30px auto 60px; /* reduced top margin slightly */
  padding: 0 20px;
}

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Larger screens: side-by-side */
@media (min-width: 800px) {
  .content-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

/* Cover / image */
.cover-wrap {
  flex: 0 0 340px;
  max-width: 100%;
  animation: fadeUp 0.7s ease-out 0.1s both;
}

.book-cover {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.55);
  display: block;
  transform: translateY(0);
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out;
}

/* Hover effect on larger viewports */
@media (hover: hover) and (pointer: fine) {
  .book-cover:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }
}

/* Text column */
.text-wrap {
  flex: 1;
  animation: fadeUp 0.7s ease-out 0.18s both;
}

.tagline {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e0b35c;
  margin-bottom: 12px;
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.buy-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d7d7d7;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out;
}

.btn-primary {
  background: #e0b35c;
  color: #000;
}

.btn-secondary {
  background: #262b3a;
  color: #f4f4f4;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(224, 179, 92, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  text-align: center;
  margin: 40px 0 20px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Contact button (ghost style) */
.btn-contact {
  background: transparent;
  border: 1px solid rgba(224, 179, 92, 0.7);
  color: #e0b35c;
}

.btn-contact:hover {
  background: rgba(224, 179, 92, 0.08);
}

.contact-row {
  margin-top: 32px;     /* creates separation from buy buttons */
  text-align: left;     /* keeps alignment consistent with buy buttons */
}

.contact-row #contact-link a {
  display: inline-block; /* ensure button sizing works naturally */
}

/* Simple fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Character Gallery */
.characters {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(224, 179, 92, 0.25);
  background: radial-gradient(circle at top, #141a24 0, #05060b 55%, #020308 100%);
}

.characters .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.characters .section-title {
  font-size: 1.4rem;
  margin: 0 0 8px;
  text-align: center;
}

.characters .section-intro {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 640px;
  opacity: 0.9;
  margin: 0 auto 24px;
  text-align: center;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.character-card {
  background: rgba(12, 15, 25, 0.9);
  border-radius: 10px;
  padding: 10px 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.character-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  max-height: 260px;
  margin-bottom: 8px;
  cursor: pointer;
}

.character-name {
  font-weight: 600;
  letter-spacing: 0.6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #e0b35c;
}

@media (hover: hover) and (pointer: fine) {
  .character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    background: rgba(18, 22, 35, 0.95);
  }
}

/* Lightbox / Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #05060b;
  border-radius: 10px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

#lightbox-caption {
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e0b35c;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #f4f4f4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.lightbox-close:hover {
  color: #e0b35c;
}