@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Comic+Neue:wght@400;700&family=Courier+Prime&family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-primary:        #FAF9F5;
  --bg-secondary:      #F2EDE0;
  --text-primary:      #16100A;
  --text-secondary:    #4A3C28;
  --text-muted:        #8C7E68;
  --accent:            #7C4818;
  --accent-hover:      #5C3412;
  --divider:           rgba(74, 60, 38, 0.14);
  --header-bg:         rgba(250, 249, 245, 0.96);
  --overlay-bg:        rgba(250, 249, 245, 0.98);
  --drawer-bg:         rgba(242, 237, 224, 0.97);
  --control-btn-bg:    #EDE7D8;
  --control-btn-hover: #E3DACB;

  --font-display:  'Playfair Display', serif;
  --font-sans:     'Inter', sans-serif;
  --font-serif:    'Lora', serif;
  --font-dyslexic: 'Comic Neue', cursive;
  --font-mono:     'Courier Prime', monospace;

  --column-width:      860px;
  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-page:   transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="sepia"] {
  --bg-primary:        #F4ECD8;
  --bg-secondary:      #EADFCD;
  --text-primary:      #2E1F0E;
  --text-secondary:    #5C4B37;
  --text-muted:        #806F5C;
  --accent:            #8E4A23;
  --accent-hover:      #703716;
  --divider:           rgba(67, 52, 34, 0.14);
  --header-bg:         rgba(244, 236, 216, 0.96);
  --overlay-bg:        rgba(244, 236, 216, 0.98);
  --drawer-bg:         rgba(234, 223, 205, 0.97);
  --control-btn-bg:    #E3D7C3;
  --control-btn-hover: #D7CAA7;
}

[data-theme="dark"] {
  --bg-primary:        #0F0D0B;
  --bg-secondary:      #1A1613;
  --text-primary:      #E4DDD3;
  --text-secondary:    #9E9285;
  --text-muted:        #635A52;
  --accent:            #C4895A;
  --accent-hover:      #E0A87A;
  --divider:           rgba(255, 255, 255, 0.08);
  --header-bg:         rgba(15, 13, 11, 0.96);
  --overlay-bg:        rgba(15, 13, 11, 0.98);
  --drawer-bg:         rgba(26, 22, 19, 0.97);
  --control-btn-bg:    #252018;
  --control-btn-hover: #312A22;
}

[data-theme="forest"] {
  --bg-primary:        #182421;
  --bg-secondary:      #20312D;
  --text-primary:      #E2ECE9;
  --text-secondary:    #A6BDB8;
  --text-muted:        #6C8580;
  --accent:            #8FBC8F;
  --accent-hover:      #AFDFB1;
  --divider:           rgba(255, 255, 255, 0.07);
  --header-bg:         rgba(24, 36, 33, 0.96);
  --overlay-bg:        rgba(24, 36, 33, 0.98);
  --drawer-bg:         rgba(29, 46, 43, 0.97);
  --control-btn-bg:    #253935;
  --control-btn-hover: #314C47;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  outline: none;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Site Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.header-inner {
  max-width: var(--column-width);
  margin: 0 auto;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-selector-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.theme-selector-btn:hover {
  background-color: var(--control-btn-bg);
  color: var(--text-primary);
}

/* ─── Page Column ────────────────────────────────────────────── */
.page-column {
  max-width: var(--column-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* ─── Hero Block ─────────────────────────────────────────────── */
.hero-block {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--divider);
}

.hero-block h1 {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.0;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.55;
  max-width: 58ch;
}

.hero-body {
  font-size: 0.96rem;
  line-height: 1.88;
  color: var(--text-secondary);
  max-width: 58ch;
  font-weight: 300;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.hero-cta:hover {
  color: var(--accent);
}

/* ─── Sections ───────────────────────────────────────────────── */
.section-shell {
  padding: 64px 0;
  border-bottom: 1px solid var(--divider);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* ─── Shelf Controls ─────────────────────────────────────────── */
.shelf-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding: 7px 14px 7px 30px;
  border-radius: 4px;
  border: 1px solid var(--divider);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 200px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 72, 24, 0.1);
}

.filter-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ─── Books Grid ─────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.book-card {
  padding: 40px 0;
  border-top: 1px solid var(--divider);
  cursor: pointer;
}

.book-card:nth-child(odd) {
  padding-right: 52px;
}

.book-card:nth-child(even) {
  padding-left: 52px;
  border-left: 1px solid var(--divider);
}

.book-card-genre {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.book-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.book-card:hover .book-card-title {
  color: var(--accent);
}

.book-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.book-card-desc {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.read-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.read-btn:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-hover);
}

.books-grid-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 60ch;
}

.about-prose p {
  font-size: 0.98rem;
  line-height: 1.88;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item dt {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-item dd {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  font-style: normal;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 36px 0 48px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── Fullscreen Reader ──────────────────────────────────────── */
.reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  z-index: 1000;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reader-overlay.active {
  display: flex;
  opacity: 1;
}

.reader-top-bar {
  height: 58px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  font-size: 0.88rem;
  user-select: none;
  background-color: var(--overlay-bg);
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

.reader-book-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
}

.reader-chapter-title {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.85rem;
  border-left: 1px solid var(--divider);
  padding-left: 16px;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.reader-action-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.reader-action-btn.active {
  color: var(--accent);
}

.reader-workspace {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 60px;
  overflow: hidden;
}

.reader-container {
  width: 100%;
  max-width: 800px;
  height: 65vh;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s ease;
}

.reader-container.width-narrow { max-width: 600px; }
.reader-container.width-medium { max-width: 800px; }
.reader-container.width-wide   { max-width: 1050px; }

.reader-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.reader-content {
  column-width: 100%;
  column-gap: 48px;
  height: 100%;
  column-fill: auto;
  transition: var(--transition-page);
}

.reader-content.font-sans     { font-family: var(--font-sans); }
.reader-content.font-serif    { font-family: var(--font-serif); }
.reader-content.font-dyslexic { font-family: var(--font-dyslexic); }
.reader-content.font-mono     { font-family: var(--font-mono); }

.reader-content.size-xs { font-size: 15px; }
.reader-content.size-sm { font-size: 17px; }
.reader-content.size-md { font-size: 20px; }
.reader-content.size-lg { font-size: 23px; }
.reader-content.size-xl { font-size: 26px; }

.reader-content.height-normal  { line-height: 1.5; }
.reader-content.height-relaxed { line-height: 1.75; }
.reader-content.height-loose   { line-height: 2.0; }

.reader-content p {
  margin-top: 0;
  margin-bottom: 1.3em;
  text-align: justify;
  text-justify: inter-word;
  opacity: 0.92;
  break-inside: avoid-column;
}

.reader-content h2.chapter-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 40px;
  color: var(--accent);
  break-after: avoid;
  line-height: 1.2;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--control-btn-bg);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  transition: var(--transition-smooth);
  opacity: 0.55;
}

.nav-arrow:hover {
  opacity: 1;
  background-color: var(--control-btn-hover);
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.05);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow.prev { left: 16px; }
.nav-arrow.next { right: 16px; }

.reader-bottom-bar {
  height: 62px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 5%;
  user-select: none;
  background-color: var(--overlay-bg);
}

.progress-slider-container {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
}

.reader-progress-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-secondary);
  outline: none;
  cursor: pointer;
}

.reader-progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.1s;
}

