/* Base styles */
body {
  margin: 0;
  background-color: #f5f1e8;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Banner layout */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;

  background-color: #3a7d79;
  padding: 40px 5%;
  flex-wrap: nowrap;
}

/* Logo images */
.banner-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.banner-logo.left {
  margin-right: 10px;
  height: 140px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  display: block;
}

.banner-logo.right {
  margin-left: 10px;
  height: 120px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  visibility: visible;
}

/* Title text container */
.hero-text {
  flex-grow: 1;
  text-align: center;
}

/* Title text styles */
.title {
  font-family: 'Pacifico', cursive;
  font-size: 3.5em;
  color: #ffffff;
  margin: 0;
}

.subtitle {
  font-size: 1.8em;
color: #c69c6d;
  margin: 0;
  font-weight: bold;
}

/* 🌿 Soft Boxed Section Styling */
.section {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
  border: 2px solid #8b6f4e;
  background-color: #fbf8f2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  font-family: 'Georgia', serif;
  line-height: 1.7;
  transition: box-shadow 0.3s ease;
}

.section:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ✨ Section Headings */
.section h2 {
  margin-top: 0;
  font-size: 2em;
  color: #2f6d6a;
  font-family: 'Pacifico', cursive;
  border-bottom: 1px solid #dcdcd2;
  padding-bottom: 6px;
}

/* 📖 Paragraph Styling */
.section p {
  margin-bottom: 1em;
  color: #444;
}

/* 📚 Book Gallery */
.book-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
  display: block;
}

.book p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.book a {
  text-decoration: none;
  color: #3e3a36;
  font-weight: bold;
}

/* 📬 Contact Icons */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-icon {
  font-size: 40px;
  color: #2f4f4f;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-icon:hover {
  transform: scale(1.1);
  color: #aaba99;
}

/* 📬 Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  font-family: 'Georgia', serif;
}

/* ❌ Close Button */
.close {
  color: #999;
  float: right;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #2f6d6a;
}

/* 🧾 Modal Form Layout */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-content label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #4a443e;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-content button[type="submit"] {
  background-color: #A0785A;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Georgia', serif;
}

.modal-content button[type="submit"]:hover {
  background-color: #8B6347;
}

.mobile-cartoon-icon {
  display: none;
}

/* Poetry Grid */
.poetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}

.box {
  background: #fbf8f2;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Navigation Buttons */
.link-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px auto;
  padding: 0 16px;
  flex-wrap: wrap;
}

.link-button {
  background-color: #c69c6d;
  color: #fff;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.link-button:hover {
  background-color: #a67c52;
}

.poem-subtitle {
  font-weight: bold;
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  color: #333;
  margin-bottom: 6px;
}

.email-visible {
  font-size: 0.95em;
 color: #8b6f4e;
  margin-top: 8px;
  text-align: center;
}

.email-visible a {
  color: #9a8266;
  text-decoration: none;
}

footer {
  text-align: center;
  background-color: #3a7d79;
  color: #ffffff;
  padding: 20px 16px;
  margin-top: 40px;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  color: #c69c6d;
}

/* ✨ Sparkle Animation */
.hero-banner {
  position: relative;
}

.sparkle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-banner > *:not(.sparkle-canvas) {
  position: relative;
  z-index: 2;
}

.shelf-unit {
  display: flex;
  flex-direction: column;
}

.shelf-book-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shelf-book-info .blurb {
  flex-grow: 1;
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .banner-logo {
    height: 100px;
    margin: 10px 0;
  }

  .hero-text {
    margin: 20px 0;
  }

  .title {
    font-size: 2.5em;
  }

  .subtitle {
    font-size: 1.4em;
  }

  .mobile-cartoon-icon {
    display: block;
    height: 120px;
    margin-bottom: 1rem;
  }

  .book-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-icon {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .main-logo,
  .updates-logo,
  .poetry-logo {
    display: none !important;
  }
}

.goodreads-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%) brightness(0) invert(30%) sepia(20%) saturate(600%) hue-rotate(130deg);
  transition: transform 0.2s ease;
}

.goodreads-icon:hover {
  transform: scale(1.1);
}

/* 🍔 Hamburger Navigation */
.site-nav {
  margin: 30px auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

/* Desktop: show buttons, hide hamburger */
.desktop-nav {
  display: flex;
}

.mobile-nav {
  display: none;
  justify-content: center;
  position: relative;
}

/* Mobile: hide buttons, show hamburger */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

.hamburger-btn {
  background-color: #c69c6d;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fbf8f2;
  border: 2px solid #8b6f4e;
  border-radius: 8px;
  padding: 10px;
  gap: 8px;
  z-index: 999;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 8px;
}

.hamburger-menu.open {
  display: flex;
}

.hamburger-menu .link-button {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
@media (min-width: 769px) {
  .section {
    max-width: 960px;
  }
}

























