:root {
  --paper: #0d0d0d;
  --paper-deep: #141414;
  --paper-light: #1b1b1b;
  --ink: #f3f3f3;
  --ink-soft: rgba(243, 243, 243, 0.58);
  --hairline: rgba(255, 255, 255, 0.16);
  --accent: #31cc8b;
  --serif: "Inter Variable", Inter, Helvetica, Arial, sans-serif;
  --sans: "Inter Variable", Inter, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Shelf Sans";
  src: url("/assets/fonts/sahil-geist.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter Variable";
  src: url("/assets/fonts/8f1436e55c7cf743.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

button {
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

canvas:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -5px;
}

::selection {
  color: var(--paper-light);
  background: var(--ink);
}

.press-experience {
  position: relative;
  width: 100%;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.045), transparent 43%),
    var(--paper);
}

.press-experience::after {
  position: absolute;
  z-index: 14;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 12% 31%, rgba(255, 255, 255, 0.11) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 73% 69%, rgba(255, 255, 255, 0.24) 0 0.6px, transparent 0.7px);
  background-size: 7px 9px, 11px 13px;
}

.shelf-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-browsing .shelf-canvas {
  touch-action: pan-y pinch-zoom;
}

.is-focused .shelf-canvas {
  touch-action: none;
}

.shelf-canvas.is-dragging {
  cursor: grabbing !important;
}

.is-ready .shelf-canvas {
  opacity: 1;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px clamp(22px, 3.4vw, 56px);
  pointer-events: none;
}

.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.185em;
  line-height: 1;
}

