:root { color-scheme: dark; --page-ratio: .7727272727; }
* { box-sizing: border-box; }
html, body, .reader { width: 100%; height: 100%; min-height: 100%; margin: 0; background: #050505; overflow: hidden; }
body { font-family: system-ui, sans-serif; }
.reader {
  --download-height: 44px;
  --stage-height: calc(100vh - var(--download-height) - env(safe-area-inset-bottom, 0px));
}
@supports (height: 100dvh) {
  .reader { --stage-height: calc(100dvh - var(--download-height) - env(safe-area-inset-bottom, 0px)); }
}
.stage { position: relative; width: 100%; height: var(--stage-height); display: grid; place-items: center; overflow: hidden; outline: none; }
.stage:focus-visible { outline: 2px solid #f3e9df; outline-offset: -4px; }
.flip-frame { width: min(100vw, calc(2 * var(--stage-height) * var(--page-ratio))); max-height: var(--stage-height); transition: transform 330ms cubic-bezier(.22,.61,.36,1); }
.stage.closed-cover .flip-frame { transform: translateX(-25%); }
.book { width: 100%; min-width: 0 !important; position: relative; }
.stf__parent { margin: 0 auto; touch-action: pan-y pinch-zoom; }
.stf__wrapper { background: transparent; }
.stf__block { transform-style: preserve-3d; }
.lookbook-page { position: relative; width: 100%; height: 100%; margin: 0; overflow: hidden; background: #050505; color: #fff; }
.lookbook-page > img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lookbook-page[data-density="hard"] { background: #050505; }
.page-copy { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.page-link-overlay { position: absolute; z-index: 3; display: block; border: 0; background: transparent; color: transparent; text-decoration: none; }
.page-link-overlay:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #111; }
.edge-control { position: absolute; z-index: 10; top: 0; bottom: 0; width: min(8vw, 88px); border: 0; padding: 0; opacity: 0; pointer-events: none; color: transparent; background: transparent; }
.edge-control.previous { left: 0; }
.edge-control.next { right: 0; }
.edge-control:focus-visible { opacity: .18; pointer-events: auto; outline: 2px solid #fff; outline-offset: -5px; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pdf-download {
  display: grid;
  place-items: center;
  width: max-content;
  min-height: var(--download-height);
  margin-inline: auto;
  padding-inline: 12px;
  color: #f3e9df;
  font-size: .875rem;
  text-underline-offset: .2em;
}
.pdf-download:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (max-width: 759px), (max-aspect-ratio: 1/1) {
  .flip-frame { width: min(100vw, calc(var(--stage-height) * var(--page-ratio))); }
  .stage.closed-cover .flip-frame { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-frame { transition: none; }
  .stf__parent, .stf__block, .stf__item { scroll-behavior: auto !important; }
}
