.theme-pan {--paper:#f6eddc;--surface:#e9d9bf;--ink:#372319;--muted:#654e3d;--accent:#8a351b;color-scheme:light}
.theme-rim,.theme-hub {--paper:#f3f2e9;--surface:#e1e6db;--ink:#22362f;--muted:#4f6057;--accent:#285e51;color-scheme:light}
.theme-meter {--paper:#1c152a;--surface:#322440;--ink:#fff5e8;--muted:#d3bdd4;--accent:#ffd58a;--display:inherit;--display-weight:750;--display-spacing:-.055em;color-scheme:dark}
.theme-pan .edition-cover {display:block;width:var(--width);padding-bottom:0}
.theme-pan .edition-copy {display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:0 5%;margin-bottom:1.9rem}
.theme-pan .edition-copy h1 {grid-column:1;grid-row:2/4}
.theme-pan .edition-copy p {grid-column:2;grid-row:2}
.theme-pan .edition-action {grid-column:2;grid-row:3;justify-self:start;margin-top:.65rem}
.theme-pan .edition-cover img {border-radius:3px}
.pan-film figure,.rim-plate figure,.beat-grid figure,.beat-audio figure {margin:0}
.pan-film {display:grid;grid-template-columns:repeat(3,1fr);gap:.32rem}
.pan-frame {background-image:url(pan.webp);background-size:300% 100%;aspect-ratio:1}
.frame-1 {background-position:center}.frame-2 {background-position:right}
.pan-film figcaption,.rim-plate figcaption {font-size:.86rem;line-height:1.4;margin-top:.5em}
.is-scrolling .pan-film {display:block;margin:auto;max-width:min(100%,42svh)}
.is-scrolling .pan-film figure {display:none}
[data-scroll-step="0"].is-scrolling .pan-film figure:first-child,[data-scroll-step="1"].is-scrolling .pan-film figure:nth-child(2),[data-scroll-step="2"].is-scrolling .pan-film figure:last-child {display:block}
.theme-rim .edition-cover {grid-template-columns:.88fr 1.12fr;width:var(--width)}
.theme-rim .edition-cover figure {padding:.65rem;background:#fffdf3;box-shadow:0 .65rem 1.2rem #202a2415;transform:rotate(1deg)}
.rim-plate {display:flex;align-items:center;justify-content:space-evenly;gap:.7rem;padding:2rem 1rem;background-color:#e1e6d9;background-image:linear-gradient(#51645614 1px,transparent 1px),linear-gradient(90deg,#51645614 1px,transparent 1px);background-size:18px 18px}
.rim-plate figure {flex:1;display:grid;grid-template-rows:clamp(4rem,8vw,7.5rem) auto;align-items:center;justify-items:center;text-align:center}
.rim-plate i {display:block;width:min(95%,clamp(4rem,8vw,7rem));aspect-ratio:1 / var(--ratio);border:2px solid #305448;border-radius:50%;background:#fcf8e7bd}
.theme-meter .edition-cover {width:100%;max-width:90rem;padding:0;gap:0;background:#34213e}
.theme-meter .edition-copy {padding:clamp(1.7rem,4vw,4.2rem)}
.theme-meter .edition-cover h1 {font-size:clamp(3rem,5vw,5.4rem)}
.theme-meter .edition-cover img {min-height:28rem;object-fit:cover;height:100%}
.theme-meter .edition-cover figure {align-self:stretch}
.beat-grid {background:var(--surface);padding:clamp(.7rem,2vw,1.6rem);display:grid;gap:1.05rem}
.beat-grid figcaption,.beat-audio figcaption {font-weight:700;margin-bottom:.4rem}
.beat-grid figure>div {display:grid;grid-template-columns:repeat(6,1fr);gap:.22rem}
.beat-grid span {font:600 clamp(.72rem,1.2vw,1rem)/1.25 system-ui;text-align:center;background:#45314f;color:#f5e5f1;border-radius:.2rem;padding:.6rem 0}
.beat-grid .accent {background:#ffd58a;color:#302039}
.beat-audio figure {margin:.9rem 0;padding:.8rem 1rem;background:var(--surface)}
.beat-audio audio {width:100%;height:38px;display:block}
.edition .story-canvas {aspect-ratio:auto;height:auto;overflow:visible}
.next-index {width:var(--width);margin:clamp(2rem,6vw,6rem) auto}
.next-index>p {color:var(--muted);margin:1rem 0 2rem}
.next-index nav {display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(.9rem,2vw,2rem)}
.next-index nav a {display:block;color:inherit;text-decoration:none}
.next-index nav a:hover h2,.next-index nav a:focus-visible h2 {text-decoration:underline}
.next-index nav img {display:block;width:100%;aspect-ratio:1.42;object-fit:cover}
.next-index nav span {display:block;color:var(--muted);margin:.75rem 0 .2rem}
.edition .next-index nav h2 {font-size:clamp(1.65rem,2.8vw,3rem)}
.edition .collection-return a {color:var(--accent)}
@media(max-width:760px){
 .theme-pan .edition-copy {display:block}
 .theme-pan .edition-action {margin-top:1rem}
 .theme-meter .edition-cover {display:flex;flex-direction:column;gap:0}
 .theme-meter .edition-cover .edition-copy {padding:1.6rem 5%}
 .theme-meter .edition-cover img {min-height:0;max-height:32svh;aspect-ratio:2.45;object-fit:cover}
 .theme-rim .edition-cover {grid-template-columns:1fr}
 .theme-rim .edition-cover figure {max-width:100%}
 .is-scrolling .pan-film {max-width:min(100%,28svh)}
 .next-index nav {grid-template-columns:1fr}
 .next-index nav a {display:grid;grid-template-columns:32% 1fr;gap:0 1rem;align-items:center}
 .next-index nav img {grid-row:1/3}
 .next-index nav span {align-self:end;margin:0}
 .next-index nav h2 {align-self:start}
}
