:root {
  --soul-shared-style-contract: shared-v1;
  --soul-ink: #28231d;
  --soul-paper: #f1e8d7;
  --soul-paper-deep: #d9c8a9;
  --soul-leather: #1a1612;
  --soul-gold: #d4b068;
  --soul-gold-soft: rgba(212, 176, 104, 0.62);
  --soul-relief-light: rgba(248, 229, 180, 0.88);
  --soul-relief-dark: rgba(54, 33, 12, 0.96);
  --soul-night: #050505;
  --soul-serif: "Noto Serif SC Variable", "Songti SC", "STSong", "Source Han Serif SC", SimSun, serif;
  --soul-sans: "Noto Sans SC Variable", "FZLanTingHeiS", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --soul-reading-font: var(--soul-serif);
  --soul-reading-title-size: 40px;
  --soul-article-title-size: 14px;
  --soul-section-title-size: 36px;
  --soul-section-summary-size: 15px;
  --soul-contents-section-size: 22px;
  --soul-bookend-icon-size: 18px;
  --soul-playback-control-icon-size: 19px;
  --soul-page-edge-control-size: 42px;
  --soul-page-edge-control-gap: 8px;
  --soul-page-edge-playback-offset: 104px;
  --soul-reading-title-color: #17130f;
  --soul-reading-title-weight: 600;
  --soul-article-title-color: #77695c;
  --soul-article-title-weight: 400;
  --soul-article-title-divider-color: #cec8be;
  --soul-section-title-color: #201913;
  --soul-section-title-weight: 600;
  --soul-section-summary-color: #5f5449;
  --soul-section-summary-weight: 400;
  --soul-contents-section-color: #33261b;
  --soul-contents-section-weight: 700;
  --soul-heading-divider-gap: 34px;
  --soul-heading-body-gap: 36px;
  --soul-heading-divider-width: 76px;
  --soul-heading-divider-color: rgba(40, 35, 29, 0.28);
  --soul-reading-body-size: 20px;
  --soul-reading-body-weight: 400;
  --soul-reading-h2-size: 27px;
  --soul-reading-h2-weight: 650;
  --soul-reading-h2-color: #281f19;
  --soul-reading-h2-margin-top: 18px;
  --soul-reading-h2-margin-bottom: 16px;
  --soul-reading-h2-underline-thickness: 2px;
  --soul-reading-h2-underline-radius: 40px;
  --soul-reading-h2-underline-gap: 8px;
  --soul-reading-h3-size: 23px;
  --soul-reading-h3-weight: 650;
  --soul-reading-h3-color: #281f19;
  --soul-reading-h3-margin-top: 16px;
  --soul-reading-h3-margin-bottom: 13px;
  --soul-reading-h3-underline-thickness: 2px;
  --soul-reading-h3-underline-radius: 40px;
  --soul-reading-h3-underline-gap: 7px;
  --soul-reading-h4-size: 19px;
  --soul-reading-h4-weight: 650;
  --soul-reading-h4-color: #281f19;
  --soul-reading-h4-margin-top: 14px;
  --soul-reading-h4-margin-bottom: 11px;
  --soul-reading-h4-underline-thickness: 1px;
  --soul-reading-h4-underline-radius: 40px;
  --soul-reading-h4-underline-gap: 6px;
  --soul-reading-line-height: 2.18;
  --soul-reading-paragraph-spacing: 18px;
  --soul-reading-paragraph-indent: 2em;
  --soul-reading-text-color: #2e2825;
  --soul-bookend-nav-color: #9a8b79;
  --soul-article-category-font: var(--soul-sans);
  --soul-article-category-size: 11px;
  --soul-article-category-weight: 400;
  --soul-article-category-left-color: #9b7749;
  --soul-article-category-right-color: #9b7749;
  --soul-reading-link-color: #6f4f2c;
  --soul-reading-link-hover-color: #2f2217;
  --soul-reading-link-weight: 400;
  --soul-reading-link-underline-gap: 4px;
  --soul-reading-link-marker-radius: 6px;
  --soul-reading-link-decoration-line: underline;
  --soul-reading-link-decoration-style: solid;
  --soul-reading-link-decoration-color: rgba(111, 79, 44, 0.38);
  --soul-reading-link-decoration-thickness: 1px;
  --soul-reading-link-marker-height: 0px;
  --soul-reading-link-marker-color: transparent;
  --soul-reading-image-radius: 8px;
  --soul-reading-image-border-width: 6px;
  --soul-reading-image-border-color: #fffaf1;
  --soul-reading-image-shadow-blur: 18px;
  --soul-reading-image-shadow-alpha: 0.18;
  --soul-reading-image-tone: 0.18;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: var(--soul-night);
}

body.so-music-theme-body {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--soul-night);
  color: var(--soul-paper);
  font-family: var(--soul-sans);
}

body.admin-bar .soul-home__stage {
  height: 100%;
}

.soul-home,
.soul-home *,
.soul-home *::before,
.soul-home *::after {
  box-sizing: border-box;
}

.soul-home {
  position: absolute;
  top: var(--soul-visible-viewport-top, 0px);
  left: var(--soul-visible-viewport-left, 0px);
  width: var(--soul-visible-viewport-width, 100%);
  height: var(--soul-visible-viewport-height, 100svh);
  min-height: 0;
  overflow: clip;
}

.soul-home--lazy-reader {
  display: grid;
}

.soul-home--lazy-reader > .soul-home__stage,
.soul-home--lazy-reader > .soul-home__reader-fallback {
  grid-area: 1 / 1;
}

.soul-home--lazy-reader > .soul-home__stage:not(.is-book-ready) {
  pointer-events: none;
}

/* Reveal the same template cover only for the existing failed-start state. */
.soul-home__stage[data-soul-book-mode="s4"].is-book-failed:not(.is-book-ready):not(.is-book-compiling) .soul-home__book-viewport {
  visibility: visible;
}

.soul-home__stage[data-soul-book-mode="s4"]:not(.is-book-ready):not(.is-book-compiling) .soul-home__scale-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 570px;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(var(--soul-entry-scale, 0.4));
}

.soul-home__stage[data-soul-book-mode="s4"]:not(.is-book-ready):not(.is-book-compiling) .soul-home__book-wrapper {
  width: 570px;
}

.soul-home__stage[data-soul-book-mode="s4"].is-book-failed:not(.is-book-ready):not(.is-book-compiling) .soul-book__page[data-page-key="cover"] {
  visibility: visible !important;
}

/* PageFlip can explicitly reveal descendants while preparing its first spread. */
.soul-home__stage[data-soul-book-mode="s4"]:not(.is-book-ready):not(.is-book-failed) .soul-home__book-viewport {
  opacity: 0;
  pointer-events: none;
}

.soul-home__stage[data-soul-book-mode="s4"]:not(.is-book-ready):not(.is-book-failed) .soul-home__book-viewport * {
  visibility: hidden !important;
}

.soul-home__reader-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding:
    max(26px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(30px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  overflow: auto;
  color: #2d251d;
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 176, 104, 0.24), transparent 34%),
    linear-gradient(145deg, #18120d 0%, #38291b 48%, #100d0a 100%);
  scrollbar-color: rgba(212, 176, 104, 0.55) transparent;
}

.soul-home--lazy-reader > .soul-home__reader-fallback {
  visibility: hidden;
}

.soul-home--lazy-reader.is-reader-fallback-visible > .soul-home__reader-fallback {
  visibility: visible;
}

.soul-home__reader-fallback[hidden] {
  display: none;
}

.soul-home__reader-fallback-shell {
  width: min(1120px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid rgba(239, 213, 158, 0.42);
  border-radius: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(rgba(252, 246, 232, 0.94), rgba(238, 226, 203, 0.97)),
    var(--soul-paper);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.82);
}

.soul-home__reader-fallback-header {
  display: grid;
  gap: 12px;
  padding-bottom: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid rgba(72, 51, 31, 0.24);
}

.soul-home__reader-fallback-header > p {
  margin: 0;
  color: #8a6338;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.soul-home__reader-fallback-header h1 {
  margin: 0;
  color: #201812;
  font-family: var(--soul-serif);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.soul-home__reader-fallback-header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6d5b49;
  font-size: 13px;
}

.soul-home__reader-fallback-header > div span {
  padding: 7px 12px;
  border: 1px solid rgba(110, 79, 44, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.58);
}

.soul-home__reader-fallback-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  padding-block: clamp(28px, 5vw, 54px);
}

.soul-home__reader-fallback-sections > section {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(82, 57, 34, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.58);
  box-shadow: 0 10px 30px rgba(67, 47, 27, 0.08);
}

.soul-home__reader-fallback-sections header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(82, 57, 34, 0.14);
}

.soul-home__reader-fallback-sections h2 {
  margin: 0;
  color: #2c2118;
  font-family: var(--soul-serif);
  font-size: clamp(22px, 3vw, 30px);
}

.soul-home__reader-fallback-sections header a,
.soul-home__reader-fallback-footer a {
  color: #74502e;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.soul-home__reader-fallback-sections ul {
  display: grid;
  gap: 8px;
  padding: 16px 0 0;
  margin: 0;
  list-style: none;
}

.soul-home__reader-fallback-sections li > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #31271f;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.soul-home__reader-fallback-sections li > a:hover,
.soul-home__reader-fallback-sections li > a:focus-visible {
  color: #16100c;
  background: rgba(212, 176, 104, 0.2);
  transform: translateX(3px);
}

.soul-home__reader-fallback-sections li strong {
  min-width: 0;
  overflow: hidden;
  font-family: var(--soul-serif);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-home__reader-fallback-sections li time {
  color: #8a7968;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.soul-home__reader-fallback-sections li span {
  display: -webkit-box;
  grid-column: 1 / -1;
  overflow: hidden;
  color: #75685b;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.soul-home__reader-fallback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(72, 51, 31, 0.2);
  color: #746454;
  font-size: 12px;
}

body.admin-bar .soul-home {
  top: calc(var(--soul-visible-viewport-top, 0px) + 32px);
  height: calc(var(--soul-visible-viewport-height, 100svh) - 32px);
}

.soul-home__reader-status,
.soul-home__screen-reader-title,
.soul-home .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.soul-home__stage {
  --soul-stage-bg: none;
  --soul-stage-texture-opacity: 0;
  --soul-stage-background-color: #251c13;
  --soul-stage-gradient-base: #050505;
  --soul-stage-gradient-glow: #4f3c23;
  --soul-cover-base: #1a1612;
  --soul-cover-texture: none;
  --soul-cover-overlay: transparent;
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding:
    max(clamp(28px, 4vh, 48px), env(safe-area-inset-top))
    max(clamp(18px, 4vw, 64px), env(safe-area-inset-right))
    max(clamp(28px, 4vh, 48px), env(safe-area-inset-bottom))
    max(clamp(18px, 4vw, 64px), env(safe-area-inset-left));
  border: 0;
  overflow: hidden;
  background-color: var(--soul-stage-background-color);
  background-image: radial-gradient(circle at 50% 0%, var(--soul-stage-gradient-glow) 0%, var(--soul-stage-gradient-base) 80%);
  background-attachment: fixed;
  background-position: 0 0;
  background-size: auto;
}

.soul-home__stage::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--soul-stage-bg);
  background-position: center;
  background-size: cover;
  content: "";
  opacity: var(--soul-stage-texture-opacity);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.soul-home__stage-shade {
  display: none;
}

.soul-home__reader-status[hidden] {
  display: none;
}

.soul-home__topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: min(100% - 36px, 1440px);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(212, 176, 104, 0.18);
}

.soul-home__brand,
.soul-home__top-cta,
.soul-home__bottom-cta,
.soul-home__module a,
.soul-book__inside-link {
  color: inherit;
  text-decoration: none;
}

.soul-home__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(238, 210, 153, 0.82);
  font-family: var(--soul-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.soul-home__brand svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.soul-home__top-cta,
.soul-home__bottom-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(212, 176, 104, 0.52);
  border-radius: 999px;
  color: #eed299;
  background: rgba(18, 13, 8, 0.46);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.soul-home__top-cta:hover,
.soul-home__bottom-cta:hover {
  color: #1a130b;
  background: var(--soul-gold);
  transform: translateY(-2px);
}

.soul-home__book-viewport {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  overflow: visible;
}

.soul-home__stage.is-book-booting .soul-home__book-viewport {
  visibility: hidden;
}

.soul-home--lazy-reader > .soul-home__stage[data-native-font-startup] {
  pointer-events: auto;
}

.soul-home__stage[data-native-font-startup] .soul-home__book-viewport {
  visibility: visible;
}

.soul-home__stage[data-native-font-startup] .soul-home__scale-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 570px !important;
  transform-origin: center !important;
  transform: translate(-50%, -50%) scale(var(--soul-entry-scale, 0.4)) !important;
}

