:root {
  --night: #080d1a;
  --navy: #181e33;
  --blue: #203366;
  --purple: #5b2d91;
  --gold: #c8923e;
  --soft-gold: #f6d28a;
  --bright-gold: #f7c760;
  --white: #ffffff;
  --muted: #f7c760;
  --glass: rgba(11, 16, 32, 0.72);
  --line: rgba(246, 210, 138, 0.33);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at top,
      #1e2552 0%,
      var(--night) 38%,
      #040711 100%
    );
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.star-field{
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    overflow:hidden;
}

.star{
    position:absolute;
    border-radius:50%;
    background:#f6d28a;
    box-shadow:0 0 8px rgba(246,210,138,.5);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--soft-gold);
  text-decoration: none;
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.35rem, 11vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 9vw, 4rem);
}

h3 {
  color: var(--soft-gold);
  font-size: 1.55rem;
}

p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--bright-gold);
  font-family: Cinzel, serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================
   HEADER AND NAVIGATION
========================================= */

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(4, 7, 17, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft-gold);
  font-family: Cinzel, serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.menu-button {
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--soft-gold);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
}

.mobile-menu {
  position: sticky;
  top: 63px;
  z-index: 19;
  display: none;
  padding: 8px 14px 14px;
  background: rgba(8, 13, 26, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-menu a {
  padding: 11px 12px;
  color: var(--white);
  border: 1px solid rgba(246, 210, 138, 0.2);
  border-radius: 14px;
}

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

.hero-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: end;
  overflow: hidden;
}

/* ==========================
   Desktop Hero (Default)
========================== */

.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to bottom,
      rgba(8, 13, 26, 0.10),
      rgba(8, 13, 26, 0.20)
    ),
    url("assets/hero-singing-soul.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  
}

/* ==========================
   Mobile Hero
========================== */

@media (max-width: 768px) {

  .hero-image {
    background-image:
      linear-gradient(
        to bottom,
        rgba(8, 13, 26, 0.10),
        rgba(8, 13, 26, 0.20)
      ),
      url("assets/hero-singing-soul-mobile.png");

    background-position: center top;
    background-size: cover;
    transform: none;
  }

}

.hero-card,
.hero-card.glass-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 64vh 18px 42px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-logo {
  display: none;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--bright-gold);
  font-weight: 600;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(209, 148, 49, 0.45);
}

.hero-copy {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--white);
  font-weight: 500;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.55);
}