.reader-progress-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.page-indicator {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ─── Side Drawers ───────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background-color: var(--drawer-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.07);
  border-left: 1px solid var(--divider);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 28px;
}

.drawer.active { right: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 14px;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--control-btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.drawer-close:hover {
  background-color: var(--control-btn-hover);
  color: var(--text-primary);
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.setting-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-option {
  flex-grow: 1;
  padding: 7px 12px;
  border-radius: 4px;
  background-color: var(--control-btn-bg);
  color: var(--text-secondary);
  font-size: 0.83rem;
  text-align: center;
  border: 1px solid var(--divider);
  transition: var(--transition-smooth);
}

.btn-option:hover {
  background-color: var(--control-btn-hover);
  color: var(--text-primary);
}

.btn-option.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-dot:hover { transform: scale(1.1); }
.theme-dot.active { border-color: var(--accent); }

.theme-dot.dot-light  { background-color: #FAF9F5; }
.theme-dot.dot-sepia  { background-color: #F4ECD8; }
.theme-dot.dot-dark   { background-color: #0F0D0B; }
.theme-dot.dot-forest { background-color: #182421; }

.font-size-label {
  align-self: center;
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Chapters / Bookmarks Drawer ────────────────────────────── */
.tabs-header {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.tab-btn {
  flex-grow: 1;
  padding: 5px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.tab-btn.active { color: var(--text-primary); }

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.tab-panel.active { display: flex; }

.chapter-item,
.bookmark-item {
  padding: 10px 14px;
  border-radius: 4px;
  background-color: var(--control-btn-bg);
  border: 1px solid var(--divider);
  transition: var(--transition-smooth);
  text-align: left;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.chapter-item:hover,
.bookmark-item:hover {
  background-color: var(--control-btn-hover);
  color: var(--text-primary);
}

.bookmark-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bookmark-delete {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.bookmark-delete:hover {
  color: #C05050;
  background-color: rgba(192, 80, 80, 0.1);
}

/* ─── Backdrop ───────────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 10, 5, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1020;
  display: none;
}

.backdrop.active { display: block; }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.82rem;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-card:nth-child(odd),
  .book-card:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
}

@media (max-width: 768px) {
  .hero-block {
    padding: 60px 0 52px;
  }

  .reader-workspace {
    padding: 0 14px;
  }

  .nav-arrow {
    display: none;
  }

  .reader-chapter-title {
    display: none;
  }

  .drawer {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero-block h1 {
    font-size: 3rem;
  }

  .filter-bar {
    width: 100%;
  }

  .search-input {
    width: 140px;
  }

  .shelf-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
