:root {
  --bg: #0f0c12;
  --surface: #1a1520;
  --text: #e8e0e8;
  --muted: #a89ba8;
  --accent: #a78bfa;
  --accent-dark: #7c3aed;
  --border: #2a232e;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3, .logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 12, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at center, #1f1824 0%, var(--bg) 70%);
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  margin-bottom: 0.5rem;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.subtitle {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.socials a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.socials a:hover {
  color: var(--text);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.book {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.book a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.5rem;
}

.book a:hover h3 {
  color: var(--accent);
}

.book-cover {
    position: relative;
    background: linear-gradient(135deg, #2a1f30, #1a1520);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: auto;
}

.book-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.book-placeholder {
  display: none;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.book-placeholder.large {
  height: 480px;
  font-size: 1.4rem;
}

.book h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.series {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.release {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.status {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.book-page {
  padding: 7rem 2rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.book-detail {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.book-cover-large {
    position: relative;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-large img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 320px;
    margin: 0 auto;
}

.book-info h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.blurb {
  margin: 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blurb p {
  margin-bottom: 1rem;
}

.newsletter-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.newsletter-section p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form label {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: left;
}

.newsletter-form input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 2px;
  width: 100%;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent);
  color: #0f0c12;
  border: none;
  padding: 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--accent-dark);
  color: var(--text);
}

.note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .socials {
  margin-bottom: 1rem;
}

.small {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-cover-large {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 12, 18, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .book-page {
    padding-top: 6rem;
  }
}