.reading-wrap { max-width: 815px; }
.reading-main { padding-bottom: clamp(3rem, 8vw, 6rem); }
.reading-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--blue-deep); font-size: .9rem; }
.reading-link:hover, .reading-link:focus-visible { text-decoration: underline; text-underline-offset: .32em; }
.reading-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1rem; padding: clamp(1.85rem, 5vw, 3.9rem) 0 1.3rem; }
.reading-heading h1, .story-cover h1 { font: 700 clamp(2rem, 5.1vw, 3.55rem)/1.16 var(--serif); letter-spacing: -.06em; }
.reading-heading h1 { color: var(--blue-deep); }
.reading-heading p { margin-top: .55rem; max-width: 32rem; color: var(--muted); }
.reading-heading a { white-space: nowrap; align-self: end; }
.journal-sheet, .story-sheet { padding: clamp(1.2rem, 4vw, 3.25rem); background: var(--white); border: 1px solid var(--line); border-radius: 5px 23px 5px 5px; }
.journal-entry-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.journal-entry-meta, .scene-place { color: var(--blue); font-size: .89rem; }
.journal-entry-meta time { color: var(--muted); }
.journal-sheet h2, .story-sheet h2 { margin: 1rem 0 .75rem; color: var(--blue-deep); font: 700 clamp(1.55rem, 4vw, 2.58rem)/1.28 var(--serif); letter-spacing: -.04em; scroll-margin-top: 1rem; }
.story-sheet h2:focus, .journal-sheet h2:focus { outline: none; }
.reading-prose { font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.95; }
.reading-prose p + p { margin-top: 1rem; }
.reading-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.reading-feedback { color: var(--blue); font-size: .88rem; margin-top: .55rem; }
.reading-feedback:empty { display: none; }
.journal-pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: .65rem 0; }
.reading-details { margin-top: .75rem; border: 1px solid var(--line); border-radius: 5px 14px 5px 5px; background: var(--white); padding-inline: .9rem; }
.reading-details summary { cursor: pointer; color: var(--blue-deep); padding: .65rem 0; font-size: .92rem; font-weight: 600; }
.reading-details summary span { font-weight: 400; color: var(--muted); margin-left: .5rem; }
.reading-details > p { color: var(--muted); margin-bottom: .75rem; font-size: .9rem; }
.journal-list { margin: 0 0 .7rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.journal-list li { min-width: 0; border-top: 1px solid var(--line); }
.journal-list a { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; padding: .55rem .2rem; font-size: .94rem; min-height: 44px; }
.journal-list a[aria-current="page"], .journal-list a:hover { background: var(--route-blue); }
.journal-list small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.reading-footer { margin-top: 1.25rem; }
.reading-footer .reading-link { text-decoration: underline; text-underline-offset: .32em; }

.story-cover { margin: clamp(1.1rem, 3.5vw, 2.6rem) 0 .9rem; border-radius: 5px 26px 5px 5px; position: relative; isolation: isolate; min-height: clamp(172px, 29vw, 297px); overflow: hidden; display: flex; align-items: flex-end; background: #142331; color: #f4f6f7; }
.story-cover img, .story-cover::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.story-cover img { object-fit: cover; object-position: 60% 62%; }
.story-cover::after { content: ""; background: linear-gradient(90deg, #091827df, #14253264 58%, #09182718 100%), linear-gradient(0deg, #101e2a95, transparent 65%); }
.story-cover-copy { padding: clamp(1.2rem, 4vw, 3.25rem); }
.story-cover-copy p { color: #e0e8ee; font-size: .89rem; margin-bottom: .45rem; }
.story-sheet { border-top-right-radius: 13px; }
.story-choices { display: grid; gap: .55rem; margin-top: 1.2rem; }
.story-choices:empty { display: none; }
.story-choice { text-align: left; min-height: 47px; background: var(--route-blue); color: var(--blue-deep); border: 1px solid var(--rule); border-radius: 5px 12px 5px 5px; padding: .6rem .9rem; }
.story-choice:hover { border-color: var(--blue); }
.story-controls { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.story-endings-list { margin: 0 0 .75rem; padding-left: 1.2rem; color: var(--blue-deep); }
.story-endings-list:empty { display: none; }
.story-postscript { border-top: 1px solid var(--line); padding: .7rem .15rem .9rem; }
.story-postscript h3 { font: 700 1.17rem/1.4 var(--serif); color: var(--blue-deep); margin-bottom: .35rem; }
.story-postscript p + p { margin-top: .35rem; }

@media (max-width: 600px) {
  .reading-heading { align-items: start; }
  .journal-list { grid-template-columns: 1fr; }
  .story-cover { min-height: 180px; }
}
