:root {
  --ink: #110e0c;
  --ink-soft: #1a1613;
  --paper: #f3e6cc;
  --paper-2: #ead9b8;
  --paper-back: #e2d0ab;
  --paper-grain: url("../img/paper-grain.svg");
  --leather: #4a221f;
  --leather-dark: #2a1211;
  --gold: #c4a574;
  --gold-bright: #e0c38a;
  --gold-dim: #8d7348;
  --text: #2b2218;
  --muted: #6d5e4c;
  --home-text: #efe6d4;
  --shadow: rgba(8, 5, 3, 0.62);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  color-scheme: light;
  background: #e8e8e8;
}

body.is-reading {
  color-scheme: dark;
}

body {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: #e8e8e8;
  color: #1b1814;
  -webkit-font-smoothing: antialiased;
}

body.is-reading,
body.nv-auth,
body.nv-site {
  background: var(--ink);
  color: var(--home-text);
}

button,
a {
  font-family: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.view {
  position: relative;
  z-index: 1;
}

body.is-catalog {
  background: #fff;
  color: #121212;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.is-catalog .grain {
  display: none;
}

body.is-reading .grain {
  display: block;
}

.view-home {
  min-height: calc(100vh - 4.2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  padding: 0 0 3.2rem;
  isolation: isolate;
  background: #fff;
  color: #121212;
}

.view-home::before {
  display: none;
}

.view-home > * {
  position: relative;
  z-index: 1;
}

.view-home.is-away {
  display: none !important;
}

.home-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 3.4rem 1.5rem 2.4rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 48c180-32 360 32 540 16S1080 0 1260 16 1440 64 1440 64V80H0z'/%3E%3C/svg%3E")
      bottom / 100% 72px no-repeat,
    #fcecd9;
  color: #121212;
  border-bottom: 0;
}

.home-hero-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero {
    padding: 4.6rem 2.4rem 2.8rem;
  }
  .home-hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1.05fr);
    gap: 4.8rem;
    width: min(1320px, 100%);
    align-items: center;
  }
}

.home-hero-copy {
  text-align: left;
  padding-right: 0.4rem;
}

.home-hero-kicker {
  margin: 0 0 0.85rem;
  color: #ff500a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-title {
  margin: 0;
  max-width: 13em;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #121212;
}

.home-hero-tag {
  margin: 0.85rem 0 0;
  max-width: 30rem;
  color: #3a3a3a;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.4;
}

.home-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 0.4rem 0 0.8rem;
}

.home-hero-book {
  width: min(100%, 320px);
  height: auto;
  color: #ff500a;
}

.float-stage {
  position: relative;
  width: min(100%, 720px);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.float-book-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.12 / 1;
}

.float-book-logo {
  display: none;
}

.hero-story-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: url("../img/open-book-mask.svg");
  mask-image: url("../img/open-book-mask.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.float-comment {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: min(17.5rem, 78%);
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 0;
  outline: none;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(18, 18, 18, 0.1);
  color: #121212;
  text-decoration: none;
  cursor: pointer;
}

.float-comment:hover,
.float-comment:focus-visible {
  color: #121212;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.16);
}

.float-comment-a {
  top: 8%;
  right: -2%;
}

.float-comment-b {
  bottom: 10%;
  right: 6%;
}

.float-ava {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.float-copy {
  min-width: 0;
  flex: 1;
}

.float-copy strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
}

.float-copy p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.float-heart {
  flex: 0 0 auto;
  color: #888;
  font-size: 0.68rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .float-comment-a,
  .float-comment-b {
    right: 0.6rem;
  }
}

.home-hero-logo,
.home-hero-mark,
.home-hero-name,
.home-hero-tld,
.home-hero-stats {
  display: none;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.4rem;
  border-radius: 26px;
  background: #121212;
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.home-cta-ghost {
  background: #0d6f76;
  color: #fff;
  border: 0;
}

.home-cta-ghost:hover,
.home-cta-ghost:focus-visible {
  background: #0a5c62;
  color: #fff;
}

.home-cta:hover,
.home-cta:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}

.view-home {
  --rail-cols: 1;
  --rail-gap: 1.25rem;
}

.shelf {
  width: calc(100% - 1.6rem);
  max-width: none;
  margin: 0 auto;
}

.shelf-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 1.15rem;
}

.shelf-head {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #121212;
}

.shelf-more {
  color: #121212;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.shelf-more:hover {
  text-decoration: underline;
}

.cover-rail-wrap {
  position: relative;
}

.view-home .toc {
  display: flex;
  grid-template-columns: none;
  gap: var(--rail-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0 1.2rem;
  align-items: stretch;
}

.view-home .toc::-webkit-scrollbar {
  display: none;
}

.cover-card {
  flex: 0 0 16.75rem;
  width: 16.75rem;
  margin: 0;
  list-style: none;
  scroll-snap-align: start;
  display: flex;
}

body.is-admin .cover-card[data-id],
body.is-admin .nv-cards > .story-tile[data-id] {
  cursor: grab;
}

body.is-admin .cover-card[data-id].is-dragging,
body.is-admin .nv-cards > .story-tile[data-id].is-dragging {
  cursor: grabbing;
}

.cover-card.is-dragging,
.nv-cards > .story-tile.is-dragging {
  z-index: 2;
}

.cover-card.is-drag-over,
.nv-cards > .story-tile.is-drag-over {
  outline: 2px solid #0d6f76;
  outline-offset: 3px;
  border-radius: 1.15rem;
}

.nv-save-order {
  appearance: none;
  border: 1px solid #0d6f76;
  background: #0d6f76;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.nv-save-order:hover,
.nv-save-order:focus-visible {
  background: #0b5d63;
  outline: none;
}

.nv-save-order.is-dirty {
  box-shadow: 0 0 0 3px rgba(13, 111, 118, 0.22);
}

.nv-save-order:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.is-reading .nv-save-order {
  display: none !important;
}

.cover-card .story-tile {
  width: 100%;
  height: 100%;
}

.story-tile.is-empty {
  pointer-events: none;
}

.story-tile.is-empty .story-tile-cover {
  background: #ece7df;
}

.story-tile.is-empty .chip,
.story-tile.is-empty .toc-title,
.story-tile.is-empty .toc-by,
.story-tile.is-empty .story-tile-desc,
.story-tile.is-empty .toc-rating {
  color: transparent;
  background: #f1ece4;
}

.story-tile.is-empty .chip {
  min-width: 3.4rem;
  min-height: 1.15rem;
}

.story-tile.is-empty .toc-title,
.story-tile.is-empty .toc-by,
.story-tile.is-empty .story-tile-desc {
  min-height: 0.9em;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .view-home {
    --rail-gap: 1.25rem;
  }
}

.cover-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 0.8rem 0.68rem 0.7rem;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  background-color: #f3ead8;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(18, 18, 18, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  container-type: inline-size;
}

.cover-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(18, 18, 18, 0.18);
}

