:root {
  --paper: #111417;
  --paper-deep: #171c21;
  --paper-light: #20262c;
  --ink: #eef2f5;
  --ink-soft: rgba(238, 242, 245, 0.57);
  --hairline: rgba(238, 242, 245, 0.18);
  --accent: #9eb7c8;
  --serif: "Inter Variable", Inter, Helvetica, Arial, sans-serif;
}

body,
.press-experience,
.loading-screen,
.bookshelf-error {
  background: var(--paper);
}

.press-experience {
  background: var(--paper);
}

.press-experience::after {
  opacity: 0.035;
}

.site-header {
  padding: 24px 34px;
  border-bottom: 1px solid var(--hairline);
}

.wordmark,
.edition-mark,
.input-hint,
.eyebrow,
.inspect-button,
.independent-note,
.back-button,
.book-details dt,
.official-link,
.focus-controls {
  font-family: "Shelf Sans", "Inter Variable", sans-serif;
}

.browse-caption {
  top: 82px;
  bottom: auto;
  left: 34px;
  display: flex;
  width: min(304px, 29vw);
  padding: 26px 24px 28px;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(238, 242, 245, 0.15);
  background: rgba(17, 20, 23, 0.92);
}

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

.eyebrow {
  order: 1;
  margin-bottom: 22px;
}

.browse-caption h1 {
  order: 2;
  max-width: 100%;
  font-family: "Shelf Sans", "Inter Variable", sans-serif;
  font-size: clamp(34px, 3.25vw, 50px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.has-long-title .browse-caption h1 {
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.04;
}

.browse-caption__author {
  order: 3;
  margin-top: 13px;
  font-family: "Shelf Sans", "Inter Variable", sans-serif;
  font-size: 14px;
  font-style: normal;
}

.inspect-button {
  order: 4;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  border-bottom: 0;
}

.shelf-index__ticks button span {
  background: #b8ccd9;
}

.independent-note {
  top: 14px;
  right: 174px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  background: rgba(17, 20, 23, 0.96);
  backdrop-filter: blur(12px);
}

.book-details {
  width: min(650px, 46vw);
}

.book-details::before {
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0), rgba(17, 20, 23, 0.9) 10%, var(--paper) 24%),
    var(--paper);
}

.book-details h2,
.book-details__author,
.book-details__description,
.book-details dd {
  font-family: "Shelf Sans", "Inter Variable", sans-serif;
}

.book-details h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

::selection {
  color: #111417;
  background: #c6d7e2;
}

@media (max-width: 900px) and (min-width: 761px) {
  .browse-caption {
    width: min(276px, 34vw);
  }
}

@media (max-width: 760px) {
  .site-header {
    border-bottom: 0;
  }

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

  .browse-caption h1 {
    font-size: clamp(36px, 10.5vw, 48px);
    text-wrap: balance;
  }

  .has-long-title .browse-caption h1 {
    font-size: clamp(30px, 8.3vw, 38px);
  }

  .book-details {
    width: 100%;
  }

  .book-details::before {
    background:
      linear-gradient(180deg, rgba(17, 20, 23, 0), rgba(17, 20, 23, 0.94) 54px, var(--paper) 55px),
      var(--paper);
  }
}
