/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

a {
  color: #8B6914;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #5a4410;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  background: transparent;
}

.site-nav .logo a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav .nav-links a {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.15);        /* Lift all hero images uniformly for a brighter, airier feel */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.42);    /* Darkened for better text readability over hero images */
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 30px 40px;
  max-width: 800px;
}

.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}

.hero-content p {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px;
}

.content-section + .content-section {
  padding-top: 0;
}

/* ===== INTRO ROW (Homepage) ===== */
.intro-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-image {
  flex: 0 0 224px;
  max-width: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

/* ===== BOOK CARD LAYOUT ===== */
.book-card {
  display: flex;
  gap: 32px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.book-card.reverse {
  flex-direction: row-reverse;
}

.book-card .book-image {
  flex: 0 0 224px;
  max-width: 224px;
  background: #f9f7f2;
  padding: 12px;
  border: 1px solid #e8e2d4;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
}

.book-card .book-image img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.book-card .book-text {
  flex: 1;
}

.book-card .book-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 4px;
  font-style: italic;
}

.book-card .book-text .genre {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.book-card .book-text .copyright {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: #767676;
  margin-bottom: 6px;
}

.book-card .book-text .isbn {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: #767676;
  margin-bottom: 12px;
}

.book-card .book-text p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.book-card .book-text .purchase-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Photo cards within book sections */
.photo-row {
  display: flex;
  gap: 20px;
  margin: 20px 0 30px;
  align-items: flex-end;
}

.photo-row figure {
  flex: 1;
  text-align: center;
}

.photo-row figure img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.photo-row figcaption {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #767676;
  margin-top: 8px;
  font-style: italic;
}

/* ===== LITERARY REVIEWS ===== */
.reviews-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.reviews-section h3 {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 24px;
}

.review {
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid #d4b96a;
}

.review p {
  font-style: italic;
  font-size: 0.93rem;
  color: #444;
  margin-bottom: 6px;
}

.review .attribution {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  color: #767676;
}

/* ===== SECTION DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 30px;
}

.contact-section h2 {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-section h3 {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.contact-section .email-link {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ===== ABOUT THE AUTHOR ===== */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px;
}

.about-intro {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.about-intro .about-photo {
  flex: 0 0 200px;
}

.about-intro .about-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-intro .about-photo figcaption {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #767676;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

.about-intro .about-text {
  flex: 1;
}

.about-section p {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.about-section .aaa-badge {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.about-photos {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.about-photos figure {
  text-align: center;
}

.about-photos figure img {
  max-width: 260px;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.about-photos figcaption {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #767676;
  margin-top: 6px;
  font-style: italic;
}

/* ===== BUY BUTTON ===== */
.buy-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #8B6914;
  color: #fff;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  margin-right: 10px;
  margin-top: 8px;
}
.buy-btn:hover {
  background: #6d5310;
  color: #fff;
  text-decoration: none;
}
.buy-btn + .buy-btn {
  margin-left: 0;
}

.coming-soon-inline {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: #faf8f2;
  border: 1px solid #e8dfc4;
  border-radius: 4px;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #8B6914;
  font-style: italic;
}

/* ===== COMING SOON ===== */
.coming-soon {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  background: #faf8f2;
  border-radius: 6px;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #8B6914;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #e5e5e5;
  margin-top: 40px;
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: #767676;
}

.site-footer a {
  color: #767676;
}
.site-footer a:hover {
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav {
    padding: 12px 16px;
  }

  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.92);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }

  .site-nav .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .book-card,
  .book-card.reverse {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .book-card .book-image {
    flex: none;
    max-width: 180px;
    margin-bottom: 10px;
  }

  .photo-row {
    flex-direction: column;
    align-items: center;
  }

  .intro-row {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    flex: none;
    max-width: none;
  }

  .intro-text {
    min-width: 0;
    text-align: center;
  }

  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photos {
    flex-direction: column;
    align-items: center;
  }

  .about-section figure[style*="float"] {
    float: none !important;
    margin: 0 auto 18px auto !important;
    max-width: 100% !important;
  }

  .review {
    padding-left: 14px;
  }
}

/* ===== HOME PAGE COVER GRID ===== */
.home-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.home-cover-grid a {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.home-cover-card {
  background: #f9f7f2;
  padding: 10px;
  border: 1px solid #e8e2d4;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
}

.home-cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.home-cover-grid a p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  margin-top: 10px;
  font-weight: 600;
  color: #222;
}
