/* A quiet, text-first layout scoped to /quote/. */
body.quote-page {
  background: #f8f8f5;
  color: #303831;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.quote-page::before,
.quote-page #wrapper > .bg { display: none; }
.quote-page #nav { margin: 0 auto; background: #2d302f; }

#main.quote-main {
  box-sizing: border-box;
  display: grid;
  align-items: center;
  width: calc(100% - 3rem);
  max-width: 50rem;
  min-height: calc(100svh - 4rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-radius: 0;
  background: transparent;
}

#main.quote-main > * { margin: 0; padding: 0; border: 0; background: transparent; }
.quote-reading { width: 100%; min-width: 0; }
.quote-reading:focus-visible { outline: 1px solid #83968a; outline-offset: 1rem; }
.quote-reading blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: #303831;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-style: normal;
  line-height: 2;
}

.quote-reading #quote-text { margin: 0; text-align: left; overflow-wrap: anywhere; }
.quote-reading[data-enhanced="true"] #quote-full {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.quote-reading #quote-pending { visibility: hidden; user-select: none; }
.quote-reading #quote-visible[hidden] { display: none; }
.quote-reading figcaption {
  margin-top: 1.5rem;
  min-height: 1.8em;
  color: #657167;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.8;
}
.quote-reading cite { font-style: normal; }
.quote-reading cite::before { content: "— "; }

@media (max-width: 980px) {
  #main.quote-main { min-height: 100svh; padding: 4rem 0; }
  .quote-page #navPanelToggle { color: #344e3d; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-page *, .quote-page *::before, .quote-page *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
