/* A photographic cover for this personal essay; existing article themes stay scoped. */
.moss-page {
  --next-body: #1b1d1f;
  --next-content: #222426;
  --next-accent: #b5b9a0;
  --next-text: #deddd5;
  --next-heading: #ece9e2;
  --next-muted: #aaa9a1;
  background: #1b1d1f;
}
.moss-shell { width: min(1120px, calc(100% - 40px)); margin: 24px auto 0; }
.moss-cover { position: relative; isolation: isolate; min-height: 420px; overflow: hidden; background: #303729; color: #f5f3e9; }
.moss-cover-image, .moss-cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.moss-cover-shade { background: rgb(12 17 10 / 30%); }
.moss-cover-top { position: relative; display: flex; justify-content: space-between; gap: 18px; padding: 26px 34px; font: 10px/1.6 "IBM Plex Mono", monospace; letter-spacing: .08em; color: #eeeee6; }
.moss-cover-title { position: relative; margin: 147px 40px 34px; text-shadow: 0 2px 14px rgb(0 0 0 / 70%); }
.moss-cover-title h1 { margin: 4px 0 12px; color: #fffef4; font-size: 38px; line-height: 1.4; font-weight: 500; letter-spacing: .06em; }
.moss-cover-title p { margin: 0; color: #f1f0e7; font-size: 15px; line-height: 1.8; }
.moss-cover-title .moss-eyebrow { font-size: 11px; letter-spacing: .14em; }
.moss-caption-bar { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0 15px; border-bottom: 1px solid rgb(236 233 226 / 16%); color: #b8b8af; font-size: 11px; line-height: 1.7; }
.moss-caption-bar a { color: #e2e3d6; white-space: nowrap; }
.moss-caption-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.moss-reading-layout { max-width: 780px; margin: 0 auto; padding: 32px 28px 20px; }
.moss-margin { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 30px; font-size: 11px; line-height: 1.9; color: #aaa9a1; }
.moss-margin p { margin: 0; }
.moss-margin .moss-author { color: #e8e7dd; font: 500 12px/1.7 "IBM Plex Mono", monospace; letter-spacing: .06em; }
.moss-prose { min-width: 0; font-size: 16px; line-height: 1.85; color: #deddd5; }
.moss-prose p { margin: 0 0 18px; }
.moss-prose strong { color: #f0ede4; font-weight: 600; }
/* The author requested a distinct handwritten-style voice for these questions. */
.moss-prose .moss-questions { margin: 0 0 26px; padding-left: 1.3em; list-style-type: disc; font-family: "KaiTi", "STKaiti", "楷体", serif; font-size: 17px; line-height: 1.8; }
.moss-prose .moss-questions li { margin-bottom: 8px; padding-left: .2em; }
.moss-prose .moss-questions li::marker { color: #aaa9a1; }
.moss-prose .moss-lead { margin: 0 0 34px; color: #f0ede4; font-size: 17px; line-height: 1.85; }
.moss-water { margin: -8px 0 42px; }
.moss-water video { display: block; width: 100%; height: auto; border: 1px solid rgb(236 233 226 / 14%); }
.moss-capture { margin: 26px 0 32px; }
.moss-capture a { position: relative; display: block; }
.moss-capture img { display: block; width: 100%; height: auto; border: 1px solid rgb(236 233 226 / 14%); }
.moss-image-open { position: absolute; bottom: 10px; right: 10px; padding: 3px 9px; background: #1b1d1f; color: #f1eee6; font-size: 11px; }
.moss-capture a:hover img { border-color: #b5b9a0; }
.moss-capture figcaption { margin-top: 10px; color: #aaa9a1; font-size: 11px; line-height: 1.8; }
.moss-article-footer { border-top: 1px solid rgb(236 233 226 / 16%); padding-top: 20px; }
.moss-article-footer p { color: #aaa9a1; font-size: 11px; line-height: 1.8; }
.moss-article-footer a { display: inline-block; margin-top: 8px; color: #e4e6d8; font-size: 13px; }
.moss-article-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.moss-page .next-footer { border: 0; }

/* Keep the shared home-card layout; only the background and contrast differ. */
.next-home .moss-index-post { padding: 0; overflow: hidden; }
.next-home .moss-preview { --next-muted: #e2e2d8; --next-text: #f1f0e7; --next-heading: #fffef4; position: relative; isolation: isolate; overflow: hidden; }
.moss-preview-image, .moss-preview-shade { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.moss-preview-shade { background: rgb(12 17 10 / 52%); }
.next-home .moss-preview .next-post-footer span { color: #f5f3e9; }
.next-home .moss-preview:hover .next-post-footer span { color: #1b1d1f; }
.next-home .moss-preview:focus-visible { outline: 2px solid #ece9e2; outline-offset: -5px; }

@media (max-width: 900px) {
  .moss-reading-layout { padding: 30px 20px 16px; }
}
@media (max-width: 680px) {
  .moss-shell { width: calc(100% - 28px); margin-top: 14px; }
  .moss-cover { min-height: 360px; }
  .moss-cover-top { padding: 20px; font-size: 9px; flex-wrap: wrap; gap: 5px 12px; }
  .moss-cover-title { margin: 140px 22px 24px; }
  .moss-cover-title h1 { font-size: 30px; }
  .moss-cover-title p { font-size: 13px; }
  .moss-caption-bar { font-size: 10px; gap: 12px; }
  .moss-reading-layout { display: block; padding: 26px 8px 8px; }
  .moss-margin { position: static; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
  .moss-margin p { margin: 0; }
  .moss-prose { font-size: 15px; }
  .moss-prose .moss-lead { font-size: 16px; margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .moss-page *, .moss-page *::before, .moss-page *::after, .moss-preview { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
