/* Book microsites — standalone pages for each novel */
/* These sit OUTSIDE the diary. They're the books themselves. */

/* Override diary body defaults for microsite */
body.book-page {
  background: var(--paper);
  padding: 0;
  display: block;
}

/* Hero section with cover showcase */
.book-hero {
  background: linear-gradient(145deg, var(--cover-orange) 0%, var(--cover-dark) 60%, var(--cover-deep) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Leather texture on hero */
.book-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' type='fractalNoise'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.book-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.book-hero .breadcrumb {
  font-family: var(--f-handwritten);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.book-hero .breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.book-hero .breadcrumb a:hover { color: white; }

.book-hero h1 {
  font-family: var(--f-editorial);
  font-size: 3.5rem;
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.book-hero .book-series {
  font-family: var(--f-typewriter);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.book-hero .book-tagline {
  font-family: var(--f-handwritten);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
}

/* Book content section */
.book-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
}

.book-content h2 {
  font-family: var(--f-handwritten);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cover-orange);
  margin: 2.5rem 0 1rem;
}

.book-content p {
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-black);
  margin-bottom: 1rem;
}

/* Character list on book page */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.character-card {
  background: var(--paper-aged);
  padding: 1.2rem;
  border-radius: 2px;
  border-left: 3px solid var(--cover-orange);
}

.character-card h3 {
  font-family: var(--f-handwritten);
  font-size: 1.3rem;
  color: var(--ink-blue);
  margin-bottom: 0.3rem;
}

.character-card p {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: var(--ink-pencil);
  line-height: 1.5;
  margin: 0;
}

/* Cities strip */
.cities-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.city-badge {
  font-family: var(--f-typewriter);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-brown);
  padding: 0.5rem 1rem;
  border: 1px dashed var(--paper-line);
  background: var(--paper);
}

/* Map background (from original) */
.book-page.book-inherited-sin::after {
  content: '';
  position: fixed;
  top: 0; right: -2%;
  width: 55%; height: 100%;
  background-image: url('/assets/images/map-inherited-sin.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.book-page .book-hero,
.book-page .book-content,
.book-page .diary-nav,
.book-page .diary-footer,
.book-page .newsletter-insert {
  position: relative;
  z-index: 1;
}

/* Back to diary link */
.back-to-diary {
  display: inline-block;
  font-family: var(--f-handwritten);
  font-size: 1.1rem;
  color: var(--cover-orange);
  text-decoration: none;
  margin: 2rem 0;
  transition: color 0.2s;
}
.back-to-diary:hover { color: var(--cover-dark); }
.back-to-diary::before { content: '\u2190 '; }

/* Book page nav/footer overrides */
.book-page .diary-nav {
  margin-left: 0;
  background: var(--paper-aged);
}
.book-page .diary-footer {
  margin-left: 0;
  border-radius: 0;
}

@media (max-width: 700px) {
  .book-hero h1 { font-size: 2.5rem; }
  .book-hero { padding: 2.5rem 1.5rem; }
  .book-content { padding: 2rem 1.5rem; }
  .book-page.book-inherited-sin::after { width: 90%; right: -10%; opacity: 0.06; }
}
