/* 1. Variables — hardcoded to the current palette */
:root {
  --cream: #fbf3ea;
  --chickpea: #ebbd4f;
  --cinnamon: #a04a0d;
  --dark: #112909;
  --narrative-bg: #e9e2db;   /* light tint of Camel, replaces the old pale-blue box tint */
  --primary: var(--cinnamon);
  --pop: var(--chickpea);
  --body-bg: var(--cream);
  --body-color: var(--dark);
}

/* 2. Base styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100..700&family=Roboto+Slab:wght@100..900&display=swap');

body {
  font-family: "Roboto Slab", serif;
  font-weight: 400;
  font-size: 18px;
  text-align: justify;
  color: var(--body-color);
  background-color: var(--body-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto Mono", monospace;
  color: var(--dark);
  text-align: left;
}

/* 3. Link styles */
p a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
  display: inline-block;
}
p a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 4px;
  background-color: rgba(235, 189, 79, 0.6);
  z-index: -1;
  transition: all .3s ease-in-out;
}
p a:hover::before {
  bottom: 0;
  height: 100%;
}

/* 4. Navbar */
.navbar {
  background-color: var(--primary);
  font-family: "Roboto Mono", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 2px solid var(--pop);
}
.navbar a {
  color: var(--body-bg);
  transition: color 0.5s ease;
}
.navbar a:active {
  color: white;
}
.navbar a:hover {
  color: var(--pop);
}

/* 5. Closeread sections */
.cr-section {
  background-color: var(--body-bg) !important;
}
.narrative {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  background-color: var(--narrative-bg) !important;
  color: var(--dark) !important;
  text-align: justify;
  border-radius: 15px !important;
  padding: 20px;
}
.cr-section .sticky-col .sticky-col-stack .cr-active {
  opacity: 1 !important;
  visibility: visible !important;
  transition: 0.5s ease-in;
}