* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.sub-heading {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 15px;
  text-align: center;
}

.italic-heading {
  font-family: 'Cinzel', serif;
  font-style: italic;
  letter-spacing: 4px;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 15px;
  text-align: center;
}

.btn {
  display: inline-block;
  border: 1px solid black;
  padding: 15px 30px;
  background: black;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
}

/* --- Global Section Headings (WITH LINES) --- */
.small-heading {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 15px;
  
  display: flex; /* Required for lines */
  align-items: center;
  width: 40%; /* Adjusted width to ensure lines are visible */
  max-width: 800px;
  margin: 0 auto 15px;
}

.small-heading::before,
.small-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d9d9d3;
}

.small-heading::before {
  margin-right: 20px;
}

.small-heading::after {
  margin-left: 20px;
}

/* --- Author Name Tagline (NO LINES) --- */
/* Target only the author tagline paragraph specifically */
.book-info p.small-heading {
  display: block; 
  width: 100%;
  text-align: left;
  margin: 40px 0 30px 0;
  letter-spacing: 6px;
}

/* Force hide lines for author tagline only */
.book-info p.small-heading::before,
.book-info p.small-heading::after {
  display: none !important;
  content: none !important;
}

/* --- Header --- */
header {
  border-bottom: 1px solid #d8d8d3;
  padding: 20px 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #777;
}

.header-content {
  font-family: 'Cinzel', serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: flex;
  gap: 30px;
}

/* --- Hero & Book Layout --- */
.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 70px;
  letter-spacing: 10px;
  font-weight: 100;
  text-transform: uppercase;
  text-align: center;
}

.line {
  width: 100px;
  height: 1px;
  background: #bdbdb7;
  margin: 30px auto;
}

.left-line {
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 40px;
  width: 60px;
  height: 1px;
  background: #d8d8d3;
}

/* --- The Divider (Full-width separator between sections) --- */
.divider {
  border-top: 1px solid #d9d9d3;
  margin: 60px auto; /* Added vertical spacing */
  width: 85%;
  height: 1px;
  display: block;
}

/* --- Trailer --- */
.trailer {
  padding: 100px 0;
  text-align: center;
}
.video-wrapper {
    width: 100%;
    max-width: 900px; /* Limits the size on large screens */
    margin: 30px auto;
    aspect-ratio: 16 / 9; /* Sets the standard video shape */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    background: #000; /* Pre-loads black so there's no white flash */
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 80px;
  text-align: left;
}

.book-cover {
  width: 340px;
  margin: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.book-info h2 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 100;
}

.book-info p:first-of-type {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* --- Author Section --- */
.author-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 50px;
}

.author-text h2 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 100;
  line-height: 1.1;
}

.author-image {
  width: 100%;
  max-width: 450px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* --- Newsletter & Footer --- */
/* --- Newsletter & Footer --- */
.newsletter {
  background: white;
  border-top: 1px solid #deded8;
  border-bottom: 1px solid #deded8;
  padding: 100px 20px;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  font-size: 40px;
  font-weight: 100;
  margin-bottom: 40px;
}

/* --- Beehiiv Center Alignment Fix --- */
#newsletter .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#newsletter .beehiiv-embed-container,
#newsletter script + div {
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px; 
}

.btn {
  border: 1px solid black;
  padding: 15px 30px;
  background: black;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 80px 20px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #777;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px; /* Spacing between icons */
  margin-top: 30px;
  margin-bottom: 20px;
}

.social-links a {
  font-size: 20px; /* Size of the icons */
  color: #8a8a8a;  /* Matches your other gray headings */
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #1a1a1a; /* Darkens when you hover over them */
}

/* Optional: Special color for the X icon border if you want it to stand out */
.fa-x-twitter {
  padding: 4px;
}

/* --- Updated Mobile Responsive --- */
@media (max-width: 900px) {
  
  /* 1. Reduce excessive section gaps */
  .hero, 
  .trailer, 
  .story,
  .author {
    padding: 40px 0; /* Was 100px - tightens the vertical space */
  }

  /* 2. Shrink the divider margins */
  .divider {
    margin: 20px auto; /* Was 60px - pulls sections closer together */
  }

  /* 3. Pull the book layout closer to the title */
  .book-layout {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 40px;
    margin-top: 30px; /* Reduced from 80px */
  }

  /* Keep your existing author grid logic */
  .author-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  /* Maintain left-alignment for the divider line */
  .left-line {
    margin-left: 0 !important;
    margin-right: auto;
  }

  /* Description text adjustments */
  .book-info p:first-of-type {
    font-style: italic; 
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Ensure the author tagline stays left-aligned and spaced */
  .book-info p.small-heading {
    text-align: left !important;
    margin-top: 30px;
    letter-spacing: 4px;
    width: 100%;
  }

  /* Center the global headings that DO have lines */
  .small-heading {
    width: 90%; 
    margin: 0 auto 15px;
  }
}

/* --- Fix Newsletter Form on Mobile --- */
@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column; /* Stacks the input and button vertically */
    gap: 15px;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%; /* Ensures the input takes full width */
  }

  .newsletter-form .btn {
    width: 100%; /* Makes the button easy to tap */
  }

  header {
    padding: 15px 0; /* Tightens vertical space */
  }

  .header-content {
    display: flex;
    justify-content: space-between; /* Keeps them on opposite sides */
    align-items: center;
    width: 92%; /* Gives a small margin so text doesn't touch screen edges */
    font-size: 8px; /* Shrinks text so it fits on one line */
    letter-spacing: 1px; /* Reduces spacing slightly to save room */
  }

  /* Ensures the nav link doesn't add extra padding that pushes it left */
  nav {
    gap: 10px; 
  }

  /* Prevents the "V M" and "A Novel..." from stacking */
  .header-content p {
    display: inline-block;
    margin-right: 5px;
  }
  
}

