/* ════════════════════════════════════════════════════════════════
   BOOK SECTION — Son of the Wind
════════════════════════════════════════════════════════════════ */
#book {
  position: relative;
  padding: 100px 80px;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(239,159,39,0.12) 0%, transparent 55%),
    linear-gradient(to right, #1A1208 0%, #6B4A1E 15%, #C9A06A 35%, #D4B07A 50%, #C9A06A 65%, #6B4A1E 85%, #1A1208 100%);
  overflow: hidden;
  min-height: 100vh;
  scroll-margin-top: 70px;
}

.book-bg-text {
  position: absolute;
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 700;
  color: rgba(200,134,10,0.03);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Left: text ── */
.book-left { max-width: 520px; }

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200,134,10,0.12);
  border: 0.5px solid rgba(200,134,10,0.4);
  padding: 7px 18px 7px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.book-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}
.book-badge span {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.book-h {
  font-family: var(--serif);
  font-size: 48px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 8px;
}
.book-h .book-italic {
  display: block;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-pale);
  font-size: 72px;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 6px;
}

.book-subtitle {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.book-body {
  font-family: var(--italic);
  font-size: 19px; font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.book-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ── Right: 3D book cover ── */
.book-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-cover-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  transition: transform 0.4s ease;
}

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

.book-cover-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

/* Ambient glow behind the book */
.book-right::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(200,134,10,0.07) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ── Notify Modal ── */
.notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,6,10,0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.notify-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notify-modal {
  background: var(--deep);
  border: 0.5px solid rgba(200,134,10,0.3);
  border-radius: 6px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.notify-overlay.active .notify-modal {
  transform: translateY(0);
}

.notify-close {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  transition: color 0.2s;
}
.notify-close:hover { color: var(--cream); }

.notify-modal h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.notify-modal p {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 28px;
}

.notify-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.notify-field label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.notify-field input {
  background: rgba(200,134,10,0.06);
  border: 0.5px solid rgba(200,134,10,0.25);
  border-radius: 3px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.notify-field input::placeholder { color: var(--muted); }
.notify-field input:focus { border-color: var(--gold); }

.notify-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold-bright);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.notify-submit:hover { background: var(--gold-pale); }
.notify-submit:active { transform: scale(0.98); }
.notify-submit.success {
  background: #2a7a3a;
  color: #fff;
  pointer-events: none;
}

.notify-note {
  font-family: var(--sans);
  font-size: 11px; font-weight: 300;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

/* ── Light theme ── */
body.light-theme #book { background: #FFFFFF; }
body.light-theme .book-bg-text { color: rgba(140,89,8,0.04); }
body.light-theme .book-badge { background: rgba(184,92,0,0.1); border-color: rgba(184,92,0,0.3); }
body.light-theme .book-badge span { color: var(--gold-bright); }
body.light-theme .book-cover-wrapper img {
  box-shadow: 8px 12px 30px rgba(0,0,0,0.15), 2px 4px 12px rgba(0,0,0,0.1);
}
body.light-theme .notify-overlay { background: rgba(248,238,215,0.85); }
body.light-theme .notify-modal { background: #FFFFFF; border-color: rgba(140,89,8,0.2); }
body.light-theme .notify-close { color: rgba(31,10,2,0.4); }
body.light-theme .notify-close:hover { color: #1F0A02; }
body.light-theme .notify-modal h3 { color: #1F0A02; }
body.light-theme .notify-modal p { color: rgba(31,10,2,0.65); }
body.light-theme .notify-field input { background: rgba(140,89,8,0.05); border-color: rgba(140,89,8,0.2); color: #1F0A02; }
body.light-theme .notify-field input:focus { border-color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  #book { padding: 80px 40px; min-height: auto; }
  .book-grid { gap: 50px; }
  .book-h { font-size: 38px; }
  .book-h .book-italic { font-size: 56px; }
  .book-cover-wrapper { max-width: 320px; }
}

@media (max-width: 768px) {
  #book { padding: 70px 24px; }
  .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .book-right { order: -1; }
  .book-cover-wrapper { max-width: 260px; }
  .book-h { font-size: 30px; }
  .book-h .book-italic { font-size: 42px; }
  .book-body { font-size: 16px; }
  .book-bg-text { font-size: 100px; }
  .notify-modal { padding: 36px 24px; }
}

@media (max-width: 480px) {
  #book { padding: 56px 18px; }
  .book-h { font-size: 24px; }
  .book-h .book-italic { font-size: 34px; }
  .book-body { font-size: 15px; }
  .book-cover-wrapper { max-width: 220px; }
  .book-bg-text { font-size: 70px; }
}
