/* fonts */
@font-face {
  font-family: Jugend;
  src: url('/fonts/Jugend.ttf') format('truetype');
}

@font-face {
  font-family: 'Vollkorn';
  src: url('/fonts/Vollkorn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Vollkorn';
  src: url('/fonts/Vollkorn-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Vollkorn';
  src: url('/fonts/Vollkorn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Vollkorn';
  src: url('/fonts/Vollkorn-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Asul';
  src: url('/fonts/Asul-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Asul';
  src: url('/fonts/Asul-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}



/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
}


/* lange ding "track" */
::-webkit-scrollbar-track {
  background: #e3e0d1; 
}
 
 
/* beweegbare ding "thumb" */
::-webkit-scrollbar-thumb {
  background: #4b3820; 
}

/* muis/cursor */
* {
  cursor: url("http://www.rw-designer.com/cursor-extern.php?id=98738") 8 8, auto !important;
  margin: 0; 
padding: 0; 
box-sizing: border-box;
}

*:hover {
  cursor: url("https://www.rw-designer.com/cursor-view/98738-48.png") 8 8, pointer !important;
}



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

html {
  font-family: 'Vollkorn', serif;
}

body {
  display: flex;
  min-height: 100vh;
  font-feature-settings:
 "ss01" 1,
 "salt" 1,
 "kern" 1,
 "onum" 1,
 "liga" 1,
 "dlig" 1,
 "calt" 1;
}


/* sidebar */
.sidebar {
  width: 18rem;
  padding: 3rem;
  border-right: 2px solid #4b3820;
  background: rgba(0,0,0,0.03);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: scroll;
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 1500;
}


body:not(.sidebar-open) .sidebar {
  transform: translateX(-100%);
}

.sidebar h2 {
  font-feature-settings: "smcp" 1;
  font-size: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  color: #4b3820;
}

.sidebar ul {
 list-style: none;
 margin-bottom: 1.5rem;
}

.sidebar li {
 margin-bottom: 0.25rem;
}

.sidebar a {
 color: #4b3820;
 text-decoration: none;
}

.sidebar a:hover {
 text-decoration: underline;
}


/* collapsible headings in sidebar */
.sidebar-section {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(75, 56, 32, 0.3);
}

.sidebar-section summary::-webkit-details-marker {
  display: none;
}

.sidebar-section summary {
  cursor: pointer;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  font-feature-settings: "smcp" 1;
  font-size: 1.2rem;
  font-weight: 600;
  color: inherit;
  user-select: none;
  line-height: 1.3;
  list-style: none;
}

.sidebar-section summary:hover {
  background: rgba(75, 56, 32, 0.08);
}

.sidebar-section summary::before {
  content: "☛";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 1.1rem;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.2s ease;
  color: inherit;
}

.sidebar-section[open] > summary::before {
  transform: rotate(90deg);
}

.sidebar-section ul {
  margin: 0.75rem 0 1rem 0;
  padding-left: 1.75rem;
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 0.35rem;
}

.sidebar-section a {
  color: inherit;
  text-decoration: none;
}

.sidebar-section a:hover {
  text-decoration: underline;
}

.current {
 font-weight: 700;
 color: #000;
}


/* menu ribbon */
.ribbon-toggle {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  background: #4b3820;
  color: #e3e0d1;
  padding: 0.75rem 0.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  z-index: 2000;
  user-select: none;
}

body.sidebar-open .ribbon-toggle {
  left: calc(18rem - 1px);
}



/* readability settings */
.settings {
  margin-bottom: 2.5rem;
}

.settings label {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}



/* fic reading area */
.reading-area {
  flex: 1;
  padding: 4rem;
  max-width: 60rem;
  margin: 0 auto;
  transition: margin-left 0.3s ease;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

body.sidebar-open .reading-area {
  margin-left: 18rem;
}

@media (max-width: 1100px) {
  .reading-area {
    padding: 3rem;
  }
}

@media (max-width: 700px) {
  .reading-area {
    padding: 2rem 1.25rem 2rem 2.75rem;
  }
}

.chapter-header h1 {
  text-align: center;
  color: #4b3820;
  font-feature-settings: "c2sc" 1, "smcp" 1;
  font-size: 2.2em;
  text-decoration: underline #4b3820;
  margin-bottom: 1rem;
}

.chapter-header h2 {
  text-align: center;
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 2rem;
}


article {
  margin: 0 auto;
  max-width: 48rem;
}

article p {
  margin-bottom: 0.5rem;
  font-size: 1.125em;
  line-height: 150%;
  text-align: justify;
}

article p:not(:first-child) {
 text-indent: 1.5rem;
}

article p:first-child:first-line {
  font-variant: small-caps;
  font-size: 1.2em;
}

article p:first-child:first-letter {
  font-family: 'Jugend', serif;
  font-size: 3.5em;
  line-height: 1.04;
  float: left;
  margin-right: 0.15rem;
  margin-top: 0.1rem;
  margin-bottom: -0.2rem;
}

.noindent {
  text-indent: 0 !important;
}


hr.crowns {
  border: none;
  margin: 3rem auto;
  text-align: center;
  width: 100%;
  background: none;
  color: inherit; /* THIS is the missing piece */
}

hr.crowns::before {
  content: "🜲 🜲 🜲";
  display: block;
  font-size: 1.25em;
  letter-spacing: 0.5rem;
  font-family: inherit;
  color: currentColor;
}


/* footer */

footer {
  text-align: center;
  font-size: 1rem;
  color: #4b3820;
  border-top: 1px solid #4b3820;
  margin-top: 3rem;
  padding-top: 1rem;
  font-style: italic;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (max-width: 600px) {
  .nav-buttons {
    flex-direction: column;
  }
}

.previous, .next {
  background-color: #e3e0d1;
  color: #4b3820;
  padding: 0.5rem 1rem;
  border: 1px solid #4b3820;
  text-decoration: none;
  text-align: center;
}

.previous:hover, .next:hover { 
background-color: #d6d2c2;
}



/* themes */
body.theme-default {
 background-color: #e3e0d1;
 color: #3b2f2f;
 }

body.theme-dark {
 background-color: #2b2723;
 color: #f2e9d8;
}

body.theme-easy {
 background-color: #ffffff;
 color: #000000;
 letter-spacing: 0.03em;
}


body.theme-dark ::-webkit-scrollbar-track { 
  background: #3a342f; 
}

body.theme-dark ::-webkit-scrollbar-thumb { 
  background: #c8b79a; 
} 

body.theme-easy ::-webkit-scrollbar-track { 
  background: #f2f2f2; 
} 

body.theme-easy ::-webkit-scrollbar-thumb { 
  background: #000; 
}


body.theme-dark .sidebar {
 background-color: #3a342f;
 border-right: 2px solid #c8b79a;
}

body.theme-dark .sidebar h2 {
 color: #f2e9d8;
}

body.theme-dark .sidebar a {
 color: #f2e9d8;
}

body.theme-dark .current {
 color: #ffffff;
}


body.theme-default a { 
  color: #4b3820; 
} 

body.theme-dark a { 
  color: #e0d3b8; 
} 

body.theme-easy a { 
  color: #000; 
}


body.theme-dark .sidebar-section {
  border-bottom: 1px solid rgba(200, 183, 154, 0.3);
}

body.theme-easy .sidebar-section {
  border-bottom: 1px solid #000;
}


body.theme-dark .sidebar-section summary {
  color: #f2e9d8;
}

body.theme-easy .sidebar-section summary {
  color: #000 !important;
}


body.theme-dark .sidebar-section summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-easy .sidebar-section summary:hover {
  background: rgba(0, 0, 0, 0.08);
}


body.theme-dark footer {
  color: #f2e9d8;
  border-top: 1px solid #c8b79a;
}

body.theme-dark .previous,
body.theme-dark .next {
  background-color: #3a342f;
  color: #f2e9d8;
  border: 1px solid #c8b79a;
}

body.theme-dark .chapter-header h1 {
  color: #f2e9d8;
  text-decoration-color: #c8b79a;
}


body.theme-easy article p {
  text-indent: 0 !important;
  font-feature-settings: normal !important;
  line-height: 1.7 !important;
  margin-bottom: 1rem !important;
  text-align: left !important;
}

body.theme-easy article p:first-child:first-letter {
  float: none !important;
  font-size: inherit !important;
  margin: 0 !important;
  font-family: inherit !important;
}

body.theme-easy .chapter-header h1,
body.theme-easy .chapter-header h2 {
  font-feature-settings: normal !important;
  text-decoration: none !important;
}

body.theme-easy .sidebar {
  background-color: #f2f2f2;
  border-right: 2px solid #000;
}

body.theme-easy .sidebar h2,
body.theme-easy .sidebar a {
  color: #000 !important;
}

body.theme-easy .previous,
body.theme-easy .next {
  background-color: #f2f2f2;
  color: #000;
  border: 1px solid #000;
}