:root {
    color-scheme: light;
    --ink: #62232d;
    --paper: #fff6e9;
    --story-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--ink);
    background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.ambient__image { position: absolute; inset: -60px; background-position: center; background-size: cover; filter: blur(32px); opacity: 0; transition: opacity .65s ease; }
.ambient__image.is-visible { opacity: 1; }
.ambient::after { content: ""; position: absolute; inset: 0; background: rgb(36 11 19 / 65%); }
.story {
    position: relative;
    width: min(100%, var(--story-width));
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    background: var(--paper);
    box-shadow: 0 0 70px #210b1933;
}
.story::-webkit-scrollbar { display: none; }
.slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.artwork {
    position: relative;
    width: 100%;
    max-width: calc((100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 941 / 1672);
    max-width: calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 941 / 1672);
    aspect-ratio: 941 / 1672;
}
.artwork img { display: block; width: 100%; height: auto; color: var(--ink); font-size: 14px; }
.purchase-hotspot { position: absolute; left: 5.2%; top: 83.9%; width: 89.6%; height: 7.7%; padding: 0; border: 0; border-radius: 4px; background: transparent; }
.purchase-hotspot:hover { box-shadow: inset 0 0 0 2px #fff6e999; }
.pagination { position: fixed; right: max(0px, calc((100vw - var(--story-width)) / 2)); top: 50%; transform: translateY(-50%); }
.pagination a { display: grid; place-items: center; width: 28px; height: 36px; }
.pagination span { display: block; width: 5px; height: 5px; border-radius: 6px; background: var(--ink); box-shadow: 0 0 0 1px #fff6e9b3; opacity: .5; transition: height .25s, opacity .25s; }
.pagination [aria-current] span { height: 22px; opacity: 1; }
:where(button, a, main):focus-visible { outline: 2px solid #d95142; outline-offset: -3px; }
.purchase-hotspot:focus-visible { outline: 3px solid #fff6e9; outline-offset: -5px; box-shadow: 0 0 0 3px var(--ink); }
dialog { width: min(360px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 24px; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink); text-align: center; }
dialog::backdrop { background: rgb(36 11 19 / 70%); backdrop-filter: blur(8px); }
.dialog-brand { margin: 0 0 24px; font: 32px Georgia, serif; letter-spacing: .15em; }
dialog h1 { font-size: 19px; margin: 0 0 15px; }
dialog p { font-size: 13px; line-height: 1.9; }
dialog button { display: block; width: 100%; min-height: 48px; margin-top: 25px; padding: 12px; border: 0; background: var(--ink); color: var(--paper); }
.noscript-note { position: fixed; bottom: 0; margin: 0; width: 100%; padding: 5px 12px; background: var(--paper); font-size: 11px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