.soul-home__stage[data-native-font-startup] .soul-home__book-wrapper {
  width: 570px !important;
  transform: none !important;
}

.soul-home__stage[data-native-font-startup] .soul-book__cover-content {
  visibility: hidden;
}

[data-native-font-startup-panel] {
  position: absolute;
  inset: 80px 50px;
  z-index: 1;
  padding: 24px;
  overflow: auto;
  color: var(--soul-ink);
  background: var(--soul-paper);
  font: 20px/1.6 sans-serif;
}

[data-native-font-recovery],
[data-native-font-recovery] button {
  font-family: sans-serif;
}

.soul-home__scale-wrapper {
  width: 1140px;
  height: 800px;
  transform-origin: center;
  will-change: transform;
}

.soul-home__book-wrapper {
  position: relative;
  width: 1140px;
  height: 800px;
  filter: none;
  transition: transform 650ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.soul-home__stage.is-mobile-book {
  padding:
    max(12px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

.soul-home__stage.is-tablet-landscape-book {
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

.soul-home__stage.is-apple-standalone-book {
  padding-top: max(24px, env(safe-area-inset-top));
}

.soul-home__stage.is-mobile-book .soul-home__scale-wrapper {
  width: 1140px;
  transform-origin: left center;
}

.soul-home__stage.is-mobile-book .soul-home__book-wrapper {
  transition-delay: var(--soul-book-camera-delay, 0ms);
  transition-duration: var(--soul-book-camera-duration, 300ms);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.soul-home__stage.is-mobile-book[data-book-camera-motion="instant"] .soul-home__book-wrapper {
  transition-delay: 0ms;
  transition-duration: 0ms;
}

.soul-home__stage.is-mobile-book[data-book-camera-motion="turn"] .soul-home__book-wrapper {
  transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
}

.soul-home__stage.is-mobile-book[data-book-camera-motion="bookend"] .soul-home__book-wrapper {
  transition-timing-function: cubic-bezier(0.32, 0.72, 0.2, 1);
}

.soul-home__stage.is-mobile-book .soul-book__page:not(.is-mobile-active-page) {
  pointer-events: none !important;
}

.soul-home__stage.is-mobile-book:not(.is-book-flipping) .soul-book__page:not(.is-mobile-spread-page) {
  visibility: hidden !important;
}

.soul-home__stage.is-mobile-book:not(.is-book-flipping) .soul-book__page.is-mobile-spread-page,
.soul-home__stage.is-mobile-book.is-book-flipping .soul-book__page {
  visibility: visible !important;
}

.soul-home__stage.is-book-booting .soul-home__book-wrapper,
.soul-home__stage.is-book-compiling .soul-home__book-wrapper {
  transition: none;
}

.soul-home__stage.is-book-booting[data-soul-book-mode="native"][data-native-font-startup] .soul-book__page[data-page-key="cover"] {
  visibility: visible !important;
  pointer-events: auto !important;
}

.soul-home__book-ground-shadow {
  position: absolute;
  z-index: 0;
  bottom: -50px;
  left: var(--soul-book-shadow-left, 570px);
  width: var(--soul-book-shadow-width, 570px);
  height: 64px;
  background: radial-gradient(
    ellipse at 50% 20%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 38%,
    rgba(0, 0, 0, 0.14) 60%,
    transparent 78%
  );
  filter: blur(8px);
  pointer-events: none;
  transform: scaleX(0.96);
  transform-origin: center top;
  transition:
    left 420ms cubic-bezier(0.25, 1, 0.5, 1),
    width 420ms cubic-bezier(0.25, 1, 0.5, 1);
}

.soul-book {
  position: relative;
  z-index: 1;
  width: 1140px;
  height: 800px;
}

.soul-book__bookend-fan {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  perspective: 3400px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}

.soul-book__bookend-fan-leaf {
  position: absolute;
  top: 0;
  width: 570px;
  height: 800px;
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform;
  animation-duration: 320ms;
  animation-delay: var(--soul-bookend-fan-delay, 0ms);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0.2, 1);
}

.soul-book__bookend-fan--previous .soul-book__bookend-fan-leaf {
  left: 0;
  transform-origin: right center;
  animation-name: soul-book-bookend-fan-previous;
}

.soul-book__bookend-fan--next .soul-book__bookend-fan-leaf {
  left: 570px;
  transform-origin: left center;
  animation-name: soul-book-bookend-fan-next;
}

.soul-book__bookend-fan-face,
.soul-book__bookend-fan-page {
  position: absolute;
  inset: 0;
  width: 570px;
  height: 800px;
}

.soul-book__bookend-fan-face {
  overflow: hidden;
  backface-visibility: hidden;
}

.soul-book__bookend-fan-face--front,
.soul-book__bookend-fan-face--back {
  background-color: var(--soul-paper);
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.08),
      transparent 8%,
      transparent 92%,
      rgba(48, 36, 25, 0.09)
    ),
    url("../img/real-homepage/cream-paper.png");
}

.soul-book__bookend-fan-face--front {
  transform: translateZ(0.2px);
}

.soul-book__bookend-fan-face--back {
  transform: rotateY(180deg) translateZ(0.2px);
}

.soul-book__bookend-fan-face::after {
  position: absolute;
  inset: 0;
  border-inline-end: 1px solid rgba(59, 43, 29, 0.12);
  background: linear-gradient(
    to right,
    rgba(64, 46, 31, 0.09),
    transparent 7%,
    transparent 94%,
    rgba(255, 255, 255, 0.13)
  );
  content: "";
}

.soul-book__bookend-fan--previous .soul-book__bookend-fan-leaf {
  filter: drop-shadow(7px 2px 8px rgba(38, 27, 17, 0.1));
}

.soul-book__bookend-fan--next .soul-book__bookend-fan-leaf {
  filter: drop-shadow(-7px 2px 8px rgba(38, 27, 17, 0.1));
}

.soul-book__bookend-fan-page {
  display: block !important;
  margin: 0;
  pointer-events: none;
}

@keyframes soul-book-bookend-fan-previous {
  0% {
    opacity: 0;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.15px)) rotateY(0deg);
  }

  7% {
    opacity: 1;
  }

  42% {
    opacity: 1;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.7px)) rotateY(74deg);
  }

  68% {
    opacity: 1;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.35px)) rotateY(128deg);
  }

  100% {
    opacity: 0;
    transform: translateZ(0) rotateY(180deg);
  }
}

@keyframes soul-book-bookend-fan-next {
  0% {
    opacity: 0;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.15px)) rotateY(0deg);
  }

  7% {
    opacity: 1;
  }

  42% {
    opacity: 1;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.7px)) rotateY(-74deg);
  }

  68% {
    opacity: 1;
    transform: translateZ(calc(var(--soul-bookend-fan-depth, 1) * 0.35px)) rotateY(-128deg);
  }

  100% {
    opacity: 0;
    transform: translateZ(0) rotateY(-180deg);
  }
}

.soul-book:not(.stf__parent) .soul-book__page:not(:first-child) {
  display: none;
}

.soul-book__page {
  --soul-endpaper-paint-image: url("../img/real-homepage/cream-paper.png");
  position: relative;
  width: 570px;
  height: 800px;
  overflow: hidden;
  color: var(--soul-ink);
  background-color: var(--soul-paper);
  background-image: url("../img/real-homepage/cream-paper.png");
  font-family: var(--soul-serif);
}

.soul-book__page.--simple {
  /* Keep settled text on the same compositing path used by the turning page. */
  transform: translate3d(0, 0, 0);
}

.soul-book__page .so-yinliu-dock__shell {
  /* Let the physical face own text rasterization; keep the progress thumb's
     separate animation layer untouched. */
  transform: none;
  will-change: auto;
}

.soul-book__paint-surface {
  /* A full paper-sized paint owner, not a larger pagination/content box. */
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--soul-paper);
  background-image: var(--soul-right-page-paint-image, url("../img/real-homepage/cream-paper.png"));
  transform: perspective(var(--soul-page-paint-perspective));
  will-change: transform;
}

.soul-book__page.soul-book__reading-page.has-paint-surface {
  /* Move the fixed box clip inward without restoring an outer preserve-3d
     context. PageFlip's original fold path and transform stay on this leaf. */
  overflow: visible;
  transform-style: flat;
  background-color: transparent;
  background-image: none;
}

/* Book-only capsule: retain the existing audio owner and four-column list. */
.soul-book__page .so-yinliu-dock {
  --book-player-radius: calc(var(--yinliu-cover-size) / 2);
  --book-disc-size: calc(var(--yinliu-cover-size) * .86);
  --yinliu-step-size: calc(var(--yinliu-cover-size) * .245);
  --yinliu-toggle-size: calc(var(--yinliu-cover-size) * .328);
}

.soul-book__page .so-yinliu-dock__device {
  border: 1px solid #bfaa93;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 1px 3px #4e341c24, 0 -1px 3px #4e341c14,
    inset 0 1px 1.5px #ffffffd9, inset 0 -1px 1.5px #ffffffd9;
}

.soul-book__page .so-yinliu-dock__device::after {
  content: none;
}

