/* The light bulb controls a shared, remembered page theme. */
.theme-toggle{border:0;padding:0;background:transparent;font:inherit;cursor:pointer;flex-shrink:0}.theme-toggle[aria-pressed=true] svg{fill:#f1c86c26}.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:4px}
html[data-theme="dark"]{color-scheme:dark;--ink:#eeeae2;--muted:#aaaFA8;--line:#3d463f;--accent:#9bc28e;--red:#ed8585;--green:#a3c898;--paper:#171d19}
html[data-theme="dark"] body{background:#171d19;color:var(--ink)}
html[data-theme="dark"] #published{--entrance-green:#b0d89c;--entrance-hover:#c4e6b4}
html[data-theme="dark"] #manuscripts{--entrance-green:#9bc68b;--entrance-hover:#b4dba8}
html[data-theme="dark"] #visual{--entrance-green:#85b57f;--entrance-hover:#a0ce99}
html[data-theme="dark"] .archive-row{--entrance-green:#70a67d;--entrance-hover:#91c59d}
html[data-theme="dark"] .newsletter-banner{background:#202a22;color:#b0d89c}
html[data-theme="dark"] .contact-icon,html[data-theme="dark"] .section-label,html[data-theme="dark"] .threshold{color:var(--accent)}
html[data-theme="dark"] .contact-icon:hover,html[data-theme="dark"] .contact-icon:focus-visible{background:#a3c89816}
html[data-theme="dark"] .contact-tooltip{background:#252e27;color:#c4dfb9;border-color:var(--line)}
html[data-theme="dark"] .intro:before{border-color:#303c33}
html[data-theme="dark"] .intro:after{background:linear-gradient(150deg,transparent 49.85%,#2b372e 50%,transparent 50.15%)}
html[data-theme="dark"] .hero-art figcaption,html[data-theme="dark"] .manuscript-status,html[data-theme="dark"] .intro-copy,html[data-theme="dark"] .reading-time{color:#b7bdb4}
html[data-theme="dark"] .shelf p,html[data-theme="dark"] .manuscript-reading p{color:#d3d8cf}
html[data-theme="dark"] .manuscript-panel>summary{border-color:var(--line)}
html[data-theme="dark"] .manuscript-excerpt .manuscript-reading{background:#202720;border-color:#3a453a}
html[data-theme="dark"] .manuscript-excerpt .excerpt-text p{color:#e4e6dc}
html[data-theme="dark"] .shelf .published-story h3 a{color:var(--red)}
html[data-theme="dark"] .shelf .published-story h3 a:hover,html[data-theme="dark"] .shelf a:hover{color:#ffacac}
html[data-theme="dark"] .story-access{color:#a3c898}
html[data-theme="dark"] .cover-circle{outline-color:#55634f}
html[data-theme="dark"] .image-viewer{background:#202720;color:var(--ink)}
html[data-theme="dark"] .image-viewer.is-sketch{background:#f7f5ee;color:#171717}
html[data-theme="dark"] .viewer-close,html[data-theme="dark"] .viewer-navigation button{background:#29322b;color:#eeeae2;border-color:#576354}
/* Remove the white canvas around the decorative identity artwork. */
.identity-wordmark,.hero-cloud,.header-seal img{filter:url(#identity-transparent-paper);mix-blend-mode:normal}
.identity-wordmark{background:transparent}
html[data-theme="dark"] .identity-wordmark,html[data-theme="dark"] .hero-cloud,html[data-theme="dark"] .header-seal img{filter:url(#identity-transparent-paper);mix-blend-mode:normal}
html[data-theme="dark"] #published[open]>.shelf::before,html[data-theme="dark"] #manuscripts[open]>.manuscript-shelf::before,html[data-theme="dark"] #manuscripts[open] .manuscript-glyph-anchor::before{filter:invert(1) blur(4px);mix-blend-mode:screen;opacity:.1}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] summary:focus-visible{outline-color:#b0d89c}
/* Reader and preview controls use the same theme; book pages keep their artwork. */
html[data-theme="dark"] .reader-nav,html[data-theme="dark"] .pdf-toolbar,html[data-theme="dark"] .pdf-viewport,html[data-theme="dark"] .preview-scroll{background:#202720;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .pdf-actions button,html[data-theme="dark"] .preview-toolbar button{background:#29322b;color:#dfe9dc;border-color:#576354}
html[data-theme="dark"] .preview-toolbar button[aria-pressed=true]{background:#b0d89c;color:#172019;border-color:#b0d89c}
html[data-theme="dark"] .preview-heading p,html[data-theme="dark"] .preview-fallback{color:#b7bdb4}
html[data-theme="dark"] .preview-heading a,html[data-theme="dark"] .preview-fallback a,html[data-theme="dark"] .reader-nav a{color:#b0d89c}
html[data-theme="dark"] .site-header .back,html[data-theme="dark"] .site-header .letters,html[data-theme="dark"] footer a{color:#b0d89c}
html[data-theme="dark"] .preview-purchase .solid{background:#b0d89c;border-color:#b0d89c;color:#172019}

/* Dark mode replaces the cloud, including its shadow, with an isolated white sigil. */
.hero-night-sigil{display:none;width:100%;height:365px;max-width:350px;object-fit:contain;overflow:visible}
html[data-theme="dark"] .hero-cloud{display:none}
html[data-theme="dark"] .hero-night-sigil{display:block}
@media(max-width:700px){.hero-night-sigil{height:265px;max-width:260px}}

.header-identity-controls{display:flex;align-items:center;gap:14px;flex-shrink:0}
.header-identity-controls .theme-toggle{width:auto;min-height:44px;gap:6px;padding:0 9px;border-radius:8px}
.theme-toggle-label{font-size:12px;letter-spacing:.2px;white-space:nowrap}
@media(max-width:700px){.header-identity-controls{gap:6px}.header-identity-controls .theme-toggle{padding:0 4px;gap:4px}.theme-toggle-label{font-size:11px}.contact-icons{gap:2px}}