.cover-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 247, 232, 0.42);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.cover-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.16) 0%, transparent 30%, transparent 62%, rgba(42, 28, 16, 0.38) 100%);
  pointer-events: none;
  z-index: 0;
}

.cover-card-link.has-photo {
  padding: 0;
  background-color: #efe6d4;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.cover-card-link.has-photo::before,
.cover-card-link.has-photo::after {
  display: none;
}

.story-tile-cover.cover-card-link.has-photo {
  aspect-ratio: 2 / 3;
}

.cover-card-title,
.cover-card-by {
  position: relative;
  z-index: 1;
}

.cover-card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
  max-width: 100%;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.02rem, 11.5cqi, 1.55rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72), 0 0 2px rgba(0, 0, 0, 0.45);
}

.cover-card-title .cover-main,
.cover-card-title .cover-accent {
  display: block;
  max-width: 100%;
}

.cover-card-by {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cover-card-link[data-look="2"] .cover-card-title,
.cover-card-link[data-look="3"] .cover-card-title,
.cover-card-link[data-look="7"] .cover-card-title {
  margin-top: auto;
}

.cover-card-link[data-look="2"] .cover-card-by,
.cover-card-link[data-look="3"] .cover-card-by,
.cover-card-link[data-look="7"] .cover-card-by {
  margin-top: 0.22rem;
}

.cover-card-link[data-look="4"] .cover-card-title,
.cover-card-link[data-look="5"] .cover-card-title {
  margin-top: 26%;
}

.cover-card-link[data-look="0"] {
  text-align: left;
}

.cover-card-link[data-look="0"] .cover-card-title {
  font-family: Unbounded, "Arial Black", sans-serif;
  font-size: clamp(1.15rem, 15.5cqi, 2.05rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #fff;
}

.cover-card-link[data-look="1"] {
  text-align: center;
}

.cover-card-link[data-look="1"] .cover-card-title {
  align-items: center;
  width: 100%;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.08rem, 13.2cqi, 1.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.08;
  color: #f6efe2;
}

.cover-card-link[data-look="1"]::after {
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.22) 0%, transparent 38%, transparent 62%, rgba(42, 28, 16, 0.36) 100%);
}

.cover-card-link[data-look="2"] .cover-card-title {
  font-size: clamp(1.02rem, 12.2cqi, 1.62rem);
}

.cover-card-link[data-look="2"] .cover-main {
  font-family: Oswald, "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
}

.cover-card-link[data-look="2"] .cover-accent {
  margin-top: 0.06em;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: none;
  color: #ff8fb8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.cover-card-link[data-look="3"] .cover-card-title {
  font-family: Oswald, "Source Sans 3", sans-serif;
  font-size: clamp(1.08rem, 13.4cqi, 1.78rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: #fff;
}

.cover-card-link[data-look="4"] .cover-card-title {
  font-size: clamp(1.05rem, 12.6cqi, 1.7rem);
  text-transform: none;
}

.cover-card-link[data-look="4"] .cover-main {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: #f3e1a8;
}

.cover-card-link[data-look="4"] .cover-accent {
  margin-top: 0.08em;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.78em;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.cover-card-link[data-look="5"] {
  text-align: center;
}

.cover-card-link[data-look="5"] .cover-card-title {
  align-items: center;
  width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.12rem, 14cqi, 1.92rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #ffe08a;
}

.cover-card-link[data-look="6"] {
  text-align: center;
}

.cover-card-link[data-look="6"] .cover-card-title {
  align-items: center;
  width: 100%;
  font-family: "Poiret One", "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 15cqi, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.05;
  color: #fff;
}

.cover-card-link[data-look="6"]::after {
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.2) 0%, transparent 36%, transparent 60%, rgba(42, 28, 16, 0.36) 100%);
}

.cover-card-link[data-look="7"] .cover-main {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.cover-card-link[data-look="7"] .cover-accent {
  margin-top: 0.04em;
  font-family: Caveat, "Segoe Script", cursive;
  font-size: 1.22em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #ff500a;
}

.cover-card-link.is-long .cover-card-title {
  font-size: clamp(0.88rem, 9.4cqi, 1.28rem);
}

.rail-btn {
  position: absolute;
  top: 26%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #121212;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.rail-prev { left: -8px; }
.rail-next { right: -8px; }

.rail-btn[hidden] { display: none; }

.genre-panel {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  padding: 2.4rem 1.6rem 2.2rem;
  background: #eceef8;
  border-radius: 28px;
  text-align: center;
}

.genre-panel:has(#genreBar[hidden]) {
  display: none;
}

.genre-panel-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #121212;
}

.genre-panel-lead {
  margin: 0.55rem 0 1.3rem;
  color: #121212;
  font-size: 1.05rem;
}

.genre-rail-wrap {
  width: 100%;
  margin: 0.55rem 0 1.7rem;
  padding: 0.85rem 1.2rem;
  background: #e8e8e8;
  overflow: hidden;
}

.genre-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
}

.genre-rail::-webkit-scrollbar { display: none; }

.genre-rail a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
}

.genre-rail a:hover,
.genre-rail a:focus-visible {
  background: #121212;
  color: #fff;
  outline: none;
}

