/* Rev. Azuka Obi memorial: a magazine that turns page by page */
.mag-intro { padding: 34px 0 6px; text-align: center; }
.mag-intro h1 { font: 600 clamp(32px, 4.6vw, 56px)/1.05 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; margin: 10px 0 10px; letter-spacing: -.01em; }
.mag-intro p { color: var(--mu); max-width: 620px; margin: 0 auto; }
.mag-zone { padding: 20px 0 70px; }

/* ---------- the book ---------- */
.mag-stage { --pw: min(540px, 45vw); --ph: calc(var(--pw) / .72); display: flex; justify-content: center; padding: 10px 0 6px; overflow: hidden; }
.mbook { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2800px; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.mbook.at-start { transform: translateX(-25%); }
.mbook.at-end { transform: translateX(25%); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.leaf.turned { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border-radius: 0 6px 6px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); background: #fbf6ec; cursor: pointer; }
.face.back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 5%); }
.face.back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 5%); }
.face .pg { height: 100%; }
.leaf.moving .face { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.mbook::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: left .8s, width .8s; }
.mbook.opened::before { left: 0; width: 100%; }
.mbook.at-end::before { left: 0; width: 50%; }
.mag-stage.single .mbook::before { left: 0; width: 100%; }

/* single-page mode (phones) */
.mag-stage.single { --pw: min(92vw, 460px); --ph: min(calc(100svh - 210px), calc(var(--pw) / .62)); }
.mag-stage.single .mbook { width: var(--pw); transform: none; }
.mag-stage.single .leaf { left: 0; width: 100%; }
.mag-stage.single .leaf.turned { transform: rotateY(-150deg); opacity: 0; pointer-events: none; transition: transform .9s cubic-bezier(.3, .7, .2, 1), opacity .35s ease .45s; }
.mag-stage.single .face { border-radius: 6px; overflow-y: auto; }
.mag-stage.single .face::after { display: none; }

