* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #3d3540;
  background: #fffaf8;
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 248, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee4e1;
}

.nav-wrap {
  max-width: 1120px;
  margin: auto;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  font-size: 1.35rem;
  transform: rotate(-8deg);
  display: inline-block;
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}

.nav-button {
  padding: 9px 16px;
  border: 1px solid #d9c8cf;
  font-size: .9rem;
}

.primary-button {
  background: #7e4f6d;
  color: white;
  padding: 14px 21px;
  box-shadow: 0 8px 20px rgba(126, 79, 109, .18);
}

.secondary-button {
  background: #fff;
  color: #7e4f6d;
  padding: 12px 18px;
  border: 1px solid #d8c7cf;
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}


/* ==========================================
   HERO
   ========================================== */

.hero {
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  min-height: 610px;
  margin: auto;
  padding: 70px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 700;
  color: #a16f88;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  margin: 0 0 22px;
  color: #453946;
  letter-spacing: -.04em;
}

h1 em {
  color: #9b607f;
  font-style: normal;
}

.hero-text {
  max-width: 600px;
  font-size: 1.1rem;
  color: #675d64;
  margin-bottom: 30px;
}


/* ==========================================
   HERO ART
   ========================================== */

.hero-art {
  min-height: 440px;
  position: relative;
  display: grid;
  place-items: center;
}

.paper {
  position: absolute;
  width: 275px;
  height: 360px;
  border-radius: 8px;
  box-shadow: 0 25px 55px rgba(70, 50, 60, .14);
}

.paper-back {
  background: #ead8e1;
  transform: rotate(10deg) translate(35px, 8px);
}

.paper-front {
  background: #fff;
  transform: rotate(-5deg);
  padding: 50px 38px;
}

.paper-lines {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 55px;
  height: 115px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 23px,
    #e9dde2 24px 25px
  );
}

.paper-title {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #7e4f6d;
}

.paper-pen {
  position: absolute;
  right: 30px;
  bottom: 28px;
  font-size: 2rem;
  transform: rotate(-25deg);
}

.doodle-heart {
  position: absolute;
  top: 25px;
  left: 8%;
  font-size: 5rem;
  color: #d998ad;
  transform: rotate(-12deg);
}

.sparkle {
  position: absolute;
  color: #c18ca3;
  font-size: 2.2rem;
}

.sparkle-one {
  right: 8%;
  top: 20%;
}

.sparkle-two {
  left: 12%;
  bottom: 18%;
}


/* ==========================================
   REVIEW SECTION
   ========================================== */

.review-section {
  background: #f4e9ed;
  padding: 70px 24px;
}

.review-card {
  max-width: 950px;
  margin: auto;
  background: #fffdfc;
  border: 1px solid #eadde1;
  border-radius: 24px;
  padding: 42px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 25px;
  box-shadow: 0 18px 45px rgba(76, 52, 63, .07);
}

.review-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1d8df;
  color: #955b78;
  font-size: 1.5rem;
}

.review-card h2,
.section-heading h2,
.about-section h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin: 0 0 15px;
  color: #493b45;
}

.review-card p {
  color: #665b62;
  max-width: 750px;
}

.thank-you {
  color: #7e4f6d !important;
}


/* ==========================================
   JOURNALS SECTION
   ========================================== */

.journals-section {
  max-width: 1120px;
  margin: auto;
  padding: 100px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading > p:last-child {
  color: #756a71;
}


/* ==========================================
   BOOK GRID
   ========================================== */

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 25px;
}

.book-card {
  transition: transform .2s;
  min-width: 0;
}

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


/* ==========================================
   BOOK COVER BOXES
   EVERY COVER IS EXACTLY THE SAME SIZE
   2:3 RATIO
   ========================================== */

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(60, 45, 55, .16);
  background: #ffffff;
}


/* ==========================================
   ACTUAL BOOK COVER IMAGES
   ========================================== */

/*
   Every image fills the exact same box.

   object-fit: cover makes the cover occupy
   the entire 2:3 area instead of shrinking
   based on the original PNG dimensions.
*/

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================
   PLACEHOLDER COVERS
   ========================================== */

.placeholder-cover {
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  letter-spacing: .06em;
  line-height: 1.05;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-pink {
  background: linear-gradient(
    145deg,
    #d88ca3,
    #9f5c79
  );
}

.cover-lilac {
  background: linear-gradient(
    145deg,
    #b9a1d0,
    #77618f
  );
}

.cover-peach {
  background: linear-gradient(
    145deg,
    #e9ad8f,
    #bd765e
  );
}

.cover-sage {
  background: linear-gradient(
    145deg,
    #9db6a3,
    #587765
  );
}


/* ==========================================
   BOOK INFORMATION
   ========================================== */

.book-info {
  padding: 15px 3px 0;
}

.category {
  color: #a16f88;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.book-info h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
}

.shop-link {
  color: #7e4f6d;
  font-weight: 700;
  font-size: .9rem;
}


/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
  background: #efe7e1;
  padding: 85px 24px;
}

.about-inner {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
  align-items: start;
}

.about-doodle {
  font-size: 4rem;
  color: #9b607f;
}

.about-section p:not(.eyebrow) {
  max-width: 760px;
  color: #665d5b;
  font-size: 1.05rem;
}


/* ==========================================
   FINAL CTA
   ========================================== */

.final-cta {
  text-align: center;
  padding: 100px 24px;
  background: #fffaf8;
}

.final-cta h2 {
  max-width: 750px;
  margin: 0 auto 28px;
}


/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: #403641;
  color: #eee7ea;
  padding: 48px 24px 22px;
}

.footer-inner {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: white;
}

footer p {
  color: #cfc3c9;
  margin: 10px 0 0;
}

.footer-right {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 600;
}

.copyright {
  max-width: 1120px;
  margin: 35px auto 0;
  padding-top: 18px;
  border-top: 1px solid #5a5058;
  color: #bdb1b8;
  font-size: .8rem;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 850px) {

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-art {
    min-height: 390px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

  .nav-button {
    display: none;
  }

  .hero-inner {
    padding-bottom: 45px;
  }

  .hero-art {
    min-height: 350px;
    transform: scale(.88);
  }

  .review-card {
    grid-template-columns: 1fr;
    padding: 30px 25px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /*
     Keep every cover exactly 2:3 on mobile.
     Do NOT use padding-bottom here.
  */

  .book-cover {
    aspect-ratio: 2 / 3;
  }

  .book-info h3 {
    font-size: 1.15rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-doodle {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

}