/* ============================================================
   BASE
   ============================================================ */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin: 0;
  padding-bottom: 0;
  background-color: #faf8f4;
  color: #2c2c2c;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.bg-book {
  background: linear-gradient(135deg, #3a1c1c 0%, #5c2e2e 50%, #7a3b3b 100%);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: #fff !important;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0e6d3 !important;
  letter-spacing: 1px;
}

/* ============================================================
   HERO / HOME PAGE
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #3a1c1c 0%, #5c2e2e 40%, #7a3b3b 100%);
  color: #f0e6d3;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.25em;
  color: #fff;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: #e8d5b8;
  margin-bottom: 0.5em;
}

.hero-hebrew {
  font-family: 'David Libre', serif;
  font-size: 2.6rem;
  color: #d4b896;
  margin-bottom: 0.3em;
}

.hero-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #c0a882;
  margin-bottom: 2em;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-buttons {
  margin-top: 1em;
}

.btn-book {
  background-color: #c9a96e;
  color: #3a1c1c;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-book:hover {
  background-color: #dbbe85;
  color: #2a0f0f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-book-outline {
  border: 2px solid #c9a96e;
  color: #c9a96e;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-book-outline:hover {
  background-color: #c9a96e;
  color: #3a1c1c;
  transform: translateY(-1px);
}

.book-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #555;
}

/* ============================================================
   PHOTO RIVER — animated floating photos on home page
   ============================================================ */
.photo-river-section {
  background: #fff;
  padding: 1rem 0;
  overflow: hidden;
}

.photo-river {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .photo-river { height: 350px; }
}

.river-photo {
  position: absolute;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(58, 28, 28, 0.2);
  overflow: hidden;
  background: #fff;
  padding: 5px;
  cursor: pointer;
  animation: photo-fade-in 0.6s ease both;
}

@keyframes photo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}


.river-photo:hover {
  z-index: 200 !important;
  box-shadow: 0 8px 32px rgba(58, 28, 28, 0.35);
}


.river-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: none;
  /* Override Ken Burns — no transition on these images */
  transition: none !important;
  transform: none !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background-color: #f5f0e8;
  border-right: 1px solid #e0d8cc;
  min-height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  align-self: flex-start;
}

.sidebar-sticky {
  padding: 1.5rem 1rem;
}

.sidebar-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: #6b4c3b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d4c4a8;
  margin-bottom: 1rem;
}

.sidebar .nav-link {
  font-family: 'Cormorant Garamond', serif;
  color: #5a4a3a;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
  line-height: 1.4;
}

.sidebar .nav-link:hover {
  background-color: #ebe3d5;
  color: #3a1c1c;
}

.sidebar .nav-link.active {
  background-color: #3a1c1c;
  color: #f0e6d3;
  font-weight: 600;
}

.sidebar-lang-switch {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #d4c4a8;
}

/* ============================================================
   READING AREA
   ============================================================ */
.reading-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  --font-scale: 1;
}

@media (min-width: 992px) {
  .reading-area {
    padding: 3rem 2rem 5rem;
  }
}

/* ============================================================
   BOOK TEXT - ENGLISH
   ============================================================ */
.book-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: calc(1.35rem * var(--font-scale, 1));
  text-align: justify;
  line-height: 1.75;
  color: #2c2c2c;
}

.book-en h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #5c2e2e;
  text-align: center;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.book-en h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: #5c2e2e;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.book-en h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #7a3b3b;
  margin: 1.75rem 0 0.5rem;
  font-weight: 700;
  font-style: italic;
}

/* ============================================================
   BOOK TEXT - HEBREW
   ============================================================ */
.book-he {
  font-family: 'David Libre', serif;
  font-size: calc(1.5rem * var(--font-scale, 1));
  text-align: justify;
  line-height: 1.85;
  color: #2c2c2c;
}

.book-he h1 {
  font-family: 'David Libre', serif;
  font-size: 2.8rem;
  color: #5c2e2e;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-weight: 700;
}

.book-he h2 {
  font-family: 'David Libre', serif;
  font-size: 2.2rem;
  color: #5c2e2e;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.book-he h3 {
  font-family: 'David Libre', serif;
  font-size: 1.7rem;
  color: #7a3b3b;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

/* ============================================================
   BLOCKQUOTES
   ============================================================ */
blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 2rem 0;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  position: relative;
  background-color: #f9f6f0;
  border-left: 4px solid #c9a96e;
  border-radius: 0 4px 4px 0;
}

blockquote::before {
  content: "\201C";
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: #c9a96e;
  position: absolute;
  left: 8px;
  top: -10px;
  line-height: 1;
}

