:root {
  --book-bg: #0e1210;
  --book-bg-soft: #121a16;
  --book-panel: #1a231c;
  --book-stroke: rgba(110, 134, 106, 0.35);
  --book-text: #f0f7f0;
  --book-muted: #a8b7a7;
  --book-accent: #9dcc7a;
}

body {
  background:
    radial-gradient(1200px 620px at 30% -10%, rgba(80, 120, 80, 0.2), transparent 62%),
    radial-gradient(900px 520px at 80% 10%, rgba(120, 90, 60, 0.2), transparent 65%),
    linear-gradient(180deg, #0b0f0c 0%, #0f1511 40%, #0a0f0b 100%);
  color: var(--book-text);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: rgba(10, 14, 11, 0.88);
  border-bottom: 1px solid rgba(130, 156, 118, 0.24);
  backdrop-filter: blur(10px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.nav__name {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #f6fbf6;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__links a {
  color: #c7d7c5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: #ffffff;
}

.nav__cta {
  background: rgba(157, 204, 122, 0.18);
  border: 1px solid rgba(157, 204, 122, 0.45);
  color: #d4f0b9;
  border-radius: 999px;
  padding: 7px 16px;
}

@media (max-width: 760px) {
  .nav {
    padding: 12px 14px;
    gap: 12px;
  }

  .nav__links {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav__links a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }
}

.book-page {
  padding: 40px 20px 80px;
}

.book-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--book-stroke);
  background: linear-gradient(140deg, rgba(19, 27, 20, 0.96), rgba(12, 18, 12, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.book-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 360px at 75% 30%, rgba(70, 120, 78, 0.25), transparent 70%),
    repeating-linear-gradient(90deg, rgba(35, 46, 34, 0.3) 0px, rgba(35, 46, 34, 0.3) 2px, transparent 2px, transparent 18px),
    linear-gradient(180deg, rgba(14, 20, 13, 0.2), rgba(12, 18, 12, 0.9));
  opacity: 0.8;
}

.book-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 28px;
  padding: 36px;
}

.book-hero__cover {
  height: 360px;
  border-radius: 14px;
  background: #0f1511;
  border: 1px solid rgba(110, 134, 106, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--book-muted);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.book-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: #b5d7aa;
  margin-bottom: 12px;
  font-weight: 700;
}

.book-hero__meta h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.book-hero__author {
  color: var(--book-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.book-hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.book-hero__info span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--book-stroke);
  background: rgba(18, 26, 20, 0.6);
  color: #d4e4d1;
  font-size: 0.85rem;
}

.book-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.book-details {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}

.book-details__card {
  background: rgba(15, 22, 16, 0.88);
  border: 1px solid var(--book-stroke);
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--book-text);
}

.book-details__card h2,
.book-details__card h3 {
  font-family: var(--font-serif);
  margin-bottom: 12px;
}

#bookMetaList {
  list-style: none;
  display: grid;
  gap: 10px;
}

#bookMetaList li {
  color: var(--book-muted);
}

@media (max-width: 880px) {
  .book-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-hero__cover {
    margin: 0 auto;
    max-width: 260px;
  }

  .book-hero__actions {
    justify-content: center;
  }

  .book-details {
    grid-template-columns: 1fr;
  }
}