.wordmark__divider {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.edition-mark {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.17em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  pointer-events: auto;
}

.browse-caption {
  position: absolute;
  z-index: 16;
  bottom: clamp(178px, 23vh, 228px);
  left: clamp(24px, 5.4vw, 92px);
  width: min(430px, 36vw);
  isolation: isolate;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.browse-caption::before {
  position: absolute;
  z-index: -1;
  top: -42px;
  right: -72px;
  bottom: -38px;
  left: -92px;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(13, 13, 13, 0.98) 0%,
    rgba(13, 13, 13, 0.86) 58%,
    rgba(13, 13, 13, 0) 100%
  );
  pointer-events: none;
}

.is-focused .browse-caption {
  opacity: 0;
  transform: translate3d(-22px, 0, 0);
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 17px;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.19em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.eyebrow__line {
  width: 46px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
}

.browse-caption h1 {
  max-width: 420px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 4.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.has-long-title .browse-caption h1 {
  font-size: clamp(34px, 3.85vw, 60px);
  line-height: 0.98;
}

.browse-caption__author {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.2;
}

.inspect-button {
  display: inline-flex;
  gap: 21px;
  align-items: center;
  margin-top: 24px;
  min-height: 44px;
  padding: 9px 0 7px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: scale 150ms ease-out;
}

.inspect-button span:last-child {
  font-size: 14px;
  font-weight: 420;
  transition: transform 220ms ease;
}

.inspect-button:hover span:last-child {
  transform: translate3d(2px, -2px, 0);
}

.shelf-arrow {
  position: absolute;
  z-index: 17;
  top: 49%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    background-color 220ms ease,
    scale 150ms ease-out;
}

.shelf-arrow:hover:not(:disabled) {
  background: rgba(36, 36, 36, 0.94);
  transform: scale(1.06);
}

.shelf-arrow:disabled {
  cursor: default;
  opacity: 0.25;
}

.is-focused .shelf-arrow {
  opacity: 0;
  pointer-events: none;
}

.shelf-arrow--left {
  left: clamp(15px, 2.7vw, 44px);
}

.shelf-arrow--right {
  right: clamp(15px, 2.7vw, 44px);
}

.arrow-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 9px;
}

.arrow-icon span,
.arrow-icon::before,
.arrow-icon::after {
  position: absolute;
  display: block;
  content: "";
  background: currentColor;
}

.arrow-icon span {
  top: 4px;
  width: 17px;
  height: 1px;
}

.arrow-icon::before,
.arrow-icon::after {
  width: 6px;
  height: 1px;
}

.arrow-icon--right::before {
  top: 2px;
  right: -1px;
  transform: rotate(45deg);
}

.arrow-icon--right::after {
  right: -1px;
  bottom: 2px;
  transform: rotate(-45deg);
}

.arrow-icon--left::before {
  top: 2px;
  left: -1px;
  transform: rotate(-45deg);
}

.arrow-icon--left::after {
  bottom: 2px;
  left: -1px;
  transform: rotate(45deg);
}

.shelf-index {
  position: absolute;
  z-index: 19;
  right: clamp(24px, 5vw, 82px);
  bottom: 34px;
  left: clamp(24px, 5vw, 82px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 38px;
  align-items: end;
  transition:
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-focused .shelf-index {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.shelf-index__ticks {
  display: grid;
  align-items: end;
  height: 44px;
}

.shelf-index__ticks button {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.shelf-index__ticks button::before {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--hairline);
}

.shelf-index__ticks button span {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 1px;
  width: 1px;
  height: 7px;
  background: var(--ink);
  opacity: 0.48;
  transition:
    height 220ms ease,
    opacity 220ms ease,
    width 220ms ease;
}

.shelf-index__ticks button:hover span,
.shelf-index__ticks button.is-active span {
  width: 2px;
  height: 18px;
  opacity: 1;
}

.input-hint {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 1px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.input-hint i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.book-details {
  position: absolute;
  z-index: 22;
  top: 0;
  right: 0;
  width: min(620px, 41vw);
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(44px);
  transition:
    opacity 420ms ease 80ms,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.book-details::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0), rgba(13, 13, 13, 0.86) 10%, var(--paper) 24%),
    var(--paper);
}

.is-focused .book-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.book-details__inner {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  padding: 27px clamp(28px, 4vw, 68px) 30px clamp(52px, 6vw, 98px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.back-button {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.back-button .arrow-icon {
  transform: scale(0.78);
}

.book-details__position {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  margin-top: -9px;
  font-size: 9px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.book-details__position span:first-child::after {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 9px 3px 13px;
  content: "";
  background: currentColor;
  opacity: 0.28;
}

.book-details__copy {
  align-self: center;
  max-height: 100%;
  padding: 34px 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.book-details__copy .eyebrow {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.book-details h2 {
  max-width: 500px;
  margin: 0;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(42px, 4.35vw, 70px);
  font-weight: 440;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.book-details__author {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.book-details__description {
  display: -webkit-box;
  max-width: 520px;
  margin: 34px 0 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 430;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.book-details blockquote {
  position: relative;
  max-width: 475px;
  margin: 33px 0 0;
  padding: 0 0 0 23px;
  border-left: 1px solid currentColor;
}

.book-details blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.32;
}

.book-details blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.book-details dl {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  max-width: 500px;
  margin: 34px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
}

.book-details dl div {
  min-width: 0;
}

.book-details dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.25;
}

.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin-top: 27px;
  padding: 16px 0 12px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: scale 150ms ease-out;
}

.official-link span:last-child {
  font-size: 16px;
  font-weight: 420;
  transition: transform 220ms ease;
}

.official-link:hover span:last-child {
  transform: translate3d(3px, -3px, 0);
}

.focus-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 590;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.focus-controls span + span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.focus-controls button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: scale 150ms ease-out;
}

.back-button {
  transition: scale 150ms ease-out;
}

.inspect-button:active:not(:disabled),
.shelf-arrow:active:not(:disabled),
.back-button:active:not(:disabled),
.focus-controls button:active:not(:disabled),
.official-link:active {
  scale: 0.96;
}

.loading-screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--paper);
  transition:
    opacity 720ms ease 120ms,
    visibility 720ms ease 120ms;
}

.is-ready .loading-screen {
  visibility: hidden;
  opacity: 0;
}

.independent-note {
  position: absolute;
  z-index: 17;
  top: 56px;
  right: clamp(24px, 3.4vw, 56px);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 0 7px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  margin: 0;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: right;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 220ms ease,
    opacity 280ms ease;
}

.independent-note:hover {
  color: var(--ink);
}

.is-focused .independent-note {
  opacity: 0;
}

.loading-screen__mark {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 62px;
}

.loading-screen__mark span {
  display: block;
  width: 13px;
  background: var(--ink);
  animation: assemble 1.25s ease-in-out infinite alternate;
}

.loading-screen__mark span:nth-child(1) {
  height: 46px;
}

.loading-screen__mark span:nth-child(2) {
  height: 59px;
  animation-delay: -0.42s;
}

.loading-screen__mark span:nth-child(3) {
  height: 39px;
  animation-delay: -0.78s;
}

.loading-screen p {
  margin: 19px 0 0;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

@keyframes assemble {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bookshelf-error {
  display: grid;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: clamp(28px, 7vw, 96px);
  place-content: center start;
  background: var(--paper);
}

.bookshelf-error p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.bookshelf-error h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.bookshelf-error > span {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 16px;
}

.bookshelf-error a {
  justify-self: start;
  min-height: 44px;
  margin-top: 28px;
  padding: 12px 0 9px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .book-details {
    width: min(570px, 48vw);
  }

  .book-details__inner {
    padding-right: 34px;
    padding-left: 60px;
  }

  .focus-controls span:nth-child(2) {
    display: none;
  }

  .independent-note {
    display: none;
  }

}

@media (min-width: 761px) and (max-width: 1120px) {
  .browse-caption {
    left: 72px;
    width: min(300px, calc(31vw - 40px));
  }

  .browse-caption h1 {
    max-width: 100%;
    font-size: clamp(36px, 4.25vw, 48px);
  }

  .has-long-title .browse-caption h1 {
    font-size: clamp(32px, 3.75vw, 42px);
  }

  .browse-caption::before {
    right: -42px;
    left: -48px;
    background: linear-gradient(
      90deg,
      var(--paper) 0%,
      var(--paper) 88%,
      rgba(13, 13, 13, 0) 100%
    );
  }

  .shelf-arrow {
    top: 49%;
    bottom: auto;
    width: 50px;
    height: 50px;
  }

  .shelf-arrow--left {
    left: 18px;
  }

  .shelf-arrow--right {
    right: 18px;
  }

}

@media (max-width: 760px) {
  .site-header {
    padding: 20px max(18px, env(safe-area-inset-right)) 20px max(18px, env(safe-area-inset-left));
  }

  .wordmark {
    gap: 9px;
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .wordmark__divider {
    width: 14px;
  }

  .edition-mark {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .browse-caption {
    right: 0;
    bottom: 106px;
    left: 0;
    width: auto;
    padding: 52px max(18px, env(safe-area-inset-right)) 19px max(18px, env(safe-area-inset-left));
    background: linear-gradient(
      180deg,
      rgba(13, 13, 13, 0),
      rgba(13, 13, 13, 0.96) 45px,
      var(--paper) 64px
    );
  }

  .browse-caption::before {
    display: none;
  }

  .browse-caption h1 {
    max-width: 78vw;
    font-size: clamp(39px, 12.5vw, 58px);
  }

  .has-long-title .browse-caption h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .browse-caption__author {
    font-size: 14px;
  }

  .inspect-button {
    margin-top: 18px;
  }

  .shelf-arrow {
    top: auto;
    bottom: 60px;
    width: 48px;
    height: 48px;
  }

  .shelf-arrow--left {
    left: max(18px, env(safe-area-inset-left));
  }

  .shelf-arrow--right {
    right: max(18px, env(safe-area-inset-right));
  }

  .shelf-index {
    right: 72px;
    bottom: 68px;
    left: 72px;
    display: block;
  }

  .shelf-index__ticks {
    height: 44px;
  }

  .shelf-index__ticks button {
    height: 44px;
  }

  .shelf-index__ticks button span {
    bottom: 2px;
    height: 5px;
  }

  .shelf-index__ticks button:hover span,
  .shelf-index__ticks button.is-active span {
    height: 12px;
  }

  .input-hint {
    display: none;
  }

  .book-details {
    top: auto;
    bottom: 0;
    width: 100%;
    height: clamp(340px, 56dvh, 460px);
    opacity: 0;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    transform: translateY(100%);
  }

  .is-focused .shelf-canvas {
    touch-action: pan-y;
  }

  .book-details::before {
    top: -34px;
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0), rgba(13, 13, 13, 0.94) 33px, var(--paper) 34px),
      var(--paper);
  }

  .is-focused .book-details {
    opacity: 1;
    transform: translateY(0);
  }

  .book-details__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 9px max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .back-button {
    grid-column: 1;
    grid-row: 1;
  }

  .book-details__position {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .book-details__position span:first-child::after {
    width: 20px;
  }

  .book-details__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: auto;
    padding: 16px 0 10px;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .book-details__copy .eyebrow {
    margin-bottom: 11px;
  }

  .book-details h2 {
    max-width: 100%;
    font-size: clamp(28px, 8.8vw, 42px);
    line-height: 1;
    text-wrap: pretty;
  }

  .book-details__author {
    margin-top: 10px;
    font-size: 14px;
  }

  .book-details__description {
    display: block;
    margin-top: 14px;
    overflow: visible;
    font-size: 16px;
    line-height: 1.5;
    text-wrap: pretty;
    -webkit-line-clamp: unset;
  }

  .book-details blockquote {
    margin-top: 21px;
  }

  .book-details dl {
    margin-top: 16px;
  }

  .official-link {
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .focus-controls {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 10px;
  }

  .focus-controls span:nth-child(2) {
    display: none;
  }

  .is-focused .site-header {
    opacity: 0;
  }

}

@media (max-height: 700px) and (min-width: 761px) {
  .browse-caption {
    bottom: 94px;
    left: 92px;
    width: min(390px, calc(33vw - 32px));
  }

  .book-details__copy {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .book-details h2 {
    font-size: clamp(38px, 4vw, 58px);
  }

  .book-details__description {
    margin-top: 20px;
  }

  .book-details blockquote,
  .book-details dl {
    margin-top: 20px;
  }

  .shelf-arrow {
    top: 49%;
    bottom: auto;
  }

  .shelf-arrow--left {
    left: 18px;
  }

  .shelf-arrow--right {
    right: 18px;
  }

}

@media (pointer: coarse) {
  .shelf-canvas {
    cursor: default;
  }

  .shelf-index__ticks button {
    min-height: 44px;
  }
}

@media (hover: none), (pointer: coarse) {
  .inspect-button:hover span:last-child,
  .official-link:hover span:last-child,
  .shelf-arrow:hover:not(:disabled) {
    transform: none;
  }

  .shelf-arrow:hover:not(:disabled) {
    background: rgba(20, 20, 20, 0.72);
  }

  .independent-note:hover {
    color: var(--ink-soft);
  }

  .shelf-index__ticks button:hover:not(.is-active) span {
    width: 1px;
    height: 5px;
    opacity: 0.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen__mark span {
    animation: none;
  }

  .shelf-canvas,
  .browse-caption,
  .shelf-arrow,
  .shelf-index,
  .book-details,
  .loading-screen {
    transition-duration: 120ms;
    transition-delay: 0ms;
  }

  .inspect-button span:last-child,
  .official-link span:last-child,
  .shelf-index__ticks button span {
    transition: none;
  }

  .inspect-button:hover span:last-child,
  .official-link:hover span:last-child,
  .shelf-arrow:hover:not(:disabled) {
    transform: none;
  }
}

/* The whole collection label is an accessible native picker. */
.shelf-switch { position:relative; display:inline-flex; align-items:center; gap:10px; min-height:44px; max-width:310px; margin-block:-14px; pointer-events:auto; color:var(--ink); text-transform:uppercase; line-height:1.4; cursor:pointer; }
.shelf-switch svg { width:18px; height:18px; flex-shrink:0; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.shelf-switch .shelf-switch__chevron { width:14px; height:14px; color:var(--ink-soft); }
.shelf-switch:hover { color:#fff; }
.shelf-switch:focus-within { outline:2px solid var(--ink); outline-offset:4px; }
.shelf-switch select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.shelf-switch option { color:#eee; background:#171a1d; font-size:14px; }
.browse-caption__rating { order:3; margin:12px 0 0; color:var(--ink); font-size:12px; line-height:18px; }
.browse-caption__rating>span:not(:first-child) { color:var(--ink-soft); }
.book-review { margin:28px 0; }
.book-review h3 { font-size:14px; font-weight:500; line-height:20px; }
.book-review p { color:var(--ink); font-size:15px; line-height:1.65; white-space:pre-line; margin:12px 0; }
.book-review a { color:var(--ink-soft); font-size:12px; line-height:20px; text-underline-offset:4px; }
@media(max-width:900px) { .wordmark>span { display:none; } }
@media(max-width:760px) { .site-header .wordmark { max-width:100%; } .shelf-switch { max-width:100%; margin-block:-12px; font-size:10px; letter-spacing:.1em; } }
