* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(140deg, rgba(68,132,92,0.35), rgba(240,247,235,0.4)),
    #F8F1E0; /* parchment with green wash */
  background-blend-mode: multiply, normal;
  color: #2E2A25; /* ink brown */
  line-height: 1.7;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Header – forest + autumn orange */
header.site-header {
  background: #1a3a27; /* deep but clearly green forest tone */
  color: #FAF7ED;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #d77b36; /* autumn orange accent */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #ffe9d6;
  font-style: italic;
}

header.site-header h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.9rem;
  margin: 0;
  letter-spacing: 0.03em;
  color: #ff9b4a; /* pumpkin orange */
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

header.site-header nav a {
  color: #ffd5b0; /* light orange-cream */
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

header.site-header nav a:hover {
  text-decoration: underline;
  color: #ffe9d6;
}

header.site-header nav a.active {
  background: rgba(255, 213, 176, 0.18);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 74, 0.7);
}

/* Reusable section card */
.section-card {
  background: #FAF7ED;
  border: 1px solid #E3D3AE;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* Special tweak for Latest Chapter card */
.section-card.latest {
  padding: 1.25rem 1.75rem; /* a bit less top/bottom, comfy left/right */
}

/* Hero section */
.hero {
  text-align: center;
}

.hero h2 {
  font-family: "Georgia", serif;
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: #3A2A1B;
}

.hero p {
  max-width: 650px;
  margin: 0.5rem auto 1.5rem;
  color: #4B3E2A;
}

/* Buttons & links */
.button {
  display: inline-block;
  background: #3a6b35; /* bright storybook green */
  color: #FAF7ED;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 2px solid #d77b36; /* orange ring */
}

.button:hover {
  background: #4D8747;
}

a {
  color: #c25a2b; /* warm autumn orange */
}

a:hover {
  color: #e67a3c;
}

/* Content sections */
.latest {
  padding-top: 0.5rem;
}

.latest h3,
main h2 {
  font-family: "Georgia", serif;
  font-size: 1.5rem;
  border-bottom: 2px solid #d77b36;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  color: #3A2A1B;
}

.chapter-list {
  list-style: none;
  padding-left: 0;
}

.chapter-list li {
  padding: 0.4rem 0;
}

/* Chapter pages – book-like feel */
article {
  margin-top: 1rem;
  background: #FFF9ED;
  border-radius: 10px;
  padding: 1.75rem 1.9rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border: 1px solid #E3D3AE;
}

article p {
  max-width: 70ch;
  margin: 0.5rem auto;
  text-indent: 1.2em;
}

article p:first-of-type {
  text-indent: 0;
  font-size: 1.05rem;
}

article p:first-of-type::first-letter {
  float: left;
  font-size: 2.4rem;
  line-height: 1;
  padding-right: 0.15em;
  font-family: "Georgia", serif;
  color: #c25a2b;
}

/* Chapter nav */
.chapter-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chapter-nav .secondary-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #c25a2b;
}

.chapter-nav .secondary-link:hover {
  color: #e67a3c;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #6A5B48;
  font-size: 0.9rem;
  border-top: 1px solid #E3D3AE;
  margin-top: 2rem;
  background: #F5EAD5;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  header.site-header nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }
}
