.printed-page { margin: 1.25rem 0; }
.printed-page img { display: block; width: 100%; height: auto; }
.printed-page figcaption, .print-index small { font: .8rem/1.4 Inter, sans-serif; opacity: .7; }
.print-index { margin: 1.25rem auto; width: min(100%, 48rem); }
.print-index summary { cursor: pointer; }
.print-index li { padding-block: .25rem; }
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --night: #090d1f;
  --paper: #f7f2e8;
  --muted: #acb0bd;
  --line: #ffffff24;
  --gold: #e9cca0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ui: Inter, "Segoe UI", sans-serif;
  --side: clamp(22px, 5.2vw, 82px);
}
html {
  scroll-padding-top: 84px;
}
@media (forced-colors: none) {
  :root {
    --scroll-thumb: rgb(190 191 204 / 44%);
  }
  @supports selector(::-webkit-scrollbar) {
    :root::-webkit-scrollbar {
      width: 8px;
      height: 8px;
      background: transparent;
    }
    :root::-webkit-scrollbar-track,
    :root::-webkit-scrollbar-corner {
      background: transparent;
    }
    :root::-webkit-scrollbar-button {
      display: none;
    }
    :root::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: var(--scroll-thumb) padding-box;
    }
    :root::-webkit-scrollbar-thumb:hover {
      background-color: rgb(206 207 220 / 68%);
    }
  }
  @supports not selector(::-webkit-scrollbar) {
    :root {
      scrollbar-width: thin;
      scrollbar-color: var(--scroll-thumb) transparent;
    }
  }
}
body.bf-ui {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
img {
  display: block;
  max-width: 100%;
}
button,
a,
input,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #dcc5ff;
  outline-offset: 4px;
}
.wrap {
  width: min(100% - var(--side) * 2, 1320px);
  margin-inline: auto;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: #fff;
  color: #101421;
  padding: 9px 15px;
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}
.mast {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  transition: transform 0.27s ease;
  background: linear-gradient(#080d18ad, transparent);
}
.mast::before {
  /* Save's player-edge-blur, mirrored along the top edge. */
  content: "";
  --edge-height: clamp(110px, 16vh, 160px);
  --edge-bleed: 48px;
  --edge-mask: linear-gradient(
    to bottom,
    #000 var(--edge-bleed),
    rgb(0 0 0 / 0.72) calc(var(--edge-bleed) + var(--edge-height) * 0.24),
    rgb(0 0 0 / 0.35) calc(var(--edge-bleed) + var(--edge-height) * 0.5),
    rgb(0 0 0 / 0.08) calc(var(--edge-bleed) + var(--edge-height) * 0.76),
    transparent
  );
  position: absolute;
  z-index: -1;
  inset: -48px -48px auto;
  height: calc(var(--edge-height) + var(--edge-bleed));
  pointer-events: none;
  background: #0b10245c;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: var(--edge-mask);
  -webkit-mask-image: var(--edge-mask);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.mast.scrolled:not(.quiet)::before {
  opacity: 1;
}
.mast-inner {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font: 600 26px/1 var(--serif);
  letter-spacing: -0.04em;
}
.brand img {
  width: 38px;
}
.menu-wrap {
  position: relative;
}
.bf-ui .menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 19px;
  font-size: 14px;
  background-color: #0b12284b;
}
.menu-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.22s;
}
.menu-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.header-search {
  justify-self: end;
}
.site-menu {
  display: flex;
  gap: 8px;
}
.site-menu .bf-glass {
  min-height: 40px;
  padding-inline: clamp(10px, 1.2vw, 18px);
  font-size: 14px;
  background-color: #0b12285c;
}
.site-menu [aria-current="page"] {
  color: var(--gold);
  border-color: #e9cca064;
}
.site-menu .icon {
  width: 16px;
  height: 16px;
}
.hero,
.story-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}
.hero {
  height: clamp(480px, 63vh, 680px);
  min-height: 470px;
  overflow: visible;
  --shell-accent: #8992a6;
  transition: --shell-accent 0.55s ease;
}
.hero-art,
.story-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #101d26;
}
.hero-art {
  bottom: calc(-1 * clamp(36px, 6svh, 58px));
  pointer-events: none;
  --cover-fade: linear-gradient(
    to bottom,
    #000 48%,
    rgb(0 0 0 / 0.97) 56%,
    rgb(0 0 0 / 0.87) 65%,
    rgb(0 0 0 / 0.68) 73%,
    rgb(0 0 0 / 0.44) 81%,
    rgb(0 0 0 / 0.21) 89%,
    rgb(0 0 0 / 0.06) 96%,
    transparent
  );
  mask-image: var(--cover-fade);
  -webkit-mask-image: var(--cover-fade);
}
.hero-art img,
.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 43%;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 48% 0 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  --soft-edge: linear-gradient(
    to bottom,
    transparent,
    #0003 25%,
    #000b 66%,
    #000
  );
  mask-image: var(--soft-edge);
  -webkit-mask-image: var(--soft-edge);
}
.hero-art::after,
.story-art::after {
  content: "";
  position: absolute;
  inset: 0;
}
.story-art::after {
  background:
    linear-gradient(
      90deg,
      #080c1cec 0%,
      #0a101bc4 16%,
      #0a102045 48%,
      transparent 76%
    ),
    linear-gradient(
      0deg,
      var(--night) 0%,
      #090d1fd1 7%,
      #090d1f44 24%,
      transparent 50%,
      #090d1f31 100%
    );
}
.hero-art::after {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      #080c1cec,
      #0a101bc4 16%,
      #0a102045 48%,
      transparent 76%
    ),
    linear-gradient(0deg, #090d1f80, transparent 48%, #090d1f31);
}
.story-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 19%;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(transparent, #000);
  background: linear-gradient(transparent, var(--night));
}
.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-block: 90px 48px;
}
.hero-copy {
  width: min(100%, 950px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}
.hero h1 {
  transition-property: none;
  font-size: clamp(57px, 6.3vw, 104px);
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-desc {
  position: relative;
  max-height: 3lh;
  overflow: hidden;
  max-width: 490px;
  margin: 16px 0 21px;
  color: #e3e2e5;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
}
.hero-action,
.story-actions {
  display: flex;
  gap: 19px;
  align-items: center;
}
.hero-action {
  align-self: center;
}
.read-action[data-read] {
  --shell-accent: #8992a6;
}
.bf-ui .read-action {
  min-height: 45px;
  padding: 0 22px;
  background-color: color-mix(in srgb, var(--shell-accent) 18%, #11152688);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    filter 0.2s,
    transform 0.2s;
  color: #fff;
  font-size: 14px;
  gap: 10px;
}
.story-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #e0dfdd;
}
.hero-time {
  border-inline-start: 1px solid #ffffff38;
  padding-inline-start: 10px;
  color: #f3edf0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.story-meta .icon {
  width: 16px;
  height: 16px;
}
.gallery-nav {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.slide-dots {
  display: flex;
  align-items: center;
}
.slide-dots button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slide-dots button {
  width: 24px;
  height: 32px;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide-dots button i {
  display: block;
  width: 9px;
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  background: color-mix(in srgb, var(--shell-accent) 55%, #fff6);
  transition:
    width 0.3s,
    background 0.3s;
}
.slide-dots [aria-pressed="true"] {
  width: 68px;
}
.slide-dots [aria-pressed="true"] i {
  width: 58px;
  background: color-mix(in srgb, var(--shell-accent) 38%, #fff2);
}
.slide-dots i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--shell-accent);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .slide-dots [aria-pressed="true"] i {
    background: var(--shell-accent);
  }
}
.home-lookup {
  position: relative;
  z-index: 6;
  margin-top: -14px;
}
.lookup {
  max-width: 650px;
  margin-inline: auto;
}
.search-shell {
  min-height: 60px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 8px 9px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
  color: #aaa6c8;
}
.search-input-wrap input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #f6f3fa;
  font-size: 16px;
}
.search-form input::placeholder {
  color: #aeaec2;
  opacity: 1;
}
.section {
  margin-top: 49px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-head h2,
.page-top h2 {
  font-size: clamp(33px, 3.1vw, 49px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.text-link,
.reader-back {
  font: 500 14px/1.35 var(--ui);
  color: #d0c5e6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 5px 0;
  white-space: nowrap;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.text-link:hover,
.footer a:hover,
.crumb:hover {
  color: white;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 28px 20px;
}
.book-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  border-radius: 16px;
  --card-light: 0;
  --book-open: 0;
  --book-reach: clamp(74px, 6vw, 98px);
  --book-motion: 360ms cubic-bezier(0.22, 0.68, 0.16, 1);
  --book-image-filter: none;
}
.book-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  border-radius: inherit;
  background: #181c2a;
  border: 1px solid #ffffff20;
}
.book-surface::before {
  content: "";
  flex: none;
  aspect-ratio: 1.66;
  pointer-events: none;
}
.book-img::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(11 13 22 / 40%) 56%, rgb(11 13 22 / 60%));
  --blur-mask: linear-gradient(to bottom, transparent, #0002 18%, #000a 47%, #000 68%);
  -webkit-mask-image: var(--blur-mask);
  mask-image: var(--blur-mask);
}
.book-card > .search-outline {
  opacity: var(--card-light);
}
.book-card > .search-halo {
  opacity: calc(0.72 * var(--card-light));
}
.book-card > .search-halo::before {
  border-radius: inherit;
  inset: 2px -3px -3px;
  filter: blur(10px);
  animation-name: none;
  will-change: auto;
}
.book-card > .search-outline::before {
  animation-name: none;
}
.book-card:is(:active, :focus-within) {
  --card-light: 1;
  --card-ring: ring-turn;
  --card-halo: brand-breathe;
}
.book-card:has(:focus-visible) {
  --book-open: 1;
  --book-image-filter: blur(4px) brightness(.76);
}
@media (hover: hover) {
  .book-card:hover {
    --card-light: 1;
    --card-ring: ring-turn;
    --card-halo: brand-breathe;
    --book-open: 1;
    --book-image-filter: blur(4px) brightness(.76);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .book-card > .search-outline::before {
    animation-name: var(--card-ring, none);
  }
  .book-card > .search-halo::before {
    animation-name: var(--card-halo, none);
  }
}
.book-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.book-img img,
.collection-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collection-card:hover img {
  transform: scale(1.034);
}
.book-img > img {
  display: block;
  /* Complement of the original 30% inset / 18%, 47%, 68% gradient stops. */
  mask-image: linear-gradient(to bottom, #000 30%, #000d 42.6%, #0005 62.9%, transparent 77.6%);
  filter: var(--book-image-filter);
  transition: transform var(--book-motion), filter var(--book-motion);
}
.book-soft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px);
  transform: scale(1.055);
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-card:hover .book-img > img {
    transform: scale(1.035);
  }
}
.book-info {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  overflow-wrap: anywhere;
}
.book-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.4;
  --summary-gap: 4px;
  --room: max(0px, calc(var(--summary-slot, 6px) - var(--summary-gap)));
  --available: max(0px, calc(var(--room) + var(--book-reach) - 7px));
  --revealed: min(var(--summary-height, var(--available)), round(down, var(--available), 1lh));
  transform: translateY(calc(var(--book-open) * (var(--room) - 7px - var(--revealed))));
  transition: transform var(--book-motion);
}
.book-info h3 {
  font-size: clamp(21px, 1.72vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: pretty;
}
.book-title::after {
  content: "";
  position: absolute;
  inset: 0 0 calc(0px - var(--book-reach));
}
.book-summary {
  flex: 1 0 6px;
  position: relative;
  container-type: size;
  pointer-events: none;
}
@property --summary-visible {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
.book-summary p {
  position: absolute;
  inset: var(--summary-gap) 0 auto;
  --preview: round(down, max(0px, calc(100cqh - var(--summary-gap))), 1lh);
  --visible: calc(var(--preview) + var(--book-open) * (var(--revealed) - var(--preview)));
  --summary-visible: var(--visible);
  clip-path: polygon(0 0, 100% 0, 100% var(--summary-visible), 0 var(--summary-visible));
  color: #eee9e3;
  opacity: calc(0.5 + 0.5 * var(--book-open));
  transition: --summary-visible var(--book-motion), opacity var(--book-motion);
  margin: 0;
}
.book-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 7px;
}
.bf-ui .book-actions .read-action {
  min-height: 38px;
  padding-inline: 10px;
  gap: 5px;
  font-size: 13px;
  margin-inline-end: auto;
}
.book-actions .hero-time {
  padding-inline-start: 6px;
}
.bf-ui .book-actions:has([data-card-audio]:not([hidden])) .read-action { margin-inline-end: 0; }
.book-actions [data-card-audio] { margin-inline-end: auto; }
.book-actions [data-card-audio][hidden] { display: none; }
@container (max-width: 270px) {
  .book-actions:has([data-card-audio]:not([hidden])) .read-action > .icon { display: none; }
}
.bf-ui .book-actions .bf-glass--icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}
.bf-ui .book-actions .icon {
  width: 17px;
  height: 17px;
}
.book-actions [aria-pressed="true"] .icon {
  fill: currentColor;
}
.book-actions [data-card-toggle="liked"][aria-pressed="true"] {
  color: #ffc2cc;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.collection-card {
  display: flex;
  width: 100%;
  position: relative;
  isolation: isolate;
  min-height: 170px;
  aspect-ratio: 2.1;
  align-items: flex-end;
  border: 1px solid #ffffff23;
  border-radius: 17px;
  overflow: hidden;
}
.collection-card img,
.collection-card:after {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.collection-card:after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #070d1aec, transparent);
}
.collection-card div {
  padding: 18px 20px;
}
.collection-card span {
  font-size: 13px;
  color: #e1d8ce;
}
.collection-card h3 {
  font-size: clamp(26px, 2.2vw, 37px);
  line-height: 1.06;
  margin-top: 3px;
}
.footer {
  display: flex;
  gap: 23px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 62px;
  padding-block: 27px 37px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-size: 21px;
  margin-right: auto;
  color: var(--paper);
}
.page-top {
  padding-top: 108px;
  min-height: 65vh;
}
.crumb {
  display: inline-block;
  color: #c3bdd0;
  font-size: 13px;
  margin-bottom: 13px;
}
.page-top h1,
.story-head h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-top > h1 {
  margin-bottom: 28px;
}
.page-top.catalog-page > h1 {
  text-align: center;
  font-size: clamp(42px, 4.65vw, 70px);
}
.catalog-page > .intro {
  text-align: center;
  margin-inline: auto;
}
.intro {
  line-height: 1.6;
  color: #d5d3d9;
  max-width: 620px;
}
.shelf-account {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.catalog-filters {
  --filter-padding: 16px;
  --filter-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 26px;
}
.catalog-filters .bf-glass {
  max-width: 100%;
  padding-inline: var(--filter-padding);
  gap: 6px;
  border-radius: var(--filter-radius);
}
.catalog-filters .bf-glass .icon {
  width: 14px;
  height: 14px;
}
.catalog-filters select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.filter-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.filter-shell:has([aria-expanded="true"]) {
  z-index: 5;
}
.bf-ui .filter-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: max-content;
  max-width: min(17rem, calc(100vw - var(--side) * 2));
  border-radius: var(--filter-radius);
  background-color: #141829f5;
  box-shadow: 0 8px 24px #0005;
  transition: opacity .2s ease, translate .24s cubic-bezier(.2,.8,.2,1);
}
.bf-ui .filter-panel[inert] {
  visibility: hidden;
  opacity: 0;
  translate: 0 -4px;
  pointer-events: none;
  transition: opacity .2s ease, translate .24s cubic-bezier(.2,.8,.2,1), visibility 0s .24s;
}
.filter-choice {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.filter-toggle span {
  min-width: 0;
  overflow: hidden;
}
.filter-toggle .icon {
  flex: none;
  transition: transform .24s ease;
}
.filter-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.filter-options.feedback {
  padding: 5px;
}
.filter-choice {
  display: block;
  width: 100%;
  padding: 9px calc(var(--filter-padding) - 5px);
  border-radius: 13px;
  text-align: start;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.filter-choice[aria-pressed="true"],
.filter-choice:is(:hover, :focus-visible) {
  background: #ffffff10;
}
.bf-ui .filter-toggle:focus-visible,
.filter-choice:focus-visible,
.catalog-filters label:has(select:focus-visible) span {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-top > .intro + .lookup {
  margin-top: 22px;
}
.catalog-status {
  min-height: 1px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.catalog-status:not(:empty) {
  padding-top: 16px;
}
.empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.empty p {
  color: var(--muted);
  margin: 8px 0 16px;
}
.story-intro {
  min-height: clamp(520px, 70svh, 760px);
  display: flex;
  align-items: flex-end;
}
.story-art::after {
  background:
    linear-gradient(90deg, #090d1feb 4%, #090d1fb0 45%, #090d1f38 75%),
    linear-gradient(0deg, var(--night), transparent 58%);
}
.story-head {
  padding-block: clamp(130px, 17vh, 210px) clamp(46px, 7vh, 86px);
}
.story-head h1 {
  max-width: 780px;
}
.story-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 17px 0 10px;
}
.story-head .intro {
  margin-bottom: 19px;
}
.story-actions {
  gap: 10px;
}
.reader-frame {
  --reader-size: 21px;
  --reader-paper: #111527;
  --reader-ink: #ede7df;
  background: var(--reader-paper);
  color: var(--reader-ink);
  scroll-margin-top: 65px;
  padding: 35px var(--side) 55px;
}
.reader-frame.light {
  --reader-paper: #f5f0e5;
  --reader-ink: #2b251e;
  color-scheme: light;
}
.reading {
  max-width: 690px;
  margin: auto;
}
.reader-bar {
  font: 500 15px/1.4 var(--ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid currentColor;
  padding: 0 0 12px;
  margin: 0 0 26px;
}
.reader-bar > div {
  display: flex;
  gap: 5px;
}
.type-tool {
  background: none;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 12px;
  min-width: 42px;
  height: 40px;
  font-size: 14px;
  color: inherit;
}
.story-head.has-video {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  align-items: end;
  column-gap: clamp(28px, 5vw, 88px);
}
.video-shelf {
  width: min(100%, 350px);
  justify-self: end;
  align-self: center;
  display: grid;
  gap: 20px;
  scroll-margin-top: 80px;
  padding: 8px 4px;
}
.video-shelf:has(> a:nth-child(2)) { width: min(100%, 490px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-poster {
  --video-accent: var(--shell-accent, #bfb0e8);
  display: block;
  position: relative;
  min-width: 0;
  aspect-ratio: 16/9;
  border-radius: 18px;
}
.video-tile {
  position: absolute;
  inset: 0;
  display: block;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--video-accent) 68%, white);
  border-radius: inherit;
  background: #151a29;
  box-shadow: 0 16px 35px #04071370, 0 0 5px var(--video-accent),
    0 0 24px color-mix(in srgb, var(--video-accent) 38%, transparent);
}
.video-poster .video-tile {
  transform: perspective(760px) rotateY(-9deg) rotateX(4deg) rotateZ(2deg);
  transition: transform .36s ease, box-shadow .36s ease;
}
.video-poster:focus-visible .video-tile { outline: 2px solid white; outline-offset: -4px; }
.video-tile > .search-outline { border-radius: inherit; opacity: .78; filter: none; }
@keyframes video-hover {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .video-poster .video-tile { animation: video-hover 5.5s ease-in-out infinite; }
  .video-poster:nth-child(even) .video-tile { animation-delay: -2s; }
  .video-poster:is(:hover,:focus-visible,.in-flight) .video-tile { animation-play-state: paused; }
}
@media (hover: hover) {
  .video-poster:hover .video-tile { transform: perspective(760px) translateY(-5px) rotateY(-4deg) rotateX(2deg) rotateZ(.8deg); }
}
.video-tile img, .video-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg,#070a15eb, #070a1550 40%, transparent 72%);
}
.video-play, .video-tile-caption { position: absolute; z-index: 1; }
.video-play {
  left: 50%; top: 44%; transform: translate(-50%,-50%);
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid #ffffff60; border-radius: 50%; background: #11152285;
  color: #fff; backdrop-filter: blur(7px);
}
.video-play .icon { width: 21px; height: 21px; }
.video-tile-caption {
  inset: auto 12px 10px;
  max-height: 2lh; overflow: hidden;
  color: white; font: 600 clamp(12px, 1.15vw, 16px)/1.24 var(--ui);
  text-shadow: 0 1px 4px #0007;
}
.video-poster.in-flight .video-tile { visibility: hidden; }
.video-dialog {
  position: fixed; inset: 0; margin: 0; padding: 16px;
  width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; color: var(--paper); background: transparent; overflow: auto;
}
.video-dialog[open] { display: grid; place-items: center; }
.video-dialog::backdrop { background: #060915c9; backdrop-filter: blur(8px); }
html:has(.video-dialog[open]) { overflow: hidden; }
.video-stage { width: min(100%, 1060px, max(200px, calc((100dvh - 48px) * 1.7778))); position: relative; }
.video-screen { position: relative; background: #090d17; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; }
.video-screen .video-tile { pointer-events: none; border-radius: inherit; }
.hero-time[hidden] { display: none; }
.edition-note {
  margin: 0 0 1.5rem;
  font: 14px/1.5 var(--ui);
}
.edition-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading > p {
  white-space: pre-line;
  font:
    400 var(--reader-size)/1.76 Georgia,
    "Times New Roman",
    serif;
  margin: 0 0 1em;
  overflow-wrap: break-word;
  scroll-margin-top: 16vh;
}
.reading > p:first-of-type::first-letter {
  font-weight: bold;
}
.endmark {
  text-align: center;
  font-size: 26px;
  color: #b69876;
  margin: 35px 0;
}
.source {
  font: 14px/1.6 var(--ui);
  border-top: 1px solid #8885;
  padding: 16px 0;
}
.source p {
  margin: 7px 0;
}
.source a,
.message a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source summary {
  cursor: pointer;
  font-weight: 600;
}
.reader-back {
  color: inherit;
  text-decoration: underline;
  margin-top: 8px;
}
dialog {
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 14px;
  width: min(743px, 100%);
  max-width: 100%;
  max-height: 90dvh;
  overflow: auto;
  margin: 10vh auto auto;
}
dialog .search-shell {
  border-radius: 24px;
}
dialog::backdrop {
  background: #03050dc2;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 0 21px;
}
.shelf-account {
  color: var(--muted);
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding-block: 17px;
}
.shelf-groups h2 {
  margin: 26px 0 17px;
}
.auth-box {
  max-width: 510px;
  margin: auto;
  padding: 110px 24px 25px;
  min-height: 65vh;
}
.auth-box h1 {
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 22px;
}
.auth-box label {
  display: block;
  font-size: 14px;
  margin: 12px 0 4px;
}
.auth-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: #14192d;
  color: var(--paper);
  border-radius: 11px;
  padding: 11px;
}
.auth-box .bf-glass {
  margin: 16px 0;
}
.auth-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.auth-box .errorlist,
.error {
  color: #ffb0a9;
}
.helptext {
  font-size: 13px;
  color: var(--muted);
}
.messages {
  padding: 80px var(--side) 5px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero {
    height: 540px;
  }
  .hero h1 {
    font-size: 70px;
  }
  .collection-grid {
    gap: 12px;
  }
  .collection-card {
    min-height: 145px;
  }
}
@media (max-width: 640px) {
  :root {
    --side: 20px;
  }
  .mast-inner {
    height: 61px;
  }
  .brand {
    gap: 0;
  }
  .brand span {
    display: none;
  }
  .brand img {
    width: 32px;
    height: 35px;
  }
  .bf-ui .menu-toggle {
    display: inline-flex;
    min-height: 38px;
    padding-inline: 16px;
  }
  .menu-toggle[aria-expanded="false"] + .site-menu {
    display: none;
  }
  .site-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 206px;
    display: grid;
    gap: 0;
    padding: 6px;
    background: #161b2bee;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 43px #0007;
    backdrop-filter: blur(22px);
  }
  .site-menu .bf-glass {
    justify-content: flex-start;
    gap: 13px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-menu .bf-glass::before {
    content: none;
  }
  .site-menu .bf-glass:is(:hover, :focus-visible) {
    background: #ffffff0f;
  }
  .site-menu .icon {
    color: var(--gold);
  }
  .mast.quiet {
    transform: translateY(-105%);
  }
  .mast.quiet:has(:focus-visible) {
    transform: none;
  }
  .mast .header-search {
    height: 38px;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .hero {
    height: clamp(446px, 65svh, 590px);
    min-height: 0;
  }
  .hero-art img,
  .story-art img {
    object-position: 65% 43%;
  }
  :is(
      [data-slug="marya-morevna"],
      [data-slug="finist"],
      [data-slug="morskoy-tsar"]
    )
    img,
  .hero-image:is(
    [data-slug="marya-morevna"],
    [data-slug="finist"],
    [data-slug="morskoy-tsar"]
  ) {
    object-position: 73% 45%;
  }
  [data-slug="ivan-i-seryy-volk"] img,
  .hero-image[data-slug="ivan-i-seryy-volk"] {
    object-position: 84% 45%;
  }
  [data-slug="volsebnoe-koltso"] img,
  .hero-image[data-slug="volsebnoe-koltso"] {
    object-position: 47% 48%;
  }
  .hero-art::after {
    background:
      linear-gradient(
        0deg,
        #090d1fa6 0%,
        #090d1f91 24%,
        #08101955 48%,
        transparent 74%
      ),
      linear-gradient(180deg, #080b1847, transparent 36%);
  }
  .hero-content {
    padding: 70px 0 30px;
    justify-content: flex-end;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(44px, 12.5vw, 68px);
    max-width: 100%;
    text-wrap: balance;
  }
  .hero-desc {
    max-width: 420px;
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.45;
  }
  .bf-ui .read-action {
    padding-inline: 16px;
    min-height: 41px;
  }
  .home-lookup {
    margin-top: -10px;
  }
  .section {
    margin-top: 30px;
  }
  .section-head {
    margin-bottom: 13px;
    align-items: center;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .text-link {
    font-size: 13px;
  }
  .book-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .book-card {
    border-radius: 13px;
  }
  .book-info {
    padding: 12px 14px 14px;
  }
  .bf-ui .book-actions .bf-glass {
    min-height: 44px;
  }
  .bf-ui .book-actions .bf-glass--icon {
    width: 44px;
    height: 44px;
  }
  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .collection-card {
    aspect-ratio: 2.6;
    min-height: 117px;
  }
  .footer {
    gap: 15px;
    margin-top: 38px;
    padding-block: 22px 32px;
  }
  .page-top {
    padding-top: 84px;
  }
  .page-top > h1 {
    margin-bottom: 18px;
  }
  .page-top h1,
  .story-head h1 {
    font-size: 47px;
  }
  .catalog-filters {
    --filter-padding: 10px;
    gap: 6px;
    margin-bottom: 22px;
  }
  .story-intro {
    min-height: clamp(485px, 71svh, 690px);
  }
  .story-head {
    padding-top: clamp(150px, 24svh, 240px);
    padding-bottom: 32px;
  }
  .story-head.has-video { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .video-shelf { justify-self: start; width: min(73%, 295px); margin-inline-start: 5px; }
  .video-shelf:has(> a:nth-child(2)) { width: 100%; gap: 12px; }
  .video-shelf:has(> a:nth-child(2)) .video-play { width: 30px; height: 30px; top: 30%; }
  .video-shelf:has(> a:nth-child(2)) .video-tile-caption { font-size: 11px; inset-inline: 7px; bottom: 7px; }
  .story-art::after {
    background: linear-gradient(
      0deg,
      var(--night) 0%,
      #090d1ff2 12%,
      #090d1f99 57%,
      #090d1f18 87%
    );
  }
  .story-meta {
    gap: 10px;
    margin: 12px 0 8px;
  }
  .story-meta span {
    font-size: 13px;
  }
  .story-head .intro {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .reader-frame {
    padding: 20px var(--side) 38px;
    --reader-size: 20px;
    scroll-margin-top: 60px;
  }
  .reader-bar {
    margin-bottom: 23px;
  }
  .reading > p {
    line-height: 1.67;
  }
  .shelf-account {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.book-badges {
  position: absolute;
  inset: 10px 10px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  pointer-events: none;
}
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.book-tags li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  line-height: 1;
  color: #fffaf1;
  background: rgb(20 19 25 / 68%);
  border: 1px solid #fff3;
  backdrop-filter: blur(5px);
  border-radius: 999px;
}
.book-info .excerpt {
  color: #dfdeda;
  font-size: 14px;
  margin-top: 7px;
  line-height: 1.5;
}
.excerpt mark {
  color: #f3d7a4;
  background: transparent;
}
.music-player {
  --player-accent: #caa8ee;
  color: var(--paper);
  background-color: #15192bdc;
  bottom: max(14px, env(safe-area-inset-bottom));
  max-height: 75vh;
}
.music-player.opened {
  border-radius: 22px;
  height: auto;
  padding-bottom: 16px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.track-name {
  border: 0;
  background: none;
  text-align: left;
  min-width: 0;
  flex: 1;
  color: var(--paper);
  padding: 1px 4px;
}
.track-name strong,
.track-name small {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.track-name strong {
  font-size: 15px;
}
.track-name small {
  font-size: 12px;
  color: var(--muted);
}
#player-panel {
  padding: 8px 13px 0;
}
.seek-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.time-display {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.seek-label input {
  flex: 1;
  min-width: 0;
  accent-color: #beadd9;
}
.player-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.player-options label {
  font-size: 13px;
}
.player-options select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #232637;
  color: #fff;
}
.has-player .footer {
  padding-bottom: 100px;
}
.story-actions {
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  body.scroll-quiet .music-player:not(.opened) {
    transform: translateY(140%);
    pointer-events: none;
  }
  .music-player {
    width: calc(100% - 22px);
  }
}
