/* The public site's white canvas, DM Sans, black type and blue controls. */
.gallery-page,
.book-preview {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.gallery-heading {
  max-width: 760px;
  margin-bottom: 52px;
}
.gallery-eyebrow {
  color: var(--teal, #2424ee);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gallery-heading h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.gallery-heading > p:last-child {
  font-size: 18px;
  max-width: 55ch;
  color: var(--muted, #555d70);
}
.book-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  text-align: left;
}
.gallery-book {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.gallery-cover {
  padding: 24px;
  background: #f1f3f7;
  border-radius: 16px;
  margin-bottom: 24px;
}
.gallery-book:nth-child(2) .gallery-cover {
  background: #eaf0f3;
}
.gallery-book:nth-child(3) .gallery-cover {
  background: #f0edf3;
}
.gallery-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    6px 7px 0 -2px #fff,
    7px 8px 0 -2px #d9dce0,
    10px 14px 20px #14162420;
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.gallery-book:nth-child(2) .gallery-cover img {
  transform: rotate(2deg);
}
.gallery-book:nth-child(3) .gallery-cover img {
  transform: rotate(-2deg);
}
.gallery-book:hover .gallery-cover img {
  transform: translateY(-5px) rotate(0);
}
.gallery-book-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted, #555d70);
  margin-bottom: 12px;
}
.gallery-book h3 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  text-wrap: balance;
}
.gallery-book > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #555d70);
  margin: 0 0 14px;
}
.gallery-open {
  min-height: 44px;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  color: var(--teal, #2424ee);
  font-weight: 700;
  font-size: 15px;
}
.gallery-book:focus-visible {
  outline: 3px solid var(--teal, #2424ee);
  outline-offset: 8px;
  border-radius: 8px;
}
.gallery-disclosure {
  font-size: 13px;
  color: var(--muted, #555d70);
  margin-top: 48px;
}
.gallery-home {
  padding-block: 80px;
}
.gallery-home .gallery-heading {
  margin-inline: auto;
  text-align: center;
}
.gallery-home .gallery-heading h2 {
  margin-bottom: 20px;
}
.gallery-home .gallery-disclosure {
  text-align: center;
}
.gallery-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.preview-heading h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.preview-heading > a {
  flex-shrink: 0;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.preview-heading .gallery-eyebrow {
  margin: 0 0 10px;
}
.preview-desk {
  background: #f1f3f7;
  border-radius: 16px;
  padding: 24px;
}
.preview-pages {
  max-width: 660px;
  margin-inline: auto;
}
.preview-page {
  margin: 0 0 24px;
}
.preview-page[hidden],
.reader-controls[hidden] {
  display: none;
}
.preview-page a {
  display: block;
}
.preview-page img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 5px 22px #1217251c;
}
.preview-page figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #555d70);
  padding-top: 16px;
}
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.reader-controls button {
  width: 48px;
  height: 48px;
  background: #2424ee;
  color: #fff;
  border: 0;
  border-radius: 50%;
  font: 24px/1 inherit;
  cursor: pointer;
}
.reader-controls button:disabled {
  background: #e0e3eb;
  color: #70798c;
  cursor: default;
}
.reader-controls span {
  min-width: 100px;
  text-align: center;
  font-size: 14px;
}
.reader-controls button:focus-visible,
.preview-thumbnails a:focus-visible {
  outline: 3px solid #2424ee;
  outline-offset: 4px;
}
.preview-thumbnails {
  display: flex;
  justify-content: safe center;
  gap: 16px;
  margin: 22px 0 0;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}
.preview-thumbnails a {
  flex: 0 0 auto;
  scroll-snap-align: center;
  color: inherit;
  text-decoration: none;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
}
.preview-thumbnails a[aria-current] {
  border-color: #2424ee;
}
.preview-thumbnails img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 5px;
}
.reader-hint {
  text-align: center;
  color: var(--muted, #555d70);
  font-size: 13px;
  margin: 12px 0 40px;
}
.book-credits {
  border-block: 1px solid #dce3ef;
  padding-block: 12px;
  scroll-margin-top: 24px;
}
.book-credits summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
  font-weight: 700;
}
.book-credits summary span {
  color: var(--muted, #555d70);
  font-size: 13px;
  font-weight: 400;
}
.book-credits p {
  font-size: 14px;
  max-width: 72ch;
  margin: 16px 0;
}
.book-credits ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  padding: 0;
  list-style: none;
}
.book-credits li {
  font-size: 14px;
  min-width: 0;
}
.book-credits li span {
  display: block;
  color: var(--muted, #555d70);
  font-size: 13px;
  margin-top: 4px;
}
.other-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.other-books h2 {
  grid-column: 1 / -1;
  font-size: 24px;
  margin: 0;
}
.other-books a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid #dce3ef;
  text-decoration: none;
  font-weight: 700;
}
.other-books a > span:first-child {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted, #555d70);
  font-weight: 400;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-cover img {
    transition: none;
  }
}
@media (max-width: 700px) {
  .book-showcase > header {
    width: calc(100% - 40px);
    margin-inline: auto;
    padding: 20px 0;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
  }
  .book-showcase > header .wordmark img {
    width: 160px;
    height: auto;
  }
  .book-showcase > header nav {
    gap: 0;
  }
  .book-showcase > header nav > a:not(.button) {
    display: none;
  }
  .book-showcase > header .button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .gallery-page,
  .book-preview {
    width: calc(100% - 40px);
    padding-top: 28px;
  }
  .gallery-heading {
    margin-bottom: 32px;
  }
  .gallery-heading > p:last-child {
    font-size: 16px;
  }
  .book-gallery {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-cover {
    padding: 30px;
    margin-bottom: 20px;
  }
  .gallery-book h3 {
    font-size: 25px;
  }
  .gallery-disclosure {
    margin-top: 32px;
  }
  .gallery-home {
    padding-block: 56px;
  }
  .preview-heading {
    display: block;
  }
  .preview-heading > a {
    margin-top: 12px;
  }
  .preview-desk {
    padding: 12px 10px 18px;
    border-radius: 10px;
    margin-inline: -10px;
  }
  .preview-thumbnails {
    gap: 12px;
  }
  .preview-thumbnails img {
    width: 60px;
    height: 60px;
  }
  .book-credits ul,
  .other-books {
    grid-template-columns: 1fr;
  }
}

.book-preview[data-enhanced] .preview-page figcaption {
  display: none;
}
@media (max-width: 360px) {
  .book-showcase > header .wordmark img {
    width: 120px;
  }
  .book-showcase > header .button {
    padding-inline: 12px;
    font-size: 12px;
  }
}
