body {
  margin: 0;
  font-family: "Georgia", serif;
  background: #f5f1ea;
  color: #1d1a16;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1d1a16;
  color: #f5f1ea;
}

.site-header a {
  color: #f5f1ea;
  text-decoration: none;
  margin-right: 12px;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.lang-popup {
  background: #f5d76e;
  padding: 12px 24px;
  text-align: center;
}

.flash-messages {
  padding: 12px 24px;
  background: #e3f2e1;
}

.embed-video iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.inline-image {
  margin: 20px 0;
}

.inline-image img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 8px;
}

.chapter-nav {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
}

.chapter-nav a {
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #1d1a16;
  border-radius: 999px;
  color: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-text h1 {
  margin: 8px 0;
  font-size: 42px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  background: #1d1a16;
  color: #f5f1ea;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-ghost {
  background: transparent;
  color: #1d1a16;
  border: 1px solid #1d1a16;
}

.hero-panel {
  background: #e6dfd3;
  padding: 20px;
  border-radius: 6px;
}

.story-cover {
  width: 100%;
  max-width: 640px;
  border-radius: 10px;
  display: block;
  margin: 16px 0 24px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.chapter-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf2;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chapter-card:hover,
.chapter-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 26, 22, 0.08);
}

.chapter-number {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b6256;
}

.chapter-title {
  font-size: 18px;
  font-weight: 600;
}

.section {
  margin: 32px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  padding: 16px;
  border: 1px solid #d8d0c2;
  border-radius: 6px;
  background: #fffaf2;
  color: inherit;
  text-decoration: none;
}

.card.empty {
  background: #f2ebe0;
  color: #6b6256;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.quick-links a {
  padding: 10px 12px;
  background: #fffaf2;
  border: 1px solid #d8d0c2;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction: column;
  }
}

.page-back {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}
