/* General layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #050509;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #ff4b6e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top bar */
.header {
  background: #0b0b10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.site-nav a {
  margin-left: 12px;
  font-size: 0.95rem;
}

/* Main content area */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Card / panel style */
.card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Homepage */
.hero-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.98rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.button-row {
  margin-top: 16px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #ff4b6e;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button.primary {
  background: #ff4b6e;
  color: #050509;
  margin-right: 8px;
}

.button.secondary {
  background: transparent;
}

/* Chapter list */
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.chapter-list li + li {
  margin-top: 8px;
}

.chapter-meta {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Chapter page */
.chapter-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.chapter-info {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.chapter-images img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Navigation at bottom */
.chapter-nav {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.chapter-nav a {
  margin: 0 8px;
}

/* Small screens */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
