@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #12121e;
  --bg-card: #16162a;
  --crimson: #910000;
  --crimson-light: #d42e2e;
  --text-primary: #e8e4f0;
  --text-secondary: #dcd5e8;
  --text-muted: #c8c0d8;
  --divider: #d2c8e2;
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(145, 0, 0, 0.3);
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

nav .logo img {
  height: 40px;
  width: 40px;
}

nav .logo span {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--crimson-light);
  letter-spacing: 3px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--crimson-light);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 30px 80px;
  background: radial-gradient(ellipse at 50% 30%, rgba(60, 20, 60, 0.15) 0%, transparent 70%);
}

.hero-inner {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-cover {
  flex-shrink: 0;
}

.hero-cover img {
  width: 380px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(145, 0, 0, 0.15);
}

.hero-text {
  max-width: 550px;
}

.hero-text .series-tag {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--crimson-light);
  margin-bottom: 15px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hero-text .subtitle {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.hero-text .tagline {
  font-style: italic;
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-text .buy-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--crimson);
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--crimson);
  transition: all 0.3s;
}

.buy-btn:hover {
  background: transparent;
  color: var(--crimson-light);
}

/* Section */
section {
  padding: 100px 30px;
}

section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.section-divider {
  width: 120px;
  height: 2px;
  background: var(--crimson);
  margin: 0 auto 50px;
}

/* About the Book */
.synopsis p {
  margin-bottom: 20px;
  font-size: 21px;
  color: var(--text-secondary);
}

.synopsis .genre-line {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 30px;
  text-align: center;
}

/* About the Author */
.author-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.author-photo {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

.author-photo img {
  width: 200px;
  border-radius: 4px;
  border: 2px solid rgba(145, 0, 0, 0.3);
}

.author-photo .caption {
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

.author-bio p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

/* Series section */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(145, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: var(--crimson);
}

.book-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.book-card .isbn {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0;
  font-family: monospace;
}

.book-card .status {
  font-style: italic;
  color: var(--crimson-light);
  font-size: 16px;
  margin-top: 12px;
}

/* Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(145, 0, 0, 0.2);
  padding: 60px 30px;
  text-align: center;
}

footer .footer-publisher-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

footer .footer-publisher-link:hover {
  opacity: 0.85;
}

footer .footer-publisher-link:hover .publisher-name {
  color: var(--crimson-light);
}

footer .footer-logo img {
  width: 60px;
  margin-bottom: 15px;
  opacity: 0.7;
}

footer .publisher-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson-light);
  margin-bottom: 20px;
}

footer .footer-links {
  margin-bottom: 15px;
  font-size: 14px;
}

footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: var(--crimson-light);
}

footer .footer-links .divider {
  color: var(--text-muted);
  margin: 0 10px;
}

footer .copyright {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 30px 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.legal-page .effective {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 50px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson-light);
  margin: 40px 0 15px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.8;
}

.legal-page ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.legal-page a {
  color: var(--crimson-light);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson-light);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-cover img {
    width: 280px;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .author-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  nav ul {
    gap: 20px;
  }
  nav a {
    font-size: 12px;
  }
}