.genre-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.club-band {
  width: min(1400px, calc(100% - 2.4rem));
  margin: 0.6rem auto 2.4rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .club-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.club-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.club-copy p {
  margin: 0.85rem 0 0;
  font-size: 1.12rem;
  line-height: 1.45;
}

.blue-band {
  width: calc(100% - 1.6rem);
  max-width: none;
  margin: 0 auto 2.2rem;
  padding: 2rem 0 2.4rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 48c180-32 360 32 540 16S1080 0 1260 16 1440 64 1440 64V80H0z'/%3E%3C/svg%3E")
      bottom / 100% 64px no-repeat,
    #d7e6f7;
  border-radius: 36px;
}

.blue-band-title {
  margin: 0 0 1rem 0.4rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.tropes-band {
  width: min(1400px, calc(100% - 2.4rem));
  margin: 0 auto 2.6rem;
  display: grid;
  gap: 1.6rem;
  align-items: center;
  padding: 1.2rem 0 0.4rem;
}

@media (min-width: 900px) {
  .tropes-band {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.tropes-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.tropes-copy p {
  margin: 0.8rem 0 0;
  font-size: 1.12rem;
}

.tropes-search {
  position: relative;
  width: min(100%, 28rem);
  margin-left: auto;
}

.tropes-search input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 999px;
  padding: 0 1.1rem 0 2.6rem;
  font: inherit;
  background: #fff;
}

.tropes-search button {
  position: absolute;
  left: 0.2rem;
  top: 0;
  bottom: 0;
  width: 2.4rem;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
}

.tropes-search button::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto;
  border: 2px solid #121212;
  border-radius: 50%;
  box-shadow: 0.32rem 0.32rem 0 -0.26rem #121212;
}

.obsess-band {
  width: calc(100% - 1.6rem);
  max-width: none;
  margin: 0 auto 2.4rem;
  padding: 1.6rem 0 0.4rem;
}

.obsess-band h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

.brand-split {
  width: min(1400px, calc(100% - 2.4rem));
  margin: 0 auto 1.4rem;
  overflow: visible;
}

.hood-stage {
  width: 100%;
  max-width: none;
  min-height: 0;
}

.hood-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.12);
  -webkit-mask-image: none;
  mask-image: none;
}

.hood-stage .float-comment-a {
  top: 10%;
  right: 4%;
}

.hood-stage .float-comment-b {
  bottom: 12%;
  right: 8%;
}

.brand-split-blue {
  background: #cfe4f2;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.shelf-doodle {
  width: min(70%, 220px);
  display: grid;
  gap: 1.1rem;
}

.shelf-doodle span {
  display: block;
  height: 10px;
  background: #7eafd4;
  border-radius: 4px;
  box-shadow: 0 14px 0 #9bc4dd, 0 28px 0 #7eafd4;
}

.brand {
  text-align: center;
  margin-bottom: 3.2rem;
}

.brand-mark {
  display: block;
  margin: 0 auto 1.35rem;
  width: 52px;
  height: 52px;
  color: var(--gold);
}

.brand h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1;
}

.brand h1 span {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.22em;
  margin-left: 0.15em;
  vertical-align: super;
  color: var(--gold);
}

.brand-kicker {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 2.8rem;
  color: var(--gold);
  opacity: 0.85;
}

.ornament span {
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.view-home #genreBar {
  display: none !important;
}

.shelf-wrap {
  position: relative;
}

.genre-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  width: 100%;
}

.genre-bar[hidden] {
  display: none;
}

.genre-bar button {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #121212;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.genre-bar button.is-on,
.genre-bar button:hover,
.genre-bar button:focus-visible {
  color: #fff;
  background: #121212;
  border-color: #121212;
  outline: none;
}

.toc,
.nv-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  overflow: visible;
  background: transparent;
}

@media (min-width: 640px) {
  .toc,
  .nv-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .toc,
  .nv-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

.story-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fffdf8;
  border: 1px solid #e8e8e8;
  border-radius: 1.1rem;
  overflow: hidden;
}

.story-tile-cover {
  aspect-ratio: 3 / 4;
}

.story-tile-cover.cover-card-link {
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.story-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
}

.story-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.story-share {
  flex-shrink: 0;
  border: 1px solid #d7c7aa;
  background: #fff;
  color: #3d5c38;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.story-share:hover,
.story-share:focus-visible {
  background: #e8f6ea;
  border-color: #1a8f4a;
  color: #146b38;
  outline: none;
}

.nv-share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 4000;
  transform: translateX(-50%) translateY(12px);
  max-width: min(28rem, calc(100vw - 1.6rem));
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #146b38;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 28px rgba(20, 107, 56, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nv-share-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3e6cc;
  color: #6f5a38;
}

.story-tile .toc-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #110e0c;
  text-decoration: none;
}

.story-tile .toc-title:hover,
.story-tile .toc-title:focus-visible {
  color: #8d7348;
}

.story-tile-desc {
  margin: 0;
  color: #6b5e52;
  font-size: 0.9rem;
  line-height: 1.4;
}

.story-tile .toc-by,
.story-tile .toc-rating {
  color: #3d342c;
}

.story-tile .toc-rating {
  margin-top: auto;
  padding-top: 0.2rem;
  font-size: 0.78rem;
  color: #6b5e52;
}

.toc li {
  margin: 0;
  min-width: 0;
}

.toc-empty,
.nv-cards > .nv-empty,
.nv-cards > .nv-card-title {
  grid-column: 1 / -1;
}

.book-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.book-card.is-empty {
  height: auto;
  pointer-events: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.book-card.is-empty .book-cover,
.book-card.is-empty .book-cover-empty {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0 0 0.65rem;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: none;
}

.book-card.is-empty .book-cover-empty img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  pointer-events: none;
  opacity: 0.5;
}

.book-card.is-empty .empty-meta {
  display: block;
  width: 100%;
  min-height: 4.45rem;
  background: #fff;
  border-radius: 10px;
}

.book-card.is-empty .book-cover::after,
.book-cover-empty::after {
  display: none;
}