.soul-book__page .so-yinliu-dock__device::before {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: calc(var(--yinliu-cover-size) * .07 + 2px);
  width: calc(var(--book-disc-size) - 6px);
  height: calc(var(--book-disc-size) - 6px);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 38%, #0002 39%, transparent 40%,
    transparent 58%, #0002 59%, transparent 60%),
    linear-gradient(135deg, #ffffff40, transparent 48%, #0003);
  transform: translateY(-50%);
  pointer-events: none;
  content: "";
}

.soul-book__page .so-yinliu-dock .so-yinliu-dock__album-box {
  position: static;
  flex: 0 0 var(--book-disc-size);
  width: var(--book-disc-size);
  height: var(--book-disc-size);
  margin-left: calc(var(--yinliu-cover-size) * .07 - 1px);
  padding: 2px;
  overflow: visible;
  border: 1.5px solid #8d6238;
  border-radius: 50% !important;
  background: #5a3c22;
  box-shadow: 0 3px 7px #321e0f61, inset 0 0 4px #0009;
}

.soul-book__page .so-yinliu-dock__album-screen {
  position: static;
  overflow: visible;
  border-radius: 50%;
  background: none;
  box-shadow: none;
}

.soul-book__page .so-yinliu-dock__cover {
  border-radius: 50% !important;
  cursor: zoom-in;
  animation: book-disc-turn 16s linear infinite paused;
}

.soul-book__page .so-yinliu-dock.is-output-active .so-yinliu-dock__cover {
  animation-play-state: running;
}

@keyframes book-disc-turn {
  to { rotate: 360deg; }
}

/* The elapsed label keeps its original live binding, positioned against the device. */
.soul-book__page .so-yinliu-dock__cover-time {
  top: 44%;
  right: calc(var(--yinliu-cover-size) * .22);
  left: auto;
  z-index: 6;
  font-size: var(--yinliu-time-size);
  font-weight: 500;
  line-height: 1;
  color: #725841;
  text-shadow: none;
  letter-spacing: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.soul-book__page .so-yinliu-dock__album-box::after {
  position: absolute;
  top: 50%;
  left: calc(var(--book-player-radius) - 1px);
  z-index: 6;
  width: calc(var(--yinliu-cover-size) * .11);
  height: calc(var(--yinliu-cover-size) * .11);
  border: 1px solid #58391f;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffeed7, #be8b55 50%, #462c14);
  box-shadow: 0 1px 3px #0008;
  transform: translate(-50%, -50%);
  pointer-events: none;
  content: "";
}

.soul-book__page .so-yinliu-dock__cover:focus-visible {
  outline: 2px solid #e8c8a2;
  outline-offset: -3px;
}

.soul-book__page .so-yinliu-dock.is-cover-missing .so-yinliu-dock__cover {
  visibility: visible;
  opacity: 0;
}

.soul-book__page .so-yinliu-dock__cover-fallback {
  inset: 50% auto auto calc(var(--yinliu-cover-size) * .07 + 2px);
  width: calc(var(--book-disc-size) - 6px);
  height: calc(var(--book-disc-size) - 6px);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.soul-book__page .so-yinliu-dock__meter {
  display: none;
}

.soul-book__page .so-yinliu-dock .so-yinliu-dock__shell {
  position: absolute;
  inset: 0 calc(var(--yinliu-cover-size) * .22) 0 var(--yinliu-cover-size);
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  will-change: auto;
}

.soul-book__page .so-yinliu-dock__main {
  display: block;
}

.soul-book__page .so-yinliu-dock__meta {
  position: absolute;
  top: 13%;
  width: calc(100% - var(--yinliu-cover-size) * .22);
}

.soul-book__page .so-yinliu-dock__title {
  font-size: var(--yinliu-artist-size);
  font-weight: 400;
  color: #3b2818;
  text-shadow: none;
}

.soul-book__page .so-yinliu-dock__seek {
  position: absolute;
  top: 44%;
  width: calc(100% - 3.25 * var(--yinliu-time-size));
  height: 18px;
  margin: 0;
  transform: translateY(-50%);
}

.soul-book__page .so-yinliu-dock__controls {
  position: absolute;
  bottom: 10%;
  width: calc(100% - var(--yinliu-cover-size) * .22);
}

.soul-book__page .so-yinliu-dock__transport {
  gap: calc(var(--yinliu-transport-gap) * .65);
  margin: 0 4px;
}

.soul-book__page .so-yinliu-dock__actions {
  gap: calc(var(--yinliu-actions-gap) * .75);
}

.soul-book__page .so-yinliu-dock__step,
.soul-book__page .so-yinliu-dock__toggle {
  border: 1px solid #e5d8bf;
  background: radial-gradient(circle at 38% 30%, #c0aa83, #967b55 52%, #655039);
  box-shadow: 0 2px 4px #49392345, inset 0 1px 1.5px #fff3d966,
    inset 0 -1px 2px #392b1b59;
}

/* Both drawer edges meet the capsule's straight edge at its tangent points. */
.soul-book__page .so-yinliu-dock__panel {
  right: var(--book-player-radius);
  left: var(--book-player-radius);
  border-color: #bfaa93;
  border-radius: 12px 12px 0 0;
  background-color: var(--soul-paper);
  background-image: url("../img/real-homepage/cream-paper.png");
  box-shadow: inset 0 0 0 1px #ffffff3d, 0 9px 20px #3c230c24;
}

.soul-book__page .so-yinliu-dock.is-panel-below .so-yinliu-dock__panel {
  border-radius: 0 0 12px 12px;
}

.soul-book__page .so-yinliu-dock__track {
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, .46fr) 34px;
  border-bottom-color: #8c643e29;
  padding-inline: 8px !important;
}

.soul-book__page .so-yinliu-dock__track-title {
  font-size: 7px;
  font-weight: 400;
}

.soul-book__page .so-yinliu-dock__track-index,
.soul-book__page .so-yinliu-dock__track-artist,
.soul-book__page .so-yinliu-dock__track-duration {
  font-size: 7px;
  color: #896340;
}

@container yinliu-player (min-width: 640px) {
  .soul-book__page .so-yinliu-dock__track-index,
  .soul-book__page .so-yinliu-dock__track-title { font-size: 8px; }
  .soul-book__page .so-yinliu-dock__track-artist,
  .soul-book__page .so-yinliu-dock__track-duration { font-size: 8px; }
}

.soul-book__page .so-yinliu-dock__track-item .so-yinliu-dock__track.is-current {
  background: transparent;
}

.soul-book__page .so-yinliu-dock__track-item:nth-child(even) .so-yinliu-dock__track.is-current {
  background: rgba(156, 115, 75, .045);
}

/* Mirror the below drawer, including the shadow direction, at the upper seam. */
.soul-book__page .so-yinliu-dock.is-panel-above .so-yinliu-dock__panel {
  top: auto;
  bottom: calc(100% - 1px);
  border-top: 1px solid #bfaa93;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 1px 0 #ffffff3d, inset -1px 0 #ffffff3d,
    inset 0 1px #ffffff3d, 0 -9px 20px #3c230c24;
}

/* Cover only the upper straight-edge highlight while its drawer is attached. */
.soul-book__page .so-yinliu-dock.is-panel-above.is-list-open .so-yinliu-dock__device::after {
  position: absolute;
  z-index: 4;
  top: -1px;
  right: calc(var(--book-player-radius) - 1px);
  left: calc(var(--book-player-radius) - 1px);
  height: 3px;
  background: var(--soul-paper) url("../img/real-homepage/cream-paper.png");
  pointer-events: none;
  content: "";
}

.soul-book__page .so-yinliu-dock.is-panel-below .so-yinliu-dock__panel {
  top: 100%;
  bottom: auto;
}

/* Preserve the native index text and aria-current state; only format its display. */
.soul-book__page .so-yinliu-dock__track-item:nth-child(-n + 9) .so-yinliu-dock__track-index::before {
  content: "0";
}

.soul-book__page .so-yinliu-dock__track.is-current::before {
  content: none;
  inset: 50% auto auto 30px;
  width: 3px;
  height: 5px;
  border: solid #896340;
  border-width: 0 1px 1px 0;
  background: none;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.soul-book__page .so-yinliu-dock.is-output-active .so-yinliu-dock__track.is-current::before {
  content: "";
}

.soul-book__page .so-yinliu-dock__scrollbar:focus-visible .so-yinliu-dock__scrollbar-thumb {
  box-shadow: 0 0 0 1px var(--soul-paper);
}

.soul-book__page.--left,
.stf__wrapper.--portrait .soul-book__page[data-page-side="left"] {
  border-right: 0;
  background-image:
    linear-gradient(
      to left,
      rgba(48, 36, 25, 0.065) 0%,
      rgba(48, 36, 25, 0.045) 2.2%,
      rgba(48, 36, 25, 0.025) 6%,
      rgba(48, 36, 25, 0.01) 10%,
      transparent 14%
    ),
    url("../img/real-homepage/cream-paper.png");
  /* Bridge subpixel rendering gaps on fractional DPRs */
  box-shadow: 1px 0 0 var(--soul-paper);
}

.soul-book__page.--right,
.stf__wrapper.--portrait .soul-book__page[data-page-side="right"] {
  border-left: 0;
  --soul-right-page-paint-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.035) 1.4%,
      transparent 4.5%
    ),
    url("../img/real-homepage/cream-paper.png");
  --soul-endpaper-paint-image: var(--soul-right-page-paint-image);
  background-image: var(--soul-right-page-paint-image);
  box-shadow: none;
}

.soul-home__stage[data-book-hard-cover-turn="back-cover"] .soul-book__page[data-page-key="colophon"] {
  /* The interior seam must not project beyond the rotating back cover. */
  box-shadow: none;
}

.soul-book__endpaper-surface {
  display: contents;
}

.has-endpaper-occlusion > .soul-book__endpaper-surface {
  /* Keep the original paper raster origin while the parent culls its hinge. */
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--soul-paper);
  background-image: var(--soul-endpaper-paint-image);
  transform: perspective(var(--soul-endpaper-perspective));
  will-change: transform;
}

.soul-book__page.has-endpaper-occlusion {
  overflow: visible;
  transform-style: flat;
  background-color: transparent;
  background-image: none;
}

.soul-book__cover {
  color: var(--soul-gold);
  background-color: var(--soul-cover-base) !important;
  background-image:
    linear-gradient(var(--soul-cover-overlay), var(--soul-cover-overlay)),
    var(--soul-cover-texture) !important;
  background-blend-mode: multiply, luminosity;
}

.soul-book__cover.--left,
.soul-book__cover.--right {
  border: 0 !important;
}

.soul-book__cover--front {
  box-shadow:
    inset 18px 0 48px rgba(0, 0, 0, 0.94),
    inset -10px 0 30px rgba(0, 0, 0, 0.74),
    inset -2px 0 10px rgba(255, 255, 255, 0.04) !important;
}

.soul-book__cover--back {
  box-shadow:
    inset -18px 0 48px rgba(0, 0, 0, 0.94),
    inset 10px 0 30px rgba(0, 0, 0, 0.74),
    inset 2px 0 10px rgba(255, 255, 255, 0.04) !important;
}

.soul-book__cover--front::before,
.soul-book__cover--back::before,
.soul-book__cover--front::after,
.soul-book__cover--back::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  content: "";
}

.soul-book__cover--front::before {
  left: 0;
  background: linear-gradient(to right, rgba(10, 5, 0, 0.38), rgba(255, 255, 255, 0.055) 6px, transparent 15px, rgba(10, 5, 0, 0.18) 20px);
}

.soul-book__cover--back::before {
  right: 0;
  background: linear-gradient(to left, rgba(10, 5, 0, 0.38), rgba(255, 255, 255, 0.055) 6px, transparent 15px, rgba(10, 5, 0, 0.18) 20px);
}

.soul-book__cover--front::after,
.soul-book__cover--back::after {
  top: 41px;
  bottom: 41px;
  background-image:
    radial-gradient(circle at center 1.5px, rgba(15, 10, 5, 0.58) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at center 8.5px, rgba(15, 10, 5, 0.58) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at center 9.5px, rgba(255, 255, 255, 0.07) 0 1.5px, transparent 1.6px),
    linear-gradient(to bottom, transparent 1.5px, rgba(50, 35, 20, 0.56) 1.5px 8.5px, transparent 8.5px);
  background-repeat: repeat-y;
  background-size: 3px 20px;
}

.soul-book__cover--front::after {
  left: 0;
  background-position: 100% 0;
}

.soul-book__cover--back::after {
  right: 0;
  background-position: 0 0;
}

.soul-book__cover-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.soul-book__cover-border {
  position: relative;
  display: flex;
  width: 82%;
  height: 88%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 80px 50px;
  margin-left: 20px;
  border: 1px solid var(--soul-cover-border-line, rgba(212, 176, 104, 0.2));
  color: var(--soul-gold);
  background: rgba(10, 5, 0, 0.15);
  text-align: center;
}

.soul-book__cover--front .soul-book__cover-border {
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.52),
    -12px 0 22px rgba(0, 0, 0, 0.12),
    0 0 0 8px rgba(0, 0, 0, 0.06),
    0 0 0 9px var(--soul-cover-border-outline, rgba(212, 176, 104, 0.25));
}

.soul-book__cover--back .soul-book__cover-border {
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.52),
    12px 0 22px rgba(0, 0, 0, 0.12),
    0 0 0 8px rgba(0, 0, 0, 0.06),
    0 0 0 9px var(--soul-cover-border-outline, rgba(212, 176, 104, 0.25));
}

.soul-book__cover-border--back {
  margin-right: 20px;
  margin-left: 0;
}

.soul-book__cover-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.soul-book__cover-slot--top {
  top: calc(72px + var(--slot-extra-top-offset, 0px));
  right: calc(50px + var(--slot-extra-inline-end, 0px));
  left: calc(50px + var(--slot-extra-inline-start, 0px));
  min-height: 72px;
}

.soul-book__cover-slot--middle {
  top: 50%;
  left: 50%;
  width: calc(100% - 100px);
  transform: translate(-50%, -50%);
}

.soul-book__cover-slot--bottom {
  right: calc(36px + var(--slot-extra-inline-end, 0px));
  bottom: calc(58px + var(--slot-extra-bottom-offset, 0px));
  left: calc(36px + var(--slot-extra-inline-start, 0px));
  min-height: 46px;
}

.soul-book__logo-image {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.soul-book__slot-image {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.8));
}

.soul-book__slot-image--top {
  max-width: 180px;
  max-height: 90px;
}

.soul-book__slot-image--middle {
  max-width: 78%;
  max-height: 270px;
  filter: none;
}

.soul-book__cover-slot--middle[data-slot-relief="raised"] .soul-book__slot-image--middle,
.soul-book__cover-slot--middle[data-slot-relief="inset"] .soul-book__slot-image--middle {
  filter: none;
}

.soul-book__slot-image--bottom {
  max-width: 76%;
  max-height: 86px;
  opacity: 0.86;
}

