/* ==========================================================================
   AI In Colors — Website Stylesheet
   Palette derived from the book cover:
     Cream/warm white:  #F6F1E9
     Wheat/sand:        #D9CDAF
     Dark trunk:        #4A3F35
     Cyan accent:       #7EC8D9
     Coral accent:      #E8A87C
     Pink accent:       #C9A0B5
     Purple accent:     #9B7EB5
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: #F6F1E9;
  color: #4A3F35;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- Layout ---------- */

.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* ---------- Hero / Cover ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
  margin-bottom: 2rem;
}

.cover-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-bottom: 3rem;
}

.cover-book {
  position: relative;
  display: block;
  transition: transform 0.6s ease;
}

.cover-book:hover {
  transform: translateY(-6px);
}

/* Blurred surface/reflection beneath the cover */
.cover-book::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 8%;
  right: 8%;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 63, 53, 0.13) 0%,
    rgba(74, 63, 53, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(8px);
  transition: all 0.6s ease;
  z-index: -1;
}

.cover-book:hover::after {
  bottom: -28px;
  left: 10%;
  right: 10%;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 63, 53, 0.10) 0%,
    rgba(74, 63, 53, 0.04) 40%,
    transparent 70%
  );
  filter: blur(12px);
}

.cover-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow:
    0 4px 8px rgba(74, 63, 53, 0.08),
    0 12px 28px rgba(74, 63, 53, 0.10),
    0 28px 60px rgba(74, 63, 53, 0.08);
  transition: box-shadow 0.6s ease;
}

.cover-book:hover .cover-image {
  box-shadow:
    0 8px 16px rgba(74, 63, 53, 0.08),
    0 20px 40px rgba(74, 63, 53, 0.12),
    0 40px 80px rgba(74, 63, 53, 0.10);
}

/* ---------- Title area ---------- */

.book-info {
  text-align: center;
  max-width: 620px;
}

.book-title {
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  color: #4A3F35;
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  color: #6B5F52;
  margin-bottom: 0.8rem;
}

.book-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #A89C8E;
  margin-bottom: 1.5rem;
}

/* ---------- Decorative divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem auto 2rem;
  width: 100%;
  max-width: 300px;
}

.divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-dot:nth-child(1) { background-color: #7EC8D9; }
.divider-dot:nth-child(2) { background-color: #E8A87C; }
.divider-dot:nth-child(3) { background-color: #C9A0B5; }
.divider-dot:nth-child(4) { background-color: #9B7EB5; }

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(74, 63, 53, 0.12),
    transparent
  );
}

/* ---------- Description ---------- */

.book-description {
  font-size: 1.02rem;
  color: #6B5F52;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: left;
  font-weight: 300;
  line-height: 1.85;
}

.book-description p {
  margin-bottom: 1rem;
}

.book-description p:last-child {
  margin-bottom: 0;
}

/* ---------- Purchase section ---------- */

.purchase-section {
  text-align: center;
  margin-top: 1rem;
}

.purchase-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A89C8E;
  margin-bottom: 1.2rem;
}

.purchase-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all 0.35s ease;
  position: relative;
}

.purchase-link--amazon {
  background-color: #4A3F35;
  color: #F6F1E9;
}

.purchase-link--amazon:hover {
  background-color: #5D4F42;
  box-shadow: 0 4px 20px rgba(74, 63, 53, 0.25);
  transform: translateY(-1px);
}

.purchase-link--payhip {
  background-color: transparent;
  color: #4A3F35;
  border: 1px solid rgba(74, 63, 53, 0.2);
}

.purchase-link--payhip:hover {
  border-color: rgba(74, 63, 53, 0.4);
  background-color: rgba(74, 63, 53, 0.03);
  box-shadow: 0 4px 20px rgba(74, 63, 53, 0.08);
  transform: translateY(-1px);
}

.purchase-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: #B5A998;
  letter-spacing: 0.03em;
}

/* ---------- Subtle gradient accent at top of page ---------- */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    #7EC8D9,
    #E8A87C,
    #C9A0B5,
    #9B7EB5
  );
  z-index: 100;
  opacity: 0.7;
}

/* ---------- Fade-in animation ---------- */

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

.hero {
  animation: fadeUp 1s ease-out both;
}

.book-info {
  animation: fadeUp 1s ease-out 0.2s both;
}

.purchase-section {
  animation: fadeUp 1s ease-out 0.4s both;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-wrapper {
    padding: 2rem 1.25rem;
  }

  .book-title {
    font-size: 1.75rem;
  }

  .book-subtitle {
    font-size: 1.25rem;
  }

  .book-description {
    font-size: 0.95rem;
  }

  .purchase-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .purchase-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .cover-container {
    margin-bottom: 2rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .book-title {
    font-size: 2rem;
  }
}