.button-row {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* =========================================
   BUTTONS
========================================= */

.primary-button,
.secondary-button,
.preview-button,
.amazon-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.primary-button {
  color: #130c05;
  background: linear-gradient(135deg, var(--gold), var(--soft-gold));
  border: 0;
}

.secondary-button,
.preview-button,
.amazon-link {
  color: var(--soft-gold);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover,
.preview-button:hover,
.amazon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(246, 210, 138, 0.2);
}

/* =========================================
   SHARED SECTIONS
========================================= */

.section-pad {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5px 16px;
}

.section-heading {
  margin-bottom: 18px;
}

/* =========================================
   INTRO SECTION
========================================= */

.intro-section {
  padding-top: 46px;
  padding-bottom: 0;
}

.floating-art {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/*
  The original PNG has a tall transparent canvas.
  This fixed-height viewport crops away that empty area.
*/

.divider-art {
  display: block;
  width: min(100%, 380px);
  height: 52px;
  margin: 20px auto 0;
  object-fit: cover;
  object-position: center 16%;
  overflow: hidden;
  opacity: 0.95;
}

/* =========================================
   BOOKS SECTION
========================================= */

.books-section.section-pad {
  padding-top: 18px;
}

.book-grid {
  display: grid;
  gap: 18px;
}

.book-card {
  padding: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(32, 51, 102, 0.5),
      rgba(8, 13, 26, 0.9)
    );
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.book-cover {
  display: grid;
  min-height: 280px;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 22px;
}

.book-cover-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.placeholder-cover {
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(246, 210, 138, 0.32),
      rgba(91, 45, 145, 0.45) 38%,
      rgba(8, 13, 26, 0.9) 80%
    ),
    url("assets/gold-swirl-2.png");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(246, 210, 138, 0.25);
}

.placeholder-cover span {
  color: var(--soft-gold);
  font-family: Cinzel, serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-button {
  width: 100%;
}

.amazon-link {
  width: 100%;
  margin-top: 18px;
}

/* =========================================
   ARTWORK
========================================= */

.wide-art {
  display: block;
  width: 100%;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* =========================================
   CARDS
========================================= */

.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.review-card,
.contact-card,
.audio-shell,
.contact-form {
  padding: 18px;
  margin-bottom: 14px;
}

.review-card p {
  margin: 0 0 8px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.review-card span {
  color: var(--soft-gold);
}

/* =========================================
   CONTACT
========================================= */

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--soft-gold);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(246, 210, 138, 0.28);
  border-radius: 16px;
}

textarea {
  resize: vertical;
}

/* =========================================
   BOOK PREVIEW MODAL
========================================= */

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.preview-modal.open {
  display: grid;
}

.reader-shell {
  position: relative;
  display: flex;
  width: min(100%, 900px);
  max-height: 94vh;
  flex-direction: column;
  overflow: hidden;
  background: #10172b;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.reader-header {
  position: relative;
  padding: 20px 64px 16px 20px;
  border-bottom: 1px solid rgba(246, 210, 138, 0.16);
}

.reader-header h2 {
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--soft-gold);
  background: rgba(8, 13, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
}

.kindle-reader,
.book-reader {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.reader-page {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 480px;
  perspective: 1600px;
}

.reader-page-inner {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: #111a35;
  border: 1px solid rgba(246, 210, 138, 0.25);
  border-radius: 22px;
  transform-style: preserve-3d;
}

.reader-page-front {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

#readerPageImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.reader-page.flip-next .reader-page-inner {
  animation: flipNext 0.55s ease;
}

.reader-page.flip-prev .reader-page-inner {
  animation: flipPrev 0.55s ease;
}

.reader-nav {
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--soft-gold);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.reader-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.reader-footer,
.reader-count {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: var(--soft-gold);
  font-family: Cinzel, serif;
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(246, 210, 138, 0.16);
}

@keyframes flipNext {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateY(-90deg);
    opacity: 0.45;
  }

  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

@keyframes flipPrev {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateY(90deg);
    opacity: 0.45;
  }

  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

/* =========================================
   MUSIC PLAYER
========================================= */

.music-player {
  padding: 20px;
}

.music-disc {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin: 6px auto 18px;
  color: #140c04;
  background:
    radial-gradient(
      circle,
      var(--soft-gold) 0%,
      var(--gold) 45%,
      var(--purple) 100%
    );
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(246, 210, 138, 0.28);
  font-size: 3rem;
}

.music-info {
  text-align: center;
}

.now-playing-label {
  margin: 0 0 6px;
  color: var(--soft-gold);
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}

.music-controls button {
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--soft-gold);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.8rem;
}

#playPause {
  width: 64px;
  height: 64px;
  color: #130c05;
  background: linear-gradient(135deg, var(--gold), var(--soft-gold));
  border: 0;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--soft-gold);
  font-size: 0.78rem;
}

#progressBar {
  width: 100%;
  cursor: pointer;
  accent-color: var(--soft-gold);
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-item {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 210, 138, 0.2);
  border-radius: 16px;
}

.track-item span {
  color: var(--soft-gold);
}

.track-item.active {
  background: rgba(246, 210, 138, 0.12);
  border-color: var(--soft-gold);
}

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

footer {
  padding: 34px 16px 50px;
  text-align: center;
  background: rgba(4, 7, 17, 0.4);
  border-top: 1px solid var(--line);
}

footer img {
  width: 86px;
}

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

@media (max-width: 719px) {
  .section-pad {
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro-section {
    padding-bottom: 0;
  }

  .divider-art {
    width: 290px;
    height: 46px;
    margin-top: 18px;
    object-position: center 16%;
  }

  .books-section.section-pad {
    padding-top: 12px;
  }

  .kindle-reader,
  .book-reader {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 4px;
    padding: 8px;
  }

  .reader-page {
    height: 68vh;
    min-height: 440px;
  }

  .reader-nav {
    width: 36px;
    height: 36px;
    font-size: 1.65rem;
  }
}

/* =========================================
   TABLET AND DESKTOP
========================================= */

@media (min-width: 720px) {
  .menu-button {
    display: none;
  }

  .mobile-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    top: 59px;
  }

  .mobile-menu a {
    border: 0;
  }

  .hero-card {
    max-width: 620px;
    justify-self: center;
  }

  .button-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 18px;
  }

  .contact-section .section-heading {
    grid-column: 1 / -1;
  }
}