/* =========================================================
   Homepage styles only
   Requires site.css to be loaded first
   ========================================================= */

/* =========================================================
   Hero section
   ========================================================= */

.hero {
  position: relative;
  min-height: 70vh;
  background-image: url("/images/background_new.jpg?v=20260225");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #f5f5f5;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.tagline {
  font-size: var(--font-body);
  opacity: 0.9;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* =========================================================
   Hero labels and notes
   ========================================================= */

.status,
.subject-line {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--font-meta);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.record-note {
  font-weight: bold;
  margin-top: 1.5rem;
}

.buy-label {
  margin: 2rem 0 0.75rem;
  font-size: var(--font-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ddd;
}

.availability {
  font-size: var(--font-meta);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-top: 0.8em;
  margin-bottom: 1.2em;
}

.availability span {
  display: block;
}

/* =========================================================
   Book cover block
   ========================================================= */

.book-block {
  float: right;
  width: 290px;
  margin: -15px 0 25px 50px;
}

.book-cover {
  width: 100%;
  display: block;
  box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

.book-caption {
  text-align: center;
  margin-top: 10px;
  font-size: var(--font-meta);
  opacity: 0.75;
}

/* =========================================================
   Homepage buy buttons
   ========================================================= */


.button {
  display: block;
  width: 100%;
  max-width: 450px;   /* controls how wide they get */
  text-align: center;

  padding: 0.9rem 1.4rem;
  border-radius: 14px;

  background: rgba(20,15,10,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border: 2px solid rgba(220, 200, 160, 0.5);
  box-shadow: 0 8px 22px var(--shadow);

  color: #ffffff;
  text-decoration: none;
  font-size: var(--font-meta);

  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:first-child {
  border-color: rgba(220, 200, 160, 0.7);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(32, 24, 18, 0.18);
  border-color: rgba(240, 220, 180, 0.7);
  background: rgba(255, 255, 255, 0.2);
}

.button-primary {
  background: rgba(255, 255, 255, 0.20);
}

.button.collectors {
  border-color: #e0c88a;
  box-shadow: 0 0 8px rgba(224, 200, 138, 0.25);
}

.buy-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
}

.buy-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  max-width: 100%;
}

.buy-buttons .button {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}


.buy-group-label {
  margin: 18px 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0c88a; /* slightly richer gold */
}

.buy-group-label-normal {
  margin: 18px 0 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #e0c88a; /* slightly richer gold */
}

.price-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 600px;
  max-width: 100%;
}


.price-group-label {
  margin: 22px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0c88a;
}

.gold-bullet {
  color: #e0c88a; /* slightly richer gold */
}

/* Font Awesome Icons */

.price-section {
  max-width: 850px;
  margin: 40px auto;
  padding: 0;
  color: #ffffff;
}

.price-section h2 {
  color: #e6c16a;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  font-size: 2rem;
}

.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 265px;
  gap: 20px;
  align-items: center;

  padding: 14px 22px;
  margin-bottom: 16px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(230, 193, 106, 0.6);
  border-radius: 10px;

  backdrop-filter: blur(2px);
}

.edition {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.3;
}

.edition i {
  color: #e6c16a;
  width: 26px;
  text-align: center;
  flex: 0 0 26px;
  font-size: 1.4rem;
}

.note {
  display: block;
  margin-top: 5px;
  margin-left: 38px;

  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.85;
}

.price-card strong {
  color: #e6c16a;
  font-size: 1.15rem;
  white-space: nowrap;
  text-align: right;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 265px;
  padding: 10px 14px;

  background: #e6c16a;
  color: #1c1208;

  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;

  border-radius: 6px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.buy-button:hover {
  background: #f0d184;
  transform: translateY(-1px);
}

.buy-button i {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .price-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .price-card strong {
    text-align: left;
  }

  .buy-button {
    width: 100%;
  }

  .note {
    margin-left: 38px;
  }
}


.buy-button.disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}




.purchase-note {
  font-size: var(--font-meta);
  margin-top: 1rem;
  opacity: 0.8;
}

.edition-note {
  font-size: var(--font-meta);
  opacity: 0.75;
}

/* =========================================================
   Book editions section
   ========================================================= */

.editions {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.editions h2 {
  margin-bottom: 1rem;
}

.book {
  text-align: center;
}


.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 0.5rem; /* reduce from 1.5rem */
}

.book-covers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 0.5rem; /* reduce from 1.5rem */
}



