:root {
  /* Primary Colors */
  --midnight: #2d3644;
  --tide: #4a6670;
  --devon-sand: #c17a5f;
  --copper: #9d442a;
  --fog: #e0e2e0;
  --cream: #f5f2ed;

  /* Dark theme colors */
  --dark-bg: #1a1f29;
  --darker-bg: #141820;
  --content-bg: #fafaf8;
  --soft-white: #ffffff;

  /* Colors with opacity */
  --fog-90: #e0e2e0e6; /* 90% opacity */
  --fog-80: #e0e2e0cc; /* 80% opacity */
  --fog-60: #e0e2e099; /* 60% opacity */
  --devon-sand-50: #c17a5f80; /* 50% opacity */
  --devon-sand-30: #c17a5f4d; /* 30% opacity */
  --devon-sand-20: #c17a5f33; /* 20% opacity */
  --devon-sand-10: #c17a5f1a; /* 10% opacity */
  --tide-90: #4a6670e6; /* 90% opacity */
}

html {
  background-color: var(--darker-bg);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  color: var(--midnight);
  background-color: var(--dark-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Section styles - consolidated */
.section {
  padding: 3rem 2rem 6rem 2rem;
}

.section-dark {
  padding: 1rem 2rem 6rem 2rem;
}

/* Container for light content boxes */
.content-box {
  background-color: var(--content-bg);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}

.content-padding {
  padding: 4rem;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.section-title-light {
  color: var(--fog);
}

.section-title-dark {
  color: var(--midnight);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
nav {
  background: rgba(26, 31, 41, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001; /* Increased to stay above everything */
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(20, 24, 32, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  color: var(--fog);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-decoration: none;
  display: none;
  padding: 0;
}

.nav-logo-image {
  height: 60px;
  width: auto;
  display: block;
  position: absolute;
  top: -25px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 0;
  margin: 0;
  width: 100%;
}

nav a {
  color: var(--fog);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 300;
  letter-spacing: 1px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--devon-sand);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--devon-sand);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--fog);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Menu toggle animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Page wrapper for push effect */
.page-wrapper {
  transition: transform 0.3s ease;
  position: relative;
  background-color: var(--dark-bg);
}

.page-wrapper.nav-open {
  transform: translateX(280px);
}

/* Hero Section */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(193, 122, 95, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(74, 102, 112, 0.1) 0%,
      transparent 50%
    );
}

.hero-content {
  z-index: 1;
  color: var(--fog);
  max-width: 800px;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtext {
  font-size: 1.5rem;
  margin-bottom: 5rem;
  font-style: italic;
  color: var(--fog-80);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
  font-size: 4rem;
  font-style: italic;
  color: var(--devon-sand);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-quote {
  font-size: 2.2rem;
  margin: 4rem auto 4rem;
  font-style: italic;
  color: var(--fog-90);
  animation: fadeInUp 1s ease-out 0.3s both;
  position: relative;
  padding: 0 2rem;
  max-width: 540px;
  line-height: 1.4;
}

.hero-quote::before,
.hero-quote::after {
  content: '"';
  position: absolute;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--devon-sand);
  font-weight: bold;
  line-height: 1;
}

.hero-quote::before {
  top: -2rem;
  left: -1rem;
}

.hero-quote::after {
  bottom: -3rem;
  right: -1rem;
}

.cta-button {
  background: transparent;
  color: var(--devon-sand);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border: 1px solid var(--devon-sand);
  border-radius: 30px;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  background: var(--devon-sand);
  color: var(--soft-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(193, 122, 95, 0.3);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--tide);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
}

.accent-quote {
  padding: 1.8rem 1rem;
  margin: 0.5rem auto;
  position: relative;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--copper);
  text-align: center;
  max-width: 350px;
}

.accent-quote::before,
.accent-quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--devon-sand-30);
  position: absolute;
}

.accent-quote::before {
  top: -10px;
  left: -10px;
}

.accent-quote::after {
  bottom: -30px;
  right: -10px;
}

.quote-signoff {
  display: block;
  text-align: right;
  color: var(--copper);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
  opacity: 0.8;
}

.author-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--tide) 0%, var(--midnight) 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background-image: url(../images/hayley-pierce-profile.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  max-width: 420px;
  margin: auto;
}