blockquote::after {
  content: none;
}

/* ============================================================
   FIGURES / IMAGES
   ============================================================ */
figure {
  float: none;
  margin: 2.5rem auto;
  border: none;
  padding: 0;
  width: auto;
  max-width: 100%;
  text-align: center;
}

/* Outer frame — white card with shadow */
.book-en figure,
.book-he figure {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(58, 28, 28, 0.12);
  transition: box-shadow 0.4s ease;
  cursor: pointer;
  background: #fff;
  padding: 12px;
  margin: 2.5rem auto;
  max-width: 100%;
  overflow: visible;
}

.book-en figure:hover,
.book-he figure:hover {
  box-shadow: 0 8px 32px rgba(58, 28, 28, 0.2);
}

/* Inner clipping frame — sits inside the padding, clips the Ken Burns zoom */
.book-en figure .img-clip,
.book-he figure .img-clip {
  overflow: hidden;
  border-radius: 3px;
}

/* Ken Burns effect */
.book-en figure img,
.book-he figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: none;
  display: block;
  transition: transform 2s cubic-bezier(0.45, 0, 0.15, 1);
  transform-origin: center center; /* overridden by JS on mousemove */
  will-change: transform;
}

.book-en figure:hover img,
.book-he figure:hover img {
  transform: scale(1.5);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

figcaption {
  font-family: 'Cormorant Garamond', serif;
  color: #666;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.5rem 0 0;
  font-style: italic;
  letter-spacing: 0.3px;
  background: none;
}

/* ============================================================
   FOOTNOTES
   ============================================================ */
.footnote-ref {
  text-decoration: none;
  color: #7a3b3b;
  background-color: #f5ece0;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #d4c4a8;
  font-size: 0.85em;
  transition: all 0.2s;
}

.footnote-ref:hover {
  background-color: #e8d5b8;
  border-color: #7a3b3b;
  color: #3a1c1c;
}

.footnote-ref sup {
  font-weight: 600;
}

.footnotes {
  border-top: 1px solid #d4c4a8;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85em;
  color: #666;
}

/* ============================================================
   CHAPTER NAVIGATION
   ============================================================ */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #d4c4a8;
}

.chapter-nav .btn {
  font-size: 0.95rem;
  padding: 8px 20px;
}

/* Mobile chapter selector */
.mobile-chapter-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f5f0e8;
  border-top: 1px solid #d4c4a8;
  padding: 8px 16px;
  z-index: 100;
}

.mobile-chapter-nav .form-select {
  font-family: 'Cormorant Garamond', serif;
  border-color: #d4c4a8;
  color: #3a1c1c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #3a1c1c;
  color: #c0a882;
  padding: 2.5rem 0 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  width: 100%;
}

.site-footer a {
  color: #d4b896;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.footer-heading {
  font-weight: 700;
  color: #e8d5b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.footer-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0956e;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: 0.9rem;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a96e, #7a3b3b);
  z-index: 1100;
  transition: width 0.1s linear;
  width: 0%;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for consecutive items */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }

/* ============================================================
   DROP CAP
   ============================================================ */
.book-en > p:first-of-type::first-letter,
.book-en > div > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.1em 0 0;
  color: #5c2e2e;
  font-weight: 700;
}

/* Hebrew drop cap — first letter floats right */
.book-he > p:first-of-type::first-letter,
.book-he > div > p:first-of-type::first-letter {
  font-family: 'David Libre', serif;
  font-size: 3.5em;
  float: right;
  line-height: 0.8;
  margin: 0.05em 0 0 0.1em;
  color: #5c2e2e;
  font-weight: 700;
}

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #e8d5b8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #3a1c1c;
  color: #c9a96e;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #5c2e2e;
  transform: translateY(-2px);
}

/* ============================================================
   IN-CHAPTER TABLE OF CONTENTS
   ============================================================ */
.chapter-toc {
  margin-bottom: 1.5rem;
  border: 1px solid #d4c4a8;
  border-radius: 6px;
  background: #f9f6f0;
  overflow: hidden;
}

