:root {
  --deep-purple: #4a2f7d;
  --purple: #7b4fb5;
  --pink: #ec6faa;
  --pink-light: #ffd6e8;
  --ocean-teal: #1f8a9e;
  --ocean-light: #cdeef2;
  --sand: #f7ead9;
  --cream: #fff8f4;
  --ink: #2c2340;
  --brown: #7a6a63;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .logo-text {
  font-family: 'Baloo 2', sans-serif;
}

/* Header */

.site-header {
  background: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(74, 47, 125, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  font-size: 26px;
  line-height: 1;
}

.logo-text {
  font-family: 'Pacifico', cursive;
  color: var(--deep-purple);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 70%);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  flex: 0 1 460px;
}

.badge-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--pink);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 20px;
  padding: 8px 18px 10px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  box-shadow: 0 6px 14px rgba(74, 47, 125, 0.15);
  transform: rotate(-4deg);
  margin: 0 0 18px;
}

.hero-copy h1 {
  margin: 0 0 6px;
  line-height: 1;
}

.hero-copy .script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--deep-purple);
  font-size: 52px;
  display: inline-block;
}

.hero-copy .caps {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  background: linear-gradient(100deg, var(--ocean-teal), #17b8a6 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 48px;
  letter-spacing: 1px;
  display: inline-block;
}

.subtitle {
  color: var(--pink);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 18px;
}

.tagline {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 440px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), #d1487f);
  color: var(--white);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  box-shadow: 0 8px 18px rgba(236, 111, 170, 0.35);
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* Book cover */

.hero-cover {
  flex: 0 1 440px;
  max-width: 440px;
  position: relative;
  padding: 18px 26px 34px;
}

.book-flat {
  position: relative;
}

.book-flat img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 25px 45px rgba(74, 47, 125, 0.3);
  display: block;
}

.flower {
  position: absolute;
  font-size: 46px;
  z-index: 3;
}

.flower-1 {
  top: -6px;
  left: 0;
}

.flower-2 {
  bottom: 20px;
  right: 4px;
  font-size: 34px;
}

.stamp {
  position: absolute;
  bottom: -6px;
  left: -10px;
  width: 128px;
  padding: 10px 8px;
  border: 2px dashed var(--ocean-teal);
  border-radius: 10px;
  transform: rotate(-11deg);
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
  z-index: 3;
}

.stamp span {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--ocean-teal);
  line-height: 1.3;
}

/* Wave dividers */

.wave-divider {
  display: block;
  width: 100%;
  height: 70px;
  position: relative;
  z-index: 1;
}

.wave-divider path {
  fill: var(--white);
}

.wave-top path {
  fill: var(--cream);
}

.buy-section .wave-divider:last-of-type path {
  fill: var(--cream);
}

/* About the Book */

.about-book {
  background: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}

.about-book h2,
.peek h2,
.meet-daphne h2,
.contact h2,
.buy-copy h2 {
  color: var(--deep-purple);
  font-size: 32px;
  margin: 0 0 14px;
}

.divider {
  width: 90px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 14px);
  margin: 0 auto 32px;
}

.divider-left {
  margin: 0 0 24px;
}

.divider-onwave {
  background: repeating-linear-gradient(90deg, var(--deep-purple) 0 8px, transparent 8px 14px);
  margin: 0 auto 20px;
}

.blurb-full {
  max-width: 680px;
  margin: 0 auto 44px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.feature-icon-teal { background: var(--ocean-light); }
.feature-icon-pink { background: var(--pink-light); }
.feature-icon-orange { background: #ffe4c2; }
.feature-icon-purple { background: #e6dbf7; }

.feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--ink);
}

.feature p {
  font-size: 14px;
  color: var(--brown);
  margin: 0;
  line-height: 1.5;
}

/* Meet Daphne */

.meet-daphne {
  background: var(--sand);
  padding: 64px 0;
}

.meet-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.daphne-portrait {
  flex: 1 1 260px;
  max-width: 280px;
  margin: 0 auto;
}

.daphne-portrait img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(74, 47, 125, 0.2);
}

.daphne-copy {
  flex: 2 1 400px;
}

.daphne-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  max-width: 560px;
}

/* Peek / Gallery */

.peek {
  padding: 64px 0 72px;
  background: var(--white);
  text-align: center;
}

.peek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.peek-grid figure {
  margin: 0;
}

.peek-grid img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(31, 138, 158, 0.18);
  display: block;
}

/* Buy the Book */

.buy-section {
  background: var(--ocean-light);
  position: relative;
}

.buy-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 10px 0 30px;
  text-align: center;
  flex-wrap: wrap;
}

.buy-copy p {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 20px;
}

.buy-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.buy-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 22px;
  border-radius: 40px;
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.buy-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brown);
}

.buy-store {
  font-weight: 800;
  font-size: 20px;
}

.buy-store-amazon {
  color: #131921;
}

.buy-store-lulu {
  color: #2f2ec2;
}

.link-note {
  font-size: 13px;
  color: var(--brown);
  font-style: italic;
  margin: 14px 0 0 !important;
}

.polaroid {
  display: inline-block;
  background: var(--white);
  padding: 10px 10px 26px;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  width: 150px;
  flex-shrink: 0;
}

.polaroid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.polaroid-left {
  transform: rotate(-8deg);
}

.polaroid-right {
  transform: rotate(7deg);
}

/* Contact */

.contact {
  background: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}

.contact p {
  color: var(--brown);
  font-size: 16px;
  margin: 0 0 12px;
}

.contact-placeholder {
  display: inline-block;
  background: var(--sand);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  color: var(--deep-purple);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.contact-placeholder:hover {
  transform: translateY(-2px);
}

/* Footer */

.site-footer {
  background: var(--deep-purple);
  color: var(--pink-light);
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
}

.footer-inner p {
  margin: 4px 0;
}

.copyright {
  color: rgba(255, 214, 232, 0.7);
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .peek-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-copy,
  .hero-cover {
    flex: 0 1 auto;
    width: 100%;
  }
  .hero-copy .script {
    font-size: 42px;
  }
  .hero-copy .caps {
    font-size: 38px;
  }
  .badge-sticker,
  .tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .tagline {
    text-align: center;
    max-width: 100%;
  }
  .hero-cover {
    max-width: 300px;
    padding: 20px 20px 40px;
    margin: 0 auto;
  }
  .site-nav {
    width: 100%;
    gap: 12px 18px;
    justify-content: center;
  }
  .site-nav a {
    font-size: 12px;
  }
  .meet-inner {
    text-align: center;
    justify-content: center;
  }
  .daphne-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .buy-inner {
    flex-direction: column;
  }
  .polaroid {
    display: none;
  }
  .about-book,
  .peek,
  .meet-daphne,
  .contact {
    padding: 48px 0 56px;
  }
}

@media (max-width: 520px) {
  .feature-grid,
  .peek-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy .script {
    font-size: 34px;
  }
  .hero-copy .caps {
    font-size: 30px;
  }
  .stamp {
    width: 108px;
  }
}