.book img {
  width: 100%;   /* try 220–260px */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  max-width: 300px; /* slightly smaller so they fit comfortably */
  display: block;
  margin: 0 auto;

}

.book.dust-jacket {
  grid-column: span 2;
}

.book.dust-jacket img {
  width: 500px;
  max-width: 100%;
  height: auto;
}


.jacket-grid {
  display: grid;
  justify-content: center;
  margin-top: 3rem;
}

.jacket-grid .dust-jacket img {
  width: 600px;
  max-width: 100%;
  height: auto;
}

.book figcaption {
  margin-top: 0.75rem;
  font-size: var(--font-body);
  color: #555;
  text-align: center;
}

/* =========================================================
   Main content
   ========================================================= */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

/* =========================================================
   Contact block
   ========================================================= */

.contact {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact p {
  margin-bottom: 0;
}

.contact-email {
  color: #1a4fb3;
  text-decoration: underline;
}

/* =========================================================
   Back Creek Press mark
   ========================================================= */

.press-mark {
  text-align: left;
  margin: 1.5rem auto 0.75rem;
  opacity: 0.85;
}

.press-mark img {
  max-width: 160px;
  height: auto;
}

/* =========================================================
   Portrait
   ========================================================= */

.portrait {
  text-align: center;
  margin: 60px 0;
}

.portrait figure {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.portrait img {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
}

.portrait figcaption {
  margin: 15px auto 0;
  font-size: var(--font-meta);
  line-height: 1.5;
  max-width: 50ch;
  padding: 0;
}

.portrait figcaption em {
  display: block;
  margin-top: 8px;
  color: #555;
}

/* =========================================================
   Locations
   ========================================================= */

.locations h2 {
  margin-bottom: 1.4rem;
  font-size: var(--font-heading);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.location-card {
  display: block;
  padding: 0.9rem;
  border-radius: 14px;

  background: rgba(20,15,10,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border: 2px solid rgba(220, 200, 160, 0.5);
  box-shadow: 0 8px 22px var(--shadow);

  text-decoration: none;
  color: #ffffff;

  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(32, 24, 18, 0.18);
  border-color: rgba(240, 220, 180, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.location-card h3 {
  margin-bottom: 0.35rem;
  font-size: var(--font-body);
  color: #ffffff; /* ensure heading is bright */
}

.location-card p {
  color: rgba(255,255,255,0.85); /* softer white */
  font-size: var(--font-meta);
  line-height: 1.5;
}

.read-more {
  font-size: var(--font-meta);
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.7);
}

.companion-note {
  margin-top: 2em;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.small-link {
  font-size: 0.9rem;
}

.publisher-showcase {
    text-align: left;
    margin: 40px auto;
}

.publisher-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}


/* =========================================================
   Homepage footer tweak
   ========================================================= */

footer {
  max-width: 720px;
  margin: 0 auto;
  margin-top: -1.5rem;
  padding: 1rem 2rem 1.5rem;
}





/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .book-block {
    float: none;
    width: 100%;
    margin: 30px auto 20px;
    text-align: center;
  }

  .book-cover {
    float: none;
    display: block;
    margin: 0 auto;
    width: 75%;
    max-width: 320px;
  }
  
.buy-buttons .button {
  max-width: 100%;
}  

.book-grid {
  grid-template-columns: 1fr;
}

.book-covers-grid {
  grid-template-columns: 1fr;
}
  

  .location-grid {
    grid-template-columns: 1fr;
  }  

  .hero-content {
    padding: 4rem 1.5rem;
  }

  main {
    padding: 3rem 1.5rem 1.5rem;
  }

  footer {
    padding: 1rem 1.5rem 1.25rem;
  }


}