.soul-book__slot-text {
  margin: 0;
  width: 100%;
  color: var(--slot-text-color, var(--soul-gold));
  opacity: var(--slot-text-opacity, 1);
  text-align: var(--slot-text-align, center);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.86);
}

.soul-book__slot-text span {
  display: block;
}

.soul-book__slot-text--top {
  font-family: var(--soul-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.7;
  opacity: var(--slot-text-opacity, 0.8);
  text-transform: uppercase;
}

.soul-book__title {
  margin: 0;
  width: 100%;
  color: var(--slot-text-color, var(--soul-gold));
  opacity: var(--slot-text-opacity, 1);
  font-family: var(--soul-serif);
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  line-height: 1.5;
  text-align: var(--slot-text-align, center);
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.9);
}

.soul-book__title span {
  display: block;
  padding-inline-start: var(--slot-title-line-pad-start, 0.3em);
  padding-inline-end: var(--slot-title-line-pad-end, 0);
}

.soul-book__subtitle {
  margin: 0;
  width: 100%;
  color: var(--slot-text-color, var(--soul-gold));
  opacity: var(--slot-text-opacity, 1);
  font-family: var(--soul-sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  line-height: 1.7;
  text-align: var(--slot-text-align, center);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.soul-book__subtitle span {
  display: block;
}

.soul-book__cover-slot[data-slot-relief="raised"] .soul-book__slot-text,
.soul-book__cover-slot[data-slot-relief="raised"] .soul-book__title,
.soul-book__cover-slot[data-slot-relief="raised"] .soul-book__subtitle {
  text-shadow:
    calc(var(--slot-relief-size, 2px) * -1) calc(var(--slot-relief-size, 2px) * -1) 0 var(--slot-relief-light, var(--soul-relief-light)),
    var(--slot-relief-size, 2px) var(--slot-relief-size, 2px) 0 var(--slot-relief-dark, var(--soul-relief-dark)),
    calc(var(--slot-relief-size, 2px) * 1.4) calc(var(--slot-relief-size, 2px) * 1.8) calc(var(--slot-relief-size, 2px) * 1.3) rgba(0, 0, 0, 0.34);
}

.soul-book__cover-slot[data-slot-relief="inset"] .soul-book__slot-text,
.soul-book__cover-slot[data-slot-relief="inset"] .soul-book__title,
.soul-book__cover-slot[data-slot-relief="inset"] .soul-book__subtitle {
  text-shadow:
    calc(var(--slot-relief-size, 2px) * -1) calc(var(--slot-relief-size, 2px) * -1) 0 var(--slot-relief-dark, var(--soul-relief-dark)),
    var(--slot-relief-size, 2px) var(--slot-relief-size, 2px) 0 var(--slot-relief-light, var(--soul-relief-light)),
    calc(var(--slot-relief-size, 2px) * 1.2) calc(var(--slot-relief-size, 2px) * 1.6) calc(var(--slot-relief-size, 2px) * 1.1) rgba(0, 0, 0, 0.22);
}

.soul-book__cover-slot[data-slot-relief="raised"] .soul-book__slot-image {
  filter:
    drop-shadow(calc(var(--slot-relief-size, 2px) * -1) calc(var(--slot-relief-size, 2px) * -1) 0 var(--slot-relief-light, var(--soul-relief-light)))
    drop-shadow(var(--slot-relief-size, 2px) var(--slot-relief-size, 2px) 0 var(--slot-relief-dark, var(--soul-relief-dark)))
    drop-shadow(var(--slot-relief-size, 2px) calc(var(--slot-relief-size, 2px) * 1.5) calc(var(--slot-relief-size, 2px) * 1.2) rgba(0, 0, 0, 0.48));
}

.soul-book__cover-slot[data-slot-relief="inset"] .soul-book__slot-image {
  filter:
    drop-shadow(calc(var(--slot-relief-size, 2px) * -1) calc(var(--slot-relief-size, 2px) * -1) 0 var(--slot-relief-dark, var(--soul-relief-dark)))
    drop-shadow(var(--slot-relief-size, 2px) var(--slot-relief-size, 2px) 0 var(--slot-relief-light, var(--soul-relief-light)))
    drop-shadow(var(--slot-relief-size, 2px) calc(var(--slot-relief-size, 2px) * 1.4) calc(var(--slot-relief-size, 2px) * 1.1) rgba(0, 0, 0, 0.38));
}

.soul-book__end-text {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.28em;
  opacity: var(--slot-text-opacity, 0.64);
}

.soul-book__page-content {
  position: absolute;
  z-index: 10;
  inset: 70px 70px 90px;
  display: flex;
  flex-direction: column;
  cursor: auto;
}

.soul-book__page-content--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.soul-book__page-content--loading {
  justify-content: flex-start;
  padding-top: clamp(10px, 4.8vh, 46px);
}

.soul-book__loading-skeleton {
  display: grid;
  width: 100%;
  gap: clamp(24px, 4.6vh, 44px);
}

.soul-book__loading-skeleton-group {
  display: grid;
  gap: clamp(8px, 1.15vh, 12px);
}

.soul-book__loading-line {
  display: block;
  width: 100%;
  height: clamp(9px, 1.25vh, 13px);
  border-radius: 999px;
  background: rgba(76, 72, 67, 0.14);
}

.soul-book__loading-skeleton-group > .soul-book__loading-line:nth-child(2) {
  width: 96%;
}

.soul-book__loading-skeleton-group > .soul-book__loading-line:nth-child(3) {
  width: 88%;
}

.soul-book__loading-meta {
  display: flex;
  gap: clamp(10px, 1.5vw, 16px);
}

.soul-book__loading-meta .soul-book__loading-line:first-child {
  width: 24%;
}

.soul-book__loading-meta .soul-book__loading-line:last-child {
  width: 21%;
}

.soul-book__blank-page {
  opacity: 0.3;
}

.soul-book__guestbook {
  --guestbook-body-size: 16px;
  --guestbook-body-leading: 1.65;
  opacity: 1;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  color: #443a2d;
  font: var(--guestbook-body-size)/var(--guestbook-body-leading) var(--soul-sans);
}

.soul-book__guestbook [hidden] { display: none !important; }
.soul-book__guestbook * { box-sizing: border-box; }

.soul-book__guestbook-intro {
  padding-top: 22px;
}

.soul-book__guestbook-intro h2 {
  margin: 0 0 12px;
  color: #938675;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.soul-book__guestbook-space p {
  margin: 0;
  color: #938675;
  font-size: 14px;
  line-height: 1.8;
}

.soul-book__guestbook-space {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 36px;
  align-items: stretch;
  min-height: 80px;
  overflow: hidden;
  text-align: left;
}

.soul-book__guestbook.is-mobile {
  --guestbook-body-size: 15px;
  --guestbook-body-leading: 1.7;
}
.soul-book__guestbook.is-short .soul-book__guestbook-intro { padding-top: 8px; }
.soul-book__guestbook.is-short .soul-book__guestbook-space { min-height: 80px; }

.soul-book__chapter-title {
  position: relative;
  margin: 16px 0 calc(var(--soul-heading-divider-gap) + var(--soul-heading-body-gap));
  color: var(--soul-reading-title-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-reading-title-size);
  font-weight: var(--soul-reading-title-weight);
  line-height: 1.35;
  text-align: center;
}

.soul-book__chapter-title::after {
  position: absolute;
  bottom: calc(var(--soul-heading-divider-gap) * -1);
  left: 50%;
  width: var(--soul-heading-divider-width);
  height: 1px;
  background: var(--soul-heading-divider-color);
  content: "";
  transform: translateX(-50%);
}

.soul-home__stage[data-reading-divider="none"] .soul-book__chapter-title {
  margin-bottom: var(--soul-heading-body-gap);
}

.soul-home__stage[data-reading-divider="none"] .soul-book__chapter-title::after {
  display: none;
}

.soul-home__stage[data-reading-divider="curve"] .soul-book__chapter-title::after {
  height: 10px;
  border-bottom: 1px solid var(--soul-heading-divider-color);
  border-radius: 0 0 999px 999px;
  background: transparent;
}

.soul-home__stage[data-reading-divider="line"] .soul-book__chapter-title::after {
  height: 1px;
  border: 0;
  background: var(--soul-heading-divider-color);
}

.soul-book__page-text {
  flex: 1 1 auto;
  color: var(--soul-reading-text-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-reading-body-size);
  font-weight: var(--soul-reading-body-weight);
  line-height: var(--soul-reading-line-height);
  overflow-wrap: anywhere;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-all;
}

.soul-book__page-text p {
  margin: 0 0 var(--soul-reading-paragraph-spacing);
  text-indent: var(--soul-reading-paragraph-indent);
}

.soul-book__page-text p.soul-book__flow-fragment--tail {
  text-indent: 0;
}

.soul-book__page-text p.soul-book__link-only-paragraph {
  text-align: left;
  text-align-last: left;
}

.soul-book__page-text a {
  color: var(--soul-reading-link-color);
  font-weight: var(--soul-reading-link-weight);
  text-indent: 0;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.42);
  vertical-align: baseline;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.soul-book__page-text a > .soul-book__link-label {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  line-height: inherit;
  white-space: normal;
  text-indent: 0;
  text-decoration-line: var(--soul-reading-link-decoration-line);
  text-decoration-style: var(--soul-reading-link-decoration-style);
  text-decoration-color: var(--soul-reading-link-decoration-color);
  text-decoration-thickness: var(--soul-reading-link-decoration-thickness);
  text-decoration-skip-ink: none;
  text-underline-offset: calc(var(--soul-reading-link-underline-gap) - 0.08em);
  text-align: left;
  text-align-last: left;
  text-justify: auto;
  vertical-align: baseline;
}

.soul-book__page-text a > .soul-book__link-label::after {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(0.92em + var(--soul-reading-link-underline-gap));
  height: var(--soul-reading-link-marker-height);
  border-radius: var(--soul-reading-link-marker-radius);
  background: var(--soul-reading-link-marker-color);
  content: "";
  pointer-events: none;
}

.soul-book__page-text a:hover {
  color: var(--soul-reading-link-hover-color);
}

.soul-book__page-text a:focus-visible {
  outline: 2px solid rgba(111, 79, 44, 0.34);
  outline-offset: 3px;
}

.soul-book__wp-content > :first-child {
  margin-top: 0;
}

.soul-book__wp-content > :last-child {
  margin-bottom: 0;
}

.soul-book__wp-content :where(ul, ol) {
  padding-left: 1.45em;
  margin: 0 0 1.35em;
  text-align: left;
}

.soul-book__wp-content :where(li) {
  margin-bottom: 0.6em;
}

.soul-book__wp-content :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto var(--soul-reading-paragraph-spacing);
  border: var(--soul-reading-image-border-width) solid var(--soul-reading-image-border-color);
  border-radius: var(--soul-reading-image-radius);
  box-shadow: 0 8px var(--soul-reading-image-shadow-blur) rgba(0, 0, 0, var(--soul-reading-image-shadow-alpha));
  filter: sepia(var(--soul-reading-image-tone)) contrast(0.98);
}

.soul-book__wp-content .soul-book__gallery {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 0;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.soul-book__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.soul-book__gallery[data-soul-gallery-count="1"] .soul-book__gallery-grid {
  grid-template-columns: minmax(0, 184px);
  justify-content: center;
}

.soul-book__gallery[data-soul-gallery-count="2"] .soul-book__gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 158px));
  justify-content: center;
}

.soul-book__gallery-card {
  position: relative;
  display: grid;
  aspect-ratio: 5 / 8;
  min-width: 0;
  padding: 5px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(93, 69, 44, 0.16);
  border-radius: calc(var(--soul-reading-image-radius) + 2px);
  background: rgba(255, 253, 247, 0.88);
  box-shadow:
    0 8px 18px rgba(63, 43, 24, 0.08),
    0 1px rgba(255, 255, 255, 0.84) inset;
}

.soul-book__gallery-card:nth-child(3n + 2) {
  transform: translateY(3px);
}

.soul-book__gallery-card :where(a, .gallery-icon) {
  display: contents;
}

.soul-book__gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: max(2px, calc(var(--soul-reading-image-radius) - 2px));
  background: #f8f3e9;
  box-shadow: none !important;
  object-fit: contain;
}

