/* Complete page surfaces: no crop masks on text or illustrations. */
.reader {
  position: relative;
  padding: 40px 0 80px;
}
.reader-stage {
  position: relative;
  width: 100%;
}
.reader-signup-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: var(--nav);
}
.reader-book {
  position: relative;
  display: grid;
  gap: 48px;
  width: min(1040px, calc(100% - 64px));
  margin: auto;
  perspective: 6000px;
}
.reader-cover {
  position: relative;
  width: 50%;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform-origin: left center;
}
.reader-cover > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px 8px 8px 3px;
  backface-visibility: hidden;
}
.reader-cover-inside {
  display: none;
}
.reader-spread {
  position: relative;
  scroll-margin-top: calc(var(--nav) + 20px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  background: #fffaf0;
  border-radius: 8px;
  box-shadow:
    0 5px 0 #d5cbb8,
    0 10px 0 #ebe1ce,
    0 24px 36px #162d521b;
}
.reader-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reader-page:first-child {
  background: #f1e7cc;
  border-radius: 8px 0 0 8px;
  box-shadow: inset -16px 0 24px -22px #162d5280;
}
.reader-page:last-child {
  border-radius: 0 8px 8px 0;
  box-shadow: inset 16px 0 24px -22px #162d5280;
}
.reader-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ink);
}
.reader-art-page {
  align-items: center;
  justify-content: space-between;
}
.reader-art-page > img {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.reader-folio {
  position: static;
  flex: none;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 22px;
  color: #4d514e;
  text-align: center;
}
.reader-quote-page h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.09;
  color: var(--blue);
  text-wrap: pretty;
}
.reader-body {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 24px;
}
.reader-quote-page .reader-folio {
  margin-top: auto;
  padding-top: 24px;
}
.reader-quote-page .reader-label {
  margin-top: auto;
}
.reader-kindness .reader-page:first-child {
  background: #dce9ed;
}
.reader-kindness .reader-quote-page {
  justify-content: center;
}
.reader-kindness .reader-folio {
  margin-top: 28px;
}
.reader-signup-art {
  background: #f3dfdf !important;
  align-items: center;
  text-align: center;
}
.reader-signup-art h3 {
  font-size: 40px;
}
.reader-signup-art > p {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 300px;
}
.reader-signup-art img {
  width: 78%;
  height: 230px;
  object-fit: contain;
  margin-top: 24px;
}
.reader-form-page {
  padding: 24px 30px 16px;
  justify-content: flex-start;
}
.reader-form-page > h3 {
  font-size: 31px;
}
.reader-form-intro {
  font-size: 14px;
  margin-top: 8px;
}
.reader-form.capture {
  margin-top: 16px;
}
.reader-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.reader-field {
  min-width: 0;
}
.reader-field-wide {
  grid-column: 1/-1;
}
.reader-form label {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.reader-form label span {
  font-weight: 400;
}
.reader-form .reader-field input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 16px;
  background: #fffef9;
}
.reader-form .consent {
  font-size: 12px;
  line-height: 1.5;
  padding: 0;
  margin: 13px 0;
}
.reader-form .button {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
}
.reader-form .capture-note {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}
.reader-form .capture-status {
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
  margin-top: 8px;
}
/* This stays still on screen until the last book page leaves the viewport. */
.scroll-cue-follow {
  position: fixed;
  bottom: 35px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.reader.is-enhanced {
  height: 240svh;
  padding: 0;
}
.reader.is-enhanced .reader-stage {
  position: sticky;
  top: var(--nav);
  height: calc(100svh - var(--nav));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 100px;
}
.reader.is-enhanced .reader-book {
  display: block;
  width: min(calc(100% - 48px), calc((100svh - var(--nav) - 116px) * 2));
  aspect-ratio: 2 / 1;
  margin: 0 auto;
}
.reader.is-enhanced .reader-spread {
  position: absolute;
  inset: 0;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}
.reader.is-enhanced .reader-spread.is-current {
  pointer-events: auto;
}
.reader.is-enhanced .reader-cover {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 50%;
  margin: 0;
  z-index: 5;
}
.reader.is-enhanced .reader-cover > img {
  position: absolute;
  inset: 0;
  box-shadow: 0 18px 30px #162d5220;
}
.reader.is-enhanced .reader-cover-inside {
  display: flex;
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  background: #f1e7cc;
  border-radius: 8px 0 0 8px;
}
@media (min-width: 1040px) {
  .reader.is-enhanced .reader-page {
    padding: clamp(30px, 3.2vw, 62px);
  }
  .reader.is-enhanced .reader-art-page > img {
    flex: 1 1 0;
    height: 0;
    max-height: none;
  }
  .reader.is-enhanced .reader-quote-page h3 {
    font-size: clamp(40px, 3.7vw, 68px);
  }
  .reader.is-enhanced .reader-body {
    font-size: clamp(15px, 1.2vw, 20px);
  }
  .reader.is-enhanced .reader-label,
  .reader.is-enhanced .reader-folio {
    font-size: clamp(12px, 0.9vw, 16px);
  }
  .reader.is-enhanced .reader-form-page {
    justify-content: center;
    padding: 24px clamp(24px, 2.4vw, 46px) 16px;
  }
  .reader.is-enhanced .reader-signup-art img {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    max-height: 48%;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .reader-page {
    padding: 24px;
  }
  .reader-quote-page h3 {
    font-size: 32px;
  }
  .reader-form-page {
    padding: 20px;
  }
  .reader-form-page > h3 {
    font-size: 27px;
  }
  .reader-form label {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .reader {
    padding-block: 24px 60px;
  }
  .reader-book {
    width: calc(100% - 32px);
    gap: 36px;
  }
  .reader-cover {
    width: 100%;
    max-width: 420px;
  }
  .reader-spread {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .reader-page {
    padding: 24px;
  }
  .reader-page:first-child {
    border-radius: 8px 8px 0 0;
    box-shadow: none;
  }
  .reader-page:last-child {
    border-radius: 0 0 8px 8px;
    box-shadow: none;
  }
  .reader-art-page {
    padding: 18px 24px 8px;
    height: 175px;
  }
  .reader-art-page > img {
    max-height: 135px;
  }
  .reader-art-page .reader-label,
  .reader-art-page .reader-folio {
    display: none;
  }
  .reader-quote-page {
    padding: 20px 24px 24px;
  }
  .reader-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .reader-quote-page h3 {
    font-size: clamp(27px, 7.4vw, 33px);
  }
  .reader-body {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 18px;
  }
  .reader-quote-page .reader-folio {
    margin-top: 18px;
    padding-top: 0;
  }
  .reader-kindness .reader-folio {
    margin-top: 18px;
  }
  .reader-signup-art {
    display: none;
  }
  .reader-form-page {
    padding: 24px 20px 18px;
    border-radius: 8px !important;
  }
  .reader-form-page > h3 {
    font-size: 30px;
  }
  .reader-fields {
    gap: 10px;
  }
  .reader-form label {
    font-size: 12px;
  }
  .reader-form .reader-field input {
    height: 44px;
  }
  .reader-form .consent {
    font-size: 13px;
    margin-block: 12px;
  }
  .reader-form .capture-note {
    font-size: 12px;
  }
  .reader-form .capture-status {
    min-height: 40px;
  }
  .reader.is-enhanced .reader-book {
    width: min(420px, calc(100% - 32px));
    aspect-ratio: auto;
    height: 535px;
    flex: none;
  }
  .reader.is-enhanced .reader-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    left: 0;
    top: 50%;
    margin-top: -50%;
    transform-origin: left center;
  }
  .reader.is-enhanced .reader-cover-inside {
    display: none;
  }
  .reader.is-enhanced .reader-cover-inside .reader-label,
  .reader.is-enhanced .reader-cover-inside .reader-folio {
    display: none;
  }
  .reader.is-enhanced .reader-cover-inside img {
    max-height: 80%;
  }
  .reader.is-enhanced .reader-spread {
    grid-template-rows: 175px 1fr;
  }
  .reader.is-enhanced .reader-signup {
    grid-template-rows: 1fr;
  }
}
@media (max-width: 350px) {
  .reader-form-page {
    padding: 20px 16px 12px;
  }
  .reader-form-page > h3 {
    font-size: 26px;
  }
  .reader-fields {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .reader-form .reader-field input {
    height: 40px;
  }
  .reader-form label {
    margin-bottom: 2px;
  }
  .reader.is-enhanced .reader-book {
    height: 590px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reader {
    scroll-margin-top: var(--nav);
  }
}
