/* The observatory: a room to discover, rather than a page to browse. */
:root {
  --paper: #081215;
  --ink: #d5dfdd;
  --wine: #bca574;
  --muted: #9baead;
  --rule: #647a733d;
  --serif: "Bodoni Moda", Georgia, serif;
  --body: "IM Fell English", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 1px solid #d6c59c;
  outline-offset: 7px;
}
::selection {
  background: #46665e;
  color: #fff;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: #0e252b;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--wine);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -1.2px;
}
.chamber {
  height: 100svh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --look-x: 0px;
  --look-y: 0px;
  background: #071419;
}
.environment {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.room-image {
  position: absolute;
  inset: -20px;
  background: url("/environment/library.jpg") center 48% / cover no-repeat;
  transform: translate(calc(var(--look-x) * -1), calc(var(--look-y) * -1))
    scale(1.025);
  transition: transform 1.4s ease-out;
  filter: saturate(0.94) brightness(1.02);
}
.moonlight {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 153deg at 51% 17%,
    transparent 0deg,
    #9ec9c714 10deg,
    transparent 25deg
  );
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: light-breathe 14s ease-in-out infinite alternate;
}
.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      #02090b8c 0%,
      #020a0c10 25%,
      transparent 42%,
      #02090b38 65%,
      #02090b9c 100%
    ),
    radial-gradient(ellipse at 50% 50%, transparent 35%, #02090b5c 100%);
}
.waterlight {
  position: absolute;
  inset: 65% -15% -30%;
  background: repeating-radial-gradient(
    ellipse at 50% 0%,
    transparent 0 22px,
    #81b8b508 24px,
    #90ccbf0c 25px,
    transparent 29px 52px
  );
  transform: perspective(250px) rotateX(38deg);
  animation: water 18s ease-in-out infinite alternate;
  opacity: 0.6;
}
.mist {
  position: absolute;
  width: 150%;
  height: 32%;
  bottom: 8%;
  left: -25%;
  background: radial-gradient(ellipse at 35% 55%, #8bb7b914, transparent 55%);
  filter: blur(30px);
  animation: drift 35s ease-in-out infinite alternate;
}
.mist-two {
  bottom: 44%;
  opacity: 0.55;
  animation-delay: -15s;
  animation-duration: 47s;
}
.motes {
  position: absolute;
  inset: 0;
}
.motes i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #cee8d5;
  box-shadow: 0 0 8px 2px #a3c4aa40;
  opacity: 0;
  animation: mote 17s linear infinite;
}
.motes i:nth-child(1) {
  left: 24%;
  top: 53%;
  animation-delay: -3s;
}
.motes i:nth-child(2) {
  left: 67%;
  top: 30%;
  animation-delay: -8s;
}
.motes i:nth-child(3) {
  left: 43%;
  top: 68%;
  animation-delay: -12s;
}
.motes i:nth-child(4) {
  left: 77%;
  top: 65%;
  animation-delay: -5s;
}
.motes i:nth-child(5) {
  left: 36%;
  top: 43%;
  animation-delay: -10s;
}
.motes i:nth-child(6) {
  left: 56%;
  top: 51%;
  animation-delay: -1s;
}
.motes i:nth-child(7) {
  left: 82%;
  top: 37%;
  animation-delay: -14s;
}
.motes i:nth-child(8) {
  left: 18%;
  top: 74%;
  animation-delay: -7s;
}
.arrival {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  display: flex;
  animation: arrival-away 2.2s forwards;
}
.arrival span {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #020707, #091115);
  box-shadow: inset -1px 0 #a0aa7940;
  animation: door-left 2s cubic-bezier(0.16, 0.7, 0.2, 1) 0.1s both;
}
.arrival span + span {
  background: linear-gradient(90deg, #091115, #020707);
  animation-name: door-right;
  box-shadow: inset 1px 0 #a0aa7940;
}
.room-heading {
  position: absolute;
  left: 0;
  right: 0;
  top: 7.5%;
  text-align: center;
  text-shadow: 0 2px 24px #000;
  animation: arrive 2.4s ease both;
  pointer-events: none;
}
.room-coordinate {
  font-size: 8px;
  letter-spacing: 4px;
  color: #c0c8b9b3;
}
.room-heading h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 72px);
  letter-spacing: -1.7px;
  margin: 13px 0 10px;
  color: #e3e8dc;
  line-height: 1.1;
}
.room-heading h1 i {
  font-weight: 400;
}
.room-heading p {
  font-family: var(--body);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.3px;
  color: #bbc9c4c9;
  margin: 0;
}
.room-aside {
  position: absolute;
  left: 3.3%;
  top: 37%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #a1b2a769;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 2px;
}
.room-aside i {
  height: 85px;
  width: 1px;
  background: linear-gradient(transparent, #8f9e7259, transparent);
}
.collection {
  position: absolute;
  inset: auto 8% 118px;
  height: min(43vh, 425px);
  perspective: 1400px;
}
.books {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(45px, 7vw, 120px);
  position: relative;
  z-index: 3;
  touch-action: pan-y;
}
.book-item {
  width: clamp(165px, 19vw, 245px);
  position: relative;
  flex: 0 1 245px;
  min-width: 0;
  animation: volume-arrive 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--book-order) * 65ms);
}
.book-link {
  display: block;
  text-decoration: none;
  position: relative;
}
.book-stage {
  perspective: 1300px;
  position: relative;
}
.book-stage:after {
  content: "";
  position: absolute;
  left: -9%;
  right: -14%;
  bottom: -13px;
  height: 20px;
  background: #000b;
  filter: blur(10px);
  border-radius: 50%;
  z-index: -2;
}
.rack {
  position: absolute;
  bottom: -25px;
  left: -3%;
  right: -3%;
  height: 47px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    #7c817045 0%,
    #364642 5%,
    #111c1b 14%,
    #09100f 46%,
    #4e574737 48%,
    #050b0b 55%
  );
  border-radius: 50% 50% 25% 25%/25% 25% 8% 8%;
  box-shadow:
    0 28px 28px #0009,
    inset 0 1px #a5b4953d;
  transform: rotateX(16deg);
}
.rack:before,
.rack:after {
  content: "";
  position: absolute;
  top: 30px;
  width: 14px;
  height: 110px;
  background: linear-gradient(90deg, #071012, #53615960, #091718);
  transform: rotate(9deg);
  left: 8%;
}
.rack:after {
  left: auto;
  right: 8%;
  transform: rotate(-9deg);
}
.rack span {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 11px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #adac733d, transparent);
}
.book-whisper {
  position: absolute;
  top: calc(100% + 46px);
  left: -20%;
  right: -20%;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.book-whisper > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a9bdb0;
  text-transform: uppercase;
}
.book-whisper p {
  font-family: var(--body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  max-width: 290px;
  margin: 8px auto;
  color: #d0d9cd;
}
.book-link:hover .book-whisper,
.book-link:focus-visible .book-whisper {
  opacity: 1;
  transform: translateY(0);
}
.shelf-navigation {
  position: absolute;
  left: -5.7%;
  right: -5.7%;
  bottom: 35%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.shelf-arrow {
  pointer-events: auto;
  background: transparent;
  border: 1px solid #a3b19945;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  color: #b5c7b7;
  box-shadow:
    inset 0 0 18px #7f9d7708,
    0 0 20px #0004;
  transition:
    background 0.3s,
    transform 0.3s;
}
.shelf-arrow:hover {
  background: #a6be9617;
  transform: scale(1.12);
}
.shelf-arrow:disabled {
  opacity: 0.2;
}
.shelf-position {
  position: fixed;
  bottom: 66px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: 4px;
  color: #b5c6b29c;
}
.room-footer {
  position: absolute;
  bottom: 26px;
  left: 3.3%;
  right: 3.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #b2c1b4;
  letter-spacing: 0.5px;
}
.room-footer a {
  text-decoration: none;
}
.inscription {
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  border: 0;
  border-bottom: 1px solid #87947645;
  background: transparent;
  padding: 5px 0;
}
.collection-count {
  font-size: 7px;
  letter-spacing: 2px;
  color: #96aa9b80;
}
.loading-state,
.empty-state {
  text-align: center;
  font-family: var(--body);
  font-size: 22px;
  align-self: center;
  color: #ccd9cc;
}
.loading-flower {
  font-size: 40px;
  display: block;
  animation: turn 7s linear infinite;
}
.empty-state button {
  background: #10242a;
  border: 1px solid var(--rule);
  padding: 10px 20px;
}
.about-dialog {
  background: #0a191df5;
  color: var(--ink);
  max-width: 540px;
  width: calc(100% - 40px);
  padding: 54px 46px 35px;
  border: 1px solid #8e997647;
  box-shadow: 0 40px 100px #0009;
  max-height: 85svh;
  overflow: auto;
}
.about-dialog::backdrop {
  background: #010909bd;
  backdrop-filter: blur(8px);
}
.about-close {
  position: absolute;
  right: 20px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 27px;
  color: #c2ccbd;
}
.about-dialog h2 {
  margin: 14px 0 24px;
  font-size: 45px;
}
.about-dialog p {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  color: #b8c8c4;
}
.genre-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  margin: 28px 0;
  color: var(--muted);
}
.genre-label select {
  width: 100%;
  padding: 12px;
  background: #0d252a;
  border: 1px solid var(--rule);
  font-size: 12px;
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 10px;
}
.about-credit {
  font-family: var(--sans) !important;
  font-size: 9px !important;
  color: #91a6a2 !important;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 25px;
}
.about-credit a {
  text-underline-offset: 3px;
}
.book-object {
  aspect-ratio: 2/3;
  position: relative;
  transform: rotate(-2deg) rotateY(-8deg);
  transform-origin: bottom center;
  box-shadow:
    12px 11px 17px #3e2b3b33,
    2px 2px 2px #211b2080;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s;
  isolation: isolate;
  background: #253c40;
}
.book-item:nth-child(3n + 2) .book-object {
  transform: rotate(2deg) rotateY(-7deg);
}
.book-item:nth-child(3n) .book-object {
  transform: rotate(-1deg) rotateY(-8deg);
}
.book-object:before {
  content: "";
  position: absolute;
  inset: 5px -6px 4px 0;
  background: repeating-linear-gradient(
    0deg,
    #efe6d7 0px,
    #efe6d7 2px,
    #c6bba7 3px
  );
  transform: translateX(3px);
  z-index: -1;
  box-shadow: 2px 1px 1px #25180e33;
}
.book-object:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0009,
    transparent 2%,
    #ffffff25 3%,
    #0003 4%,
    transparent 7%,
    transparent 96%,
    #0004
  );
  pointer-events: none;
  z-index: 4;
  border: 1px solid #ffffff20;
}
.book-link:hover .book-object,
.book-link:focus-visible .book-object {
  transform: rotate(0deg) rotateY(0deg) translateY(-12px);
  box-shadow: 16px 23px 20px #3e2b3b35;
}
.book-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(#071419db, transparent 62%, #071419e8);
  z-index: 1;
}
.cover-type {
  position: absolute;
  inset: 0;
  padding: 11% 11% 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  color: #fff2d4;
}
.cover-genre {
  font-family: var(--sans);
  font-size: clamp(7px, 0.7vw, 10px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.5;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -1px;
  margin: 7% 0 0;
  text-wrap: balance;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  overflow-wrap: normal;
}
.cover-edition {
  margin-top: auto;
  font-size: 7px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  border-top: 1px solid #fff3;
  width: 100%;
  padding-top: 9px;
}
.treatment-1 .cover-title {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(29px, 3.4vw, 49px);
  font-style: italic;
}
.treatment-2 .cover-type {
  align-items: start;
  text-align: left;
}
.treatment-2 .cover-title {
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(23px, 2.9vw, 43px);
  letter-spacing: -1.8px;
  line-height: 0.99;
  color: #ffd676;
}
.treatment-2 .cover-shade {
  background: linear-gradient(#132818e8, transparent 80%, #122518b8);
}
.treatment-3 .cover-title {
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: 0;
}
.treatment-3 .cover-type {
  border: 1px solid #e2c98685;
  inset: 4%;
  padding: 8% 6% 4%;
}
.treatment-4 .cover-title {
  font-style: italic;
  color: #ffd0c5;
}
.treatment-4 .cover-shade {
  background: linear-gradient(#301825ef, transparent 68%, #381827d9);
}
.treatment-5 .cover-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  font-size: clamp(24px, 2.7vw, 40px);
}
.reader {
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: 60px;
}
.reader[hidden] {
  display: none;
}
.reading-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 80;
  background: #e2d8c5;
}
.reading-progress span {
  display: block;
  height: 100%;
  background: var(--wine);
  width: 0;
}
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 5%;
  border-bottom: 1px solid var(--rule);
}
.reader-nav button {
  background: none;
  border: none;
  padding: 5px 0;
  font-size: 11px;
}
.reader-brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.7px;
  text-decoration: none;
}
.reader-nav > span {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 125px;
  text-align: right;
}
.reader-heading {
  max-width: 1150px;
  margin: 0 auto;
  padding: 65px 30px 55px;
  display: grid;
  grid-template-columns: 1.25fr 0.65fr;
  gap: 9%;
  align-items: center;
}
.reader-heading h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 6vw, 85px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 21px 0;
}
.reader-subtitle {
  font-family: var(--body);
  font-style: italic;
  font-size: 23px;
  line-height: 1.3;
  color: var(--muted);
}
.reader-heading .book-object {
  max-width: 280px;
  margin: auto;
  transform: rotate(3deg);
  width: 100%;
}
.reader-heading .cover-title {
  font-size: 36px;
}
.reader-byline {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 25px;
  line-height: 1.8;
}
.reader-divider {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-size: 22px;
  margin: 0 auto 45px;
  max-width: 680px;
}
.reader-divider:before,
.reader-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rule);
}
.prose {
  max-width: 680px;
  margin: auto;
  padding: 0 24px;
  font-family: var(--body);
  font-size: 23px;
  line-height: 1.72;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose p:first-child:first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 89px;
  line-height: 0.76;
  padding: 12px 10px 0 0;
  color: var(--wine);
}
.end-mark {
  font-size: 25px;
  text-align: center;
  color: var(--wine);
  letter-spacing: 12px;
  margin: 45px 0 55px;
}
.afterword {
  max-width: 780px;
  margin: 0 auto;
  background: #e4dbca;
  padding: 38px 48px;
  border: 1px solid #cbbfa9;
  position: relative;
}
.afterword:before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #cbbfa9;
  pointer-events: none;
}
.afterword h2 {
  font-size: 41px;
  letter-spacing: -1.5px;
  margin: 12px 0 22px;
}
.afterword h3 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 26px 0 12px;
}
.afterword p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 16px;
}
.afterword a {
  font-size: 12px;
  line-height: 1.7;
  text-underline-offset: 4px;
  display: inline-block;
}
.afterword .source-date {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.fiction-note {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-family: var(--body);
  font-style: italic;
  font-size: 17px !important;
}
.reader-close-bottom {
  display: block;
  margin: 45px auto 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px;
  font-family: var(--body);
  font-size: 18px;
}
.reader-error {
  max-width: 650px;
  margin: 80px auto;
  text-align: center;
  padding: 25px;
}
.reader-open > .masthead,
.reader-open > #main,
.reader-open > .footer {
  display: none;
}
.story-sharing {
  max-width: 680px;
  margin: 65px auto 0;
  padding: 0 24px;
  text-align: center;
}
.share-ornament {
  display: block;
  color: var(--wine);
  font-size: 25px;
  margin-bottom: 23px;
}
.story-sharing h2 {
  font-size: 43px;
  letter-spacing: -1.7px;
}
.story-sharing > p:not(.share-status) {
  max-width: 475px;
  margin: 18px auto 23px;
  font-family: var(--body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.share-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.share-actions button,
.share-actions a {
  font-size: 11px;
  line-height: 1.5;
}
.share-actions button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
}
.share-actions button:first-child {
  background: var(--wine);
  color: var(--paper);
  border: 1px solid var(--wine);
  padding: 10px 17px;
}
.share-actions button:first-child:disabled {
  opacity: 0.65;
}
.share-actions a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
}
.share-actions a:hover,
.share-actions button:not(:first-child):hover {
  border-color: var(--wine);
  color: var(--wine);
}
.share-status {
  font-size: 11px;
  line-height: 1.6;
  min-height: 18px;
  margin: 15px 0 0;
  color: var(--wine);
}
#manual-share {
  margin: 12px auto;
  max-width: 440px;
  text-align: left;
}
#manual-share[hidden] {
  display: none;
}
#manual-share label {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 7px;
}
#share-url {
  font-family: var(--sans);
  font-size: 12px;
  width: 100%;
  padding: 11px;
  background: #f5efe3;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
}
#share-url:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.reader-heading .book-object {
  animation: book-open 0.75s cubic-bezier(0.16, 0.8, 0.22, 1) both;
  transform-origin: left center;
}
.reader-heading .book-object:before {
  border-right: 3px solid #e3d6bd;
}
.reader-heading > .book-object > .cover-type:after {
  content: "";
  position: absolute;
  right: 10%;
  top: -1px;
  width: 15px;
  height: 31px;
  background: #8b3039;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 1px 2px 2px #0004;
  opacity: 0.9;
}
.reader .prose {
  animation: page-settle 0.45s ease-out both;
}
@keyframes book-open {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-28deg) rotate(7deg) translateY(16px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0) rotate(3deg) translateY(0);
  }
}
@keyframes page-settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Moonlit bindings and the quiet reading chamber. */
.book-object {
  box-shadow:
    15px 15px 22px #0009,
    2px 2px 2px #000a;
  transform: rotate(-3deg) rotateY(-8deg);
  filter: brightness(0.89);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.6s,
    box-shadow 0.6s;
}
.book-item:nth-child(2) .book-object {
  transform: rotate(2deg) rotateY(-4deg) translateY(-4px);
}
.book-item:nth-child(3) .book-object {
  transform: rotate(4deg) rotateY(-9deg);
}
.book-link:hover .book-object,
.book-link:focus-visible .book-object {
  transform: rotate(0) rotateY(0) translateY(-24px);
  filter: brightness(1.07);
  box-shadow:
    18px 38px 30px #0008,
    0 0 42px #b5c9a510;
}
.cover-title {
  font-size: clamp(27px, 2.5vw, 38px);
}
.treatment-1 .cover-title {
  font-size: clamp(31px, 3vw, 43px);
}
.treatment-2 .cover-title {
  font-size: clamp(24px, 2.4vw, 35px);
}
.treatment-5 .cover-title {
  font-size: clamp(24px, 2.3vw, 33px);
}
.cover-genre {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.book-object:before {
  background: repeating-linear-gradient(
    0deg,
    #a9ada0 0px,
    #a9ada0 2px,
    #646e66 3px
  );
}
.reader {
  background: radial-gradient(
    ellipse at 50% 0%,
    #163037 0%,
    #0b1a20 30%,
    #081419 65%
  );
  min-height: 100vh;
  padding-bottom: 70px;
}
.reader-nav {
  border-color: #81938b25;
  color: #b1c0ba;
}
.reader-nav button {
  min-height: 40px;
}
.reader-heading {
  padding-top: 75px;
  padding-bottom: 75px;
}
.reader-heading h1 {
  color: #dce5de;
}
.reader-heading .book-object {
  filter: none;
  box-shadow: 20px 20px 45px #0009;
}
.reader-subtitle {
  color: #a5bbb6;
}
.reading-progress {
  background: #102429;
}
.reading-progress span {
  background: #a5ac81;
}
.prose {
  color: #d0dcd7;
  font-size: 23px;
  line-height: 1.8;
}
.prose p:first-child:first-letter {
  color: #b8b78b;
}
.afterword {
  background: #0d252bc2;
  border-color: #6d897a45;
  color: #c0d0c9;
  box-shadow: 0 15px 60px #0002;
}
.afterword:before {
  border-color: #6d897a25;
}
.afterword h2 {
  color: #dce3d5;
}
.afterword h3 {
  color: #adc0b6;
}
.reader-close-bottom {
  color: #b7c6b9;
}
.reader-open > #main,
.reader-open > .skip-link {
  display: none;
}
.story-sharing h2 {
  color: #dce3d5;
}
.share-actions button:first-child {
  background: #829376;
  color: #071215;
  border-color: #829376;
}
.share-actions a:hover,
.share-actions button:not(:first-child):hover {
  color: #e2e9ce;
}
.share-status {
  color: #c3d4b8;
}
#share-url {
  background: #10272d;
  color: #dce5de;
  border-color: #587568;
}
.reader-error {
  text-align: center;
  padding: 50px 25px;
}
.reader-error p {
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.6;
}
.reader-heading .book-object {
  animation: book-open 0.8s cubic-bezier(0.16, 0.8, 0.22, 1) both;
}
.reader .prose {
  animation: arrive 0.7s both;
}
@keyframes door-left {
  to {
    transform: translateX(-103%);
  }
}
@keyframes door-right {
  to {
    transform: translateX(103%);
  }
}
@keyframes arrival-away {
  to {
    visibility: hidden;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes volume-arrive {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes drift {
  from {
    transform: translateX(-7%);
  }
  to {
    transform: translateX(12%);
  }
}
@keyframes light-breathe {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.8;
  }
}
@keyframes water {
  from {
    transform: perspective(250px) rotateX(38deg) scale(0.95);
  }
  to {
    transform: perspective(250px) rotateX(38deg) scale(1.07);
  }
}
@keyframes mote {
  0% {
    opacity: 0;
    transform: translate(0, 15px);
  }
  25%,
  65% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(35px, -85px);
  }
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes book-open {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-28deg) rotate(7deg) translateY(16px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0) rotate(3deg) translateY(0);
  }
}
@media (min-width: 1600px) {
  .collection {
    left: 16%;
    right: 16%;
  }
  .book-item {
    flex-basis: 270px;
    width: 270px;
  }
  .cover-title {
    font-size: 40px;
  }
  .room-heading {
    top: 9%;
  }
}
@media (max-width: 900px) and (min-width: 641px) {
  .collection {
    left: 10%;
    right: 10%;
    bottom: 130px;
  }
  .books {
    gap: 45px;
  }
  .book-item {
    width: 180px;
  }
  .cover-title {
    font-size: 26px;
  }
  .treatment-1 .cover-title {
    font-size: 30px;
  }
  .treatment-2 .cover-title,
  .treatment-5 .cover-title {
    font-size: 24px;
  }
  .cover-genre {
    font-size: 6px;
  }
  .shelf-navigation {
    left: -9%;
    right: -9%;
  }
  .book-whisper p {
    font-size: 13px;
  }
  .reader-heading {
    gap: 6%;
  }
  .reader-heading .book-object {
    max-width: 230px;
  }
  .reader-heading h1 {
    font-size: 57px;
  }
}
@media (max-width: 640px) {
  .chamber {
    min-height: 620px;
  }
  .room-image {
    background-position: 50% 45%;
  }
  .room-heading {
    top: 8%;
  }
  .room-coordinate {
    font-size: 6px;
    letter-spacing: 3px;
  }
  .room-heading h1 {
    font-size: 39px;
    letter-spacing: -1.2px;
    margin-top: 16px;
  }
  .room-heading p {
    font-size: 14px;
  }
  .room-aside {
    display: none;
  }
  .collection {
    left: 12%;
    right: 12%;
    bottom: 135px;
    height: min(44svh, 370px);
  }
  .books {
    gap: 0;
  }
  .book-item {
    flex: 0 1 auto;
    width: min(57vw, 225px);
  }
  .rack {
    left: -17%;
    right: -17%;
    bottom: -24px;
  }
  .rack:before,
  .rack:after {
    height: 96px;
  }
  .shelf-navigation {
    left: -9%;
    right: -9%;
    bottom: 36%;
  }
  .shelf-arrow {
    width: 36px;
    height: 44px;
    border: none;
    font-size: 24px;
  }
  .shelf-position {
    bottom: 83px;
  }
  .book-whisper {
    top: calc(100% + 39px);
    left: -12%;
    right: -12%;
    opacity: 1;
    transform: none;
  }
  .book-whisper p {
    display: none;
  }
  .book-whisper > span {
    font-size: 7px;
  }
  .cover-title {
    font-size: 33px;
  }
  .treatment-1 .cover-title {
    font-size: 38px;
  }
  .treatment-2 .cover-title {
    font-size: 30px;
  }
  .treatment-5 .cover-title {
    font-size: 29px;
  }
  .cover-genre {
    font-size: 7px;
  }
  .cover-edition {
    font-size: 6px;
  }
  .room-footer {
    left: 6%;
    right: 6%;
    bottom: 23px;
    font-size: 8px;
  }
  .inscription {
    font-size: 14px;
  }
  .collection-count {
    display: none;
  }
  .about-dialog {
    padding: 46px 26px 26px;
  }
  .about-dialog h2 {
    font-size: 39px;
  }
  .about-dialog p {
    font-size: 18px;
  }
  .reader-nav {
    padding: 15px 6%;
    gap: 12px;
  }
  .reader-nav button {
    font-size: 10px;
  }
  .reader-brand {
    font-size: 20px;
  }
  .reader-nav > span {
    display: none;
  }
  .reader-heading {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 40px 7% 36px;
    gap: 35px;
  }
  .reader-heading .book-object {
    width: 170px;
  }
  .reader-heading .cover-title {
    font-size: 25px;
  }
  .reader-heading .cover-genre {
    font-size: 5px;
  }
  .reader-heading .cover-edition {
    font-size: 5px;
  }
  .reader-heading h1 {
    font-size: 48px;
  }
  .reader-subtitle {
    font-size: 21px;
  }
  .reader-byline {
    font-size: 8px;
  }
  .reader-divider {
    margin: 0 7% 30px;
  }
  .prose {
    font-size: 21px;
    padding: 0 7%;
    line-height: 1.8;
  }
  .prose p:first-child:first-letter {
    font-size: 77px;
  }
  .afterword {
    margin: 0 5%;
    padding: 30px 25px;
  }
  .afterword h2 {
    font-size: 35px;
  }
  .afterword p {
    font-size: 12px;
  }
  .reader-close-bottom {
    font-size: 16px;
  }
  .end-mark {
    margin: 30px 0 35px;
  }
  .story-sharing {
    margin-top: 40px;
    padding: 0 7%;
  }
  .story-sharing h2 {
    font-size: 36px;
  }
  .story-sharing > p:not(.share-status) {
    font-size: 18px;
  }
  .share-actions {
    gap: 12px 18px;
  }
  .share-actions button,
  .share-actions a {
    font-size: 10px;
  }
}
@media (max-height: 740px) and (min-width: 641px) {
  .room-heading {
    top: 5%;
  }
  .room-heading h1 {
    font-size: 48px;
  }
  .collection {
    bottom: 120px;
    height: 300px;
  }
  .book-item {
    flex: 0 1 190px;
  }
  .cover-title {
    font-size: 29px;
  }
  .treatment-1 .cover-title {
    font-size: 34px;
  }
  .treatment-2 .cover-title,
  .treatment-5 .cover-title {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .arrival {
    display: none;
  }
  .room-image {
    transform: none;
  }
  .book-link:hover .book-object,
  .book-link:focus-visible .book-object {
    transform: none;
  }
}

/* Bind the volumes to the photographed tabletop at roughly three quarters of the room. */
.rack {
  display: none;
}
.collection {
  bottom: 26%;
  height: 38vh;
}
.book-item {
  width: min(18vw, 27vh, 245px);
  flex: 0 1 auto;
}
.shelf-navigation {
  inset: 0;
  display: block;
}
.shelf-arrow {
  position: absolute;
  top: 48%;
}
.shelf-arrow.previous {
  left: -5.7%;
}
.shelf-arrow.next {
  right: -5.7%;
}
.shelf-position {
  position: absolute;
  bottom: -110px;
  left: 0;
  right: 0;
}
.book-whisper {
  top: calc(100% + 28px);
}
@media (min-width: 1600px) {
  .book-item {
    width: min(18vw, 27vh, 270px);
  }
}
@media (max-width: 900px) and (min-width: 641px) {
  .collection {
    bottom: 26%;
  }
  .shelf-arrow.previous {
    left: -10%;
  }
  .shelf-arrow.next {
    right: -10%;
  }
}
@media (max-width: 640px) {
  .collection {
    bottom: 26%;
    height: 40svh;
  }
  .book-item {
    width: min(57vw, 225px, 30svh);
  }
  .shelf-arrow.previous {
    left: -9%;
  }
  .shelf-arrow.next {
    right: -9%;
  }
  .shelf-position {
    bottom: -95px;
  }
  .book-whisper {
    top: calc(100% + 30px);
  }
}
@media (max-height: 740px) and (min-width: 641px) {
  .collection {
    bottom: 26%;
    height: 38vh;
  }
  .book-item {
    flex: 0 1 auto;
    width: min(18vw, 27vh, 245px);
  }
}

.chance-book {
  position: absolute;
  left: 50%;
  bottom: 45px;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: #b8ad86;
  font-family: Georgia, serif;
  font-size: 27px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  text-shadow: 0 0 15px #b8ad8655;
}
.chance-book:hover {
  color: #e2dab7;
}

/* Book typography is fitted to the physical cover, never the viewport. */
.cover-type {
  overflow: hidden;
}
.cover-title {
  display: block;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  overflow-wrap: normal;
}
.cover-genre,
.cover-edition {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.book-item:hover,
.book-item:focus-within {
  z-index: 20;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-link:hover .book-object,
  .book-link:focus-visible .book-object {
    transform: translateY(-38px) rotate(0) rotateY(0) scale(1.22);
    filter: brightness(1.12);
    box-shadow:
      0 45px 50px #000b,
      0 0 50px #dbe8e018;
  }
}
.reader-heading {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 42px;
  padding: 46px 7% 55px;
  text-align: center;
}
.reader-heading > div:first-child {
  max-width: 850px;
}
.reader-heading .book-object {
  width: min(250px, 58vw);
  max-width: none;
  margin: 0 auto;
  transform: none;
  animation: none;
}
.reader-heading h1 {
  font-size: clamp(42px, 5vw, 70px);
}
.travelling-book {
  position: fixed !important;
  z-index: 200;
  margin: 0 !important;
  transform: none;
  transform-origin: top left;
  transition: none !important;
  animation: none !important;
  filter: brightness(1.05);
  pointer-events: none;
}
.book-arriving {
  visibility: hidden;
}
@media (max-width: 640px) {
  .reader-heading {
    padding-top: 30px;
    gap: 30px;
  }
  .reader-heading .book-object {
    width: 210px;
    max-width: 58vw;
  }
}
