/* Shared archive shelf and reader. Scoped to keep the game landing styles independent. */
.bce-reader, .bce-shelf { --archive-ink: #ebe7db; --archive-muted: #b5bcab; --archive-line: #64715d; color: var(--archive-ink); background: #202b23 url('../img/textures/black-paper.png'); font-family: 'Noto Serif', Georgia, serif; }
.bce-reader { margin: 0; font-size: 16px; }
.bce-reader *, .bce-shelf * { box-sizing: border-box; }
.bce-reader a, .bce-shelf a { color: inherit; }
.bce-reader a:focus-visible, .bce-shelf a:focus-visible { outline: 3px solid #c6a76b; outline-offset: 6px; }
.bce-masthead { max-width: 1040px; margin: 0 auto; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; border-bottom: 1px solid #64715d70; font: 13px/1.5 Arial, sans-serif; }
.bce-masthead a { text-decoration: none; }
.bce-masthead a:hover { text-decoration: underline; }
.bce-brand { display: flex; align-items: baseline; gap: 12px; font: 22px/1.2 'Noto Serif', Georgia, serif; letter-spacing: -.035em; white-space: nowrap; }
.bce-brand span { padding-left: 12px; border-left: 1px solid var(--archive-line); font: 10px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--archive-muted); }
.bce-archive-link { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 12px; border: 1px solid #64715d90; border-radius: 3px; color: #d9ccad; }
.bce-masthead .bce-archive-link:hover { background: #ffffff09; border-color: #b6a17d; text-decoration: none; }
@media (max-width: 1120px) { .bce-masthead { margin: 0 40px; } }
.bce-work-heading { max-width: 1120px; margin: auto; padding: 36px 40px 42px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 48px; align-items: center; }
.bce-cover-wrap { transform: rotate(-2deg); }
.bce-cover { display: block; width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(10px 18px 14px #0007); }
.bce-eyebrow { font: 11px/1.6 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--archive-muted); }
.bce-work-intro h1 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.22; font-weight: 400; letter-spacing: -.045em; margin: 12px 0; text-wrap: balance; }
.bce-work-kind { font-style: italic; color: #d9ccad; font-size: 17px; line-height: 1.6; margin: 10px 0; }
.bce-description { max-width: 60ch; font-size: 14px; line-height: 1.85; color: var(--archive-muted); margin: 14px 0; }
.bce-read-link { display: inline-block; padding: 12px 0; border-bottom: 1px solid #b6a17d; font: 12px/1.5 Arial, sans-serif; text-decoration: none; letter-spacing: .08em; }
.bce-read-link span { margin-left: 30px; }
.bce-audio { margin-top: 18px; }
.bce-audio label { display: block; font: 11px/1.5 Arial, sans-serif; margin-bottom: 10px; color: var(--archive-muted); }
.bce-audio audio { width: 100%; max-width: 360px; height: 40px; }
.bce-paper { margin: 0 auto; max-width: 920px; background: #f1ecdf; color: #292d27; padding: 36px 85px 55px; box-shadow: 0 20px 55px #0004; border-top: 4px solid #927852; scroll-margin-top: 20px; }
.bce-paper-label { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 24px; margin-bottom: 42px; border-bottom: 1px solid #b9b5a6; font: 10px/1.5 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #626859; }
.bce-prose { font-size: 17px; line-height: 1.95; overflow-wrap: break-word; }
.bce-prose p { margin: 0 0 1.4em; }
.bce-prose h2 { font-size: 24px; line-height: 1.4; margin: 2em 0 1em; font-weight: 400; }
.bce-title-page { text-align: center; margin: 0 0 55px; }
.bce-title-page p { margin: 8px 0; }
.bce-title-page h2 { margin: 12px 0; font-size: 30px; }
.bce-prose a { color: #7c2828; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bce-prose sup { line-height: 0; font: 11px Arial, sans-serif; vertical-align: super; }
.bce-prose sup a { padding: 3px; }
.bce-prose hr { width: 70px; border: 0; border-top: 1px solid #9c9c89; margin: 38px auto; }
.bce-prose .bce-stanza-break { width: 18px; margin: 28px 0; }
.bce-footnotes { font-size: 14px; line-height: 1.8; padding-left: 25px; border-top: 1px solid #bbb6a6; padding-top: 24px; }
.bce-footnotes li { padding-left: 9px; margin-bottom: 20px; }
.bce-prose [id] { scroll-margin-top: 30px; }
.bce-prose :target { background: #e6d8b6; outline: 5px solid #e6d8b6; }
.bce-colophon { border-top: 1px solid #b9b5a6; margin-top: 45px; padding-top: 22px; color: #626859; font: 11px/1.8 Arial, sans-serif; }
.bce-related { max-width: 1000px; margin: auto; padding: 60px 40px; }
.bce-related-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; margin-top: 25px; }
.bce-related-links a { border-top: 1px solid var(--archive-line); padding-top: 18px; text-decoration: none; font-size: 20px; }
.bce-related-links a:hover { color: #d9bb84; }
.bce-related-links a > span:first-child { display: block; font: 11px/1.5 Arial, sans-serif; color: var(--archive-muted); margin-bottom: 10px; }
.bce-reader-footer { max-width: 1160px; margin: 0 auto; padding: 20px 40px 30px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--archive-muted); border-top: 1px solid var(--archive-line); font: 11px/1.6 Arial, sans-serif; }
.bce-reader-footer p span { margin: 0 8px; }
.bce-skip { position: absolute; left: 20px; top: -100px; padding: 15px; background: #202b23; z-index: 2; }
.bce-skip:focus { top: 10px; }
#supplements.bce-shelf { --archive-ink: #292d27; --archive-muted: #596151; --archive-line: #c9cbbf; background: #f1ecdf; color: var(--archive-ink); padding: 10px 0 20px; text-align: left; }
.bce-shelf-description { font-size: 14px; line-height: 1.7; color: var(--archive-muted); margin: 10px 0 20px; }
.bce-books { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 30px; }
.bce-book { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; text-decoration: none; font-weight: 400; border-top: 1px solid var(--archive-line); padding-top: 18px; }
.bce-book-art { height: 145px; display: flex; justify-content: center; align-items: flex-start; }
.bce-book-art img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; object-position: top; filter: drop-shadow(3px 5px 4px #0003); transition: transform .2s ease; }
.bce-book:hover .bce-book-art img { transform: translateY(-3px); }
.bce-book-info { display: flex; flex-direction: column; min-width: 0; }
.bce-book-info .bce-eyebrow { font-size: 9px; letter-spacing: .06em; }
.bce-book h3 { font-size: 19px; line-height: 1.35; color: var(--archive-ink); margin: 7px 0; font-weight: 700; }
.bce-book p { font-size: 12px; line-height: 1.7; color: var(--archive-muted); margin: 0 0 12px; }
.bce-book-open { display: block; margin-top: auto; font: 11px/1.5 Arial, sans-serif; color: #7c2828; }
.bce-book-open span { margin-left: 8px; }
@media (max-width: 850px) {
    .bce-books { gap: 24px 20px; }
    .bce-book { grid-template-columns: 80px minmax(0,1fr); gap: 14px; }
    .bce-book-art { height: 120px; }
    .bce-reader img { max-width: 100%; height: auto; }
    .bce-work-heading { gap: 28px; grid-template-columns: minmax(0,180px) minmax(0,1fr); }
    .bce-paper { margin: 0 20px; padding: 30px 45px 40px; }
}
@media (max-width: 560px) {
    .bce-masthead { margin: 0 22px; padding: 14px 0; gap: 12px; }
    .bce-brand { font-size: 20px; }
    .bce-archive-link { font-size: 12px; }
    .bce-work-heading { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
    .bce-cover-wrap { max-width: 155px; margin: auto; }
    .bce-cover { max-height: 210px; }
    .bce-paper { margin: 0 10px; padding: 25px 22px 35px; }
    .bce-paper-label { font-size: 8px; letter-spacing: .1em; }
    .bce-prose { font-size: 16px; line-height: 1.85; }
    .bce-related { padding: 40px 25px; }
    .bce-related-links { grid-template-columns: 1fr; }
    .bce-reader-footer { padding: 20px; flex-direction: column; align-items: flex-start; gap: 5px; }
    .bce-books { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bce-book-art img { transition: none; } }
@media print {
    .bce-reader { background: white; color: black; }
    .bce-masthead, .bce-cover-wrap, .bce-read-link, .bce-audio, .bce-related, .bce-reader-footer, .bce-skip { display: none; }
    .bce-work-heading { display: block; padding: 0; }
    .bce-work-intro h1 { font-size: 30pt; }
    .bce-paper { margin: 0; padding: 0; max-width: none; background: white; box-shadow: none; border: 0; }
    .bce-prose { font-size: 11pt; }
}
