:root {
  --surface: #f8f9ff;
  --paper: #ffffff;
  --panel: #eef4ff;
  --panel-strong: #dfe9fa;
  --ink: #121c28;
  --muted: #584237;
  --outline: #e0c0b1;
  --primary: #9d4300;
  --primary-hot: #f97316;
  --secondary: #00687a;
  --aqua: #4cd7f6;
  --shadow: 0 18px 50px rgba(18, 28, 40, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
.feature-book,
.book-card {
  -webkit-tap-highlight-color: transparent;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 20px;
  background: var(--panel);
  border-right: 1px solid #dbe4f3;
}

.brand,
.mobile-brand {
  font-family: "Literata", Georgia, serif;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  color: var(--primary);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px 8px 18px;
  border-left: 4px solid transparent;
  color: #2d1a13;
  font-weight: 600;
}

.side-link[hidden] {
  display: none;
}

.side-link.active {
  border-color: var(--primary);
  color: var(--primary);
}

.icon {
  width: 22px;
  text-align: center;
}

.admin-login {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px 8px 18px;
  width: 100%;
  border: none;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.admin-toggle:hover {
  color: var(--text);
}

body.is-admin .admin-toggle {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-overlay[hidden] {
  display: none;
}

.admin-modal {
  position: relative;
  background: var(--panel);
  border-radius: 14px;
  padding: 36px 28px 28px;
  width: 300px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.admin-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  color: var(--muted);
  cursor: pointer;
}

.admin-modal-close:hover {
  color: var(--text);
}

.admin-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  box-sizing: border-box;
}

.admin-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.admin-error {
  color: #d32f2f;
  font-size: 13px;
  margin: 0;
}

.admin-exit {
  position: fixed;
  bottom: 104px;
  right: 32px;
  z-index: 20;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity 0.15s;
}

.admin-exit:hover {
  opacity: 0.85;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  margin-left: 280px;
  padding: 0 48px;
  background: rgba(248, 249, 255, 0.92);
  border-bottom: 1px solid var(--outline);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  font-size: 34px;
  white-space: nowrap;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 45vw);
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--panel);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #3d2014;
  cursor: pointer;
  font-size: 22px;
}

main {
  margin-left: 280px;
  padding: 40px 48px 96px;
}

.view {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

.section-heading,
.collection-head,
.notes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.notes-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#chapterFilter {
  padding: 6px 10px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-goal,
.mini-progress {
  min-width: 210px;
  color: var(--muted);
  font-size: 14px;
}

.reading-goal div,
.mini-progress div,
.line-progress {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9fa;
}

.reading-goal i,
.mini-progress i,
.line-progress i {
  display: block;
  height: 100%;
  background: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.feature-book,
.streak-panel,
.discussion-panel,
.club-notes {
  border: 1px solid var(--outline);
  border-radius: 8px;
}

.feature-book {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  min-height: 340px;
  padding: 32px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-book:hover,
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-copy {
  display: grid;
  gap: 12px;
}

.feature-copy .author,
.byline {
  color: var(--primary);
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.feature-copy > p:last-of-type {
  max-width: 540px;
  color: #3b261e;
  font-family: "Literata", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.primary,
.secondary,
.text-button,
.export-button,
.segmented button,
.prompt-list button,
.back-button {
  border: 0;
  cursor: pointer;
}

.primary {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.primary:hover {
  background: var(--primary-hot);
}

.secondary {
  min-height: 48px;
  border: 1px solid var(--outline);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.full {
  width: 100%;
}

.streak-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: #f8ebe7;
}

.spark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #edd9cf;
  color: var(--primary);
  font-size: 28px;
}

.streak-panel p {
  margin-top: 12px;
  color: #6f2407;
  line-height: 1.45;
}

.mini-progress {
  margin-top: 48px;
}

.collection-head {
  margin: 56px 0 24px;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 28px;
  padding: 32px;
  border: 1px dashed var(--outline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

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

.empty-state.small {
  margin-top: 0;
  padding: 24px;
}

.empty-state p,
.empty-copy {
  color: var(--muted);
}

.collection-head p {
  color: var(--muted);
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--outline);
  border-radius: 8px;
}

.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 5px;
  background: transparent;
}

.segmented button.active {
  background: var(--primary);
  color: white;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px 26px;
}

.book-card {
  position: relative;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.delete-book {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(224, 192, 177, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.book-card:hover .delete-book,
.book-card:focus-within .delete-book,
.delete-book:focus-visible {
  opacity: 1;
}

.delete-book:hover {
  background: var(--primary);
  color: white;
}

.book-card h3 {
  margin-top: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.book-card p {
  color: var(--muted);
  font-size: 15px;
}

.cover {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(140, 113, 100, 0.38);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(39, 49, 62, 0.12);
}

.cover span {
  position: relative;
  z-index: 1;
  margin: 0 18px 22px;
  color: white;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(20px, 2vw, 31px);
  font-style: italic;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.image-cover {
  place-items: stretch;
  background: #111820;
}

.image-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-cover::before,
.image-cover::after {
  display: none;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
}

.broken-phone {
  background: #d98a53;
}

.broken-phone::before {
  clip-path: polygon(0 0, 72% 0, 100% 45%, 100% 100%, 0 100%);
  background: linear-gradient(145deg, #9a3d1f, #251922 74%);
}

.broken-phone::after {
  inset: 20px;
  border: 6px solid #151a1e;
  border-radius: 28px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.broken-dark {
  background: radial-gradient(circle at 48% 34%, #eff4ec 0 9%, transparent 10%),
    linear-gradient(145deg, #102420, #081213 70%);
}

.broken-dark::before {
  background:
    linear-gradient(22deg, transparent 46%, rgba(255,255,255,.75) 47% 49%, transparent 50%),
    linear-gradient(145deg, transparent 0 48%, rgba(255,255,255,.22) 49% 51%, transparent 52%);
  opacity: .7;
}

.queen {
  background: radial-gradient(circle at center, #22333d, #020405 68%);
}

.wings {
  background: radial-gradient(circle at 52% 38%, #79e8ff, transparent 12%), linear-gradient(150deg, #0b1830, #050710);
}

.silent {
  background: linear-gradient(#d0a8c4, #f9cda5 42%, #6f7aa9 43%, #8292bc 58%, #43486f);
}

.orange-eye {
  background: radial-gradient(ellipse at 52% 53%, #111 0 8%, #ffc46c 9% 14%, #111 15% 19%, transparent 20%), #ff6a00;
}

.botanical {
  background: linear-gradient(#e0bf83, #f7e3ae 48%, #c88d45);
}

.line-art {
  background: radial-gradient(circle at 55% 34%, #fff, #f2e7d9 76%);
}

.small-progress {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9fa;
}

.small-progress i {
  display: block;
  height: 100%;
  background: var(--secondary);
}

.back-button {
  margin-bottom: 36px;
  background: transparent;
  color: #3a2118;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.cover.large {
  margin-bottom: 16px;
}

.progress-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  background: var(--panel);
}

.progress-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.progress-meta strong {
  color: var(--primary);
  font-family: "Literata", Georgia, serif;
  font-size: 30px;
}

.progress-meta span,
.progress-card em {
  color: var(--muted);
  font-size: 14px;
}

.progress-card em {
  display: block;
  margin-top: 14px;
}

.reading-well {
  max-width: 820px;
}

.book-blurb-card {
  max-width: 720px;
  margin: 20px 0 36px;
  padding: 18px 20px;
  border-left: 4px solid var(--primary-hot);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.66);
}

.book-blurb-card[hidden] {
  display: none;
}

.book-blurb-card .eyebrow {
  margin-bottom: 8px;
}

.book-blurb {
  display: -webkit-box;
  margin: 0;
  color: #3d2118;
  font-family: "Literata", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.book-blurb.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.book-blurb-card .text-button {
  margin-top: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 44px;
}

.chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  font-size: 14px;
}

.synopsis {
  display: grid;
  gap: 22px;
  margin-bottom: 64px;
}

.synopsis p:not(.eyebrow) {
  color: #3d2118;
  font-family: "Literata", Georgia, serif;
  font-size: 21px;
  line-height: 1.7;
}

.notes-list {
  display: grid;
  gap: 30px;
}

.book-tabs {
  margin-top: 36px;
}

.tab-list {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--outline);
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.tab-button.active {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-panel {
  display: none;
}

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

.pdf-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 16px;
  margin-bottom: 24px;
}

.pdf-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.pdf-controls select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--outline);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.pdf-notes-list {
  display: grid;
  gap: 16px;
}

.pdf-note {
  padding: 18px 20px;
  border-left: 5px solid #cdd8e8;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.72);
}

.pdf-note.orange {
  border-color: var(--primary-hot);
}

.pdf-note.blue {
  border-color: var(--aqua);
}

.pdf-note.green {
  border-color: #4d9b69;
}

.pdf-note.yellow {
  border-color: #d9a821;
}

.pdf-note.pink {
  border-color: #d96a9b;
}

.pdf-note.purple {
  border-color: #9a72c7;
}

.pdf-note-color {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdf-note-color span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cdd8e8;
}

.pdf-note.orange .pdf-note-color span {
  background: var(--primary-hot);
}

.pdf-note.blue .pdf-note-color span {
  background: var(--aqua);
}

.pdf-note.green .pdf-note-color span {
  background: #4d9b69;
}

.pdf-note.yellow .pdf-note-color span {
  background: #d9a821;
}

.pdf-note.pink .pdf-note-color span {
  background: #d96a9b;
}

.pdf-note.purple .pdf-note-color span {
  background: #9a72c7;
}

.pdf-note p {
  margin: 0;
  color: #2f1b14;
  font-family: "Literata", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.note {
  padding: 10px 0 12px 24px;
  border-left: 4px solid var(--primary-hot);
}

.note.aqua {
  border-color: var(--aqua);
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.note-meta strong {
  padding: 3px 9px;
  border-radius: 4px;
  background: #ffdbca;
  color: #783200;
  font-size: 12px;
}

.note.aqua .note-meta strong {
  background: #acedff;
  color: #004e5c;
}

.note blockquote {
  margin: 0;
  color: #1b1210;
  font-family: "Literata", Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
}

.personal-note {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  background: var(--paper);
  color: #3d2118;
}

.personal-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
}

.text-button {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.export-button {
  width: 100%;
  min-height: 58px;
  margin-top: 46px;
  border: 2px dashed var(--outline);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.club-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.discussion-panel,
.club-notes,
.import-panel,
.import-results {
  padding: 32px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--paper);
}

.import-panel {
  display: grid;
  gap: 20px;
}

.file-picker,
.paste-box {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.file-picker em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}

.file-picker input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--outline);
  border-radius: 7px;
  background: #fffaf7;
}

.paste-box textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  outline: 0;
  background: #fffdfb;
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  line-height: 1.5;
}

.paste-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(157, 67, 0, 0.12);
}

.import-results {
  align-self: start;
  display: grid;
  gap: 18px;
  background: var(--panel);
}

.result-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d3dfef;
}

.result-stat strong {
  color: var(--primary);
  font-family: "Literata", Georgia, serif;
  font-size: 36px;
}

.result-stat span,
.import-message {
  color: var(--muted);
}

.import-message {
  padding: 16px;
  border: 1px solid #d3dfef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.discussion-panel p {
  margin-top: 12px;
  color: var(--muted);
}

.prompt-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.prompt-list button {
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: #fffaf7;
  color: #3d2118;
  text-align: left;
  font-weight: 600;
}

.member-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ead7cf;
}

.member-row span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  color: var(--primary);
  font-weight: 800;
}

.member-row em {
  color: var(--muted);
  font-size: 14px;
}


.bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  .sidebar {
    display: none;
  }

  .topbar,
  main {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  main {
    padding: 28px 18px 100px;
  }

  .feature-grid,
  .detail-layout,
  .club-layout,
  .import-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-aside {
    max-width: 360px;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 64px;
    background: var(--paper);
    border-top: 1px solid var(--outline);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
  }

  .bottom-nav a.active {
    color: var(--primary);
  }

}

@media (max-width: 680px) {
  .top-actions {
    display: none;
  }

  .mobile-brand {
    font-size: 26px;
  }

  .search {
    width: 46px;
    min-width: 46px;
    padding: 0 14px;
  }

  .search:focus-within {
    position: absolute;
    inset: 12px 18px auto 18px;
    z-index: 20;
    width: auto;
  }

  .search input {
    width: 0;
  }

  .search:focus-within input {
    width: 100%;
  }

  .section-heading,
  .collection-head,
  .notes-head {
    align-items: start;
    flex-direction: column;
  }

  .feature-book {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .feature-book .cover {
    width: min(230px, 76vw);
    margin: 0 auto;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .pdf-controls {
    grid-template-columns: 1fr;
  }

  .synopsis p:not(.eyebrow) {
    font-size: 18px;
  }
}
