/* =========================================================
   BOOK OF SHADOWS
   File: altar/grimoire/grimoire.css
   ========================================================= */

.grimoire-page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(185, 160, 93, 0.14), transparent 22rem),
    radial-gradient(circle at 12% 70%, rgba(111, 132, 101, 0.18), transparent 26rem),
    linear-gradient(145deg, #070807, #111512 58%, #080706);
}

.grimoire-main {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

/* =========================================================
   COVER / INTRO
   ========================================================= */

.grimoire-cover {
  max-width: 840px;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.grimoire-cover h1 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.grimoire-cover p {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--cream);
  font-size: 1.02rem;
}

/* =========================================================
   AUTH CARD
   ========================================================= */

.grimoire-auth-notice {
  width: min(1180px, 100%);
  margin: 0 auto 2rem;
}

.grimoire-auth-notice.is-signed-in {
  display: none;
}

.grimoire-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(185, 160, 93, 0.34);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(185, 160, 93, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(31, 24, 17, 0.94), rgba(8, 7, 5, 0.96));
  box-shadow: var(--shadow);
}

.grimoire-auth-card h2 {
  max-width: none;
  color: var(--cream);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

/* =========================================================
   BOOK LAYOUT
   ========================================================= */

.book-of-shadows {
  display: grid;
  grid-template-columns: 280px minmax(0, 920px);
  justify-content: center;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.book-toc {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.2rem;
  border: 1px solid rgba(185, 160, 93, 0.26);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top, rgba(185, 160, 93, 0.08), transparent 16rem),
    rgba(16, 33, 24, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 160, 93, 0.45) transparent;
}

.book-toc::-webkit-scrollbar,
.book-page::-webkit-scrollbar {
  width: 6px;
}

.book-toc::-webkit-scrollbar-track,
.book-page::-webkit-scrollbar-track {
  background: transparent;
}

.book-toc::-webkit-scrollbar-thumb,
.book-page::-webkit-scrollbar-thumb {
  background: rgba(185, 160, 93, 0.45);
  border-radius: 999px;
}

.book-return-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: rgba(244, 236, 216, 0.62);
  text-decoration: none;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.book-return-link:hover,
.book-return-link:focus-visible {
  color: var(--gold);
}

.book-toc-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.book-toc-heading h2 {
  max-width: none;
  margin-bottom: 0;
  color: var(--gold);
  font-size: 2.2rem;
}

.book-actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.book-toc-list {
  display: grid;
  gap: 1.25rem;
}

.book-note {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(185, 160, 93, 0.22);
  border-radius: 0.75rem;
  color: var(--muted);
  background: rgba(8, 10, 8, 0.32);
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
}

.book-section-list {
  display: grid;
  gap: 1.4rem;
}

.book-toc-section {
  display: grid;
  gap: 0.5rem;
}

.book-section-title {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--gold);
  background: transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.book-section-title span {
  display: inline-block;
}

.book-section-title:hover,
.book-section-title:focus-visible,
.book-section-title.is-active {
  color: var(--cream);
}

.book-section-pages {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
}

.book-section-pages[hidden] {
  display: none;
}

.book-section-empty {
  margin: 0;
  color: rgba(244, 236, 216, 0.48);
  font-size: 0.86rem;
  font-style: italic;
}

.book-page-link {
  width: 100%;
  border: 0;
  padding: 0.18rem 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.book-page-link:hover,
.book-page-link:focus-visible,
.book-page-link.is-active {
  color: var(--cream);
}

/* =========================================================
   BOOK PAGE
   ========================================================= */

.book-page {
  position: relative;
  min-height: 680px;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(185, 160, 93, 0.38);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 82% 10%, rgba(185, 160, 93, 0.13), transparent 14rem),
    radial-gradient(circle at 14% 95%, rgba(111, 132, 101, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(28, 24, 18, 0.95), rgba(10, 13, 10, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 160, 93, 0.45) transparent;
}

.book-page::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(185, 160, 93, 0.2);
  border-radius: 0.9rem;
  pointer-events: none;
}

.book-page-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.book-search {
  max-width: 260px;
  color: rgba(244, 236, 216, 0.62);
  font-size: 0.82rem;
}

.book-search span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.book-search input {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(244, 236, 216, 0.06);
}

.book-edit-button {
  min-height: 2.35rem;
  border: 1px solid rgba(185, 160, 93, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--gold);
  background: rgba(185, 160, 93, 0.07);
  font: inherit;
  cursor: pointer;
}

.book-edit-button:hover,
.book-edit-button:focus-visible {
  border-color: var(--gold);
  color: var(--cream);
}

.book-page-empty,
.book-page-content,
.book-status {
  position: relative;
  z-index: 2;
}

.book-page-empty {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
}

.book-page-empty[hidden] {
  display: none;
}

.book-page-empty h2 {
  max-width: none;
  color: var(--cream);
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.book-page-empty p {
  max-width: 62ch;
  margin-inline: auto;
}

/* =========================================================
   READER MODE
   ========================================================= */

.book-reader-page {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.book-reader-header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.book-reader-header h1 {
  max-width: none;
  margin-bottom: 0.5rem;
  color: var(--cream);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.book-reader-date {
  margin-bottom: 1rem;
  color: var(--muted);
  font-style: italic;
}

.book-divider,
.book-reader-divider {
  margin: 1.4rem auto;
  color: var(--gold);
  letter-spacing: 0.45rem;
  text-align: center;
  opacity: 0.82;
}

.book-reader-body p {
  max-width: 74ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

.book-reader-body h2 {
  max-width: none;
  margin-top: 3.4rem;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.book-reader-body ul,
.book-reader-body ol {
  color: var(--muted);
  line-height: 1.9;
  padding-left: 1.4rem;
}

.book-reader-body li {
  margin-bottom: 0.35rem;
}

.book-reader-body blockquote {
  max-width: 64ch;
  margin: 2.5rem 0;
  padding: 1.6rem;
  border: 1px solid rgba(185, 160, 93, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 0.85rem;
  background: rgba(185, 160, 93, 0.07);
  font-style: italic;
}

.book-reader-body blockquote p {
  margin: 0;
  color: var(--cream);
}

.book-placeholder {
  text-align: center;
  font-style: italic;
}

/* =========================================================
   SPECIAL READER ELEMENTS
   ========================================================= */

.book-callout,
.book-correspondence,
.book-ingredient-list,
.book-linked-pages,
.book-image {
  margin: 2rem 0;
  border: 1px solid rgba(185, 160, 93, 0.3);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top left, rgba(185, 160, 93, 0.11), transparent 14rem),
    rgba(8, 10, 8, 0.32);
}

.book-callout {
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--gold);
}

.book-callout p {
  margin: 0;
  color: var(--cream);
  font-style: italic;
}

.book-correspondence {
  padding: 1.25rem 1.4rem;
  color: var(--cream);
  line-height: 1.85;
  white-space: pre-line;
}

.book-ingredient-list {
  padding: 1.25rem 1.4rem;
}

.book-ingredient-list h3 {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 1.6rem;
}

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

.book-checklist li {
  position: relative;
  padding-left: 1.7rem;
}

.book-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.book-image {
  overflow: hidden;
}

.book-image img {
  width: 100%;
  display: block;
}

.book-image figcaption {
  padding: 0.75rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

.book-inline-link button,
.book-linked-pages button {
  border: 1px solid rgba(185, 160, 93, 0.28);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  color: var(--gold);
  background: rgba(185, 160, 93, 0.08);
  font: inherit;
  cursor: pointer;
}

.book-inline-link button:hover,
.book-inline-link button:focus-visible,
.book-linked-pages button:hover,
.book-linked-pages button:focus-visible {
  border-color: var(--gold);
  color: var(--cream);
}

.book-linked-pages {
  padding: 1.25rem 1.4rem;
}

.book-linked-pages h2 {
  margin-top: 0;
  font-size: 2rem;
}

.book-linked-pages div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* =========================================================
   EDIT MODE
   ========================================================= */

.book-editor-page {
  max-width: 820px;
  margin: 0 auto;
}

.book-editor-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.book-editor-header label {
  color: var(--silver);
}

.book-editor-header input {
  border: 0;
  border-bottom: 1px solid rgba(185, 160, 93, 0.36);
  border-radius: 0;
  padding: 0.4rem 0;
  color: var(--cream);
  background: transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
}

.book-editor-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.book-editor-elements {
  display: grid;
  gap: 1rem;
}

.book-edit-element {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(185, 160, 93, 0.22);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at top left, rgba(185, 160, 93, 0.07), transparent 12rem),
    rgba(8, 10, 8, 0.34);
}

.book-edit-element:focus-within {
  border-color: rgba(185, 160, 93, 0.5);
  box-shadow: 0 0 0 2px rgba(185, 160, 93, 0.08);
}

.book-edit-element label {
  color: var(--silver);
}

.book-edit-element input,
.book-edit-element textarea {
  background: rgba(244, 236, 216, 0.07);
}

.book-edit-element button {
  border: 1px solid rgba(244, 236, 216, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: rgba(244, 236, 216, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.book-edit-element button:hover,
.book-edit-element button:focus-visible {
  border-color: var(--gold);
  color: var(--cream);
}

.book-edit-element button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.book-edit-element--divider {
  text-align: center;
}

.book-element-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.book-element-controls button {
  min-width: 2rem;
}

/* =========================================================
   RICH TEXT EDITOR
   ========================================================= */

.book-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(185, 160, 93, 0.22);
  border-radius: 999px;
  background: rgba(8, 10, 8, 0.32);
  width: fit-content;
}

.book-rich-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid rgba(244, 236, 216, 0.18);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(244, 236, 216, 0.06);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.book-rich-toolbar button:hover,
.book-rich-toolbar button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.book-rich-input {
  min-height: 7rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(194, 200, 196, 0.24);
  border-radius: 0.45rem;
  color: var(--cream);
  background: rgba(244, 236, 216, 0.07);
  line-height: 1.8;
  outline: none;
}

.book-rich-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(185, 160, 93, 0.08);
}

.book-rich-heading {
  min-height: 4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.book-rich-callout {
  min-height: 5rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
}

/* =========================================================
   ADD ELEMENTS
   ========================================================= */

.book-add-elements {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(185, 160, 93, 0.18);
}

.book-element-group {
  display: grid;
  gap: 0.5rem;
}

.book-element-group p {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.book-element-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.book-add-elements button,
.book-element-group button {
  border: 1px solid rgba(185, 160, 93, 0.32);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--gold);
  background: rgba(185, 160, 93, 0.08);
  font: inherit;
  cursor: pointer;
}

.book-add-elements button:hover,
.book-add-elements button:focus-visible,
.book-element-group button:hover,
.book-element-group button:focus-visible {
  border-color: var(--gold);
  color: var(--cream);
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.book-search-results {
  max-width: 760px;
  margin: 0 auto;
}

.book-search-results h2 {
  max-width: none;
  color: var(--cream);
  text-align: center;
}

.book-search-results button {
  display: block;
  width: 100%;
  border: 1px solid rgba(185, 160, 93, 0.22);
  border-radius: 0.75rem;
  margin-bottom: 0.6rem;
  padding: 0.8rem 1rem;
  color: var(--cream);
  background: rgba(8, 10, 8, 0.32);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.book-search-results button:hover,
.book-search-results button:focus-visible {
  border-color: var(--gold);
}

/* =========================================================
   MODALS
   ========================================================= */

.book-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 5, 4, 0.72);
  backdrop-filter: blur(8px);
}

.book-modal {
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  overflow-y: auto;
  border: 1px solid rgba(185, 160, 93, 0.38);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top, rgba(185, 160, 93, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(31, 24, 17, 0.98), rgba(8, 7, 5, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.book-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(185, 160, 93, 0.2);
}

.book-modal h2 {
  max-width: none;
  margin: 0;
  color: var(--cream);
  font-size: 2.3rem;
}

.book-modal header button {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 236, 216, 0.18);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(244, 236, 216, 0.06);
  font: inherit;
  cursor: pointer;
}

.book-modal-body {
  padding: 1.25rem;
}

.book-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.book-template-grid button {
  min-height: 4rem;
  border: 1px solid rgba(185, 160, 93, 0.26);
  border-radius: 0.85rem;
  padding: 0.85rem;
  color: var(--cream);
  background:
    radial-gradient(circle at top left, rgba(185, 160, 93, 0.12), transparent 10rem),
    rgba(8, 10, 8, 0.38);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.book-template-grid button:hover,
.book-template-grid button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

/* =========================================================
   STATUS
   ========================================================= */

.book-status {
  min-height: 1.2rem;
  margin: 1rem auto 0;
  max-width: 760px;
  color: var(--gold);
  font-size: 0.86rem;
  font-style: italic;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .grimoire-auth-card,
  .book-of-shadows {
    grid-template-columns: 1fr;
  }

  .book-toc {
    position: static;
    max-height: none;
  }

  .book-page {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .grimoire-main {
    width: min(100% - 1rem, 1440px);
    padding-top: 1.5rem;
  }

  .grimoire-cover h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .book-page {
    padding: 1rem;
    border-radius: 1rem;
  }

  .book-page::before {
    inset: 0.65rem;
  }

  .book-page-toolbar {
    display: grid;
    justify-content: stretch;
  }

  .book-search {
    max-width: none;
  }

  .book-reader-header h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .book-reader-body p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .book-editor-actions,
  .book-element-group div {
    display: grid;
  }

  .book-rich-toolbar {
    border-radius: 0.9rem;
    width: 100%;
  }

  .book-template-grid {
    grid-template-columns: 1fr;
  }
}

.book-add-drawer {
  width: 100%;
}

.book-add-drawer summary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(185, 160, 93, 0.34);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--gold);
  background: rgba(185, 160, 93, 0.08);
  font: inherit;
  cursor: pointer;
  list-style: none;
}

.book-add-drawer summary::-webkit-details-marker {
  display: none;
}

.book-add-drawer summary:hover,
.book-add-drawer summary:focus-visible {
  border-color: var(--gold);
  color: var(--cream);
}

.book-add-drawer-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(185, 160, 93, 0.22);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top, rgba(185, 160, 93, 0.1), transparent 16rem),
    rgba(8, 10, 8, 0.3);
}

.book-section-row,
.book-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.book-toc-move-controls {
  display: inline-flex;
  gap: 0.25rem;
}

.book-toc-move-controls button {
  display: grid;
  place-items: center;
  width: 1.65rem;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 236, 216, 0.16);
  border-radius: 999px;
  color: rgba(244, 236, 216, 0.58);
  background: rgba(244, 236, 216, 0.04);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.book-toc-move-controls button:hover,
.book-toc-move-controls button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.book-toc-move-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.book-page-row .book-page-link {
  min-width: 0;
}

.book-mundane-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 1px solid rgba(185, 160, 93, 0.24);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: rgba(244, 236, 216, 0.68);
  background: rgba(244, 236, 216, 0.04);
  font-size: 0.82rem;
  cursor: pointer;
}

.book-mundane-toggle input {
  width: auto;
  accent-color: var(--gold);
}

body.is-mundane-mode .book-toc {
  display: none;
}

body.is-mundane-mode .book-of-shadows {
  grid-template-columns: minmax(0, 920px);
}

body.is-mundane-mode .book-reader-divider,
body.is-mundane-mode .book-divider {
  opacity: 0.25;
}

body.is-mundane-mode .book-linked-pages,
body.is-mundane-mode .book-correspondence,
body.is-mundane-mode .book-ingredient-list {
  display: none;
}

body.is-mundane-mode .book-reader-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

body.is-mundane-mode .book-reader-date {
  display: none;
}

body.is-mundane-mode .book-page {
  background:
    radial-gradient(circle at 82% 10%, rgba(244, 236, 216, 0.08), transparent 14rem),
    linear-gradient(145deg, rgba(24, 23, 20, 0.96), rgba(12, 13, 12, 0.98));
}

body.is-mundane-mode .book-reader-body h2,
body.is-mundane-mode .book-reader-divider {
  display: none;
}

body.is-mundane-mode .book-reader-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

body.is-mundane-mode .book-reader-header h1::before {
  content: "Journal Entry";
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.is-mundane-mode .book-reader-date {
  display: block;
}

body.is-mundane-mode .book-reader-body {
  margin-top: 2rem;
}