/* controls */
.mag-ctl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.mbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.mbtn:hover:not(:disabled) { background: rgba(240, 125, 35, .14); color: var(--fire); transform: translateY(-2px); }
.mbtn:disabled { opacity: .35; cursor: default; }
.mbtn svg { width: 20px; height: 20px; }
.mag-ctl .pill { cursor: pointer; }
.mag-ctl .pill[aria-expanded="true"], .mag-ctl .pill.on { color: var(--fire); border-color: var(--fire); }
.mcount { min-width: 120px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.mhint { text-align: center; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--mu); margin-top: 12px; text-transform: uppercase; }
.mtoc { max-width: 560px; margin: 14px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mtoc button { text-align: left; background: none; border: 0; color: var(--ink); font: 500 14px/1.3 var(--sans); padding: 10px 12px; border-radius: 12px; cursor: pointer; display: flex; gap: 10px; }
.mtoc button:hover { background: var(--panel); color: var(--fire); }
.mtoc button span { font: 500 11px/1.6 var(--mono); color: var(--mu); min-width: 20px; }

/* source pages: hidden while the book is built, shown in Scroll View */
.mpages { display: none; }
.mag-zone.flat .mpages { display: grid; gap: 26px; justify-items: center; }
.mag-zone.flat .mpages .pg { width: min(640px, 100%); border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.mag-zone.flat .mag-stage, .mag-zone.flat .mhint { display: none; }
.no-js .mpages { display: grid; gap: 26px; justify-items: center; }

/* ---------- page typography ---------- */
.pg { container-type: inline-size; background: #fbf6ec; color: #2b2520; position: relative; }
.pg .in { padding: 7.5cqw 8cqw 7cqw; font: 400 2.62cqw/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.mag-stage.single .pg .in { font-size: 3.85cqw; padding: 8cqw 7cqw; }
.mag-zone.flat .pg .in { font-size: max(15px, 2.62cqw); }
.pg p { margin: 0 0 .7em; }
.pg b { font-weight: 700; color: #1a1612; }
.pg .kick { display: block; font: 600 .72em/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #b5541b; margin-bottom: .55em; }
.pg h2.serif { font: 600 2.35em/1.02 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: -.015em; color: #4a0f1e; margin: 0 0 .35em; }
.pg h2.big { font-size: 2.1em; }
.pg .dek { font-style: italic; color: #7a6b5d; margin-bottom: .9em; }
.pg .drop::first-letter { float: left; font: 600 3.4em/.82 "Iowan Old Style", Palatino, Georgia, serif; color: #b5541b; padding: .06em .08em 0 0; }
.pg blockquote { margin: .7em 0 .9em; padding: .2em 0 .2em .9em; border-left: 3px solid #e07a2c; font-size: 1.18em; line-height: 1.32; font-style: italic; color: #4a0f1e; }
.pg cite { display: block; font: 600 .6em/1.6 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #9a8a7a; margin-top: .4em; }
.pg .rule { height: 1px; background: linear-gradient(90deg, transparent, #cbb89f, transparent); margin: .9em 0; }
.pg .small, .pg .note-i { font-size: .9em; color: #6f6254; }
.pg .note-i { font-style: italic; }
.pg a { color: #b5541b; }

/* photo slots */
.pg .ph { position: relative; margin: .2em 0 .9em; border-radius: 4px; overflow: hidden; background: repeating-linear-gradient(135deg, #efe5d4 0 10px, #eadfcb 10px 20px); border: 1px dashed #cbb89f; display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; }
.pg .ph span { font: 500 .66em/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8c7b69; padding: 1em; }
.pg .ph.tall { float: right; width: 42%; aspect-ratio: 3 / 4; margin: .3em 0 .6em 1.1em; }
.pg .ph.short { aspect-ratio: 21 / 8; }
.pg .ph.filled { background: #ddd; border: 0; }
.pg .ph.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg .ph.filled span { display: none; }
.pg .ph figcaption, .pg .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4em .8em .5em; font: italic .74em/1.3 Georgia, serif; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); text-align: left; }

/* cover */
.pg.cover { background: #2a0a12; color: #fff; }
.pg.cover .in { height: 100%; display: flex; flex-direction: column; padding: 6cqw 7cqw; }
.pg.cover .mast { text-align: center; border-bottom: 1px solid rgba(255, 211, 138, .35); padding-bottom: .6em; margin-bottom: .9em; }
.pg.cover .mast span { display: block; font: 600 1.95em/1 "Iowan Old Style", Palatino, Georgia, serif; letter-spacing: .05em; text-transform: uppercase; color: #FFD38A; }
.pg.cover .mast small { display: block; margin-top: .55em; font: 500 .62em/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pg.cover .cover-ph { flex: 1; aspect-ratio: auto; margin: 0; min-height: 0; background: repeating-linear-gradient(135deg, #3a1520 0 10px, #33111b 10px 20px); border-color: rgba(255, 211, 138, .3); }
.pg.cover .cover-ph span { color: rgba(255, 211, 138, .7); }
.pg.cover .cover-name { font: 600 3.2em/.95 "Iowan Old Style", Palatino, Georgia, serif; margin: .35em 0 .3em; letter-spacing: -.02em; }
.pg.cover .cover-name small { display: block; font: italic 400 .32em/1.4 Georgia, serif; color: #FFD38A; letter-spacing: 0; }
.pg.cover .lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1.1em; font: 400 .78em/1.3 var(--sans); color: rgba(255, 255, 255, .78); }
.pg.cover .lines b { display: block; color: #FFB35C; font: 700 1.02em/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; }

/* inside cover */
.pg .aka { font: 500 .78em/1.7 var(--sans); letter-spacing: .04em; color: #7a6b5d; }
.pg .toc-print { margin: 0; padding: 0; list-style: none; counter-reset: t; columns: 2; column-gap: 1.6em; }
.pg .toc-print li { counter-increment: t; break-inside: avoid; display: flex; gap: .6em; padding: .28em 0; border-bottom: 1px dotted #d8c8b2; font-size: .92em; cursor: pointer; }
.pg .toc-print li::before { content: counter(t, decimal-leading-zero); font: 600 .78em/1.9 var(--mono); color: #b5541b; }
.pg .toc-print li:hover { color: #b5541b; }

/* fact boxes, timeline, dates */
.pg .facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin: .9em 0 1em; }
.pg .facts div { background: #f2e8d6; border-radius: 4px; padding: .75em .8em; }
.pg .facts b { display: block; font: 600 1.5em/1 "Iowan Old Style", Palatino, Georgia, serif; color: #b5541b; margin-bottom: .25em; }
.pg .facts span { font-size: .86em; line-height: 1.35; display: block; }
.pg .big-num { font: 400 .95em/1.4 var(--sans); color: #6f6254; display: flex; gap: .5em; align-items: baseline; clear: both; }
.pg .big-num b { font: 600 2.2em/1 "Iowan Old Style", Palatino, Georgia, serif; color: #b5541b; }
.pg .date-card { background: #4a0f1e; color: #fff; border-radius: 4px; padding: .9em 1em; margin: .9em 0; text-align: center; }
.pg .date-card small { font: 600 .66em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #FFB35C; }
.pg .date-card b { display: block; color: #fff; font: 600 1.7em/1.2 "Iowan Old Style", Palatino, Georgia, serif; margin: .2em 0; }
.pg .date-card span { font-style: italic; color: rgba(255, 255, 255, .8); font-size: .92em; }
.pg .tl { list-style: none; margin: .8em 0 1em; padding: 0 0 0 1.1em; border-left: 2px solid #e0b98f; }
.pg .tl li { position: relative; padding: 0 0 .62em .2em; font-size: .93em; line-height: 1.38; }
.pg .tl li::before { content: ""; position: absolute; left: -1.53em; top: .4em; width: .62em; height: .62em; border-radius: 50%; background: #e07a2c; box-shadow: 0 0 0 3px #fbf6ec; }
.pg .tl b { display: block; font: 700 .82em/1.4 var(--sans); letter-spacing: .1em; color: #b5541b; }
.pg .tl i { color: #4a0f1e; }

/* bookshelf */
.pg .shelf { list-style: none; padding: 0; margin: .4em 0 .9em; display: flex; flex-wrap: wrap; gap: .32em; }
.pg .shelf li { font: 500 .7em/1 var(--sans); padding: .55em .7em; border-radius: 999px; background: #f2e8d6; color: #4a0f1e; }
.pg .legacy { display: flex; gap: .9em; align-items: center; background: #4a0f1e; color: #fff; border-radius: 4px; padding: .7em; text-decoration: none; }
.pg .legacy img { width: 18%; border-radius: 2px; flex: none; background: #fff; }
.pg .legacy span { font-size: .85em; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.pg .legacy small { display: block; font: 600 .7em/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #FFB35C; }
.pg .legacy b { display: block; color: #fff; font: 600 1.35em/1.2 "Iowan Old Style", Palatino, Georgia, serif; }

/* sermons */
.pg .sermons { display: grid; gap: .55em; }
.pg .sermon { background: #f2e8d6; border-radius: 4px; padding: .7em .8em; }
.pg .sermon b { display: block; font-size: 1.02em; }
.pg .sermon small { font: 500 .7em/1.5 var(--mono); color: #8c7b69; text-transform: uppercase; letter-spacing: .06em; }
.pg .sermon audio { width: 100%; height: 2.6em; margin-top: .45em; }
.pg .sermon.empty { text-align: center; font-style: italic; color: #7a6b5d; padding: 1.4em 1em; border: 1px dashed #cbb89f; background: none; }
.pg .linkrow { display: flex; gap: .5em; flex-wrap: wrap; }
.pg .linkrow .pill { height: auto; padding: .55em .9em; font-size: .72em; color: #b5541b; background: rgba(224, 122, 44, .1); border-color: rgba(224, 122, 44, .3); }

/* clippings & album */
.pg .clips { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.pg .clip { margin: 0; aspect-ratio: 3 / 4; transform: rotate(-1.2deg); box-shadow: 0 6px 14px rgba(60, 40, 20, .18); }
.pg .clip:nth-child(2n) { transform: rotate(1.4deg); }
.pg .clip.filled img { object-fit: cover; }
.pg .webclip { margin-top: 1em; background: #fff; border: 1px solid #e2d4bf; padding: .8em .9em; font-size: .9em; line-height: 1.4; box-shadow: 0 4px 10px rgba(60, 40, 20, .1); }
.pg .webclip small { display: block; font: 600 .7em/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #b5541b; margin-bottom: .3em; }
.pg .album { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.pg .album .ph { margin: 0; aspect-ratio: 4 / 5; }

/* back cover */
.pg.back { background: #2a0a12; color: #fff; }
.pg.back .in { height: 100%; display: flex; flex-direction: column; text-align: center; }
.pg.back .back-ph { flex: 1; min-height: 0; aspect-ratio: auto; background: repeating-linear-gradient(135deg, #3a1520 0 10px, #33111b 10px 20px); border-color: rgba(255, 211, 138, .3); }
.pg.back .back-ph span { color: rgba(255, 211, 138, .7); }
.pg.back .farewell { color: rgba(255, 255, 255, .85); font-size: .95em; margin-bottom: .45em; }
.pg.back b { color: #fff; }
.pg.back .hymn { font: italic 400 1.25em/1.35 "Iowan Old Style", Palatino, Georgia, serif; color: #FFD38A; margin: .5em 0; }
.pg.back .hymn cite { color: rgba(255, 255, 255, .5); }
.pg.back .dates { font: 600 1.15em/1 var(--mono); letter-spacing: .14em; color: #fff; margin: .4em 0 .6em; }
.pg.back .dates span { color: #FFB35C; margin: 0 .4em; }
.pg.back .byline { font: 500 .62em/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

/* lightbox for photos */
.mlight { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.mlight img { max-width: 100%; max-height: 88vh; border-radius: 6px; }
.mlight p { color: #ddd; text-align: center; margin-top: 12px; font-style: italic; }
@media (max-width: 820px) { .mtoc { grid-template-columns: 1fr; } .mag-intro { padding-top: 22px; } .mag-ctl { gap: 6px; flex-wrap: nowrap; } .mcount { min-width: 0; flex: 1; font-size: 11px; } .mag-ctl .pill { padding: 0 10px; font-size: 10.5px; } .mag-stage.single .pg.cover .mast span { font-size: 1.55em; } }
@media (prefers-reduced-motion: reduce) { .leaf, .mbook { transition-duration: .01s !important; } }
.mtoc[hidden], .mag-ctl[hidden], .mhint[hidden] { display: none; }

/* filled photo frames: picture with its description underneath */
.pg .ph.framed { aspect-ratio: auto; background: none; border: 0; display: block; overflow: visible; cursor: zoom-in; }
.pg .ph.framed .frame { position: relative; overflow: hidden; border-radius: 3px; background: #e8dcc8; box-shadow: 0 3px 10px rgba(60, 40, 20, .18); }
.pg .ph.framed .frame img { display: block; width: 100%; height: 100%; object-fit: cover; position: static; }
.pg .clip.framed .frame img { height: auto; }
.pg .phcap { margin: .45em 0 0; font: italic 400 .78em/1.35 "Iowan Old Style", Palatino, Georgia, serif; color: #7a6b5d; text-align: left; }
.pg .ph.tall.framed { aspect-ratio: auto; }
.pg .ph.tall.sq { width: 48%; aspect-ratio: 1 / 1; }
.pg .ph.cover-ph.filled, .pg .ph.back-ph.filled { cursor: zoom-in; border: 0; }
.pg .ph.cover-ph.filled img { object-position: 50% 22%; }
.pg .ph.back-ph.filled { margin-bottom: .7em; }
.pg .clip.framed { transform: rotate(-1deg); box-shadow: none; aspect-ratio: auto; }
.pg .clip.framed .frame { background: #fff; padding: .35em; }
.pg .clips .span, .pg .album .span { grid-column: 1 / -1; transform: rotate(-.6deg); }
.pg .album .ph.framed { aspect-ratio: auto; }
.pg .album .frame { aspect-ratio: 7 / 10; }
.pg .ph.back-ph.filled { background: #1a060b; }
.pg .ph.back-ph.filled img { object-fit: contain; }
.pg .ph.wide.short { aspect-ratio: 3 / 1; }

/* ---------- magazine cover ---------- */
.pg.cover { background: #120407; overflow: hidden; }
.pg.cover .in { position: relative; height: 100%; padding: 0; display: block; color: #fff; }
.pg.cover .cover-ph { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.pg.cover .cover-ph.filled img { object-position: 50% 18%; filter: contrast(1.05); }
.pg.cover .in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(18, 4, 7, .78) 0%, rgba(18, 4, 7, .1) 30%, rgba(18, 4, 7, 0) 45%, rgba(18, 4, 7, .55) 70%, rgba(18, 4, 7, .95) 100%), linear-gradient(270deg, rgba(18, 4, 7, .7) 0%, rgba(18, 4, 7, .35) 45%, rgba(18, 4, 7, 0) 62%); }
.pg.cover .in > *:not(.cover-ph) { position: absolute; z-index: 2; }
.pg.cover .cv-top { top: 3.2cqw; left: 6cqw; right: 6cqw; display: flex; justify-content: space-between; font: 600 .62em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #FFD38A; white-space: nowrap; }
.pg.cover .cv-mast { top: 6.6cqw; left: 5.4cqw; right: 5cqw; font: 700 5.15em/.84 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: -.035em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.pg.cover .cv-tag { top: 33cqw; right: 6cqw; background: #e07a2c; color: #120407; font: 800 .62em/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .75em 1em; transform: rotate(3deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.pg.cover .cv-lines { list-style: none; margin: 0; padding: 0; top: 46%; right: 5cqw; width: 47%; display: grid; gap: .95em; }
.pg.cover .cv-lines li { display: flex; gap: .7em; align-items: flex-start; cursor: pointer; font: 400 .7em/1.3 var(--sans); color: rgba(255, 255, 255, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.pg.cover .cv-lines li:hover b { color: #fff; }
.pg.cover .cv-lines .pno { flex: none; min-width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: #e07a2c; color: #120407; font: 800 .95em/1 var(--sans); text-shadow: none; }
.pg.cover .cv-lines b { display: block; font: 800 1.15em/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #FFB35C; margin-bottom: .15em; }
.pg.cover .cv-name { left: 6cqw; right: 6cqw; bottom: 9cqw; font: 700 4.6em/.86 "Iowan Old Style", Palatino, Georgia, serif; letter-spacing: -.03em; text-shadow: 0 3px 20px rgba(0, 0, 0, .5); }
.pg.cover .cv-name small { display: block; font: italic 400 .26em/1.6 Georgia, serif; letter-spacing: 0; color: #FFD38A; }
.pg.cover .cv-name i { display: block; margin-top: .55em; font: 600 .16em/1 var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.pg.cover .cv-bar { right: 6cqw; bottom: 4cqw; background: #fff; padding: .4em .5em .3em; display: grid; gap: .25em; justify-items: center; }
.pg.cover .cv-bar i { width: 13cqw; height: 5cqw; background: repeating-linear-gradient(90deg, #111 0 1px, #fff 1px 2px, #111 2px 4px, #fff 4px 5px, #111 5px 6px, #fff 6px 8px, #111 8px 9px, #fff 9px 11px); }
.pg.cover .cv-bar span { font: 600 .42em/1 var(--mono); color: #111; letter-spacing: .06em; }
.mag-stage.single .pg.cover .in { font-size: 2.75cqw; padding: 0; } .mag-stage.single .pg.cover .cv-lines { top: 45%; width: 50%; } .mag-stage.single .pg.cover .cv-name { bottom: 11cqw; } .mag-stage.single .pg.cover .cv-tag { top: 36cqw; }

/* folios and footnotes */
.pg .folio { position: absolute; bottom: 3.2cqw; left: 8cqw; right: 8cqw; display: flex; align-items: center; gap: .8em; font: 500 1.55cqw/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a8957f; }
.pg .folio b { font: 700 1.9cqw/1 var(--sans); color: #b5541b; }
.pg .folio.odd { flex-direction: row-reverse; }
.mag-stage.single .pg .folio { font-size: 2.3cqw; } .mag-stage.single .pg .folio b { font-size: 2.8cqw; }
.mag-zone.flat .pg .folio { position: static; margin: 0 8cqw 4cqw; }
.pg .foot { font-size: .8em; font-style: italic; color: #7a6b5d; border-top: 1px solid #e0d2bc; padding-top: .5em; clear: both; }
.pg .toc-print { columns: 1; }
.pg .toc-print li { justify-content: space-between; }
.pg .toc-print li::before { content: none; }
.pg .toc-print li b { font: 700 .9em/1.6 var(--sans); color: #b5541b; }
.pg .in { padding-bottom: 9cqw; }
.pg .album .span .frame { aspect-ratio: auto; } .pg .album .span .frame img { height: auto; }

/* final cover artwork, with clickable headlines */
.pg.coverimg { background: #0d0d0d; height: 100%; display: grid; place-items: center; }
.pg.coverimg .cvimg { position: relative; width: 100%; aspect-ratio: 1057 / 1488; max-height: 100%; }
.mag-stage.single .pg.coverimg .cvimg { width: auto; height: auto; max-width: 100%; }
.pg.coverimg .cvimg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pg.coverimg .hot { position: absolute; left: 68%; right: 2%; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.pg.coverimg .hot:hover, .pg.coverimg .hot:focus-visible { background: rgba(212, 167, 60, .14); outline: 1px solid rgba(212, 167, 60, .5); }
.mag-zone.flat .pg.coverimg { height: auto; }

/* sermon lists */
.pg .srms { list-style: none; margin: .2em 0 .8em; padding: 0; }
.pg .srm { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .36em 0; border-bottom: 1px dotted #d8c8b2; }
.pg .srm .st { font-size: .95em; line-height: 1.25; color: #2b2520; }
.pg .srm .sp { display: flex; gap: .3em; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 62%; }
.pg .splay { display: inline-flex; align-items: center; gap: .4em; border: 1px solid rgba(181, 84, 27, .35); background: rgba(224, 122, 44, .08); color: #b5541b; border-radius: 999px; padding: .32em .7em .32em .45em; font: 600 .66em/1 var(--sans); cursor: pointer; white-space: nowrap; }
.pg .splay i { width: 0; height: 0; border-left: .62em solid currentColor; border-top: .38em solid transparent; border-bottom: .38em solid transparent; }
.pg .splay:hover { background: rgba(224, 122, 44, .18); }
.pg .splay.on { background: #b5541b; color: #fff; border-color: #b5541b; }
.pg .splay.playing i { border: 0; width: .55em; height: .7em; border-left: .18em solid currentColor; border-right: .18em solid currentColor; box-sizing: border-box; }

/* the shared player under the magazine */
.splayer { max-width: 620px; margin: 14px auto 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.splayer[hidden] { display: none; }
.splayer .spp, .splayer .sx { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.splayer .spp { background: var(--fire); }
.splayer .spp::before { content: ""; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.splayer.paused .spp::before { width: 0; height: 0; border-right: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.splayer .sx { background: transparent; color: var(--mu); font-size: 22px; }
.splayer .sinfo { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.splayer b { grid-column: 1 / -1; font: 600 14px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.splayer input { width: 100%; accent-color: var(--fire); }
.splayer .stime { font: 500 11px/1 var(--mono); color: var(--mu); }

/* hymn page and back cover */
.pg .hymn-page { margin: 1.4em 0; padding: 1.4em 1.2em; border-top: 1px solid #d8c8b2; border-bottom: 1px solid #d8c8b2; font: italic 400 1.45em/1.6 "Iowan Old Style", Palatino, Georgia, serif; color: #4a0f1e; text-align: center; }
.pg.back .farewell { font: 600 1.15em/1.3 "Iowan Old Style", Palatino, Georgia, serif; color: #FFD38A; margin: .3em 0 .2em; }

/* ---------- a page that turns like paper (see bendTurn in memorial.js) ---------- */
.mbook { perspective: 2400px; perspective-origin: 50% 42%; }
.leaf { transition: transform 1.25s cubic-bezier(.42, .02, .28, 1); }
.leaf.ghost .face { visibility: hidden; }
.rig { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; z-index: 999; transform-style: preserve-3d; pointer-events: none; }
.rig.one { left: 0; width: 100%; }
.rig .seg { position: absolute; top: 0; height: 100%; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.rig .slice { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbf6ec; }
.rig .slice.back { transform: rotateY(180deg); }
.rig .sheet { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.rig .sheet .pg { height: 100%; }
.rig .shade { position: absolute; inset: 0; pointer-events: none; }
.rig .seg:last-child > .slice { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18); }
.mbook .cast { position: absolute; top: 0; height: 100%; width: 50%; z-index: 998; pointer-events: none; opacity: 0; border-radius: 6px; }
.mbook .cast.r { left: 50%; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, 0) 85%); }
.mbook .cast.l { left: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, 0) 85%); }
/* the gutter: a soft fold down the middle of an open spread, and the edges of the pages still to come */
.mbook.opened::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 26px); width: 52px; z-index: 997; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .13) 46%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .13) 54%, rgba(0, 0, 0, 0)); }
