:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #080b0e; color: #e3e6df; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 760px; padding: max(30px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(200px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overflow-wrap: anywhere; }
h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 500; letter-spacing: .06em; margin: 14px 0; }
h2 { font-size: 1.08rem; font-weight: 500; margin: 0 0 14px; line-height: 1.5; }
p { line-height: 1.8; margin: 10px 0; }
.eyebrow { font-size: .69rem; letter-spacing: .15em; color: #a7b4af; }
.intro { color: #c3cac4; font-size: .98rem; }
.note { font-size: .78rem; color: #9daaa9; }
.comparison { margin: 28px 0; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
button, input { font: inherit; }
button { color: inherit; border: 1px solid #3c4949; border-radius: 6px; background: #11191d; padding: 12px; min-height: 48px; touch-action: manipulation; cursor: pointer; }
button:hover { border-color: #bcc9bd; }
button:disabled { opacity: .55; cursor: default; }
button, input, summary { scroll-margin-top: 16px; scroll-margin-bottom: 200px; }
:focus-visible { outline: 2px solid #d3daba; outline-offset: 4px; }
.modes button { min-height: 68px; font-size: .93rem; padding: 10px 3px; }
.modes button span { display: block; font-size: .67rem; color: #afbcba; margin-top: 5px; }
.modes button[aria-pressed="true"] { border-color: #d3daba; color: #e9edcd; background: #252c29; }
.mode-description { min-height: 3.6em; font-size: .85rem; color: #bcc7bf; }
.reading { border-top: 1px solid #46534f; border-bottom: 1px solid #34413e; padding: 18px 0 24px; }
.scene-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.text-button { background: transparent; padding: 8px; border-color: transparent; font-size: .78rem; color: #aebbb6; }
.prose { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.04rem; line-height: 2; letter-spacing: .025em; min-height: 235px; }
.prose p { line-height: 2; margin: 20px 0; }
.prose p:first-child { margin-top: 8px; }
.next { width: 100%; text-align: left; margin-top: 12px; padding: 16px; background: #182220; border-color: #647568; }
.next::after { content: " →"; color: #bbcaad; }
.reflection { padding: 25px 0 15px; }
.reflection p { font-size: .92rem; }
.reflection button { margin: 12px 0; }
details { border-top: 1px solid #2d3937; margin-top: 28px; font-size: .82rem; color: #aab7b2; }
summary { cursor: pointer; min-height: 48px; padding: 16px 0; }
details p { margin-bottom: 16px; }
.footer { font-size: .8rem; }
a { color: #b9c9c0; text-underline-offset: 4px; }
.audio-dock { position: fixed; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 740px); border: 1px solid #34433e; border-bottom: none; border-radius: 12px 12px 0 0; background: #0d1417; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); box-shadow: 0 -12px 26px #0006; }
.volume-row { display: grid; grid-template-columns: auto minmax(20px, 1fr) 3.4rem; gap: 12px; align-items: center; font-size: .8rem; }
input[type="range"] { width: 100%; min-height: 36px; accent-color: #c9d5b2; }
output { text-align: right; font-variant-numeric: tabular-nums; }
#play-toggle { width: 100%; min-height: 44px; border-color: #80937b; background: #28362b; }
#status { color: #aebbad; font-size: .72rem; margin: 5px 0 0; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { body { padding-left: 16px; padding-right: 16px; } .prose { font-size: 1rem; } .modes { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