/* Books Section */
.book-feature {
  max-width: 1200px;
  margin: 0 auto;
}

.book-feature-content {
  background: var(--soft-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 500px;
}

.book-cover-large {
  perspective: 1200px;
  padding: 3rem 0 3rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-3d {
  position: relative;
  width: 300px;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  transform: rotateY(-15deg) rotateX(5deg);
}

.book-face {
  position: absolute;
  backface-visibility: hidden;
}

.book-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-front {
  width: 300px;
  height: 450px;
  transform: translateZ(15px);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.4), 0 0 100px rgba(0, 0, 0, 0.2);
  border-radius: 0 3px 3px 0;
  overflow: hidden;
  position: relative;
}

.book-front::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.02) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.book-spine {
  width: 30px;
  height: 450px;
  left: 0;
  transform: rotateY(-90deg) translateZ(15px);
  overflow: hidden;
  top: 0;
}

.book-spine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-back {
  width: 300px;
  height: 450px;
  transform: rotateY(180deg) translateZ(15px);
}

.book-edge-right {
  width: 30px;
  height: 450px;
  right: -15px;
  transform: rotateY(90deg) translateZ(15px);
  background: linear-gradient(to right, #f5f5f5, #e0e0e0);
}

.book-edge-top {
  width: 300px;
  height: 30px;
  top: -15px;
  transform: rotateX(90deg) translateZ(15px);
  background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
}

.book-edge-bottom {
  width: 300px;
  height: 30px;
  bottom: -15px;
  transform: rotateX(-90deg) translateZ(15px);
  background: linear-gradient(to top, #e0e0e0, #d0d0d0);
}

.book-details {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-details h3 {
  color: var(--midnight);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.book-description {
  color: var(--tide);
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

.book-meta {
  color: var(--tide-90);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: justify;
}

.book-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: auto;
}

.book-button {
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  background: var(--devon-sand);
  color: white;
  border: 2px solid var(--devon-sand);
  cursor: pointer;
}

.book-button:hover {
  background: var(--copper);
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(157, 68, 42, 0.3);
}

.book-button.secondary {
  background: transparent;
  color: var(--midnight);
  border: 2px solid var(--midnight);
}

.book-button.secondary:hover {
  background: var(--midnight);
  color: white;
  box-shadow: 0 10px 30px rgba(45, 54, 68, 0.3);
}

/* News Section */
.news-grid {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-callout {
  background: linear-gradient(
    135deg,
    rgba(193, 122, 95, 0.1) 0%,
    rgba(74, 102, 112, 0.05) 100%
  );
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 4rem;
  border: 1px solid rgba(193, 122, 95, 0.2);
}

.newsletter-callout h3 {
  color: var(--midnight);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.newsletter-callout p {
  color: var(--tide);
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.substack-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--devon-sand);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.substack-button:hover {
  background: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(157, 68, 42, 0.3);
}

.news-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fog);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--devon-sand);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.news-item h3 {
  color: var(--midnight);
  font-size: 1.8rem;
  margin: 0.5rem 0 1rem;
  font-weight: 300;
}

.news-item p {
  color: var(--tide);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.news-link {
  color: var(--devon-sand);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--copper);
}

/* Extras Section */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.extra-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 226, 224, 0.2);
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.extra-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--devon-sand);
}

.extra-card h3 {
  color: var(--fog);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.extra-card p {
  flex-grow: 1;
  color: var(--fog-80);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.extra-link {
  color: var(--devon-sand);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.extra-link:hover {
  color: var(--copper);
}

.availability-banner {
  display: inline-block;
  width: calc(100% + 6rem);
  margin: 0 -3rem -3rem -3rem;
  padding: 0.75rem 1.5rem;
  background: var(--fog-80);
  color: var(--midnight);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: auto;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Contact Section specific styles */
.contact-content {
  text-align: center;
}

.contact-content p {
  color: var(--tide);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--devon-sand);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  position: relative;
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: var(--copper);
}

.contact-link:hover::after {
  width: 100%;
}

/* Footer */
footer {
  background: var(--darker-bg);
  color: var(--fog);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--devon-sand);
}

.copyright {
  color: var(--fog-60);
  font-size: 0.9rem;
}

.substack-feed-widget {
  font-family: Georgia, serif !important;
}

/* Decorative elements */
.chapter-header {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 200px;
  height: auto;
  opacity: 0.8;
}

.page-break {
  display: block;
  margin: 0rem auto 3rem auto;
  max-width: 150px;
  height: auto;
  opacity: 0.8;
  filter: invert(1);
}

.footer-initials {
  display: block;
  margin: 0 auto 3rem auto;
  max-width: 110px;
  height: auto;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 920px) {
  .book-feature-content {
    grid-template-columns: 1fr;
  }

  .book-cover-large {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--darker-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1002; /* Higher than nav bar */
  }

  nav ul.active {
    transform: translateX(280px);
  }

  nav li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  nav a::after {
    display: none;
  }

  nav a:hover {
    background: var(--devon-sand-10);
    padding-left: 1.5rem;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  /* Reduce section padding on mobile */
  .section {
    padding: 2rem 1rem 4rem 1rem;
  }

  .section-dark {
    padding: 1rem 1rem 4rem 1rem;
  }

  .content-box {
    border-radius: 15px;
  }

  .content-padding {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h1 img {
    max-width: 80%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  .hero-quote {
    font-size: 1.2rem;
    padding: 0 2rem;
    margin: 2rem auto 2rem;
    max-width: 320px;
  }

  .hero-quote::before,
  .hero-quote::after {
    font-size: 3rem;
  }

  .hero-quote::before {
    top: -1.5rem;
    left: -0.5rem;
  }

  .hero-quote::after {
    bottom: -2rem;
    right: -0.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .accent-quote {
    padding: 1.5rem;
    margin: 0.5rem auto;
    font-size: 1.1rem;
    max-width: 300px;
  }

  .quote-signoff {
    font-size: 1rem;
    padding-right: 1rem;
    margin-top: -0.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 370px;
  }

  .book-feature-content {
    grid-template-columns: 1fr;
  }

  .book-cover-large {
    min-height: 250px;
    padding: 2rem;
    perspective: 800px;
  }

  .book-3d {
    width: 200px;
    height: 300px;
  }

  .book-front,
  .book-back {
    width: 200px;
    height: 300px;
  }

  .book-spine {
    width: 20px;
    height: 300px;
    left: 0;
    transform: rotateY(-90deg) translateZ(10px);
  }

  .book-spine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .book-edge-right {
    width: 20px;
    height: 300px;
    right: -10px;
    transform: rotateY(90deg) translateZ(10px);
  }

  .book-edge-top {
    width: 200px;
    height: 20px;
    top: -10px;
    transform: rotateX(90deg) translateZ(10px);
  }

  .book-edge-bottom {
    width: 200px;
    height: 20px;
    bottom: -10px;
    transform: rotateX(-90deg) translateZ(10px);
  }

  .book-front {
    transform: translateZ(10px);
    border-radius: 0 2px 2px 0;
    overflow: hidden;
  }

  .book-back {
    transform: rotateY(180deg) translateZ(10px);
  }

  .book-details {
    padding: 2rem 1.5rem;
  }

  .book-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .book-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .book-meta {
    margin-bottom: 2rem;
  }

  .book-actions {
    gap: 1rem;
  }

  .book-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .newsletter-callout {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .newsletter-callout h3 {
    font-size: 1.6rem;
  }

  .newsletter-callout p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .news-grid {
    gap: 2rem;
  }

  .news-item {
    padding-bottom: 1.5rem;
  }

  .extras-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .extra-card {
    padding: 2rem;
  }

  .availability-banner {
    width: calc(100% + 4rem);
    margin: 0 -2rem -2rem -2rem;
  }

  .contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .contact-links {
    gap: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  nav {
    padding: 1rem 0;
  }

  nav.scrolled {
    padding: 0.75rem 0;
  }

  /* Make decorative elements smaller on mobile */
  .chapter-header {
    max-width: 120px;
    margin-bottom: 1rem;
    opacity: 0.6;
  }

  .page-break {
    max-width: 80px;
    margin: 0 auto 2rem auto;
    opacity: 0.5;
  }

  .footer-initials {
    max-width: 70px;
    margin-bottom: 1.5rem;
  }
}

/* Media query for screens up to 500px */
@media (max-width: 500px) {
  .hero h1 img {
    max-width: 100%;
  }
}
