/* PulpBrief Magazine. Pages are sized in cqw (1cqw = 1% of the page width; a page is designed at 800 x 1066 px),
   so the same markup works in the reader, on a phone and in the PDF. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- The page ---------- */
.mag-page { container-type: inline-size; position: relative; aspect-ratio: 800 / 1066; overflow: hidden; background: #fbfbfa; color: #1f1f22; font-family: Inter, -apple-system, "Segoe UI", sans-serif; }
.mag-page * { box-sizing: border-box; }
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.1cqw; padding: 8.4cqw 7cqw 8cqw; font-size: var(--fs, 2.02cqw); line-height: 1.5; }
.is-tight > .pg { font-size: 1.74cqw; } .p-basics > .pg { font-size: var(--fs, 1.96cqw); }
.is-bare > .pg { padding: 0; display: block; }
.pg p, .pg h2, .pg h3, .pg ul, .pg ol, .pg dl, .pg dd, .pg figure, .pg blockquote { margin: 0; padding: 0; }
.pg a { color: inherit; text-decoration: none; }
.pg em, .pg i { font-style: italic; }
.pg strong { font-weight: 650; color: #0b0b0c; }
.m-run, .m-folio { position: absolute; left: 7cqw; right: 7cqw; display: flex; justify-content: space-between; align-items: baseline; color: #7a7a80; font-size: 1.22cqw; letter-spacing: .02em; }
.m-run { top: 3.6cqw; padding-bottom: 1cqw !important; border-bottom: .12cqw solid #0b0b0c; }
.m-run span:first-child { color: #A52A2A; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.m-folio { bottom: 3.4cqw; }
.m-folio b { color: #0b0b0c; font: 400 2.4cqw/1 "Instrument Serif", Georgia, serif; }
.is-left .m-folio { flex-direction: row; } .is-right .m-folio { flex-direction: row-reverse; }
.m-kicker { display: flex; align-items: center; gap: 1.2cqw; color: #A52A2A; font-weight: 700; font-size: 1.3cqw; letter-spacing: .09em; text-transform: uppercase; }
.m-tag { padding: .25cqw .9cqw; border: .12cqw solid currentColor; border-radius: 9cqw; font-size: 1.02cqw; letter-spacing: .05em; }
.m-label { color: #A52A2A; font-weight: 700; font-size: 1.15cqw; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.pg h2 { color: #0b0b0c; font: 400 7.2cqw/.96 "Instrument Serif", Georgia, serif; letter-spacing: -.015em; text-wrap: balance; }
.pg h2 em { color: #A52A2A; }
.pg h3 { color: #0b0b0c; font: 400 2.75cqw/1.1 "Instrument Serif", Georgia, serif; }
.m-display { font-size: 9.2cqw !important; }
.m-deck { color: #46464b; font: 400 2.65cqw/1.3 "Instrument Serif", Georgia, serif; text-wrap: pretty; }
.m-head { display: grid; gap: 1.3cqw; }
.m-pic { display: block; width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; mix-blend-mode: darken; }
.m-two { columns: 2; column-gap: 3.4cqw; column-rule: .1cqw solid #dcdbd5; text-wrap: pretty; hyphens: auto; }
.m-two p + p { text-indent: 1.8cqw; }
.m-two p.drop::first-letter { float: left; margin: .35cqw 1cqw 0 0; color: #A52A2A; font: 400 7.6cqw/.74 "Instrument Serif", Georgia, serif; }
.m-src { color: #7a7a80; font-size: 1.1cqw; line-height: 1.4; }
.m-read { display: flex; justify-content: space-between; gap: 2cqw; margin-top: auto; padding-top: 1.1cqw; border-top: .12cqw solid #d6d6d2; color: #0b0b0c !important; font-weight: 650; font-size: 1.45cqw; }
.m-read span { color: #A52A2A; font-weight: 500; }
.m-quote { padding: 2cqw 0 !important; border-top: .3cqw solid #0b0b0c; border-bottom: .12cqw solid #0b0b0c; color: #0b0b0c; font: 400 5.4cqw/1.02 "Instrument Serif", Georgia, serif; text-align: center; text-wrap: balance; }
.m-quote em { color: #A52A2A; }

/* Figures */
.m-fig { display: grid; gap: 1cqw; padding: 1.9cqw 2.1cqw !important; background: #f1f0ec; }
.m-fig figcaption { display: grid; gap: .2cqw; }
.m-fig figcaption b { color: #0b0b0c; font: 700 1.75cqw/1.2 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; }
.m-fig figcaption span { color: #46464b; font-size: 1.25cqw; line-height: 1.35; }
.m-bars { display: grid; gap: .55cqw; }
.m-bar { display: grid; grid-template-columns: 13.5cqw 1fr 6cqw; align-items: center; gap: 1cqw; font-size: 1.32cqw; line-height: 1.2; }
.m-bars.is-wide .m-bar { grid-template-columns: 27cqw 1fr 6.4cqw; }
.m-bar-l { color: #46464b; } .m-bar.is-hi .m-bar-l { color: #0b0b0c; font-weight: 650; }
.m-bar-t { height: 1.35cqw; background: #e3e2dc; }
.m-bar-t i { display: block; height: 100%; background: #d9776b; }
.m-bar.is-hi .m-bar-t i { background: #A52A2A; }
.m-bar-v { color: #0b0b0c; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.m-cols { display: flex; gap: 1.4cqw; align-items: stretch; height: 17cqw; padding-top: 2cqw; }
.m-col { flex: 1; display: flex; flex-direction: column; gap: .5cqw; min-width: 0; }
.m-col-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: .35cqw; border-bottom: .12cqw solid #0b0b0c; }
.m-col-bars span { position: relative; flex: 1; max-width: 4.6cqw; background: #A52A2A; }
.m-col-bars .s1, .m-legend .s1 { background: #d9776b; }
.m-col-bars b { position: absolute; bottom: 100%; left: -1cqw; right: -1cqw; text-align: center; color: #0b0b0c; font-size: 1.12cqw; line-height: 1.5; }
.m-col-x { color: #46464b; font-size: 1.15cqw; text-align: center; line-height: 1.2; }
.m-legend { display: flex; gap: 2cqw; color: #46464b; font-size: 1.2cqw; } .m-legend span { display: inline-flex; align-items: center; gap: .6cqw; } .m-legend i { width: 1.1cqw; height: 1.1cqw; background: #A52A2A; }
.m-svg { display: block; width: 100%; height: auto; font-family: Inter, sans-serif; }
.m-svg text { fill: #46464b; font-size: 12px; } .m-svg .lab { fill: #0b0b0c; font-weight: 600; font-size: 12px; }
.m-svg .grid { stroke: #dcdbd5; } .m-svg circle { fill: #d9776b; } .m-svg circle.hi { fill: #A52A2A; }
.m-web .link { fill: none; stroke: #8f8e88; stroke-width: 1.4; } .m-web marker path { fill: #8f8e88; }
.m-web .node rect { fill: #fff; stroke: #0b0b0c; stroke-width: 1.2; } .m-web .node text { fill: #0b0b0c; font-weight: 700; font-size: 15px; }
.m-web .node.hi rect { fill: #A52A2A; stroke: #A52A2A; } .m-web .node.hi text { fill: #fff; }
.m-watch { display: grid; gap: 1cqw; }
.m-watch dl { display: grid; grid-template-columns: 19cqw 1fr; }
.m-watch dt, .m-watch dd { padding: .85cqw 0 !important; border-top: .1cqw solid #d6d6d2; font-size: 1.8cqw; line-height: 1.35; }
.m-watch dt { color: #0b0b0c; font-weight: 650; }
.m-box { display: grid; gap: .8cqw; padding: 2cqw 2.3cqw; background: #0d0d0f; color: #f4f4f5; font-size: 1.82cqw; } .m-box .m-label { color: #e9a79b; }
.m-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; font-size: 1.6cqw; } .m-three > div { display: grid; gap: .5cqw; align-content: start; padding-top: 1cqw; border-top: .2cqw solid #0b0b0c; }
.m-split { display: grid; grid-template-columns: 1fr 19cqw; gap: 2cqw; } .m-split.is-flip { grid-template-columns: 19cqw 1fr; }
.m-note { display: flex; flex-direction: column; justify-content: center; gap: 1cqw; padding: 2cqw; background: #A52A2A; color: #fff; font-size: 1.45cqw; line-height: 1.42; }
.m-note b { font: 400 5cqw/.95 "Instrument Serif", Georgia, serif; }

/* 1 Cover */
.p-cover .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-mast { position: absolute; top: 4.4cqw; left: 6cqw; right: 6cqw; }
.cover-name { color: #0b0b0c; font: 500 18.6cqw/.8 "Inter Tight", Inter, sans-serif; letter-spacing: -.055em; white-space: nowrap; } .cover-name b { font-weight: 800; } .cover-name i, .back-name i { color: #A52A2A; font-style: normal; }
.cover-sub { display: flex; justify-content: space-between; margin-top: 3.4cqw !important; padding: .9cqw 0 !important; border-top: .25cqw solid #0b0b0c; border-bottom: .1cqw solid #0b0b0c; color: #0b0b0c; font-weight: 600; font-size: 1.6cqw; letter-spacing: .04em; }
.cover-head { position: absolute; left: 6cqw; bottom: 21cqw; width: 60cqw; }
.cover-head h2 { font-size: 13.4cqw; line-height: .84; white-space: nowrap; }
.cover-head p { max-width: 42cqw; margin-top: 2.2cqw !important; color: #1f1f22; font-size: 2.15cqw; line-height: 1.35; }
.cover-lines { position: absolute; left: 6cqw; right: 6cqw; bottom: 5cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding-top: 1.8cqw; border-top: .25cqw solid #0b0b0c; }
.cover-lines p { color: #46464b; font-size: 1.5cqw; line-height: 1.35; } .cover-lines b { display: block; margin-bottom: .5cqw; color: #A52A2A; font: 400 2.5cqw/1.05 "Instrument Serif", Georgia, serif; }

/* 2 Figures */
.p-figures { background: #0d0d0f; color: #f4f4f5; } .p-figures .pg { display: flex; padding: 7cqw; gap: 4cqw; } .p-figures .m-kicker { color: #e9a79b; }
.fig-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0 5cqw; }
.fig-grid > div { display: grid; align-content: start; gap: .9cqw; padding: 2.2cqw 0; border-top: .12cqw solid #3a3a40; font-size: 1.6cqw; color: #c9c9cf; }
.fig-grid b { color: #fff; font: 400 11.5cqw/.86 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; } .fig-grid b small { color: #8c8c94; font-size: .42em; }
.fig-grid .fig-big { grid-column: 1 / -1; } .fig-big b { color: #e2685a; font-size: 25cqw; } .fig-big span { max-width: 56cqw; font-size: 1.9cqw; }
.fig-grid i { color: #8c8c94; font-size: 1.2cqw; font-style: normal; }

/* 3 Contents */
.toc-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: center; padding: 1cqw 0 2cqw; border-bottom: .2cqw solid #0b0b0c; } .toc-lead img { display: block; width: 100%; mix-blend-mode: darken; } .toc-lead .m-toc { border: 0; } .toc-lead .m-toc b { font-size: 5.2cqw; } .toc-lead .m-toc-n { font-size: 5.2cqw; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; }
.m-toc { display: grid; grid-template-columns: 6cqw 1fr; align-items: baseline; padding: 1.6cqw 0; border-bottom: .1cqw solid #dcdbd5; }
.m-toc-n { color: #A52A2A; font: 400 3.4cqw/1 "Instrument Serif", Georgia, serif; } .m-toc > span:last-child { display: grid; gap: .25cqw; }
.m-toc em { color: #7a7a80; font-style: normal; font-size: 1.1cqw; letter-spacing: .04em; } .m-toc b { color: #0b0b0c; font: 400 2.6cqw/1.05 "Instrument Serif", Georgia, serif; } .m-toc i { color: #46464b; font-style: normal; font-size: 1.4cqw; line-height: 1.35; }
.toc-grid > div:first-child .m-toc { padding: 2.5cqw 0; } .toc-grid > div:first-child .m-toc b { font-size: 3.6cqw; } .toc-grid > div:last-child .m-toc em { display: none; }
.toc-grid.is-dense > div .m-toc { padding: 1.1cqw 0; } .toc-grid.is-dense > div .m-toc b { font-size: 2.9cqw; } .toc-grid.is-dense > div .m-toc em { display: none; }
.toc-grid.is-month { gap: 3.4cqw; } .toc-grid.is-month .m-label { margin: 1.2cqw 0 .2cqw; } .toc-grid.is-month > div .m-toc { grid-template-columns: 4.6cqw 1fr; padding: .75cqw 0; } .toc-grid.is-month > div .m-toc-n { font-size: 2.6cqw; } .toc-grid.is-month > div .m-toc b { font-size: 2.3cqw; } .toc-grid.is-month > div .m-toc em, .toc-grid.is-month > div .m-toc i { display: none; }
.m-warn { padding: 1.1cqw 1.6cqw !important; border-left: .5cqw solid #A52A2A; background: #f3efe9; color: #2b2b2f; font-size: 1.45cqw; line-height: 1.45; } .m-warn b { color: #A52A2A; }
.m-table { width: 100%; border-collapse: collapse; font-size: 1.4cqw; line-height: 1.35; font-variant-numeric: tabular-nums; } .m-table th, .m-table td { padding: .8cqw .7cqw; border-top: .1cqw solid #d6d6d2; text-align: right; vertical-align: top; white-space: nowrap; } .m-table th:first-child, .m-table td:first-child { padding-left: 0; text-align: left; white-space: normal; } .m-table thead th { border-top: .25cqw solid #0b0b0c; color: #7a7a80; font-size: 1.1cqw; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; } .m-table tr.is-hi td { color: #A52A2A; font-weight: 600; } .m-table tr.is-hi td:first-child { color: #0b0b0c; font-weight: 400; }
.m-index { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(14, auto); gap: 0 3.4cqw; margin: 1.4cqw 0 0 !important; padding: 0; list-style: none; } .m-index li { display: grid; grid-template-columns: 4.4cqw 1fr; align-items: baseline; padding: .9cqw 0 !important; border-top: .1cqw solid #d6d6d2; } .m-index b { color: #A52A2A; font: 400 2.5cqw/1 "Instrument Serif", Georgia, serif; } .m-index a { display: grid; gap: .25cqw; color: #0b0b0c; text-decoration: none; } .m-index span { font: 400 2.1cqw/1.1 "Instrument Serif", Georgia, serif; } .m-index i { color: #7a7a80; font-size: 1.12cqw; font-style: normal; overflow-wrap: anywhere; }
.p-words .m-gloss dl { grid-template-columns: 15cqw 1fr 15cqw 1fr; } .p-words .m-gloss dt, .p-words .m-gloss dd { padding: 1.25cqw 0 !important; font-size: 1.7cqw; }
.toc-basics { display: flex; flex-wrap: wrap; gap: .5cqw 2.6cqw; align-items: baseline; padding-top: 1.2cqw !important; border-top: .2cqw solid #0b0b0c; color: #0b0b0c; font-size: 1.6cqw; } .toc-basics .m-label { width: 100%; } .toc-basics b { margin-right: .7cqw; color: #A52A2A; font: 400 2.4cqw/1 "Instrument Serif", Georgia, serif; }
.toc-also { display: flex; gap: 4cqw; margin-top: auto !important; padding-top: 1.4cqw !important; border-top: .2cqw solid #0b0b0c; font-size: 1.6cqw; } .toc-also b { color: #A52A2A; }

/* 4 Desk */
.desk { flex: 1; display: grid; grid-template-columns: 1fr 22cqw; gap: 5cqw; margin-top: 2cqw; }
.desk-text { font-size: 2cqw; line-height: 1.58; } .desk-text p + p { margin-top: 1.5cqw; } .desk-text p.drop::first-letter { float: left; margin: .3cqw 1.1cqw 0 0; color: #A52A2A; font: 400 9cqw/.74 "Instrument Serif", Georgia, serif; }
.m-sign { font: italic 400 3.4cqw/1 "Instrument Serif", Georgia, serif; color: #A52A2A; }
.desk-side { display: flex; flex-direction: column; gap: .8cqw; align-self: end; padding: 2cqw; background: #f1f0ec; font-size: 1.28cqw; line-height: 1.5; } .desk-side .m-label { margin-top: 1cqw; } .desk-side .m-label:first-child { margin-top: 0; }

/* 5 Dispatches */
.m-dispatches { columns: 2; column-gap: 4cqw; column-rule: .1cqw solid #dcdbd5; } .m-dispatches article { display: grid; gap: .6cqw; break-inside: avoid; padding: 1.5cqw 0 2.4cqw; border-top: .2cqw solid #0b0b0c; font-size: 1.78cqw; }
.p-dispatch .m-src { margin-top: auto; }

/* Features */
.p-opener { background: #A52A2A; color: #fff; } .p-opener .opener-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56cqw; object-fit: cover; }
.opener-text { position: absolute; top: 9cqw; left: 7cqw; right: 7cqw; display: grid; gap: 3cqw; } .p-opener .m-kicker { color: #fff; } .p-opener h2 { color: #fff; font-size: 18cqw; line-height: .84; } .p-opener h2 em { color: #f3c5bd; } .opener-text > p:last-child { max-width: 70cqw; font: 400 3.3cqw/1.22 "Instrument Serif", Georgia, serif; }
.p-story .pg { gap: 2.2cqw; }
.p-race h2, .p-ghost h2, .p-dial h2 { font-size: 10cqw; }
.p-feature h2 { font-size: 8.4cqw; } .p-feature .m-pic { aspect-ratio: 16 / 4.8; } .p-feature .m-cols { height: 13cqw; } .p-feature .m-bars { gap: .5cqw; }
.p-race .m-fig:first-of-type .m-bars { gap: .42cqw; }
.p-ghost .m-pic, .p-dial .m-pic { aspect-ratio: 16 / 7.4; }
.m-found { display: grid; gap: 1.2cqw; } .m-found ol { list-style: none; display: grid; } .m-found li { display: grid; grid-template-columns: 8cqw 1fr; align-items: baseline; padding: 1.5cqw 0; border-top: .1cqw solid #d6d6d2; } .m-found li b { color: #A52A2A; font: 400 3.4cqw/1 "Instrument Serif", Georgia, serif; } .m-found li span { color: #0b0b0c; font: italic 400 3.5cqw/1.12 "Instrument Serif", Georgia, serif; letter-spacing: calc(var(--h) * .012em); }
.p-basics h2 { font-size: 8.6cqw; } .v-a .m-pic { aspect-ratio: 16 / 7.7; } .v-b .m-pic { aspect-ratio: 16 / 7.8; } .v-c .m-pic { aspect-ratio: 16 / 7.8; } .p-basics.is-low .m-pic { aspect-ratio: 16 / 6.9; }

.p-dial .m-cols { height: 23cqw; }
.p-ghost .m-bars { gap: .9cqw; } .p-ghost .m-bar { font-size: 1.5cqw; } .p-ghost .m-bar-t { height: 1.8cqw; } .p-ghost .m-quote { font-size: 6.4cqw; padding: 2.8cqw 0 !important; }
.p-story .m-quote { font-size: 6.6cqw; padding: 2.8cqw 0 !important; }
.p-story:not(.is-tight) .m-bar { font-size: 1.6cqw; } .p-story:not(.is-tight) .m-bar-t { height: 2.2cqw; } .p-story:not(.is-tight) .m-bars { gap: 1.1cqw; }

/* 23 Exam */
.exam-q { counter-reset: q; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 4cqw; } .exam-q li { counter-increment: q; display: grid; grid-template-columns: 5.4cqw 1fr; align-items: baseline; padding: 1.75cqw 0; border-top: .1cqw solid #0b0b0c; color: #0b0b0c; font: 400 2.6cqw/1.2 "Instrument Serif", Georgia, serif; } .exam-q li::before { content: counter(q); color: #A52A2A; font-size: 4.2cqw; line-height: 1; }
.p-exam:not(.p-words) .exam-q li { padding: 1.15cqw 0; font-size: 2.3cqw; }
.exam-a { transform: rotate(180deg); padding: 1.4cqw 1.8cqw !important; background: #f1f0ec; color: #46464b; font-size: 1.4cqw; }
.m-gloss { display: grid; gap: .6cqw; } .m-gloss dl { display: grid; grid-template-columns: 13cqw 1fr 13cqw 1fr; gap: 0 1.6cqw; } .m-gloss dt, .m-gloss dd { padding: .72cqw 0 !important; border-top: .1cqw solid #d6d6d2; font-size: 1.55cqw; line-height: 1.35; } .m-gloss dt { color: #0b0b0c; font-weight: 650; }
.m-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw 2.4cqw; margin-top: auto; padding-top: 1.6cqw; border-top: .25cqw solid #0b0b0c; } .m-tools .m-label { grid-column: 1 / -1; } .m-tools a { display: grid; gap: .4cqw; font-size: 1.4cqw; color: #46464b; } .m-tools b { color: #0b0b0c; font: 400 2.5cqw/1.1 "Instrument Serif", Georgia, serif; }

/* 24 Back */
.p-back { background: #A52A2A; color: #fff; } .back-in { position: absolute; left: 8cqw; right: 8cqw; top: 22cqw; display: grid; gap: 4cqw; } .back-q { font: 400 13cqw/.92 "Instrument Serif", Georgia, serif; } .back-q em { color: #f3c5bd; } .back-name { margin-top: 10cqw !important; font: 500 8cqw/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.05em; } .back-name b { font-weight: 800; } .back-name i { color: #f3c5bd; } .back-line { font: italic 400 3.4cqw/1 "Instrument Serif", Georgia, serif; }
.back-foot { position: absolute; left: 8cqw; right: 8cqw; bottom: 6cqw; display: flex; justify-content: space-between; padding-top: 1.4cqw !important; border-top: .12cqw solid rgb(255 255 255 / 45%); font-size: 1.5cqw; }

/* ---------- Reader ---------- */
.is-magazine main { padding-bottom: 2rem; background: radial-gradient(ellipse at 50% 34%, #f1efea 0, #e3e0d9 62%, #d8d4cb 100%); overflow-x: clip; }
.mag-top .crumbs, .mag-top .crumbs a, .mag-top .crumbs span { color: var(--ink-soft); }
.mag-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem .4rem; }
.mag-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid #cfcec8; border-radius: 999px; background: #fff; color: var(--ink); font: 600 .84rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; } .mag-btn:hover { border-color: #a9a8a2; background: #f7f7f5; } .mag-btn[aria-pressed="true"]:hover { background: var(--ink); } .mag-btn span { color: var(--muted); font-weight: 500; } .mag-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mag-btn:focus-visible, .mag-turn:focus-visible, .mag-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mag-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem 0; overflow-x: clip; }
.mag-book { display: grid; gap: 1.4rem; justify-items: center; width: 100%; }
.mag-book > .mag-page { width: min(760px, calc(100vw - 2rem)); box-shadow: 0 10px 34px -14px rgb(0 0 0 / 34%); }
.mag-turn { position: absolute; z-index: 30; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 1px solid #cfcec8; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--ink); font: 400 1.7rem/1 var(--sans); cursor: pointer; } .mag-turn:hover:not(:disabled) { border-color: #a9a8a2; background: #fff; } .mag-turn:disabled { opacity: .3; cursor: default; } .mag-turn.is-prev { left: 1.2rem; } .mag-turn.is-next { right: 1.2rem; }
.mag-bar { display: flex; align-items: center; gap: .6rem; padding-block: .4rem; } .mag-bar[hidden], .mag-hint[hidden], .mag-turn[hidden] { display: none; } .mag-range { flex: 1; min-width: 60px; accent-color: var(--accent); } .mag-where { min-width: 4.2rem; color: var(--ink-soft); font: 600 .84rem/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.mag-hint { color: var(--muted); font-size: .82rem; text-align: center; }

/* Live book. Open pages lie flat; the turning sheet (.mag-leaf) is bent strip by strip in magazine.js. */
.mag-book.is-live { position: relative; display: block; width: calc(var(--pw) * 2); height: var(--ph); margin: 14px 0 26px; transition: transform .9s cubic-bezier(.45, .05, .25, 1); touch-action: pan-y; user-select: none; }
.mag-book.is-single { width: var(--pw); }
.mag-book.is-live.is-front:not(.is-single) { transform: translateX(-25%); }
.mag-book.is-live.is-end:not(.is-single) { transform: translateX(25%); }
.mag-book.is-still, .mag-book.is-still * { transition: none !important; }
.mag-book.is-live > .mag-page { position: absolute; top: 0; left: 0; z-index: 3; width: var(--pw); height: var(--ph); aspect-ratio: auto; visibility: hidden; box-shadow: none; cursor: pointer; }
.mag-book.is-live > .mag-page.slot-l, .mag-book.is-live > .mag-page.slot-r { visibility: visible; }
.mag-book.is-live:not(.is-single) > .mag-page.slot-r { left: var(--pw); }
/* A stapled magazine lies open with square corners; the paper only darkens softly into the gutter. */
.mag-book.is-live .mag-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mag-book.is-live .mag-page.is-right::after { background: linear-gradient(90deg, rgb(30 24 18 / 24%) 0, rgb(30 24 18 / 11%) 1.5%, rgb(30 24 18 / 4%) 4%, transparent 9%); }
.mag-book.is-live .mag-page.is-left::after { background: linear-gradient(270deg, rgb(30 24 18 / 28%) 0, rgb(30 24 18 / 13%) 1.5%, rgb(30 24 18 / 4%) 4.5%, transparent 10%); }
/* A closed magazine: flat glossy cover, only a hint of the stapled spine. No sheen stripes, no fold lines. */
.mag-book.is-live .p-cover::after { background: linear-gradient(90deg, rgb(30 24 18 / 14%) 0, rgb(30 24 18 / 4%) .9%, transparent 2.4%) !important; }
.mag-book.is-live .p-back::after { background: linear-gradient(270deg, rgb(30 24 18 / 14%) 0, rgb(30 24 18 / 4%) .9%, transparent 2.4%) !important; }
.mag-book.is-single .mag-page::after { background: linear-gradient(90deg, rgb(30 24 18 / 18%) 0, rgb(30 24 18 / 6%) 1.6%, transparent 5%) !important; }

/* Paper block: one edge per sheet (box-shadow list from the script). */
.mag-stack { position: absolute; top: 0; z-index: 1; width: var(--pw); height: var(--ph); background: #f3f1ec; }
.mag-stack.is-left { left: 0; } .mag-stack.is-right { left: var(--pw); } .is-single .mag-stack.is-right { left: 0; }
.mag-ground { position: absolute; z-index: 0; left: 4%; right: 4%; bottom: -14px; height: 26px; border-radius: 50%; background: rgb(40 34 26 / 34%); filter: blur(14px); transition: left .8s, right .8s; }
.is-front > .mag-ground { left: 52%; right: 2%; } .is-end > .mag-ground { left: 2%; right: 52%; } .is-single > .mag-ground { left: 4%; right: 4%; }

/* Shadow of the lifted sheet on the pages below */
.mag-cast { position: absolute; top: 0; z-index: 4; width: var(--pw); height: var(--ph); opacity: 0; pointer-events: none; }
.mag-cast.is-right { left: var(--pw); background: linear-gradient(90deg, rgb(24 18 12 / 62%) 0, rgb(24 18 12 / 34%) calc(var(--x, 0%) * .7), rgb(24 18 12 / 26%) var(--x, 0%), transparent calc(var(--x, 0%) + 16%)); }
.mag-cast.is-left { left: 0; background: linear-gradient(270deg, rgb(24 18 12 / 62%) 0, rgb(24 18 12 / 34%) calc(var(--x, 0%) * .7), rgb(24 18 12 / 26%) var(--x, 0%), transparent calc(var(--x, 0%) + 16%)); }
.is-single .mag-cast.is-right { left: 0; } .is-single .mag-cast.is-left { display: none; }
.is-front:not(.is-turning) .mag-cast, .is-end:not(.is-turning) .mag-cast { opacity: 0 !important; }

/* The bending sheet */
.mag-leaf { position: absolute; inset: 0; z-index: 6; perspective: 2300px; perspective-origin: 50% 42%; pointer-events: none; }
.leaf-strip { position: absolute; top: 0; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.mag-leaf > .leaf-strip { height: var(--ph); }
.leaf-face { position: absolute; inset: 0; overflow: hidden; background: #f7f6f2; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf-face.is-back { transform: rotateY(180deg); }
.leaf-face .mag-page { position: absolute; top: 0; width: var(--pw); height: var(--ph); aspect-ratio: auto; box-shadow: none; }
.leaf-shade, .leaf-gloss { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.leaf-shade.is-a { background: linear-gradient(90deg, #1c150d, rgb(28 21 13 / 0%)); } .leaf-shade.is-b { background: linear-gradient(270deg, #1c150d, rgb(28 21 13 / 0%)); } .leaf-gloss { background: #fff; }
.leaf-strip.is-edge > .leaf-face { border-right: 1px solid #cbc8bf; } .leaf-strip.is-edge > .leaf-face.is-back { border-right: 0; border-left: 1px solid #cbc8bf; }
.mag:fullscreen { overflow: auto; background: #d9d8d3; display: flex; flex-direction: column; justify-content: center; }
.mag-zoom { position: fixed; inset: 0; z-index: 120; overflow: auto; background: rgb(20 20 22 / 92%); cursor: zoom-out; -webkit-overflow-scrolling: touch; } .mag-zoom .mag-page { width: max(1100px, 92vw); margin: 1rem auto; } .mag-zoom-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; }
@media (max-width: 760px) { .mag-turn { display: none; } .mag-bar { flex-wrap: wrap; justify-content: center; } .mag-range { order: -2; flex: 1 1 60%; } .mag-where { order: -1; } .mag-zoom .mag-page { width: 900px; } .mag-top { padding-block: .7rem 0; } .mag-top .crumbs a, .mag-top .crumbs span[aria-hidden] { display: none; } .mag-bar [data-full] { display: none; } .mag-stage { padding: .6rem 0; } }
@media (prefers-reduced-motion: reduce) { .mag-book.is-live, .mag-ground { transition: none; } }

/* ---------- Shelf ---------- */
.shelf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: clamp(2rem, 5vw, 4rem); } .shelf-cover.is-big { position: sticky; top: 2rem; }
.shelf-cover { display: block; position: relative; } .shelf-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 2px 4px rgb(0 0 0 / 8%), 0 34px 60px -28px rgb(0 0 0 / 45%); } .shelf-cover::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 4%; background: linear-gradient(90deg, rgb(0 0 0 / 14%), transparent); pointer-events: none; }
.shelf h1 { margin: .5rem 0 0; font: 800 clamp(2.4rem, 5vw, 4rem)/.98 var(--display); letter-spacing: -.045em; } .shelf h1 em { font: italic 400 1.05em/1 var(--serif); letter-spacing: -.01em; }
.shelf-headline { margin: 1.4rem 0 0; color: var(--accent); font: 400 clamp(1.8rem, 3.2vw, 2.6rem)/1.05 var(--serif); } .shelf-deck { margin: .7rem 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.shelf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 1.6rem 0 0; } .shelf-note { margin: 1.1rem 0 1.8rem; color: var(--muted); font-size: .9rem; } .shelf-soon { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .92rem; font-weight: 600; letter-spacing: .01em; }
.shelf-list { margin: .7rem 0 0; padding: 0; list-style: none; } .shelf-list a { display: grid; grid-template-columns: 2.6rem 1fr; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; } .shelf-list a:hover { color: var(--accent); } .shelf-list span { color: var(--accent); font-family: var(--serif); font-size: 1.1rem; }
.shelf-back { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); } .shelf-back h2 { margin: 0; font: 700 1.5rem/1.1 var(--display); letter-spacing: -.02em; } .shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; margin-top: 1.4rem; } .shelf-grid .shelf-cover img { box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 16px 30px -18px rgb(0 0 0 / 40%); } .shelf-grid p { margin: .9rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; } .shelf-grid b { color: var(--ink); }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } .shelf-cover.is-big { max-width: 420px; margin-inline: auto; } }

/* ---------- PDF ---------- */
@media print {
  .mag-print .mag-page { display: block !important; width: 800px; height: 1066px; aspect-ratio: auto; break-after: page; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mag-print .mag-page:last-child { break-after: auto; }
}