.soul-book__gallery-card figcaption,
.soul-book__gallery-card .gallery-caption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 12px 7px 6px;
  margin: 0;
  overflow: hidden;
  color: #fffaf0;
  background: linear-gradient(transparent, rgba(29, 21, 14, 0.78));
  font-family: var(--soul-sans);
  font-size: 9px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__gallery-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 10px;
  min-height: 17px;
  margin: 0 !important;
  color: #8a7763;
  font-family: var(--soul-sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.soul-book__gallery-label {
  justify-self: center;
  color: var(--soul-reading-text-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-reading-body-size);
  font-weight: var(--soul-reading-body-weight);
  letter-spacing: normal;
  line-height: var(--soul-reading-line-height);
  text-align: center;
}

.soul-book__gallery-count {
  grid-column: 1;
  justify-self: center;
  color: var(--soul-reading-text-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-reading-body-size);
  font-weight: var(--soul-reading-body-weight);
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  line-height: var(--soul-reading-line-height);
  text-align: center;
}

.soul-book__gallery-caption {
  grid-column: 1;
  justify-self: center;
  min-width: 0;
  overflow: hidden;
  color: #766553;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__zoomable-image {
  cursor: zoom-in;
}

.soul-book__zoomable-image:focus-visible {
  outline: 3px solid rgba(140, 102, 61, 0.58);
  outline-offset: 3px;
}

.soul-book__image-trigger {
  display: block;
  border-radius: var(--soul-reading-image-radius);
}

.soul-book__pagination-lab {
  position: fixed;
  z-index: -9999;
  top: 0;
  left: -200vw;
  width: 570px;
  height: 800px;
  visibility: hidden;
  pointer-events: none;
  contain: layout style paint;
}

.soul-book__pagination-lab .soul-book__page {
  position: relative;
  display: block;
}

.soul-book__frontispiece-stats {
  display: grid;
  width: min(100%, 330px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px auto 0;
  border-block: 1px solid rgba(83, 61, 39, 0.2);
}

.soul-book__frontispiece-stats div {
  padding: 20px 14px;
}

.soul-book__frontispiece-stats div + div {
  border-left: 1px solid rgba(83, 61, 39, 0.18);
}

.soul-book__frontispiece-stats dt {
  color: #3d2f23;
  font-family: var(--soul-sans);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.soul-book__frontispiece-stats dd {
  margin: 9px 0 0;
  color: #8b7c6d;
  font-family: var(--soul-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.soul-book__frontispiece-search {
  width: min(100%, 360px);
  margin-top: 34px;
  font-family: var(--soul-sans);
  text-align: left;
}

.soul-book__frontispiece-search-field {
  position: relative;
}

.soul-book__frontispiece-search input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 20px;
  border: 1px solid rgba(72, 50, 30, 0.3);
  border-radius: 999px;
  outline: 0;
  color: #3d2f23;
  background: rgba(255, 252, 244, 0.65);
  box-shadow: inset 0 1px 3px rgba(90, 70, 50, 0.08);
  font: inherit;
  font-size: 13px;
}

.soul-book__frontispiece-search input::-webkit-search-cancel-button {
  display: none;
}

.soul-book__frontispiece-search input::placeholder {
  color: #9a8874;
}

.soul-book__frontispiece-search input:focus {
  border-color: #9f7644;
  box-shadow: inset 0 1px 3px rgba(90, 70, 50, 0.08), 0 0 0 3px rgba(159, 118, 68, 0.12);
}

.soul-book__frontispiece-search button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #6f543b;
  background: rgba(111, 79, 44, 0.08);
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}

.soul-book__frontispiece-search button::before,
.soul-book__frontispiece-search button::after,
.soul-book__search-results-clear::before,
.soul-book__search-results-clear::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.soul-book__frontispiece-search button::before,
.soul-book__search-results-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.soul-book__frontispiece-search button::after,
.soul-book__search-results-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.soul-book__frontispiece-search button[hidden] {
  display: none;
}

.soul-book__toc-section-link,
.soul-book__page-section-link,
.soul-book__toc-entry,
.soul-book__page-jump,
.soul-book__page-step {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.soul-book__section-kicker,
.soul-book__running-section {
  margin: 0;
  color: #9b7749;
  font-family: var(--soul-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.soul-book__page-section-link {
  position: absolute;
  z-index: 12;
  top: 54px;
  max-width: calc(100% - 140px);
  padding: 0;
  overflow: hidden;
  color: #9b7749;
  font-family: var(--soul-article-category-font);
  font-size: var(--soul-article-category-size);
  font-weight: var(--soul-article-category-weight);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__page[data-page-side="left"] .soul-book__page-section-link {
  left: 70px;
  color: var(--soul-article-category-left-color);
  text-align: left;
}

.soul-book__page[data-page-side="right"] .soul-book__page-section-link {
  right: 70px;
  color: var(--soul-article-category-right-color);
  text-align: right;
}

.soul-book__page-section-link:hover,
.soul-book__page-section-link:focus-visible {
  color: inherit;
  filter: brightness(0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.soul-book__running-section {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__running-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding-bottom: 13px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--soul-heading-divider-color);
  color: var(--soul-reading-title-color);
  font-size: 14px;
  font-weight: var(--soul-reading-title-weight);
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__article-running-title {
  top: 24px;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: 100%;
  padding: 0;
  transform: translateX(-50%);
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  color: var(--soul-article-title-color);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--soul-article-title-size);
  font-weight: var(--soul-article-title-weight);
}

/* The full-width rule is decoration, not part of the title's navigation target. */
.soul-book__page-content--continuation:has(> .soul-book__article-running-title)::before {
  content: "";
  position: absolute;
  top: calc(var(--soul-article-title-size) * 1.5 + 37px);
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--soul-article-title-divider-color);
  pointer-events: none;
}

.soul-book__chapter-title.is-navigation-destination::before {
  content: "";
  position: absolute;
  left: calc(50% - var(--soul-title-focus-width, 60%) / 2);
  bottom: -.32em;
  width: var(--soul-title-focus-width, 60%);
  height: 3px;
  border-radius: 2px;
  background: #9a6d3b;
  pointer-events: none;
  transform-origin: left center;
  animation: soul-title-destination 2200ms cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes soul-title-destination {
  0% { transform: scaleX(0); opacity: 1; }
  38%, 80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .soul-book__chapter-title.is-navigation-destination::before { animation: none; transform: none; opacity: 1; }
}
.soul-book__article-running-title:hover,
.soul-book__article-running-title:focus-visible {
  color: var(--soul-article-title-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.soul-book__article-running-title:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.soul-book__page-content--continuation .soul-book__page-text {
  margin-top: 68px;
}

.soul-book__reading-page--compact {
  --soul-reading-line-height: 1.92;
  --soul-reading-paragraph-spacing: 14px;
}

.soul-book__wp-content :where(h2, h3, h4, h5, h6) {
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--soul-reading-font);
  text-align: left;
  text-indent: 0;
  text-wrap: balance;
}

.soul-book__wp-content h2 {
  --soul-heading-decoration-color: var(--soul-reading-h2-decoration-color);
  --soul-heading-decoration-soft-04: var(--soul-reading-h2-decoration-soft-04);
  --soul-heading-decoration-soft-09: var(--soul-reading-h2-decoration-soft-09);
  --soul-heading-decoration-soft-11: var(--soul-reading-h2-decoration-soft-11);
  --soul-heading-decoration-soft-12: var(--soul-reading-h2-decoration-soft-12);
  margin: var(--soul-reading-h2-margin-top) 0 var(--soul-reading-h2-margin-bottom);
  color: var(--soul-reading-h2-color);
  font-size: var(--soul-reading-h2-size);
  font-weight: var(--soul-reading-h2-weight);
  line-height: 1.5;
}

.soul-book__wp-content h3 {
  --soul-heading-decoration-color: var(--soul-reading-h3-decoration-color);
  --soul-heading-decoration-soft-04: var(--soul-reading-h3-decoration-soft-04);
  --soul-heading-decoration-soft-09: var(--soul-reading-h3-decoration-soft-09);
  --soul-heading-decoration-soft-11: var(--soul-reading-h3-decoration-soft-11);
  --soul-heading-decoration-soft-12: var(--soul-reading-h3-decoration-soft-12);
  margin: var(--soul-reading-h3-margin-top) 0 var(--soul-reading-h3-margin-bottom);
  color: var(--soul-reading-h3-color);
  font-size: var(--soul-reading-h3-size);
  font-weight: var(--soul-reading-h3-weight);
  line-height: 1.55;
}

.soul-book__wp-content h4,
.soul-book__wp-content h5,
.soul-book__wp-content h6 {
  --soul-heading-decoration-color: var(--soul-reading-h4-decoration-color);
  --soul-heading-decoration-soft-04: var(--soul-reading-h4-decoration-soft-04);
  --soul-heading-decoration-soft-09: var(--soul-reading-h4-decoration-soft-09);
  --soul-heading-decoration-soft-11: var(--soul-reading-h4-decoration-soft-11);
  --soul-heading-decoration-soft-12: var(--soul-reading-h4-decoration-soft-12);
  margin: var(--soul-reading-h4-margin-top) 0 var(--soul-reading-h4-margin-bottom);
  color: var(--soul-reading-h4-color);
  font-size: var(--soul-reading-h4-size);
  font-weight: var(--soul-reading-h4-weight);
  line-height: 1.6;
}

.soul-home__stage[data-reading-h2-style="side_rule"] .soul-book__wp-content h2,
.soul-home__stage[data-reading-h3-style="side_rule"] .soul-book__wp-content h3,
.soul-home__stage[data-reading-h4-style="side_rule"] .soul-book__wp-content :is(h4, h5, h6) {
  padding: 0.12em 0 0.16em 0.72em;
  border-left: 0.18em solid var(--soul-heading-decoration-color);
  background: linear-gradient(90deg, var(--soul-heading-decoration-soft-09), rgba(111, 79, 44, 0) 78%);
}

.soul-home__stage[data-reading-h2-style="soft_band"] .soul-book__wp-content h2,
.soul-home__stage[data-reading-h3-style="soft_band"] .soul-book__wp-content h3,
.soul-home__stage[data-reading-h4-style="soft_band"] .soul-book__wp-content :is(h4, h5, h6) {
  padding: 0.3em 0.58em 0.36em;
  border: 1px solid var(--soul-heading-decoration-soft-12);
  border-radius: 4px;
  background:
    linear-gradient(105deg, var(--soul-heading-decoration-soft-11), rgba(255, 252, 244, 0.34) 72%, var(--soul-heading-decoration-soft-04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.56);
}

.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2 {
  --soul-heading-underline-thickness: var(--soul-reading-h2-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h2-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h2-underline-gap);
}

.soul-home__stage[data-reading-h2-style="soft_marker"] .soul-book__wp-content h2 {
  --soul-heading-underline-thickness: var(--soul-reading-h2-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h2-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h2-underline-gap);
}

.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3 {
  --soul-heading-underline-thickness: var(--soul-reading-h3-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h3-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h3-underline-gap);
}

.soul-home__stage[data-reading-h3-style="soft_marker"] .soul-book__wp-content h3 {
  --soul-heading-underline-thickness: var(--soul-reading-h3-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h3-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h3-underline-gap);
}

.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6) {
  --soul-heading-underline-thickness: var(--soul-reading-h4-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h4-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h4-underline-gap);
}

.soul-home__stage[data-reading-h4-style="soft_marker"] .soul-book__wp-content :is(h4, h5, h6) {
  --soul-heading-underline-thickness: var(--soul-reading-h4-underline-thickness);
  --soul-heading-underline-radius: var(--soul-reading-h4-underline-radius);
  --soul-heading-underline-gap: var(--soul-reading-h4-underline-gap);
}

.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2,
.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3,
.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6) {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom:
    calc(max(0px, var(--soul-heading-underline-gap)) + var(--soul-heading-underline-thickness));
  isolation: isolate;
}

.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2::before,
.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2::after,
.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3::before,
.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3::after,
.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6)::before,
.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6)::after {
  content: "";
  position: absolute;
  bottom: calc(0px - min(0px, var(--soul-heading-underline-gap)));
  left: 0;
  height: var(--soul-heading-underline-thickness);
  border-radius: var(--soul-heading-underline-radius);
  background: var(--soul-heading-decoration-color);
}

.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2::before,
.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3::before,
.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6)::before {
  z-index: 1;
  width: 30%;
}

.soul-home__stage[data-reading-h2-style="ink_rule"] .soul-book__wp-content h2::after,
.soul-home__stage[data-reading-h3-style="ink_rule"] .soul-book__wp-content h3::after,
.soul-home__stage[data-reading-h4-style="ink_rule"] .soul-book__wp-content :is(h4, h5, h6)::after {
  width: 100%;
  opacity: 0.3;
}

.soul-home__stage[data-reading-h2-style="soft_marker"] .soul-book__wp-content h2,
.soul-home__stage[data-reading-h3-style="soft_marker"] .soul-book__wp-content h3,
.soul-home__stage[data-reading-h4-style="soft_marker"] .soul-book__wp-content :is(h4, h5, h6) {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom:
    calc(max(0px, var(--soul-heading-underline-gap)) + var(--soul-heading-underline-thickness));
  isolation: isolate;
}

.soul-home__stage[data-reading-h2-style="soft_marker"] .soul-book__wp-content h2::after,
.soul-home__stage[data-reading-h3-style="soft_marker"] .soul-book__wp-content h3::after,
.soul-home__stage[data-reading-h4-style="soft_marker"] .soul-book__wp-content :is(h4, h5, h6)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: calc(0px - min(0px, var(--soul-heading-underline-gap)));
  height: var(--soul-heading-underline-thickness);
  border-radius: var(--soul-heading-underline-radius);
  background: var(--soul-heading-decoration-color);
  opacity: 0.18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.soul-book__wp-content :where(blockquote) {
  padding: 10px 0 10px 22px;
  margin: 8px 0 20px;
  border-left: 3px solid rgba(111, 79, 44, 0.38);
  color: #65584c;
  font-style: italic;
  text-align: left;
}

.soul-book__wp-content :where(pre) {
  max-width: 100%;
  padding: 14px 16px;
  margin: 0 0 18px;
  overflow: auto;
  border: 1px solid rgba(58, 43, 29, 0.16);
  border-radius: 5px;
  background: rgba(66, 48, 31, 0.06);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
}

.soul-book__wp-content :where(code) {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.84em;
}

.soul-book__wp-content :where(table) {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.soul-book__wp-content :where(th, td) {
  padding: 7px 8px;
  border: 1px solid rgba(58, 43, 29, 0.2);
}

.soul-book__wp-content :where(figure) {
  max-width: 100%;
  margin: 10px 0 20px;
}

.soul-book__wp-content :where(figcaption) {
  margin-top: 9px;
  color: #786b5e;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.soul-book__wp-content :where(iframe, video) {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 10px auto 18px;
  border: 0;
}

.soul-book__wp-content [data-soul-manual-page-break],
.soul-book__wp-content .wp-block-nextpage {
  display: none;
}

.soul-book__article-feature {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.soul-book__article-feature img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.soul-book__article-feature figcaption {
  color: #706457;
  font-size: 13px;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
}

.soul-book__oversize-block {
  max-width: 100%;
  max-height: 470px;
  overflow: auto;
}

.soul-book__section-page .soul-book__page-content {
  justify-content: flex-start;
}

.soul-book__section-title {
  margin: 4px 0 14px;
  color: var(--soul-section-title-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-section-title-size);
  font-weight: var(--soul-section-title-weight);
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
}

.soul-book__section-summary {
  color: var(--soul-section-summary-color);
  font-size: var(--soul-section-summary-size);
  font-weight: var(--soul-section-summary-weight);
  line-height: 1.75;
  text-align: center;
}

.soul-book__section-summary > :first-child {
  margin-top: 0;
}

.soul-book__section-summary > :last-child {
  margin-bottom: 0;
}

.soul-book__section-summary > * {
  text-align: center;
}

.soul-book__section-articles {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1 1 0;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(68, 49, 31, 0.18);
}

.soul-book__section-page .soul-book__toc-entry--compact {
  min-height: 32px;
  padding: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.soul-book__section-pagination[hidden] {
  display: none;
}

.soul-book__section-pagination {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  flex: 0 0 auto;
}

.soul-book__section-status {
  flex: 0 0 auto;
  margin: 6px 0 0;
  color: #80613f;
  font: 12px/1.5 var(--soul-sans);
}
.soul-book__section-status:empty { display: none; }
.soul-book__section-status button { border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.soul-book__section-pagination-button {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(94, 69, 44, 0.2);
  border-radius: 50%;
  color: #80613f;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: 10px;
  font-weight: 700;
}

.soul-book__section-pagination-button:hover,
.soul-book__section-pagination-button:focus-visible {
  border-color: rgba(94, 69, 44, 0.48);
  color: #3b2a1c;
  background: rgba(111, 79, 44, 0.08);
}

.soul-book__section-pagination-button[aria-current="page"] {
  border-color: #8c663d;
  color: #fff9eb;
  background: #8c663d;
}

.soul-book__section-pagination-gap {
  display: inline-grid;
  width: 20px;
  height: 28px;
  place-items: center;
  color: #9b8976;
  font-family: var(--soul-sans);
  font-size: 11px;
}

.soul-book__contents-list {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.soul-book__toc-section-start {
  margin-top: 8px;
}

.soul-book__toc-section-title {
  display: flex;
  min-height: 38px;
  align-items: baseline;
  gap: 16px;
  padding: 0 4px;
  margin: 0;
}

.soul-book__toc-section-link {
  display: inline-flex;
  min-width: 0;
  max-width: calc(100% - 58px);
  align-items: baseline;
  padding: 0;
  color: var(--soul-contents-section-color);
  font-family: var(--soul-reading-font);
  font-size: var(--soul-contents-section-size);
  font-weight: var(--soul-contents-section-weight);
  text-align: left;
}

.soul-book__toc-section-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__toc-section-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: #9b8469;
  font-family: var(--soul-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.soul-book__toc-entry {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 7px 4px 7px 18px;
  border-bottom: 1px dotted rgba(77, 59, 42, 0.24);
  color: #5f5144;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.soul-book__toc-entry--compact {
  min-height: 39px;
  grid-template-columns: minmax(0, 1fr);
  padding-left: 4px;
  font-size: 13px;
}

.soul-book__toc-entry--dated {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.soul-book__toc-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__toc-date {
  color: #9c7545;
  font-family: var(--soul-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.soul-book__contents-empty {
  margin: auto 0;
  color: #76695c;
  line-height: 1.9;
  text-align: center;
}

.soul-book__search-results-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(78, 57, 38, 0.18);
}

.soul-book__page.is-search-results-changing {
  overflow: hidden;
}

.soul-book__search-results-list.is-entering-from-left,
.soul-book__search-results-list.is-entering-from-right,
.soul-book__search-results-list.is-leaving-to-left,
.soul-book__search-results-list.is-leaving-to-right {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation-duration: 280ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.soul-book__search-results-list.is-entering-from-right {
  animation-name: soul-search-enter-from-right;
}

.soul-book__search-results-list.is-entering-from-left {
  animation-name: soul-search-enter-from-left;
}

.soul-book__search-results-list.is-leaving-to-left {
  animation-name: soul-search-leave-to-left;
}

.soul-book__search-results-list.is-leaving-to-right {
  animation-name: soul-search-leave-to-right;
}

@keyframes soul-search-enter-from-right {
  from {
    opacity: 0.2;
    transform: translateX(18%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes soul-search-enter-from-left {
  from {
    opacity: 0.2;
    transform: translateX(-18%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes soul-search-leave-to-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-18%);
  }
}

@keyframes soul-search-leave-to-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(18%);
  }
}

.soul-book__search-results-header .soul-book__search-results-kicker {
  margin: 0;
  color: #9b7548;
  font-family: var(--soul-sans);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.soul-book__search-results-clear {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5d4733;
  background: transparent;
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: 0;
  line-height: 0;
}

.soul-book__search-results-summary {
  display: -webkit-box;
  flex: 0 0 auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 14px 0 12px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #817366;
  font-family: var(--soul-sans);
  font-size: 11px;
  line-height: 1.5;
}

.soul-book__search-results-viewport {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.soul-book__search-results-list {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.soul-book__search-result {
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 0;
  color: #382d24;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.soul-book__search-result:hover,
.soul-book__search-result:focus-visible {
  color: #2e2116;
  background: rgba(111, 79, 44, 0.05);
}

.soul-home .soul-book__search-result:focus-visible {
  outline: none;
  box-shadow: none;
}

.soul-book__search-result:focus-visible strong {
  text-decoration: underline;
  text-decoration-color: #8c663d;
  text-underline-offset: 3px;
}

.soul-book__search-result-copy {
  display: block;
  min-width: 0;
}

.soul-book__search-result-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.soul-book__search-result-heading::after {
  content: "";
  order: 1;
  flex: 1 0 16px;
  height: 2px;
  align-self: baseline;
  background: radial-gradient(circle, rgba(126, 105, 77, 0.25) 0.8px, transparent 1px) left center / 5px 2px repeat-x;
}

.soul-book__search-result-heading strong {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  font-family: var(--soul-reading-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__search-result-date {
  display: block;
  order: 2;
  flex: 0 0 auto;
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #95816a;
  font-family: var(--soul-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Category rows share the search list treatment without changing leaf structure. */
.soul-book__section-articles {
  border-top: 0;
}

.soul-book__section-articles .soul-book__toc-entry--dated {
  display: flex;
  align-items: baseline;
  gap: 6px;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  color: #382d24;
  background: transparent;
}

.soul-book__section-articles .soul-book__toc-entry--dated::after {
  content: "";
  order: 1;
  flex: 1 0 16px;
  height: 2px;
  align-self: baseline;
  background: radial-gradient(circle, rgba(126, 105, 77, 0.25) 0.8px, transparent 1px) left center / 5px 2px repeat-x;
}

.soul-book__section-articles .soul-book__toc-title {
  min-width: 0;
  flex: 0 1 auto;
  font-family: var(--soul-reading-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.soul-book__section-articles .soul-book__toc-date {
  order: 2;
  flex: 0 0 auto;
  color: #95816a;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.soul-book__section-articles .soul-book__toc-entry--dated:hover,
.soul-book__section-articles .soul-book__toc-entry--dated:focus-visible {
  color: #2e2116;
  background: rgba(111, 79, 44, 0.05);
}

.soul-book__search-result-meta {
  display: none;
  grid-area: category;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-family: var(--soul-sans);
  line-height: 1.4;
}

.soul-book__search-result-meta-label {
  display: none;
}

.soul-book__search-result-section {
  min-width: 0;
  overflow: hidden;
  color: #876b4d;
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__search-result-excerpt {
  display: none;
  grid-area: excerpt;
  overflow: hidden;
  color: #817366;
  font-family: var(--soul-sans);
  font-size: 10px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-book__search-results-empty {
  margin: auto 0;
  color: #77695c;
  font-family: var(--soul-sans);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.soul-book__search-pagination[hidden] {
  display: none;
}

.soul-book__search-pagination {
  display: flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
}

.soul-book__search-pagination-button {
  position: relative;
  display: grid;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid rgba(94, 69, 44, 0.24);
  border-radius: 50%;
  color: #73583e;
  background: rgba(255, 252, 244, 0.28);
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: 10px;
  font-weight: 700;
}

.soul-book__search-pagination-button:hover,
.soul-book__search-pagination-button:focus-visible {
  border-color: rgba(94, 69, 44, 0.48);
  color: #3b2a1c;
  background: rgba(111, 79, 44, 0.08);
}

.soul-book__search-pagination-button[aria-current="page"] {
  border-color: #8c663d;
  color: #fff9eb;
  background: #8c663d;
}

.soul-home .soul-book__search-pagination-button:focus {
  outline: none;
  box-shadow: none;
}

.soul-book__section-pagination-button.is-loading::after,
.soul-book__search-pagination-button.is-loading::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  animation: soul-pager-loading 800ms linear infinite;
}
@keyframes soul-pager-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .soul-book__section-pagination-button.is-loading::after,
  .soul-book__search-pagination-button.is-loading::after { animation: none; }
}

.soul-book__search-pagination-gap {
  display: inline-grid;
  width: 18px;
  height: 28px;
  place-items: center;
  color: #9b8976;
  font-family: var(--soul-sans);
  font-size: 10px;
}

.soul-book__toc-entry:hover,
.soul-book__toc-entry:focus-visible,
.soul-book__toc-section-link:hover,
.soul-book__toc-section-link:focus-visible {
  color: #2e2116;
  background: rgba(111, 79, 44, 0.06);
}

.soul-book__colophon-count {
  margin: 30px 0 0;
  color: #8b7d70;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.soul-book__figure {
  display: grid;
  gap: 26px;
  margin: 0;
}

.soul-book__figure img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  border: var(--soul-reading-image-border-width) solid var(--soul-reading-image-border-color);
  border-radius: var(--soul-reading-image-radius);
  box-shadow: 0 8px var(--soul-reading-image-shadow-blur) rgba(0, 0, 0, var(--soul-reading-image-shadow-alpha));
  filter: sepia(var(--soul-reading-image-tone)) contrast(0.95);
}

.soul-book__figure figcaption {
  color: #716960;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  text-align: center;
}

.soul-book__page-footer {
  position: absolute;
  z-index: 15;
  bottom: 30px;
  right: 70px;
  left: 70px;
}

.soul-book__page-footer-nav {
  display: grid;
  min-height: 34px;
  place-items: center;
}

.soul-book__page-edge-navigation {
  position: absolute;
  z-index: 18;
  inset: 0;
  pointer-events: none;
}

.soul-book__page-edge-navigation--persistent {
  z-index: 21;
}

.soul-book__page-edge-stack {
  position: absolute;
  top: 50%;
  display: grid;
  width: var(--soul-page-edge-control-size);
  gap: var(--soul-page-edge-control-gap);
  pointer-events: auto;
  transform: translateY(-50%);
}

.soul-book__page-edge-stack[hidden] {
  display: none;
}

.soul-book__page-edge-stack--start {
  left: 0;
}

.soul-book__page-edge-stack--end {
  right: 0;
}

.soul-book__page-return {
  position: absolute;
  top: calc(100% + var(--soul-page-edge-control-gap));
  left: 0;
}

.soul-book__page-return:disabled {
  cursor: default;
}

.soul-book__edge-guestbook,
.soul-book__edge-search {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--soul-page-edge-control-gap));
}

.soul-book__edge-guestbook .soul-book__page-step-icon {
  stroke-width: 1.2;
}

.soul-book__edge-search {
  bottom: calc(100% + var(--soul-page-edge-control-size) + 2 * var(--soul-page-edge-control-gap));
}

.soul-book__page .is-edge-search-covered {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.soul-book__page .is-edge-search-covered *,
.soul-book__page .is-edge-search-covered ::before,
.soul-book__page .is-edge-search-covered ::after {
  visibility: hidden !important;
}

.soul-book__page.is-edge-search-host > .soul-book__page-content:not(.is-edge-search-covered) {
  position: absolute;
  inset: 0;
  padding: 70px 70px 90px;
  z-index: 10;
}

.soul-book__page.is-edge-search-host > .soul-book__edge-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.soul-book__edge-search-form .soul-book__frontispiece-search {
  margin: 0;
}

.soul-book__frontispiece-search {
  position: relative;
}

.soul-book__search-preview {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  right: 0;
  color: #766451;
  text-align: left;
  font-family: var(--soul-reading-font);
}

.soul-book__search-preview[hidden] {
  display: none;
}

.soul-book__search-preview-title,
.soul-book__search-preview-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.soul-book__search-preview-title {
  -webkit-line-clamp: 2;
  margin: 0 0 8px;
  color: #57432f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.soul-book__search-preview-category {
  margin: 0 0 12px;
  color: #95816a;
  font-size: 11px;
  line-height: 1.5;
}

.soul-book__search-preview-excerpt {
  -webkit-line-clamp: 4;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

/* Match the form leaf's content box without the result header shifting the hint. */
.soul-book__search-page-content.is-search-idle .soul-book__search-results-viewport {
  position: absolute;
  inset: 70px 70px 90px;
  pointer-events: none;
}

.soul-book__page-edge-button {
  display: grid;
  width: var(--soul-page-edge-control-size);
  height: var(--soul-page-edge-control-size);
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--soul-bookend-nav-color);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, filter 160ms ease;
}

.soul-book__playback-utility {
  position: absolute;
  z-index: 22;
  inset: 0;
  pointer-events: none;
}

.soul-book__playback-control {
  position: absolute;
  top: calc(50% + var(--soul-page-edge-playback-offset));
  pointer-events: auto;
}

.soul-book__playback-control[hidden] {
  display: none;
}

.soul-book__playback-utility[data-soul-book-playback-edge="start"] .soul-book__playback-control[data-soul-book-playback-role="primary"] {
  left: 0;
}

.soul-book__playback-utility[data-soul-book-playback-edge="end"] .soul-book__playback-control[data-soul-book-playback-role="primary"] {
  right: 0;
}

.soul-book__playback-control[data-soul-book-playback-role="mirror"] {
  left: 0;
}

.soul-book__playback-control-icon {
  display: block;
  width: var(--soul-playback-control-icon-size);
  height: var(--soul-playback-control-icon-size);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soul-book__playback-control-glyph--resume {
  display: none;
  fill: currentColor;
  stroke: none;
}

.soul-book__playback-control[data-soul-book-playback-action="resume"] .soul-book__playback-control-glyph--pause {
  display: none;
}

.soul-book__playback-control[data-soul-book-playback-action="resume"] .soul-book__playback-control-glyph--resume {
  display: block;
}

.soul-book__page-jump-icon,
.soul-book__page-step-icon {
  display: block;
  width: var(--soul-bookend-icon-size);
  height: var(--soul-bookend-icon-size);
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soul-book__page-jump-icon path,
.soul-book__page-step-icon path {
  vector-effect: non-scaling-stroke;
}

.soul-book__page-edge-button:hover {
  color: var(--soul-bookend-nav-color);
  filter: brightness(0.72);
}

.soul-book__page-edge-button:focus-visible {
  color: var(--soul-bookend-nav-color);
  filter: brightness(0.72);
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.soul-book__page-qr-trigger {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(101, 82, 63, 0.64);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, filter 160ms ease;
}

.soul-book__page-qr-trigger svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.soul-book__page-qr-trigger:hover,
.soul-book__page-qr-trigger:focus-visible {
  color: #6f4f2c;
  background: transparent;
  filter: brightness(0.78);
}

.soul-book__epilogue {
  margin: 0;
  color: #332b25;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 2;
}

.soul-book__epilogue span {
  display: block;
}

.soul-book__inside-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid rgba(54, 42, 30, 0.36);
  border-radius: 999px;
  color: #3a2d21;
  background: rgba(255, 255, 255, 0.24);
  font-family: var(--soul-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.soul-home__image-panel[hidden] {
  display: none;
}

.soul-home__image-panel {
  position: absolute;
  z-index: 96;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  contain: layout paint;
}

.soul-home__image-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 90, 51, 0.16), transparent 42%),
    linear-gradient(120deg, rgba(3, 3, 2, 0.52), rgba(17, 12, 8, 0.42));
  -webkit-backdrop-filter: blur(18px) saturate(0.78);
  backdrop-filter: blur(18px) saturate(0.78);
  cursor: zoom-out;
}

.soul-home__image-dialog {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #f4ead7;
  background: transparent;
  box-shadow: none;
  place-items: center;
}

.soul-home__image-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.soul-home__image-close span::before,
.soul-home__image-close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: #dfc9a5;
  content: "";
  transform-origin: center;
}

.soul-home__image-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.soul-home__image-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.soul-home__image-stage {
  display: grid;
  width: max-content;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 48px minmax(0, max-content) 48px;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
}

.soul-home__image-figure {
  display: flex;
  /* Hidden navigation must not auto-place the image in a narrow arrow column. */
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  max-width: min(1180px, calc(100vw - 196px));
  max-height: calc(100svh - 72px);
  align-items: center;
  justify-content: center;
  margin: 0;
}

.soul-home__image-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 72px);
  min-height: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.56);
  object-fit: contain;
}

.soul-home__image-nav {
  position: relative;
  display: grid;
  width: 48px;
  height: 72px;
  padding: 0;
  place-items: center;
  border: 0;
  color: #dfc9a5;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.soul-home__image-nav--previous {
  grid-column: 1;
  grid-row: 1;
}

.soul-home__image-nav--next {
  grid-column: 3;
  grid-row: 1;
}

.soul-home__image-nav[hidden] {
  display: none;
}

.soul-home__image-nav span {
  margin-top: -4px;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.soul-home__image-close:hover {
  background: rgba(212, 176, 104, 0.1);
  outline: none;
}

.soul-home .soul-home__image-dialog button:focus-visible {
  outline: none;
}

.soul-home__image-close:focus-visible::after,
.soul-home__image-nav:focus-visible::after,
.soul-home__image-panel.is-keyboard-navigation .soul-home__image-close:focus::after,
.soul-home__image-panel.is-keyboard-navigation .soul-home__image-nav:focus::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 14px;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.soul-home__image-nav:hover,
.soul-home__image-nav:focus-visible {
  color: #f0d8ad;
}

.soul-home__image-nav:hover {
  transform: translateY(-2px);
}

.soul-home__image-nav:disabled {
  cursor: default;
  opacity: 0.26;
  transform: none;
}

.soul-home__stage.is-image-open {
  /* Image navigation focus must not scroll the off-screen half of a mobile spread. */
  min-width: 0;
  overflow: clip;
}

.soul-home__stage.is-image-open .soul-home__book-viewport {
  opacity: 1;
  pointer-events: none;
}

.soul-home__qr-panel[hidden] {
  display: none;
}

.soul-home__qr-panel {
  --soul-qr-panel-top: max(14px, env(safe-area-inset-top));
  --soul-qr-panel-right: max(14px, env(safe-area-inset-right));
  --soul-qr-panel-bottom: max(14px, env(safe-area-inset-bottom));
  --soul-qr-panel-left: max(14px, env(safe-area-inset-left));
  --soul-qr-dialog-height: min(
    430px,
    calc(
      var(--soul-visible-viewport-width, 100vw)
      - var(--soul-qr-panel-left)
      - var(--soul-qr-panel-right)
    ),
    calc(
      var(--soul-visible-viewport-height, 100svh)
      - var(--soul-qr-panel-top)
      - var(--soul-qr-panel-bottom)
    )
  );
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  grid-template-columns: var(--soul-qr-dialog-height);
  grid-template-rows: var(--soul-qr-dialog-height);
  place-content: center;
  place-items: center;
  padding:
    var(--soul-qr-panel-top)
    var(--soul-qr-panel-right)
    var(--soul-qr-panel-bottom)
    var(--soul-qr-panel-left);
}

.soul-home__qr-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(85, 61, 35, 0.2), transparent 38%),
    rgba(5, 4, 3, 0.8);
  backdrop-filter: blur(10px);
  cursor: default;
}

.soul-home__qr-dialog {
  position: relative;
  display: grid;
  width: 88%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(6px, 2vmin, 11px);
  padding: clamp(10px, 4vmin, 20px);
  overflow: hidden;
  border: 1px solid rgba(212, 176, 104, 0.4);
  border-radius: 18px 4px 18px 4px;
  color: #34291f;
  background:
    linear-gradient(145deg, rgba(255, 250, 238, 0.98), rgba(230, 215, 188, 0.98)),
    url("../img/real-homepage/cream-paper.png");
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.7),
    inset 0 0 54px rgba(107, 74, 39, 0.08);
  aspect-ratio: 22 / 25;
  container-type: inline-size;
}

.soul-home__qr-header {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 4cqi, 18px);
  padding-bottom: clamp(6px, 2.8cqi, 12px);
  border-bottom: 1px solid rgba(78, 57, 38, 0.16);
}

.soul-home__qr-header > div {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.soul-home__qr-header p {
  margin: 0 0 clamp(3px, 1.4cqi, 6px);
  color: #a47b48;
  font-family: var(--soul-sans);
  font-size: clamp(7px, 2.1cqi, 9px);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
}

.soul-home__qr-header h2 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--soul-reading-font);
  font-size: clamp(12px, 4.4cqi, 18px);
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soul-home__qr-header > button {
  position: relative;
  display: grid;
  width: clamp(26px, 8.4cqi, 36px);
  height: clamp(26px, 8.4cqi, 36px);
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(69, 49, 31, 0.2);
  border-radius: 50%;
  color: #5d4733;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: 0;
  line-height: 0;
}

.soul-home__qr-header > button::before,
.soul-home__qr-header > button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(11px, 3.8cqi, 16px);
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  pointer-events: none;
  transform-origin: center;
}

.soul-home__qr-header > button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.soul-home__qr-header > button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.soul-home__qr-paper {
  position: relative;
  display: grid;
  width: auto;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(80, 56, 33, 0.14);
  background: #fbf5e8;
  box-shadow:
    0 18px 40px rgba(65, 43, 24, 0.14),
    inset 0 0 24px rgba(112, 77, 42, 0.05);
}

.soul-home__qr-paper canvas {
  display: block;
  width: calc(100% - clamp(16px, 6cqi, 26px)) !important;
  height: calc(100% - clamp(16px, 6cqi, 26px)) !important;
  aspect-ratio: 1;
}

.soul-home__qr-corner {
  position: absolute;
  width: clamp(12px, 5.1cqi, 22px);
  height: clamp(12px, 5.1cqi, 22px);
  border-color: rgba(140, 102, 61, 0.58);
  pointer-events: none;
}

.soul-home__qr-corner--top-left {
  top: clamp(5px, 1.9cqi, 8px);
  left: clamp(5px, 1.9cqi, 8px);
  border-top: 2px solid;
  border-left: 2px solid;
}

.soul-home__qr-corner--top-right {
  top: clamp(5px, 1.9cqi, 8px);
  right: clamp(5px, 1.9cqi, 8px);
  border-top: 2px solid;
  border-right: 2px solid;
}

.soul-home__qr-corner--bottom-left {
  bottom: clamp(5px, 1.9cqi, 8px);
  left: clamp(5px, 1.9cqi, 8px);
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.soul-home__qr-corner--bottom-right {
  right: clamp(5px, 1.9cqi, 8px);
  bottom: clamp(5px, 1.9cqi, 8px);
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.soul-home__qr-link {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(4px, 1.9cqi, 8px);
  height: clamp(28px, 9.3cqi, 40px);
  margin: 0;
}

.soul-home__qr-link input {
  min-width: 0;
  height: 100%;
  padding: 0 clamp(7px, 2.8cqi, 12px);
  border: 1px solid rgba(73, 53, 35, 0.2);
  border-radius: 3px;
  outline: 0;
  color: #55483b;
  background: rgba(255, 255, 255, 0.38);
  font-family: var(--soul-sans);
  font-size: clamp(8px, 2.6cqi, 11px);
}

.soul-home__qr-link input:focus {
  border-color: #9f7644;
  box-shadow: 0 0 0 3px rgba(159, 118, 68, 0.12);
}

.soul-home__qr-link button {
  min-width: clamp(56px, 19cqi, 82px);
  height: 100%;
  padding: 0 clamp(8px, 3.3cqi, 14px);
  border: 1px solid #8c663d;
  border-radius: 3px;
  color: #fff9eb;
  background: #8c663d;
  cursor: pointer;
  font-family: var(--soul-sans);
  font-size: clamp(8px, 2.6cqi, 11px);
  font-weight: 700;
  white-space: nowrap;
}

.soul-home__qr-status {
  position: absolute;
  right: clamp(10px, 4vmin, 20px);
  bottom: clamp(2px, 1cqi, 5px);
  left: clamp(10px, 4vmin, 20px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #8c663d;
  font-family: var(--soul-sans);
  font-size: clamp(7px, 2.1cqi, 9px);
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.soul-home__qr-status:empty {
  display: none;
}

.soul-home__stage.is-qr-open .soul-home__book-viewport {
  opacity: 0.3;
  pointer-events: none;
}

.soul-home__stage.is-book-static .soul-book__page:not(:first-child) {
  display: none;
}

.soul-home__stage.is-book-static .soul-home__book-wrapper {
  width: 570px;
  transform: none;
}

.soul-home__middle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--soul-ink);
  background-color: var(--soul-paper);
  background-image: url("../img/real-homepage/cream-paper.png");
}

.soul-home__paper-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(84, 59, 33, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(84, 59, 33, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.soul-home__middle-inner,
.soul-home__bottom-inner,
.soul-home__footer {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.soul-home__middle-inner {
  padding-block: clamp(86px, 12vw, 160px);
}

.soul-home__eyebrow {
  margin: 0 0 24px;
  color: #8c642d;
  font-family: var(--soul-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.soul-home__middle h2,
.soul-home__bottom h2 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--soul-serif);
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

.soul-home__middle-intro {
  max-width: 760px;
  margin: 34px 0 0;
  color: #62574c;
  font-family: var(--soul-serif);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.9;
}

.soul-home__module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(54px, 8vw, 96px);
  border-top: 1px solid rgba(70, 52, 34, 0.24);
  border-bottom: 1px solid rgba(70, 52, 34, 0.24);
}

.soul-home__module {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 36px clamp(24px, 3vw, 42px) 34px;
  border-right: 1px solid rgba(70, 52, 34, 0.2);
}

.soul-home__module:last-child {
  border-right: 0;
}

.soul-home__module > span {
  color: #a17840;
  font-family: var(--soul-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.soul-home__module h3 {
  margin: 66px 0 18px;
  font-family: var(--soul-serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.18;
}

.soul-home__module p {
  margin: 0;
  color: #6a5f54;
  line-height: 1.78;
}

.soul-home__module a {
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  padding-top: 28px;
  color: #705023;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: rgba(112, 80, 35, 0.38);
  text-underline-offset: 0.42em;
}

.soul-home__bottom {
  --soul-bottom-bg: none;
  position: relative;
  isolation: isolate;
  min-height: min(860px, 100svh);
  color: #e4c98f;
  background-color: var(--soul-leather);
  background-image:
    linear-gradient(130deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    var(--soul-bottom-bg);
  background-size: auto, 300px 300px;
}

.soul-home__bottom::before {
  position: absolute;
  z-index: -1;
  inset: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(212, 176, 104, 0.22);
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.62),
    0 0 0 8px rgba(0, 0, 0, 0.12),
    0 0 0 9px rgba(212, 176, 104, 0.14);
  content: "";
  pointer-events: none;
}

.soul-home__bottom-inner {
  display: flex;
  min-height: 720px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(110px, 15vw, 190px) clamp(20px, 7vw, 96px);
}

.soul-home__bottom .soul-home__eyebrow {
  color: rgba(228, 201, 143, 0.62);
}

.soul-home__bottom h2 {
  max-width: 13ch;
  color: #e8cf99;
  text-shadow: 3px 4px 12px rgba(0, 0, 0, 0.72);
}

.soul-home__bottom-inner > p:not(.soul-home__eyebrow) {
  max-width: 720px;
  margin: 34px 0 0;
  color: rgba(235, 218, 181, 0.66);
  font-family: var(--soul-serif);
  font-size: 1.08rem;
  line-height: 1.9;
}

.soul-home__bottom-cta {
  margin-top: 42px;
}

.soul-home__footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 7vw, 96px) max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 176, 104, 0.16);
  color: rgba(228, 201, 143, 0.45);
  font-family: var(--soul-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.soul-home__footer p {
  margin: 0;
}

.soul-home a:focus-visible,
.soul-home button:focus-visible {
  outline: 3px solid #f0c86f;
  outline-offset: 4px;
}

@media (min-width: 801px) {
  .soul-home__qr-link {
    height: 42px;
    gap: 9px;
  }

  .soul-home__qr-link input {
    padding-inline: 14px;
    font-size: 12px;
  }

  .soul-home__qr-link button {
    min-width: 88px;
    padding-inline: 16px;
    font-size: 12px;
  }
}

@media (max-width: 800px) {
  .soul-home__book-viewport {
    /*
     * The stage remains the device-sized clip. Let the focused page's sibling
     * reach across this inner viewport so the spine stays visibly connected.
     */
    overflow: visible;
  }

  .soul-home__stage.is-mobile-book .soul-home__scale-wrapper {
    width: 1140px;
    transform-origin: left center;
  }

  .soul-home__stage.is-mobile-book .soul-home__book-wrapper {
    transition-delay: var(--soul-book-camera-delay, 0ms);
    transition-duration: var(--soul-book-camera-duration, 300ms);
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .soul-home__stage.is-mobile-book[data-book-camera-motion="instant"] .soul-home__book-wrapper {
    transition-delay: 0ms;
    transition-duration: 0ms;
  }

  .soul-home__stage.is-mobile-book[data-book-camera-motion="turn"] .soul-home__book-wrapper {
    transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  }

  .soul-home__stage.is-mobile-book[data-book-camera-motion="bookend"] .soul-home__book-wrapper {
    transition-timing-function: cubic-bezier(0.32, 0.72, 0.2, 1);
  }

  .soul-home__stage.is-mobile-book .soul-book__page:not(.is-mobile-active-page) {
    pointer-events: none !important;
  }

  .soul-home__stage.is-mobile-book:not(.is-book-flipping) .soul-book__page:not(.is-mobile-spread-page) {
    visibility: hidden !important;
  }

  .soul-home__stage.is-mobile-book:not(.is-book-flipping) .soul-book__page.is-mobile-spread-page,
  .soul-home__stage.is-mobile-book.is-book-flipping .soul-book__page {
    visibility: visible !important;
  }

  body.admin-bar .soul-home__stage {
    height: 100%;
  }

  body.admin-bar .soul-home {
    top: calc(var(--soul-visible-viewport-top, 0px) + 46px);
    height: calc(var(--soul-visible-viewport-height, 100svh) - 46px);
  }

  .soul-home__stage {
    padding:
      max(12px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .soul-home__image-panel {
    padding: 10px;
  }

  .soul-home__image-stage {
    grid-template-columns: 34px minmax(0, max-content) 34px;
    gap: 6px;
  }

  .soul-home__image-nav {
    width: 34px;
    height: 56px;
  }

  .soul-home__image-nav span {
    font-size: 31px;
  }

  .soul-home__image-figure {
    max-width: calc(100vw - 104px);
    max-height: calc(100svh - 40px);
  }

  .soul-home__image-figure img {
    max-height: calc(100svh - 40px);
  }

  .soul-home__topbar {
    width: min(100% - 28px, 1440px);
  }

  .soul-home__module-grid {
    grid-template-columns: 1fr;
  }

  .soul-home__module {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid rgba(70, 52, 34, 0.2);
  }

  .soul-home__module:last-child {
    border-bottom: 0;
  }

  .soul-home__module h3 {
    margin-top: 38px;
  }

  .soul-home__footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}


@media (max-width: 520px) {
  .soul-home__brand span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .soul-home__top-cta {
    padding-inline: 15px;
    font-size: 11px;
  }

  .soul-home__middle-inner,
  .soul-home__bottom-inner,
  .soul-home__footer {
    width: min(100% - 28px, 1240px);
  }

  .soul-home__bottom::before {
    inset: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .soul-home__book-wrapper,
  .soul-home__book-ground-shadow,
  .soul-home__top-cta,
  .soul-home__bottom-cta,
  .soul-book__search-results-list {
    transition: none;
    animation: none;
  }

  .soul-book__search-result {
    transition: none;
  }
}

[data-soul-reader-heading]:focus {
  outline: none;
}

.soul-book__page-text[data-soul-reader-pending-blocks] .so-yinliu {
  min-height: 74px;
  padding: 16px 18px;
  border: 1px dashed rgba(111, 79, 44, 0.28);
  border-radius: 10px;
  background: rgba(212, 176, 104, 0.08);
}

.soul-book__page-text[data-soul-reader-pending-blocks] .so-yinliu__anchor-label,
.soul-book__page-text[data-soul-reader-pending-blocks] .so-yinliu__status {
  display: block;
  margin: 0;
  color: #746557;
  font-family: var(--soul-sans);
  font-size: 12px;
  line-height: 1.6;
}

.soul-book__page-text[data-soul-reader-pending-blocks] .so-yinliu__config,
.soul-book__page-text[data-soul-reader-pending-blocks] [data-yinliu-audio],
.soul-book__page-text[data-soul-reader-pending-blocks] [data-yinliu-video-stage] {
  display: none;
}

@media (max-width: 760px) {
  .soul-home__reader-fallback {
    padding:
      max(12px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .soul-home__reader-fallback-shell {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .soul-home__reader-fallback-sections {
    grid-template-columns: 1fr;
  }

  .soul-home__reader-fallback-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
