.reader-resume { position: fixed; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 8; max-width: calc(100% - 40px); margin: 0; } .reader-resume-button { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--muted); background: var(--ground); box-shadow: 3px 3px 0 var(--rule); padding: 12px 16px; font: 12px var(--mono); min-height: 44px; } .reader-resume-button svg, .reader-art-close svg { width: 22px; height: 22px; flex: 0 0 auto; } .reader-active { height: 100svh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; } .reader-active main { flex: 1; min-height: 0; width: min(1680px, calc(100% - 40px)); display: flex; flex-direction: column; padding-bottom: max(8px, env(safe-area-inset-bottom)); } .reader-active main > .back, .reader-active .site-footer, .reader-active .reading-thread, .reader-active .end-nav, .reader-active .progress { display: none; } .reader-active .piece-header { flex: 0 0 auto; width: 100%; max-width: none; margin: 12px 0 8px; } .reader-active .piece-header > :not(h1) { display: none !important; } .reader-active .piece-header h1 { font-size: clamp(1.5rem, 2.5vw, 2.35rem); line-height: 1.05; margin: 0; } .paged-reader { flex: 1; min-height: 0; display: flex; flex-direction: column; } .reader-routebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; font: 11px var(--mono); } .reader-collection { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; white-space: nowrap; } .reader-routebar svg, .reader-section-step svg { width: 19px; height: 19px; flex: 0 0 auto; } .reader-entry-nav { position: relative; display: flex; align-items: center; min-width: 0; } .reader-entry-link { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--ink); } .reader-entry-unavailable { opacity: .2; } .reader-entry-select { appearance: none; height: 44px; min-width: 0; max-width: 210px; padding: 0 22px 0 8px; border: 0; background: var(--ground); color: var(--ink); font: inherit; text-overflow: ellipsis; } .reader-entry-nav::after, .reader-chapter-label::after { content: ''; position: absolute; right: 53px; top: 17px; width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); pointer-events: none; } .reader-section-step { display: grid; place-items: center; padding: 0; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); } .reader-section-step:disabled { opacity: .25; cursor: default; } .reader-collection:hover, .reader-entry-link:hover, .reader-section-step:not(:disabled):hover { color: var(--accent); } .paged-reader, .reader-measure { --page-paper: #e9e0cb; --page-ink: #28231c; --page-muted: #74634d; --page-rule: #b7a88c; --page-mark: #813d27; --page-grain: repeating-linear-gradient(17deg, transparent 0 3px, rgb(73 47 15 / .018) 3px 4px), repeating-linear-gradient(103deg, transparent 0 5px, rgb(255 255 255 / .045) 5px 6px); } .room-antistress .paged-reader, .room-antistress .reader-measure { --page-paper: #dcd5b9; --page-ink: #292a20; --page-muted: #61634e; --page-rule: #aaac8f; --page-mark: #484e34; --page-grain: repeating-linear-gradient(0deg, transparent 0 3px, rgb(30 35 15 / .025) 3px 4px), repeating-linear-gradient(93deg, transparent 0 7px, rgb(255 255 255 / .045) 7px 8px); } .reader-toolbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 8px; font: 11px var(--mono); color: var(--muted); } .reader-chapter-label { position: relative; display: flex; align-items: center; gap: 0; min-width: 0; } .reader-chapters { appearance: none; font: inherit; height: 44px; max-width: 190px; border: 0; border-bottom: 1px solid var(--rule); padding: 4px 24px 4px 4px; background: var(--ground); color: var(--ink); text-overflow: ellipsis; } .reader-scroll { font: inherit; color: var(--muted); background: none; border: 0; padding: 8px 0 8px 8px; min-height: 44px; } .reader-scroll:hover { color: var(--accent); } .reader-stage { position: relative; isolation: isolate; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; perspective: 1600px; border: 1px solid #786b54; background: var(--page-paper); box-shadow: 2px 2px 0 #8c806b, 3px 3px 0 #3c352a, 5px 5px 0 #887d68; } .reader-leaf { --page-gutter: clamp(24px, 3.3vw, 44px); position: relative; box-sizing: border-box; min-width: 0; min-height: 0; height: 100%; padding: 52px var(--page-gutter) 70px; overflow: hidden; overflow-wrap: anywhere; font: 400 clamp(18px, 1.6vw, 21px)/1.45 Newsreader, Georgia, serif; color: var(--page-ink); background-color: var(--page-paper); background-image: var(--page-grain); contain: layout style; } .reader-page-body { height: 100%; min-height: 0; display: flow-root; } .reader-leaf p { margin: 0 0 .8em; text-wrap: pretty; } .reader-leaf p:last-child { margin-bottom: 0; } .reader-leaf p.reader-continuation { text-indent: 0; } .reader-leaf h2, .reader-leaf h3 { font: 400 clamp(2.2rem, 4vw, 3.8rem)/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.025em; margin: 0 0 .2em; } .reader-leaf p.reader-section-heading { font: italic 32px/1.05 'Instrument Serif', Georgia, serif; color: var(--page-mark); margin: 0 0 .7em; padding-bottom: .3em; border-bottom: 1px solid var(--page-rule); } .reader-leaf p.reader-subheading { font: italic clamp(1.5rem, 2.4vw, 2rem)/1.05 'Instrument Serif', Georgia, serif; color: var(--page-muted); margin-bottom: 1em; } .reader-leaf .reader-dropcap::first-letter { float: left; font: 400 3.55em/.74 'Instrument Serif', Georgia, serif; padding: .07em .08em 0 0; color: var(--page-mark); } .reader-leaf a { color: var(--page-mark); } .reader-leaf a:focus-visible, .reader-leaf button:focus-visible { outline-color: var(--page-mark); outline-offset: 3px; } .reader-page-body > img { max-height: 100%; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; } .reader-leaf p > img { max-height: 50%; width: auto; max-width: 100%; object-fit: contain; } .reader-leaf hr { width: 100%; border: 0; border-top: 1px solid var(--page-rule); margin: 1em 0; } .reader-running-head { position: absolute; top: 19px; left: var(--page-gutter); right: var(--page-gutter); display: flex; gap: 18px; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid var(--page-rule); color: var(--page-muted); font: 10px/1.15 var(--mono); } .reader-running-head span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .reader-running-head span:last-child { white-space: nowrap; } .reader-folio { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--page-muted); font: 12px/1 var(--mono); } .reader-contents-title { font: 400 clamp(3rem, 5vw, 5rem)/.88 'Instrument Serif', Georgia, serif; letter-spacing: -.035em; max-width: 8ch; margin: 0 0 .55em; color: var(--page-ink); } .reader-leaf p.reader-contents-entry { font-size: 1.1em; padding-bottom: .6em; border-bottom: 1px solid var(--page-rule); margin-bottom: .6em; } .reader-contents-entry a { color: var(--page-ink); text-decoration: none; } .reader-contents-entry a:hover { color: var(--page-mark); } .reader-stage > .reader-leaf-right { display: none; } .reader-leaf.reader-overflow-page .reader-page-body { overflow: auto; } .reader-empty { display: flex; align-items: center; justify-content: center; } .reader-end-mark { color: var(--page-muted); font-style: italic; } .reader-art { margin: 0 0 1em; display: grid; grid-template-rows: auto auto; gap: 8px; break-inside: avoid; } .reader-art-open { display: block; min-height: 0; height: var(--reader-panel-height, 240px); width: 100%; padding: 0; border: 0; background: var(--page-paper); cursor: zoom-in; overflow: hidden; } .reader-art-open img { width: 100%; height: 100%; max-height: 100%; object-fit: cover; border: 0; margin: 0; } .reader-art-caption { margin: 0; padding-left: 10px; border-left: 2px solid var(--page-mark); font: 10px/1.4 var(--mono); color: var(--page-muted); } .reader-art-full .reader-art { margin: 0; } .reader-art-full .reader-art-open { height: var(--reader-full-panel-height, var(--reader-panel-height)); } .reader-corner { position: absolute; z-index: 4; bottom: 0; left: 0; width: min(42%, 148px); height: 84px; padding: 0; border: 0; background: none; color: var(--page-ink); clip-path: polygon(0 0, 40px 40px, 100% 40px, 100% 100%, 0 100%); touch-action: manipulation; } .reader-corner-next { left: auto; right: 0; clip-path: polygon(100% 0, calc(100% - 40px) 40px, 0 40px, 0 100%, 100% 100%); } .reader-corner-fold { position: absolute; left: 0; bottom: 0; width: 84px; height: 84px; pointer-events: none; clip-path: polygon(0 0, 100% 100%, 0 100%); background: linear-gradient(135deg, #a48d67 1%, #f6ecd8 4%, #ddcba9 44%, #bba37b 100%); } .reader-corner-next .reader-corner-fold { left: auto; right: 0; transform: scaleX(-1); } .reader-corner svg { position: absolute; left: 14px; bottom: 14px; width: 26px; height: 26px; pointer-events: none; } .reader-corner-next svg { left: auto; right: 14px; } .reader-corner:disabled { opacity: .2; cursor: default; } .reader-corner:not(:disabled):hover .reader-corner-fold { filter: brightness(1.1); } .reader-corner:focus-visible { outline: 0; color: #fff8e9; } .reader-corner:focus-visible .reader-corner-fold { background: var(--page-mark); } .reader-navigation { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 8px; font: 11px var(--mono); } .reader-navigation button { display: inline-flex; align-items: center; gap: 8px; font: inherit; border: 0; background: none; min-width: 44px; min-height: 52px; padding: 8px 4px; } .reader-navigation button svg { width: 24px; height: 24px; flex: 0 0 auto; } .reader-previous { justify-self: start; } .reader-next { justify-self: end; } .reader-navigation button:disabled { opacity: .3; cursor: default; } .reader-counter-stack { min-width: 0; text-align: center; } .reader-counter { color: var(--muted); white-space: nowrap; } .reader-touch-hint { display: none; } .reader-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; } .reader-measure { position: fixed; left: -10000px; top: 0; visibility: hidden; pointer-events: none; overflow: hidden; } .reader-art-dialog { width: min(1200px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 48px 16px 16px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink); overflow: auto; } .reader-art-dialog::backdrop { background: rgb(0 0 0 / .92); } .reader-art-close { position: absolute; right: 16px; top: 4px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; font: 12px var(--mono); } .reader-art-large { width: 100%; max-height: 72svh; object-fit: contain; } .reader-art-description { margin: 12px 0 0; font: 11px/1.5 var(--mono); color: var(--muted); } .reader-turn-sheet { position: absolute; z-index: 3; inset-block: 0; left: 0; width: 100%; pointer-events: none; background: var(--page-paper); backface-visibility: hidden; transform-origin: left center; } .reader-turn-sheet > .reader-leaf { display: block; } .reader-turn-sheet::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / .08), transparent 22%, rgb(0 0 0 / .25)); } .reader-turn-back { transform-origin: right center; } .reader-turn-back::after { background: linear-gradient(270deg, rgb(0 0 0 / .08), transparent 22%, rgb(0 0 0 / .25)); } @media (min-width: 900px) { .reader-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: 2px 2px 0 #8c806b, 3px 3px 0 #3c352a, 5px 5px 0 #887d68, 0 14px 40px rgb(0 0 0 / .25); } .reader-stage::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: calc(50% - 16px); width: 32px; pointer-events: none; background: linear-gradient(90deg, transparent, rgb(44 31 11 / .12) 44%, rgb(255 255 255 / .16) 49%, rgb(44 31 11 / .22) 51%, transparent); } .reader-stage > .reader-leaf-right { display: block; border-left: 1px solid var(--page-rule); } .reader-stage > .reader-leaf-right.reader-empty { display: flex; } .reader-turn-sheet { width: 50%; } .reader-turn-forward { left: 50%; } } @media (max-width: 600px) { .reader-active main { width: calc(100% - 24px); } .reader-active .piece-header { margin: 10px 0 4px; } .reader-active .piece-header h1 { font-size: 1.45rem; } .reader-toolbar { gap: 8px; margin-bottom: 4px; font-size: 10px; } .reader-chapters { max-width: 138px; } .reader-routebar { gap: 4px; font-size: 10px; } .reader-entry-select { width: 136px; max-width: calc(100vw - 220px); } .reader-chapter-label { gap: 0; } .reader-chapters { max-width: 112px; } .reader-scroll { max-width: 95px; text-align: right; } .reader-leaf { --page-gutter: 18px; padding: 39px var(--page-gutter) 70px; line-height: 1.45; } .reader-running-head { top: 12px; font-size: 8px; gap: 10px; padding-bottom: 5px; } .reader-folio { bottom: 22px; font-size: 10px; } .reader-art-caption { font-size: 9px; } .reader-navigation { padding-top: 4px; } .reader-navigation button { gap: 6px; } .reader-navigation button svg { width: 22px; height: 22px; } .reader-touch-hint { display: block; margin-top: 5px; color: var(--muted); font: 8.5px/1.2 var(--mono); white-space: nowrap; } } @media (prefers-reduced-motion: no-preference) { .reader-turn-forward { animation: reader-forward .32s cubic-bezier(.2,.65,.3,1) both; } .reader-turn-back { animation: reader-back .32s cubic-bezier(.2,.65,.3,1) both; } @keyframes reader-forward { from { transform: rotateY(0); } to { transform: rotateY(-100deg); } } @keyframes reader-back { from { transform: rotateY(0); } to { transform: rotateY(100deg); } } } @media print { .paged-reader, .reader-resume, .reader-measure, .reader-art-dialog { display: none !important; } body.reader-active { display: block; height: auto; overflow: visible; } .reader-active main { display: block; width: 100%; padding: 0; } .reader-active .prose.archived[hidden] { display: block !important; } .reader-active .piece-header { display: block; } }