.chapter-toc-toggle {
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b4c3b;
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.chapter-toc-toggle::after {
  content: ' ▸';
  transition: transform 0.2s;
  display: inline-block;
}

.chapter-toc.expanded .chapter-toc-toggle::after {
  transform: rotate(90deg);
}

[dir="rtl"] .chapter-toc-toggle {
  text-align: right;
}

.chapter-toc-list {
  display: none;
  list-style: none;
  padding: 0 1rem 0.75rem;
  margin: 0;
}

.chapter-toc.expanded .chapter-toc-list {
  display: block;
}

.chapter-toc-list li {
  margin: 0;
}

.chapter-toc-list li.toc-h3 {
  padding-left: 1rem;
}

[dir="rtl"] .chapter-toc-list li.toc-h3 {
  padding-left: 0;
  padding-right: 1rem;
}

.chapter-toc-list a {
  display: block;
  padding: 0.25rem 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: #5a4a3a;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
}

.chapter-toc-list a:hover {
  background: #ebe3d5;
  color: #3a1c1c;
}

.chapter-toc-list a.active {
  background: #3a1c1c;
  color: #f0e6d3;
}

/* ============================================================
   FONT SIZE CONTROLS
   ============================================================ */
.font-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.font-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #d4c4a8;
  border-radius: 4px;
  background: #f9f6f0;
  color: #6b4c3b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.font-btn:hover {
  background: #3a1c1c;
  color: #f0e6d3;
  border-color: #3a1c1c;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --bg: #1a1410;
  --bg-sidebar: #221a14;
  --text: #d4c8b8;
  --heading: #e8d5b8;
  --border: #3a2e22;
  --card-bg: #2a2018;
}

[data-theme="dark"] body {
  background-color: var(--bg) !important;
  color: var(--text);
}

[data-theme="dark"] .sidebar {
  background-color: var(--bg-sidebar);
  border-color: var(--border);
}

[data-theme="dark"] .sidebar .nav-link {
  color: var(--text);
}

[data-theme="dark"] .sidebar .nav-link:hover {
  background-color: #3a2e22;
}

[data-theme="dark"] .sidebar .nav-link.active {
  background-color: #c9a96e;
  color: #1a1410;
}

[data-theme="dark"] .sidebar-heading {
  color: var(--heading);
  border-color: var(--border);
}

[data-theme="dark"] .reading-area {
  color: var(--text);
}

[data-theme="dark"] .book-en,
[data-theme="dark"] .book-he {
  color: var(--text);
}

[data-theme="dark"] .book-en h1, [data-theme="dark"] .book-en h2, [data-theme="dark"] .book-en h3,
[data-theme="dark"] .book-he h1, [data-theme="dark"] .book-he h2, [data-theme="dark"] .book-he h3 {
  color: var(--heading);
}

[data-theme="dark"] blockquote {
  background-color: var(--card-bg);
  color: var(--text);
  border-color: #c9a96e;
}

[data-theme="dark"] figure {
  background: var(--card-bg) !important;
}

[data-theme="dark"] figcaption {
  color: #999;
}

[data-theme="dark"] .chapter-toc {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .chapter-toc-toggle {
  color: var(--heading);
}

[data-theme="dark"] .chapter-toc-list a {
  color: var(--text);
}

[data-theme="dark"] .font-btn {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .footnote-ref {
  background: var(--card-bg);
  border-color: var(--border);
  color: #c9a96e;
}

[data-theme="dark"] .chapter-nav .btn-book-outline {
  color: #c9a96e;
  border-color: #c9a96e;
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.dark-mode-toggle:hover {
  color: #fff;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d4c4a8;
}

.share-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: #999;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d4c4a8;
  background: #f9f6f0;
  color: #6b4c3b;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: sans-serif;
}

.share-btn:hover {
  background: #3a1c1c;
  color: #f0e6d3;
  border-color: #3a1c1c;
}

[data-theme="dark"] .share-btn {
  background: #2a2018;
  border-color: #3a2e22;
  color: #c9a96e;
}

[data-theme="dark"] .share-btn:hover {
  background: #c9a96e;
  color: #1a1410;
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
  .navbar, .sidebar, .site-footer, .reading-progress,
  .scroll-to-top, .chapter-nav, .mobile-chapter-nav,
  .chapter-toc, .font-controls, .dark-mode-toggle,
  .sidebar-lang-switch, .share-bar {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .reading-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .col-md-9, .col-lg-10 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .book-en, .book-he {
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  figure {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  img {
    max-width: 100% !important;
    box-shadow: none !important;
  }

  a { text-decoration: none !important; color: black !important; }

  .footnotes { font-size: 9pt !important; }
}

/* ============================================================
   HEADING DECORATIONS
   ============================================================ */
.book-en h2::after,
.book-he h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #c9a96e;
  margin-top: 0.5rem;
}

.book-en h1::after,
.book-he h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #c9a96e;
  margin: 0.5rem auto 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-hebrew { font-size: 1.4rem; }

  .reading-area {
    padding: 1rem 1rem 6rem;
  }

  .book-en { font-size: 1.15rem; }
  .book-he { font-size: 1.25rem; }

  body { padding-bottom: 60px; } /* space for mobile chapter nav */
}
