/* ========== Base Styles ========== */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #222;
}

/* Keep 700px max width for reading areas only */
main, .post-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.chapter h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.chapter-content p {
  margin-bottom: 1rem;
}

.chapter-footer {
  margin-top: 3rem;
  font-weight: bold;
}

/* ========== Header Layout ========== */
.site-header {
  background-color: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo img {
  height: 60px;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #DDBA65;
}

/* ========== Newsletter Join Layout ========== */
.join-section {
  padding: 4rem 0;
  background-color: #ffffff;
  text-align: center;
}

.join-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.join-content h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0;
}

.join-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.join-content p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #DDBA65;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #bfa252;
}

/* ========== Book Section Layout ========== */
.book-section {
  padding: 6rem 2rem;
  background-color: #fefefe;
  text-align: center;
}

.book-intro h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.5rem;
}

.book-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.book-intro .tagline {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

.book-cta {
  padding-left: 2rem;
  padding-right: 2rem;
}

.book-cta img.book-cover {
  width: 200px;
  border-radius: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.book-cta img.book-cover:hover {
  transform: scale(1.03);
}

.book-cta h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.book-cta p {
  max-width: 600px;
  margin: 8px auto 0.5rem auto;
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}

.book-cta .note {
  font-style: italic;
  font-size: 0.9rem;
  color: #999;
}

/* ========== Software Section ========== */
.software-section {
  padding: 5rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.software-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.software-content h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0;
}

.software-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.software-content p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ========== Newsletter Intro Section ========== */
.newsletter-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.newsletter-intro h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.5rem;
}

.newsletter-intro h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: #000;
}

.newsletter-intro p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Cards Grid Layout ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: start;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h4 {
  font-size: 1.1rem;
  margin: 1rem 1rem 0.5rem 1rem;
  color: #000;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 1rem 1rem 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .card-footer {
  margin-top: auto;
  padding: 1rem;
}

.read-link {
  font-weight: bold;
  color: #DDBA65;
  text-decoration: none;
  margin: 0 1rem 1rem 1rem;
}

.read-link:hover {
  text-decoration: underline;
}

.card hr {
  margin: 0 1rem;
  border: none;
  border-top: 1px solid #eee;
}

.card small {
  font-size: 0.75rem;
  color: #999;
  margin: 0 1rem 1rem 1rem;
  display: block;
}

/* ========== Newsletter Page Styles ========== */
.post-image {
  max-width: 700px;
  width: 14%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.post-excerpt {
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
/* ========== About Section ========== */
.about-section {
  padding: 5rem 2rem;
  background-color: #fefefe;
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-content h5 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.5rem;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000;
}

.about-headshot {
  width: 180px;
  height: auto;
  border-radius: 50%;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

/* ========== Footer ========== */
.site-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 2rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-container p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

/* ========== Book Homepage ========== */
.book-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-left {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;  
  position: sticky;
  top: 6rem; /* Adjust based on your header height */
  align-self: flex-start;
  padding-bottom: 2rem;
}

.book-left hr {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

.book-right {
  flex: 2;
  min-width: 0;
}

/* Gold CTA Buttons */
.book-left .cta-button {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  font-size: 1rem;
  background: #DDBA65;
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.book-left .cta-button:hover {
  background: #c4a451;
  cursor: pointer;
}

/* Chapter Rows */
.chapter-row {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
  text-decoration: none;
  color: black;
  transition: background 0.2s ease;
  border: 1px solid #ddd;
}

.chapter-row:hover {
  background: #eaeaea;
  cursor: pointer;
}

.chapter-arrow {
  font-size: 1.25rem;
  margin-right: 1rem;
}

.chapter-title {
  font-weight: bold;
  font-size: 1.05rem;
}