/* ===== Base Styles ===== */
body {
  font-family: 'Merriweather', Georgia, serif;
  background-color: #f5f3ee;
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  color: #222;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: left;
}

a {
  color: #555;
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

/* ===== Landing Page ===== */
body.landing {
  display: flex;
  justify-content: center;
  padding: 2em 1em;
}

body.landing .chapter {
  max-width: 720px;
  width: 100%;
  background: #faf8f4;
  padding: 2em 2.5em;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  text-align: center;
  margin-top: 0;
}

body.landing h1 {
  font-size: 2.5em;
  margin-bottom: 0.3em;
  text-align: center;
}

body.landing h2 {
  font-size: 1.4em;
  font-weight: normal;
  margin: 0.5em 0 1.2em 0;
  color: #555;
  text-align: center;
}

.menu {
  margin: 1.2em 0;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.menu a {
  display: block;
  padding: 0.6em 1.2em;
  background: #e6e2dc;
  border-radius: 8px;
  font-size: 1.05em;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.menu a span {
  display: block;
  font-size: 0.7em;
  color: #666;
  margin-top: 0.25em;
}

.menu a:hover {
  background: #d6d2cc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: #111;
}

.menu a:active {
  background: #c6c2bc;
}

.landing-block {
  margin: 0;
  padding-top: 0;
  border-top: none;
}

/* Uniform button width only on desktop landing page */
@media (min-width: 601px) {
  body.landing .menu a {
    width: 240px;
    margin: 0 auto;
    text-align: center;
  }
}

/* ===== Chapter Pages ===== */
body.chapter-page {
  display: flex;
  justify-content: center;
  padding: 2em 1em;
}

.chapter {
  max-width: 720px;
  width: 100%;
  background: #faf8f4;
  padding: 2em 2.5em;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  margin-top: 2em;
}

.chapter h1 {
  text-align: center;
  font-size: 2em;
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  font-weight: 700;
}

.chapter h2 {
  font-size: 1.5em;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  text-align: left;
}

.chapter h3 {
  font-size: 1.25em;
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: normal;
  font-style: italic;
  color: #333;
  text-align: left;
}

.navigation {
  text-align: center;
  margin-bottom: 1em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid #ddd;
}

.navigation a {
  display: inline-block;
  margin: 0 0.4em;
  font-size: 0.85em;
  color: #555;
}

.navigation a:hover {
  text-decoration: underline;
  color: #222;
}

.chapter-footer-nav {
  text-align: center;
  margin-top: 2em;
  font-size: 0.85em;
  color: #777;
}

.chapter-footer-nav a {
  color: #777;
  margin: 0 0.6em;
}

.chapter-footer-nav a:hover {
  color: #555;
  text-decoration: underline;
}

blockquote, .practice, .introspection {
  border-left: 3px solid #ccc;
  margin: 1.5em 0;
  padding-left: 1em;
  color: #444;
  font-style: italic;
}

.heldr p {
  margin: 0.2em 0;
}

/* ===== Fixed Title Bar ===== */
.fixed-title-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8em;
  font-weight: 500;
  color: #666;
  background: #f5f3ee;
  padding: 0.25em 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fixed-title-bar a {
  margin: 0 0.9em;
  color: #777;                /* lichte basis, net als footer */
  text-decoration: none;
  transition: color 0.2s ease;
}

.fixed-title-bar a.active {
  font-weight: 700;
  color: #000;
}

.fixed-title-bar a:hover,
.fixed-title-bar a:focus,
.fixed-title-bar a:active {
  color: #555;                /* donkerder bij hover */
  text-decoration: underline; /* expliciet underline aan */
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .fixed-title-bar {
    font-size: 0.75em;
    line-height: 1.4;
    padding: 0.4em 0.3em;
  }

  .fixed-title-bar a {
    display: inline-block;
    margin: 0.3em 0.6em;
  }
}

/* ===== Contact Link ===== */
.contact-link {
  text-align: center;
  font-size: 0.9em;
  margin-top: 4em;
  color: #bbb;
}
.contact-link a {
  color: #bbb;
  text-decoration: none;
}
.contact-link a:hover {
  color: #888;
  text-decoration: underline;
}

/* ===== Print Styles ===== */
@media print {
  body {
    background: #fff;
    color: #000;
    line-height: 1.6;
  }

  .chapter {
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    max-width: 100%;
    padding: 0;
    margin-top: 0;
  }

  .navigation,
  .menu,
  .fixed-title-bar {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  blockquote, .practice, .introspection {
    border-left: 2px solid #999;
    color: #333;
    font-style: italic;
  }
}

/* ===== Alleen knoppen (menu) geen underline bij hover/active ===== */
.menu a:hover,
.menu a:active {
  text-decoration: none;
}