.book-cover {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0 0 0.65rem;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 3px 14px rgba(20, 16, 12, 0.2);
  text-decoration: none;
  color: inherit;
  container-type: inline-size;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.reprint {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

.reprint-top {
  flex: 1.18 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 11% 9% 14%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #f3e6c6 0%, #e2ceaa 100%);
  color: #16120e;
}

.reprint-kicker {
  flex: 0 0 auto;
  margin: 0 0 0.5em;
  font-size: clamp(0.48rem, 3.1cqi, 0.68rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.reprint-name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  font-size: clamp(0.86rem, 7.2cqi, 1.42rem);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reprint-tear {
  position: relative;
  z-index: 2;
  flex: 0 0 15px;
  margin: -2px 0 -1px;
  background: #faf7f1;
  clip-path: polygon(
    0% 52%, 3% 16%, 6% 70%, 9% 10%, 13% 76%, 16% 22%, 20% 68%, 23% 14%,
    27% 78%, 31% 18%, 35% 72%, 38% 12%, 42% 80%, 46% 20%, 50% 66%, 54% 14%,
    58% 76%, 62% 18%, 66% 70%, 70% 12%, 74% 78%, 78% 22%, 82% 68%, 86% 16%,
    90% 74%, 94% 20%, 97% 62%, 100% 28%, 100% 100%, 0% 100%
  );
}

.reprint-seal {
  position: absolute;
  left: 50%;
  top: 58.5%;
  z-index: 3;
  width: 29%;
  min-width: 3.35rem;
  max-width: 4.65rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.38));
}

.reprint-seal-art {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  display: block;
  overflow: visible;
  background: none;
}

.reprint-seal-blob {
  position: absolute;
  inset: 10%;
  z-index: 1;
  background:
    radial-gradient(circle at 32% 26%, rgba(242, 139, 114, 0.4) 0 18%, transparent 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.reprint-seal-blob::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reprint-seal-mark {
  position: absolute;
  inset: 18%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(0.42rem, 5.6cqi, 0.7rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #2c0606;
  text-shadow:
    0 1px 0 rgba(255, 196, 176, 0.5),
    0 -1px 0 rgba(20, 0, 0, 0.55);
}

.reprint-bottom {
  flex: 0.78 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16% 10% 10%;
  background: #0e0e0e;
  color: #ece6d8;
}

.reprint-by {
  margin: 0;
  font-size: clamp(0.72rem, 5.2cqi, 1.08rem);
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.toc-title {
  display: block;
  width: 100%;
  margin: 0;
  color: #111;
  text-decoration: none;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.28;
  white-space: normal;
  overflow: visible;
}

.toc-title:hover,
.toc-title:focus-visible {
  color: #111;
  text-decoration: underline;
  outline: none;
}

.toc-by {
  display: block;
  width: 100%;
  margin: 0.18rem 0 0;
  color: #333;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
}

.toc-author {
  color: inherit;
  text-decoration: none;
}

.toc-author:hover {
  text-decoration: underline;
}

.toc-rating {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.28rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #333;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.toc-star {
  color: #e8a317;
}

.toc-empty {
  padding: 1.4rem 0.2rem;
  text-align: left;
  color: #6d655c;
  font-style: italic;
  font-size: 1.05rem;
}

.shelf-next {
  display: none;
}

.shelf-all {
  margin: 0.85rem 0 0;
  text-align: center;
}

.shelf-all a {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.shelf-all a:hover {
  text-decoration: underline;
}

.site-foot {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: #666;
}

.foot-quiet {
  color: inherit;
  text-decoration: none;
  font-size: 0.78em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.foot-quiet:hover {
  color: var(--gold-bright);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.6rem;
  padding: 0.68rem 1.35rem;
  border: 1px solid rgba(196, 165, 116, 0.58);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(36, 26, 18, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.auth-btn:hover,
.auth-btn:focus-visible {
  color: #fff8e8;
  border-color: var(--gold-bright);
  outline: none;
}

.auth-btn-fill {
  background: linear-gradient(180deg, #e0c38a, #b89158);
  color: #1c140e;
  border-color: #ead7a8;
  font-weight: 600;
}

.auth-btn-fill:hover,
.auth-btn-fill:focus-visible {
  color: #0e0a08;
  background: linear-gradient(180deg, #f0d7a2, #c4a574);
}

.door {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: var(--gold-dim);
  text-decoration: none;
  opacity: 0.38;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.door:hover,
.door:focus-visible {
  opacity: 0.92;
  color: var(--gold);
  outline: none;
}

.view-reader {
  --read-size: 1;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.4rem 1.8rem;
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  background:
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(12, 10, 9, 0.22) 0%, rgba(12, 10, 9, 0.55) 100%),
    url("../img/reader-desk.webp") center 48% / cover no-repeat,
    #0c0a09;
}

.view-reader.is-open {
  display: flex;
}

.reader-bar {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  z-index: 4;
}

.back-btn,
.nav-hint {
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.back-btn:hover,
.back-btn:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.nav-hint {
  cursor: default;
  opacity: 0.55;
  letter-spacing: 0.12em;
  text-transform: none;
  font-style: italic;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-mark {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

.read-aa {
  flex-shrink: 0;
  border: 1px solid rgba(196, 165, 116, 0.45);
  background: rgba(36, 26, 18, 0.72);
  color: var(--gold-bright);
  border-radius: 999px;
  min-width: 2.6rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
}

.read-aa[aria-expanded="true"],
.read-aa:hover,
.read-aa:focus-visible {
  color: #fff8e8;
  border-color: var(--gold-bright);
  outline: none;
}

.read-panel {
  position: absolute;
  top: 3.4rem;
  right: 1rem;
  z-index: 50;
  width: min(22rem, calc(100% - 2rem));
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 12px;
  background: rgba(22, 16, 12, 0.96);
  border: 1px solid rgba(196, 165, 116, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.read-panel[hidden] {
  display: none;
}

.read-ctrl {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.read-ctrl + .read-ctrl {
  margin-top: 0.95rem;
}

.read-ctrl-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: none;
  letter-spacing: 0;
}

.read-ctrl-row span:first-child {
  font-size: 0.85rem;
  opacity: 0.7;
}

.read-ctrl-row span:last-child {
  font-size: 1.2rem;
}

.read-panel input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
  height: 1.4rem;
}

.view-reader:fullscreen,
.view-reader:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0.6rem 0.7rem 0.8rem;
}

.desk {
  perspective: 2100px;
  perspective-origin: 50% 36%;
  overflow: visible;
}

.book {
  --book-w: min(96vw, 1600px);
  position: relative;
  width: var(--book-w);
  height: calc(100vh - 7.2rem);
  max-height: calc(100vh - 7.2rem);
  transform: rotateX(8.5deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 10px;
  overflow: visible;
  --leaf-left: 22px;
  --leaf-right: 22px;
  box-shadow:
    0 48px 80px rgba(6, 3, 1, 0.52),
    0 16px 32px rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(255, 220, 170, 0.08);
}

.book.is-flipping .page {
  pointer-events: none;
}

.flip-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.15rem;
  z-index: 5;
}

.flip-btn {
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(36, 26, 18, 0.72);
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
}

.flip-btn:hover,
.flip-btn:focus-visible {
  color: #fff8e8;
  border-color: var(--gold-bright);
  outline: none;
}

.flip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cover-board {
  position: absolute;
  top: -22px;
  bottom: -24px;
  width: 56px;
  z-index: 0;
  pointer-events: none;
  background-color: #3a1814;
  background-image:
    var(--paper-grain),
    radial-gradient(ellipse at 18% 8%, rgba(232, 186, 132, 0.42), transparent 38%),
    radial-gradient(ellipse at 78% 18%, rgba(90, 40, 28, 0.35), transparent 40%),
    radial-gradient(ellipse at 30% 92%, rgba(0, 0, 0, 0.55), transparent 48%),
    radial-gradient(ellipse at 70% 62%, rgba(160, 92, 62, 0.28), transparent 42%),
    radial-gradient(circle at 40% 34%, rgba(210, 150, 100, 0.22) 0 10%, transparent 32%),
    repeating-linear-gradient(118deg, transparent 0 9px, rgba(255, 226, 180, 0.11) 9px 10px),
    repeating-linear-gradient(22deg, transparent 0 14px, rgba(0, 0, 0, 0.2) 14px 15px),
    repeating-linear-gradient(168deg, transparent 0 19px, rgba(255, 200, 140, 0.07) 19px 20px),
    linear-gradient(180deg, #a45a48 0%, #6e342c 12%, #431c18 46%, #2a100e 78%, #140706 100%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal, normal, normal, normal;
  box-shadow:
    inset 4px 3px 10px rgba(255, 220, 170, 0.18),
    inset -6px -6px 16px rgba(0, 0, 0, 0.58),
    4px 12px 22px rgba(0, 0, 0, 0.42);
}

.cover-board.left {
  left: -56px;
  width: 56px;
  border-radius: 10px 2px 2px 10px;
  transform: perspective(520px) rotateY(16deg);
  transform-origin: right center;
}

.cover-board.right {
  right: -56px;
  width: 56px;
  border-radius: 2px 10px 10px 2px;
  transform: perspective(520px) rotateY(-16deg);
  transform-origin: left center;
}

.cover-board::before {
  content: "";
  position: absolute;
  inset: 7% 16% 7% 20%;
  border: 1.5px solid rgba(220, 184, 118, 0.62);
  box-shadow:
    inset 0 0 0 4px rgba(32, 12, 10, 0.7),
    inset 0 0 0 5.5px rgba(212, 178, 118, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.32);
  opacity: 0.95;
}

.cover-board::after {
  content: "";
  position: absolute;
  inset: 12% 24%;
  background:
    radial-gradient(circle at 50% 5%, rgba(228, 196, 128, 0.9) 0 2px, transparent 2.8px),
    radial-gradient(circle at 50% 95%, rgba(228, 196, 128, 0.82) 0 2px, transparent 2.8px),
    radial-gradient(circle at 50% 50%, rgba(196, 165, 116, 0.28) 0 2px, transparent 10px),
    linear-gradient(
      180deg,
      transparent 14%,
      rgba(228, 196, 128, 0.42) 14.5%,
      transparent 15.6%,
      transparent 84%,
      rgba(228, 196, 128, 0.36) 84.6%,
      transparent 85.8%
    );
  opacity: 0.88;
}

.cover-edge {
  position: absolute;
  top: -20px;
  bottom: -22px;
  width: 22px;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 220, 170, 0.1) 7px 8px),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(0, 0, 0, 0.22) 18px 19px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 36%, rgba(255, 200, 140, 0.18) 62%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, #8a4a3c, var(--leather) 18%, var(--leather-dark) 82%, #140808);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.48),
    inset 2px 0 8px rgba(255, 210, 150, 0.1);
  z-index: 0;
}

.cover-edge.left {
  left: -20px;
  border-radius: 8px 0 0 8px;
}

.cover-edge.right {
  right: -20px;
  border-radius: 0 8px 8px 0;
  width: 22px;
}

.paper-block {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(
      180deg,
      #fbf3e0 0 1.5px,
      #ead9b8 1.5px 2.5px,
      #d4c094 2.5px 3.5px,
      #c4ae82 3.5px 4.5px
    );
  background-blend-mode: multiply, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(70, 40, 10, 0.22);
}

.paper-block.top {
  top: -16px;
  height: 18px;
  border-radius: 3px 3px 0 0;
  transform: perspective(240px) rotateX(58deg);
  transform-origin: bottom center;
}

.paper-block.bottom {
  bottom: -18px;
  height: 20px;
  border-radius: 0 0 4px 4px;
  transform: perspective(240px) rotateX(-48deg);
  transform-origin: top center;
  box-shadow:
    inset 0 2px 5px rgba(70, 40, 10, 0.2),
    0 6px 12px rgba(0, 0, 0, 0.28);
}

.stack {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 26px;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    90deg,
    #f8eed8 0 1.5px,
    #e6d4b0 1.5px 2.5px,
    #d0ba92 2.5px 3.5px,
    #bca57a 3.5px 4.5px
  );
  box-shadow:
    inset -8px 0 12px rgba(70, 40, 8, 0.28),
    inset 0 0 10px rgba(80, 48, 12, 0.18),
    3px 0 8px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

.stack.right {
  right: 0;
  width: 26px;
  border-radius: 0 2px 2px 0;
}

.stack.left {
  left: 0;
  width: 26px;
  opacity: 1;
  box-shadow:
    inset 8px 0 12px rgba(70, 40, 8, 0.28),
    inset 0 0 10px rgba(80, 48, 12, 0.18),
    -3px 0 8px rgba(0, 0, 0, 0.22);
}

.leaf-pack {
  position: absolute;
  top: 8px;
  bottom: 10px;
  z-index: 1;
  pointer-events: none;
  background: #efe0c4;
}

.leaf-pack.right {
  right: -4px;
  width: 18px;
  border-radius: 0 3px 3px 0;
  box-shadow:
    2px 0 0 #e8d6b4,
    4px 1px 0 #decaaa,
    6px 1px 0 #d4c094,
    8px 2px 0 #cbb68a,
    10px 2px 0 #c2ad80,
    12px 3px 0 #b8a276,
    14px 4px 0 #ad986c,
    16px 5px 12px rgba(0, 0, 0, 0.3);
}

.leaf-pack.left {
  left: -4px;
  width: 18px;
  border-radius: 3px 0 0 3px;
  opacity: 1;
  box-shadow:
    -2px 0 0 #e8d6b4,
    -4px 1px 0 #decaaa,
    -6px 1px 0 #d4c094,
    -8px 2px 0 #cbb68a,
    -10px 2px 0 #c2ad80,
    -12px 3px 0 #b8a276,
    -14px 4px 0 #ad986c,
    -16px 5px 12px rgba(0, 0, 0, 0.3);
}

.leaf-cast {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  mix-blend-mode: multiply;
  background: linear-gradient(90deg, rgba(28, 12, 2, 0.58), rgba(28, 12, 2, 0.16) 46%, transparent 82%);
}

.leaf-cast.from-right {
  right: 0;
  left: auto;
}

.leaf-cast.from-left {
  left: 0;
  right: auto;
  background: linear-gradient(270deg, rgba(28, 12, 2, 0.58), rgba(28, 12, 2, 0.16) 46%, transparent 82%);
}

.ribbon {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 13px;
  height: 82px;
  transform: translateX(18px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 40%, rgba(255, 180, 160, 0.12) 70%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #9a3a38, #7a2424 18%, #5c1c1c 72%, #3a1010);
  z-index: 24;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.34);
  opacity: 0.92;
}

.page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 78, 36, 0.035) 3px 4px),
    radial-gradient(ellipse at 9% 93%, rgba(128, 78, 28, 0.16), transparent 26%),
    radial-gradient(ellipse at 86% 7%, rgba(148, 92, 38, 0.11), transparent 22%),
    radial-gradient(ellipse at 72% 78%, rgba(110, 68, 24, 0.08), transparent 18%),
    linear-gradient(90deg, rgba(90, 55, 20, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), transparent 18%),
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.18), transparent 40%);
  background-blend-mode: multiply, multiply, normal, normal, normal, normal, normal, normal;
  color: var(--text);
}

.page-left {
  left: 0;
  z-index: 3;
  border-radius: 2px 0 0 2px;
  box-shadow: inset -18px 0 28px -18px rgba(70, 40, 10, 0.22);
}

.page-right {
  right: 0;
  z-index: 4;
  border-radius: 0 3px 3px 0;
  box-shadow: inset 18px 0 28px -18px rgba(70, 40, 10, 0.22);
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 78, 36, 0.035) 3px 4px),
    radial-gradient(ellipse at 91% 93%, rgba(128, 78, 28, 0.16), transparent 26%),
    radial-gradient(ellipse at 14% 7%, rgba(148, 92, 38, 0.11), transparent 22%),
    radial-gradient(ellipse at 28% 78%, rgba(110, 68, 24, 0.08), transparent 18%),
    linear-gradient(270deg, rgba(90, 55, 20, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), transparent 18%),
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.18), transparent 40%);
  background-blend-mode: multiply, multiply, normal, normal, normal, normal, normal, normal;
}

.page.is-clickable {
  cursor: pointer;
}

.page-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 7.5% 9% 11% 10%;
  overflow: hidden;
}

.page-right .page-inner {
  padding: 7.5% 10% 11% 9%;
}

.page-num {
  position: absolute;
  bottom: 4.2%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  pointer-events: none;
}

.spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 26px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 9;
  background: linear-gradient(
    90deg,
    rgba(18, 8, 2, 0.52),
    rgba(40, 22, 8, 0.12) 26%,
    rgba(255, 255, 255, 0.08) 49%,
    rgba(40, 22, 8, 0.12) 74%,
    rgba(18, 8, 2, 0.52)
  );
  box-shadow: 0 0 22px rgba(8, 3, 0, 0.28);
}

.binding {
  position: absolute;
  top: -22px;
  right: -60px;
  bottom: -24px;
  left: -58px;
  z-index: 46;
  display: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: left center;
  pointer-events: none;
  border-radius: 10px 12px 12px 10px;
}

.binding.is-shown {
  display: block;
  transform: rotateY(0deg);
}

.binding.is-open {
  transform: rotateY(-158deg);
  transition: transform 1.35s cubic-bezier(0.22, 0.72, 0.18, 1);
}

.binding-front,
.binding-inside {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.binding-front {
  background-color: #3a1814;
  background-image:
    var(--paper-grain),
    radial-gradient(ellipse at 18% 10%, rgba(232, 186, 132, 0.38), transparent 36%),
    radial-gradient(ellipse at 82% 18%, rgba(80, 28, 18, 0.42), transparent 40%),
    radial-gradient(ellipse at 28% 88%, rgba(0, 0, 0, 0.5), transparent 46%),
    radial-gradient(ellipse at 70% 58%, rgba(160, 92, 62, 0.22), transparent 42%),
    radial-gradient(circle at 12% 70%, rgba(0, 0, 0, 0.28) 0 8%, transparent 22%),
    radial-gradient(circle at 88% 24%, rgba(210, 150, 100, 0.18) 0 6%, transparent 18%),
    repeating-linear-gradient(118deg, transparent 0 10px, rgba(255, 226, 180, 0.08) 10px 11px),
    repeating-linear-gradient(24deg, transparent 0 15px, rgba(0, 0, 0, 0.16) 15px 16px),
    linear-gradient(165deg, #a45a48 0%, #6e342c 14%, #431c18 48%, #2a100e 82%, #140706 100%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal, normal, normal, normal;
  box-shadow:
    inset 6px 8px 18px rgba(255, 220, 170, 0.16),
    inset -10px -12px 22px rgba(0, 0, 0, 0.55),
    8px 18px 28px rgba(0, 0, 0, 0.4);
}

.binding-front::before {
  content: "";
  position: absolute;
  inset: 5.5% 6.5%;
  border: 1.5px solid rgba(228, 196, 128, 0.72);
  box-shadow:
    inset 0 0 0 5px rgba(28, 10, 8, 0.55),
    inset 0 0 0 6.5px rgba(212, 178, 118, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.binding-front::after {
  content: "";
  position: absolute;
  inset: 9% 10.5%;
  border: 1px solid rgba(228, 196, 128, 0.28);
  pointer-events: none;
}

.binding-plate {
  position: absolute;
  inset: 18% 16% 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 8% 7%;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(90, 40, 28, 0.18), rgba(20, 8, 6, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(228, 196, 128, 0.28),
    inset 0 0 0 7px rgba(32, 12, 10, 0.35);
}

.binding-mark {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: clamp(0.62rem, 1.3vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e6c97a;
  text-shadow: 0 1px 0 rgba(70, 36, 8, 0.7);
}

.binding-mark::before,
.binding-mark::after {
  content: "";
  display: block;
  width: min(42%, 7.5rem);
  height: 1px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, transparent, #e6c97a 20%, #e6c97a 80%, transparent);
  opacity: 0.75;
}

.binding-mark::before {
  margin: 0 auto 0.55rem;
}

.binding-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 4.4vw, 3.15rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: #f0d78a;
  text-shadow:
    0 1px 0 #fff4c8,
    0 2px 0 #8a6418,
    0 3px 0 #5c4210,
    0 4px 8px rgba(20, 8, 2, 0.45);
}

.binding-author {
  margin: 0.15rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: #d7b56a;
  text-shadow: 0 1px 0 rgba(70, 36, 8, 0.65);
}

.binding-inside {
  transform: rotateY(180deg);
  background-color: #ead6b4;
  background-image:
    var(--paper-grain),
    radial-gradient(ellipse at 22% 28%, rgba(150, 42, 38, 0.32), transparent 42%),
    radial-gradient(ellipse at 78% 72%, rgba(48, 62, 88, 0.26), transparent 44%),
    radial-gradient(ellipse at 50% 50%, rgba(180, 90, 50, 0.16), transparent 52%),
    repeating-radial-gradient(circle at 32% 40%, rgba(140, 36, 32, 0.1) 0 7px, transparent 7px 20px),
    linear-gradient(165deg, #f3e2c4, #dcc39a);
  background-blend-mode: multiply, normal, normal, normal, normal, normal;
  box-shadow: inset 18px 0 28px rgba(70, 30, 10, 0.18);
}

.book.is-bound .cover-board.left {
  opacity: 0;
}

.view-reader.is-covering .flip-nav {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .binding.is-open {
    transition: none;
  }
}

.flipper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: left center;
  pointer-events: none;
  z-index: 30;
  display: none;
}

.flipper.is-on {
  display: block;
}

.flipper.from-right.is-on {
  box-shadow:
    -1px 0 0 #f7eedc,
    -2px 0 0 #ead9b8,
    -3px 0 0 #d4c094,
    -22px 16px 38px rgba(10, 4, 0, 0.4);
}

.flipper.from-left.is-on {
  box-shadow:
    1px 0 0 #f7eedc,
    2px 0 0 #ead9b8,
    3px 0 0 #d4c094,
    22px 16px 38px rgba(10, 4, 0, 0.4);
}

.flipper.from-right {
  right: 0;
  left: auto;
  transform-origin: left center;
}

.flipper.from-left {
  left: 0;
  right: auto;
  transform-origin: right center;
}

.flipper.from-right .face.front .page-inner,
.flipper.from-left .face.back .page-inner {
  padding: 7.5% 10% 11% 9%;
}

.flipper.from-right .face.back .page-inner,
.flipper.from-left .face.front .page-inner {
  padding: 7.5% 9% 11% 10%;
}

.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: var(--paper);
  color: var(--text);
}

.face.front {
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 78, 36, 0.04) 3px 4px),
    radial-gradient(ellipse at 88% 92%, rgba(128, 78, 28, 0.14), transparent 24%),
    linear-gradient(270deg, rgba(90, 55, 20, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), transparent 18%);
  background-blend-mode: multiply, multiply, normal, normal, normal;
}

.face.back {
  background-color: var(--paper-back);
  transform: rotateY(180deg);
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 78, 36, 0.04) 3px 4px),
    radial-gradient(ellipse at 12% 90%, rgba(128, 78, 28, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(90, 55, 20, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.2), transparent 18%);
  background-blend-mode: multiply, multiply, normal, normal, normal;
}

.flipper.from-left .face.front {
  background-image:
    var(--paper-grain),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(120, 78, 36, 0.04) 3px 4px),
    radial-gradient(ellipse at 12% 92%, rgba(128, 78, 28, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(90, 55, 20, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), transparent 18%);
  background-blend-mode: multiply, multiply, normal, normal, normal;
}

.face .page-inner {
  height: 100%;
}

.shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(
    90deg,
    rgba(40, 20, 5, 0.42),
    rgba(40, 20, 5, 0.05) 36%,
    rgba(255, 240, 210, 0.18) 58%,
    rgba(40, 20, 5, 0.38)
  );
  opacity: 0;
}

.curl {
  position: absolute;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 6;
}

.page-right .curl {
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 48%, #efe0c0 48%, #d9c49a);
  box-shadow: -6px -6px 14px rgba(40, 20, 8, 0.18);
  animation: peel 1.8s ease-in-out infinite;
}

.page-left .curl {
  left: 0;
  bottom: 0;
  opacity: 0.55;
  background: linear-gradient(-135deg, transparent 48%, #efe0c0 48%, #d9c49a);
}

.page-right:not(.is-clickable) .curl,
.page-left:not(.is-clickable) .curl {
  display: none;
}

.book.is-flipping .curl {
  display: none;
}

@keyframes peel {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -5px); }
}

.prose p {
  margin: 0 0 0.95em;
  font-size: calc(var(--read-size, 1) * clamp(0.98rem, 1.35vw, 1.18rem));
  line-height: 1.68;
  text-align: justify;
  color: var(--text);
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  white-space: pre-line;
}

.prose p:last-child {
  margin-bottom: 0;
}

.title-page,
.end-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8%;
}

.title-page .kicker,
.end-page .kicker {
  margin: 0 0 1.2rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dim);
}

.title-page h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
}

.title-rule {
  width: 56px;
  height: 1px;
  margin: 1.3rem 0 1.1rem;
  background: var(--gold);
  opacity: 0.75;
}

.title-page .by {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
}

.title-page .when {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
}

.end-page .mark {
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--muted);
}

.blank-page {
  height: 100%;
}

.measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

body.is-reading {
  overflow: hidden;
}

body.is-reading .nv-chrome,
body.is-reading .nv-end {
  display: none;
}

.read-type-hint {
  display: none;
}

.read-peek {
  display: none;
}

.peek-label {
  display: none;
}

@media (max-width: 760px) {
  .view-home nav,
  .shelf {
    width: calc(100% - 1.6rem);
  }

  .toc-title,
  .toc-by {
    text-align: left;
    white-space: normal;
  }

  .view-reader {
    --nv-rail-pad: 0.31rem;
    --nv-ctrl: 1.125rem;
    --nv-rail: calc(var(--nv-ctrl) + var(--nv-rail-pad) * 2);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    gap: 0;
    background: var(--paper);
    perspective: 1200px;
    -webkit-perspective: 1200px;
    perspective-origin: 50% 48%;
  }

  .view-reader.is-open {
    display: flex;
    z-index: 80;
  }

  .reader-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    flex: 0 0 auto;
    min-height: calc(var(--nv-rail) + env(safe-area-inset-top));
    margin: 0;
    padding: calc(var(--nv-rail-pad) + env(safe-area-inset-top)) 0.6rem var(--nv-rail-pad);
    background: var(--paper-2);
    border-bottom: 1px solid rgba(90, 55, 20, 0.16);
    z-index: 70;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .back-btn,
  .nav-hint {
    color: var(--text);
    font-size: 0.68rem;
    padding: 0;
    min-height: var(--nv-ctrl);
    display: flex;
    align-items: center;
  }

  .read-aa {
    height: var(--nv-ctrl);
    min-width: var(--nv-ctrl);
    font-size: 0.78rem;
    padding: 0 0.35rem;
  }

  .read-panel {
    top: calc(var(--nv-rail) + env(safe-area-inset-top));
    right: 0.55rem;
    z-index: 75;
  }

  .read-type-hint {
    display: none;
    margin-left: auto;
    max-width: 58%;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #1a8f4a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: left;
    pointer-events: auto;
    animation: nvReadTypeHint 2.2s ease forwards;
  }

  .read-type-hint.is-on {
    display: inline-flex;
    align-items: center;
  }

  .view-reader.ui-on .read-type-hint {
    display: none;
  }

  .read-peek {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin-left: auto;
    z-index: 2;
    width: auto;
    min-width: 2.6rem;
    height: var(--nv-ctrl);
    padding: 0 0.55rem;
    border: 1px solid rgba(196, 165, 116, 0.55);
    border-radius: 999px;
    background: rgba(18, 14, 11, 0.92);
    box-shadow: none;
    color: var(--gold-bright);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    pointer-events: auto;
  }

  .peek-label {
    display: inline;
  }

  .peek-burger,
  .peek-burger::before,
  .peek-burger::after {
    display: none;
  }

  .view-reader:not(.ui-on) .back-btn,
  .view-reader:not(.ui-on) .nav-hint,
  .view-reader:not(.ui-on) .page-mark,
  .view-reader:not(.ui-on) .read-aa {
    display: none;
  }

  .view-reader:not(.ui-on) .read-type-hint.is-on + .read-peek {
    margin-left: 0.35rem;
  }

  .view-reader.ui-on .read-peek {
    display: none;
  }

  @keyframes nvReadTypeHint {
    0% {
      opacity: 0;
      transform: translateY(6px) scale(0.92);
    }
    12% {
      opacity: 1;
      transform: translateY(0) scale(1.04);
    }
    82% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(4px) scale(0.96);
    }
  }

  .desk {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    perspective-origin: 50% 48%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .book,
  .book.is-flipping {
    --book-w: 100%;
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    overflow: visible;
  }

  .page-left,
  .stack,
  .ribbon,
  .spine,
  .cover-edge,
  .cover-board,
  .paper-block,
  .leaf-cast,
  .leaf-pack,
  .curl {
    display: none;
  }

  .binding {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
  }

  .binding.is-open {
    transform: rotateY(-168deg);
  }

  .binding-title {
    max-width: 14ch;
    font-size: clamp(1.45rem, 8vw, 2.4rem);
  }

  .page-right,
  .flipper,
  .flipper.from-right,
  .flipper.from-left {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .flipper.from-right {
    transform-origin: left center;
  }

  .flipper.from-left {
    transform-origin: right center;
  }

  .page-right {
    touch-action: manipulation;
    transform: translateZ(0);
  }

  .flipper {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    z-index: 30;
  }

  .flipper.is-turn {
    box-shadow: -14px 10px 28px rgba(20, 10, 0, 0.3);
  }

  .flipper.is-turn .face.front,
  .flipper.is-turn .face.back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .flipper.is-turn .face.back {
    background-color: var(--paper);
    background-image:
      linear-gradient(270deg, rgba(90, 55, 20, 0.07), transparent 14%),
      linear-gradient(180deg, rgba(255, 250, 235, 0.35), transparent 18%);
  }

  .flipper.from-right .face.front .page-inner,
  .flipper.from-left .face.back .page-inner,
  .flipper.from-right .face.back .page-inner,
  .flipper.from-left .face.front .page-inner {
    padding: 1.05rem 7% 1.15rem;
  }

  .flipper.is-anim-fwd {
    animation: nv-flip-fwd 0.72s cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
  }

  .flipper.is-anim-back {
    animation: nv-flip-back 0.72s cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
  }

  .flipper.is-anim-fwd .shine,
  .flipper.is-anim-back .shine {
    animation: nv-flip-shine 0.72s ease-in-out forwards;
  }

  .shine {
    mix-blend-mode: multiply;
  }

  .flip-nav {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    flex: 0 0 auto;
    min-height: calc(var(--nv-rail) + env(safe-area-inset-bottom));
    margin: 0;
    padding: var(--nv-rail-pad) 0.6rem calc(var(--nv-rail-pad) + env(safe-area-inset-bottom));
    z-index: 70;
    background: var(--paper-2);
    border-top: 1px solid rgba(90, 55, 20, 0.16);
    gap: 0.65rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .flip-btn {
    flex: 1;
    height: var(--nv-ctrl);
    min-height: var(--nv-ctrl);
    padding: 0 0.7rem;
    font-size: 0.68rem;
    touch-action: manipulation;
  }

  .view-reader:not(.ui-on) .flip-btn {
    visibility: hidden;
    pointer-events: none;
  }

  .prose p {
    font-size: calc(var(--read-size, 1) * 1.08rem);
    text-align: left;
  }

  .page-inner,
  .page-right .page-inner {
    padding: 1.05rem 7% 1.15rem;
  }

  .auth-btn {
    min-width: 7.4rem;
    padding: 0.62rem 1.1rem;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toc a,
  .page-right .curl {
    animation: none;
    transition: none;
  }

  .view-home::before {
    animation: none;
  }

  .flipper.is-anim-fwd,
  .flipper.is-anim-back,
  .flipper.is-anim-fwd .shine,
  .flipper.is-anim-back .shine {
    animation: none;
  }
}

@keyframes lamp-breathe {
  0%,
  100% { opacity: calc(var(--lamp, 0.7) * 0.72); }
  50% { opacity: var(--lamp, 0.7); }
}

@keyframes nv-flip-fwd {
  0% {
    transform: rotateY(0deg) translate3d(0, 0, 2px);
  }
  46% {
    transform: rotateY(-94deg) translate3d(0, 3px, 26px);
  }
  100% {
    transform: rotateY(-180deg) translate3d(0, 0, 2px);
  }
}

@keyframes nv-flip-back {
  0% {
    transform: rotateY(0deg) translate3d(0, 0, 2px);
  }
  46% {
    transform: rotateY(94deg) translate3d(0, 3px, 26px);
  }
  100% {
    transform: rotateY(180deg) translate3d(0, 0, 2px);
  }
}

@keyframes nv-flip-shine {
  0%,
  100% { opacity: 0.1; }
  40% { opacity: 0.9; }
}
