@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("/assets/fonts/PatrickHand-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  /* What the floating pill (.site-pill) covers at the top of the window. */
  --nav-room: 88px;
  --paper: #fffaf1;
  --surface: #fffdf9;
  --ink: #282820;
  --muted: #68665d;
  --green: #315b4b;
  --sage: #dcead8;
  --peach: #f5d2a9;
  --sky: #d9eaf4;
  --lilac: #e5ddf0;
  --line: #ddd8ce;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 Inter,
    system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button:not(:disabled),
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1160px, 100% - 72px);
  margin-inline: auto;
}
.handwritten {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  height: auto;
}
.site-header nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
}
.site-header nav a,
.footer-top nav a {
  text-decoration: none;
}
.site-header nav a:hover,
.footer-top nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* The header of the pages with the site's links: a small rounded pill,
   centred, that sticks under the top of the window. The launch strip above
   it scrolls away. nav.js gives it its shadow once it floats over the page
   and marks the link of the section on screen; without scripts it still
   sticks and its links still work. */
.site-pill {
  position: sticky;
  top: 12px;
  z-index: 40;
  width: fit-content;
  max-width: calc(100% - 36px);
  height: auto;
  margin: 16px auto 4px;
  justify-content: normal;
  gap: 22px;
  padding: 6px;
  padding-inline-start: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9d9;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s;
}
.site-pill.is-stuck {
  box-shadow: 0 8px 24px #3735291f;
}
.site-pill .brand img {
  width: 118px;
}
.site-pill > nav {
  gap: 2px;
}
.site-pill > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.site-pill > nav a[aria-current] {
  background: var(--sage);
}
.site-pill .button {
  white-space: nowrap;
}
/* An anchor's section starts below the pill. */
html:has(.site-pill) {
  scroll-padding-top: var(--nav-room);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--green);
  transition:
    transform 0.18s,
    background 0.18s;
}
.button:hover {
  background: #254b3d;
  transform: translateY(-2px);
}
.button-small {
  font-size: 12px;
  padding: 10px 17px;
  min-height: 44px;
}
.button-outline {
  background: transparent;
  color: var(--green);
}
.button-outline:hover {
  background: var(--sage);
  color: var(--green);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  background: var(--green);
  color: white;
  padding: 10px 15px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.hero {
  text-align: center;
  padding-top: 42px;
}
.hero .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.tiny-sun {
  font-size: 24px;
  color: #ac633b;
}
.hero h1 {
  font:
    600 clamp(46px, 5.2vw, 68px)/1.06 Manrope,
    sans-serif;
  letter-spacing: -3px;
  margin: 24px 0;
}
.headline-script {
  font-size: 1.17em;
  letter-spacing: -1px;
  position: relative;
  isolation: isolate;
}
.headline-script:after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 3%;
  width: 94%;
  height: 7px;
  background: var(--peach);
  border-radius: 50%;
  z-index: -1;
  transform: rotate(-2deg);
}
.hero-copy {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.small-note {
  font-size: 19px;
  color: var(--muted);
  transform: rotate(-3deg);
}
.book-theatre {
  position: relative;
  padding-top: 50px;
  scroll-margin-top: 20px;
}
.book {
  width: min(780px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  position: relative;
  filter: drop-shadow(0 20px 26px #42352220);
  border-radius: 3px;
}
.book:not(.is-enhanced) > .book-page {
  display: none;
}
.book:not(.is-enhanced) > .book-page:nth-child(2),
.book:not(.is-enhanced) > .book-page:nth-child(3) {
  display: flex;
}
.book:not(.is-enhanced) > .book-page {
  min-height: 520px;
}
.book-page {
  background: var(--surface);
  border: 1px solid #e7dfd0;
  padding: 29px 31px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  color: #413f36;
}
.book.is-rtl .book-page {
  padding: 0;
  text-align: start;
}
.book.is-rtl .book-page-content {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 29px 31px 22px;
}
.book.is-rtl .book-page-content > * {
  flex-shrink: 0;
}
.book.is-rtl .book-page-content > :is(.tall-photo, .landscape-photo) {
  flex-shrink: 1;
  min-height: 0;
}
.book.is-rtl .voice-page:has(.transcript[open]) {
  overflow: hidden;
}
.book.is-rtl .voice-page:has(.transcript[open]) .book-page-content {
  overflow-y: auto;
}
.book.is-rtl .book-page.cover {
  text-align: center;
}
.book.is-rtl:not(.is-linear) .stf__block {
  transform: scaleX(-1);
}
.book.is-rtl:not(.is-linear) .book-page-content {
  transform: scaleX(-1);
}
.book-page h2 {
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1.12;
  color: var(--ink);
  margin: 21px 0 20px;
  letter-spacing: -0.5px;
}
.book-page p {
  margin: 0 0 16px;
}
.book-page > * {
  flex-shrink: 0;
}
.book-page[aria-hidden="false"] {
  display: flex !important;
}
.page-top,
.page-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 1.6px;
}
.page-top {
  color: #6d695e;
}
.page-bottom {
  margin-top: auto;
  padding-top: 15px;
  font-size: 8px;
  letter-spacing: 0.2px;
  color: #6d695e;
}
.voice-page:has(.transcript[open]) {
  overflow-y: auto;
}
.book-photo {
  overflow: hidden;
  border-radius: 2px;
}
.book-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tall-photo {
  height: 340px;
  flex-shrink: 1;
  min-height: 0;
  margin-top: 20px;
}
.photo-caption {
  text-align: center;
  font-size: 21px;
  padding-top: 12px;
}
.memory-byline {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.landscape-photo {
  height: 193px;
  flex-shrink: 1;
  min-height: 0;
  margin: 17px 0 20px;
}
.photo-page .tall-photo {
  height: 360px;
}
.story-page h2 {
  font-size: 43px;
  margin: 28px 0 20px;
}
.story-page p {
  font-size: 13px;
  line-height: 1.9;
}
.story-page .memory-quote {
  font-size: 23px;
  line-height: 1.45;
  color: #4e614e;
  margin: 13px 0;
}
.story-page h2 {
  font-size: 37px;
  margin: 20px 0 14px;
}
.story-page p {
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.story-page .page-sticker {
  margin-top: 14px;
}
.story-page .memory-quote {
  font-size: 21px;
  line-height: 1.3;
  margin: 8px 0;
}
.story-page .little-line {
  margin-bottom: 15px;
}
.story-page .page-doodle {
  font-size: 28px;
}
.page-sticker {
  align-self: flex-start;
  display: inline-flex;
  padding: 6px 11px;
  margin-top: 23px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  transform: rotate(-3deg);
  min-height: 32px;
  color: #474038;
}
.sticker-peach {
  background: var(--peach);
}
.sticker-sage {
  background: var(--sage);
}
.sticker-lilac {
  background: var(--lilac);
}
.little-line {
  width: 40px;
  height: 2px;
  background: #ae765a;
  margin: 0 0 24px;
}
.page-doodle {
  font-size: 45px;
  align-self: flex-end;
  color: #b27844;
  transform: rotate(15deg);
  line-height: 1;
}
.cover {
  background: var(--sage);
  text-align: center;
  align-items: center;
  justify-content: center;
  border: 5px solid #bfd1b9;
}
.cover h2 {
  font-size: 58px;
}
.cover img {
  width: 80%;
  margin: 20px 0;
  mix-blend-mode: multiply;
}
.cover .eyebrow {
  font-size: 9px;
}
.cover h2 {
  font-size: 48px;
  margin: 16px 0;
}
.cover img {
  max-height: 170px;
  object-fit: contain;
  margin: 14px 0;
}
.back-cover img {
  width: 95px;
  height: 165px;
  object-fit: contain;
}
.back-cover h2 {
  font-size: 40px;
}
.margin-note {
  position: absolute;
  left: 2px;
  top: 120px;
  font-size: 24px;
  line-height: 1.1;
  text-align: left;
  transform: rotate(-8deg);
  color: #686552;
}
.drawn-arrow {
  display: block;
  font-size: 57px;
  line-height: 0.7;
  text-align: right;
}
.balloon-garden {
  position: absolute;
  right: -8px;
  top: 48px;
  width: 155px;
  height: 245px;
}
.balloon {
  position: absolute;
  background: none;
  padding: 0;
  width: 75px;
  height: 130px;
  animation: float 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.balloon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.balloon svg ellipse,
.balloon svg path:not(.balloon-string) {
  stroke: #34332a;
  stroke-width: 2.7;
  paint-order: stroke fill;
  stroke-linecap: round;
  fill: var(--balloon-color);
}
.balloon-string {
  stroke: #34332a;
  stroke-width: 1.5;
  fill: none;
}
.balloon-peach {
  left: 4px;
  top: 0;
  --balloon-color: #f5d2a9;
  animation-delay: -2s;
  transform: rotate(-12deg);
}
.balloon-sage {
  left: 69px;
  top: 45px;
  --balloon-color: #dcead8;
  animation-delay: -4s;
  transform: rotate(9deg);
}
.balloon-lilac {
  left: 12px;
  top: 105px;
  --balloon-color: #e5ddf0;
}
.balloon.is-popping {
  animation: none;
}
.balloon {
  animation: none;
}
.balloon svg {
  animation: float 6s ease-in-out infinite;
}
.balloon.is-popping svg {
  animation: pop 0.18s ease-out forwards;
}
.balloon.is-replacing svg {
  animation:
    replace 0.6s ease-out,
    float 6s 0.6s ease-in-out infinite;
}
.balloon.is-replacing {
  animation: none;
}
.pop-spark {
  position: absolute;
  width: 55px;
  height: 55px;
  pointer-events: none;
  border: 2px dashed #ac7650;
  border-radius: 50%;
  animation: spark 0.45s ease-out forwards;
}
.book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  margin: 25px 0 16px;
  font-size: 11px;
  color: var(--muted);
}
.round-button {
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  font-size: 20px;
}
.round-button:hover {
  background: var(--sage);
}
.round-button:disabled {
  opacity: 0.35;
}
.text-button {
  padding: 9px 0;
  min-height: 44px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.book-controls .text-button {
  margin-left: 15px;
  font-size: 10px;
  color: var(--muted);
}
.chapter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.chapter-nav button {
  padding: 10px 13px;
  min-height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 11px;
  color: var(--muted);
}
.chapter-nav button.active {
  border-color: #b9c6b5;
  background: #edf1e6;
  color: var(--green);
}
.demo-disclosure {
  font-size: 10px;
  color: #706b61;
  margin: 16px 0 0;
}
.voice-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  background: #f0ede4;
  border: 1px solid #e6dfd1;
  border-radius: 10px;
  padding: 15px;
  margin: 13px 0 17px;
}
.voice-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.voice-card strong {
  font-size: 11px;
}
.voice-card div > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 600;
}
.avatar-peach {
  background: var(--peach);
}
.audio-toggle {
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.waveform {
  grid-column: 1/3;
  display: flex;
  gap: 4px;
  align-items: center;
  height: 30px;
  margin-top: 4px;
}
.waveform i {
  display: block;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: #96ac91;
}
.waveform i:nth-child(3n) {
  height: 24px;
}
.waveform i:nth-child(4n) {
  height: 8px;
}
.waveform i:nth-child(5n) {
  height: 30px;
}
.voice-card.is-playing .waveform i {
  animation: wave 0.8s alternate infinite;
}
.voice-card.is-playing .waveform i:nth-child(2n) {
  animation-delay: -0.4s;
}
.audio-time {
  font-size: 9px;
  justify-self: end;
}
.transcript {
  font-size: 10px;
}
.transcript summary {
  min-height: 36px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.transcript p {
  font-size: 10px;
  margin: 0;
}
.transcript small {
  font-size: 8px;
  color: var(--muted);
}
.family-note {
  padding: 13px 15px;
  border-radius: 2px;
  margin: 7px 0;
  transform: rotate(-1deg);
}
.family-note:nth-of-type(2) {
  transform: rotate(1.5deg);
}
.family-note p {
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  line-height: 1.2;
  margin: 5px 0 0;
}
.note-author {
  font-size: 9px;
  font-weight: 600;
}
.note-peach {
  background: #fbe7cf;
}
.note-sage {
  background: #e8efdf;
}
.note-lilac {
  background: #eee8f3;
}
.reader-note {
  font-size: 10px;
  margin-top: 14px !important;
}
.collaboration-page h2 {
  font-size: 31px;
  margin: 20px 0 12px;
}
.family-note {
  padding: 9px 12px;
  margin: 5px 0;
}
.family-note p {
  font-size: 18px;
}
.collaboration-page .reader-note {
  margin-top: 10px !important;
}
.mini-layout {
  margin: 8px 0 10px;
  border: 1px solid #ded7c8;
  padding: 8px;
  background: #f8f5ee;
  display: flex;
  gap: 10px;
  align-items: center;
  transition:
    padding 0.4s,
    gap 0.4s;
}
.mini-layout img {
  width: 52%;
  height: 105px;
  object-fit: cover;
  transition:
    width 0.4s,
    height 0.4s;
}
.mini-layout p {
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}
.mini-layout.is-suggested {
  padding: 14px;
  gap: 15px;
  flex-direction: row-reverse;
}
.mini-layout.is-suggested img {
  width: 44%;
  height: 90px;
}
.mini-layout.is-suggested p {
  font-size: 16px;
}
.ai-layout-page h2 {
  font-size: 27px;
  margin: 12px 0 10px;
}
.ai-layout-page .page-sticker {
  margin-top: 14px;
}
.ai-layout-page .mini-layout img {
  height: 90px;
}
.ai-layout-page .demo-caption {
  margin-bottom: 0;
}
.demo-prompt {
  font-size: 10px;
  border-radius: 5px;
  background: #eee8f3;
  padding: 8px 10px;
  margin: 4px 0 10px;
}
.demo-caption {
  font-size: 9px !important;
  line-height: 1.5 !important;
  color: var(--muted);
  margin-top: 10px !important;
}
.ai-review {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-review .text-button {
  font-size: 10px;
}
.illustration-page {
  position: relative;
}
.illustration-page .page-sticker {
  position: absolute;
  bottom: 47px;
  left: 39px;
  min-height: 44px;
  font-size: 10px;
  transform: rotate(-2deg);
}
.illustration-page .tall-photo {
  height: 388px;
}
.book.is-linear {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: auto !important;
  width: 100% !important;
  max-width: 850px;
  filter: none;
}
.book.is-linear .book-page {
  display: flex !important;
  position: relative !important;
  transform: none !important;
  min-height: 520px;
  height: auto !important;
  width: 100% !important;
  inset: auto !important;
}
.book.is-linear .cover {
  display: none !important;
}
.book {
  touch-action: pan-y;
}
.book.is-linear .stf__wrapper {
  padding-bottom: 0 !important;
  display: block;
}
.book.is-linear .stf__block {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.book.is-linear.is-enhanced {
  display: block !important;
}
.book.is-linear .book-page {
  clip-path: none !important;
  z-index: auto !important;
}
.book.is-linear .stf__block > :not(.book-page) {
  display: none !important;
}
@media (max-width: 700px) {
  .book.is-linear .stf__block {
    grid-template-columns: 1fr;
  }
}
.book.is-linear ~ .book-controls #previous-page,
.book.is-linear ~ .book-controls #next-page {
  display: none;
}
.language-menu {
  position: relative;
  flex: 0 0 auto;
  font-size: 12px;
}
.language-menu[hidden] {
  display: none;
}
.language-menu summary {
  cursor: pointer;
  padding: 10px 8px;
}
.site-header .language-menu nav {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  z-index: 30;
  display: grid;
  gap: 0;
  width: 220px;
  max-height: 65vh;
  overflow-y: auto;
  background: var(--paper, #fffdf9);
  padding: 8px;
  border: 1px solid #e7dfd0;
  border-radius: 12px;
  box-shadow: 0 12px 30px #28282015;
}
.site-header .language-menu:not([open]) nav {
  display: none;
}
.language-menu nav a {
  padding: 9px 12px;
  border-radius: 6px;
}
.language-menu nav a[aria-current="page"] {
  background: #dcead8;
}
html:not([lang="en"]) .book:not(.is-linear) h2 {
  font-size: 28px;
}
html:not([lang="en"]) .book:not(.is-linear) .cover h2 {
  font-size: 40px;
}
html:not([lang="en"]) .book-page {
  overflow-wrap: anywhere;
}
.section {
  padding-top: 112px;
}
.section-heading {
  text-align: center;
  max-width: 730px;
  margin: 0 auto 40px;
}
.section-heading h2,
.privacy-strip h2,
.faq-section h2,
.download-section h2 {
  font:
    600 clamp(30px, 3.2vw, 44px)/1.2 Manrope,
    sans-serif;
  letter-spacing: -1.6px;
  margin: 17px 0;
}
.section-heading h2 .handwritten,
.privacy-strip h2 .handwritten,
.faq-section h2 .handwritten,
.download-section h2 .handwritten {
  font-size: 1.16em;
  letter-spacing: -0.5px;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
}
.role-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.role-card {
  padding: 26px;
  border-radius: 10px;
  position: relative;
  border: 1px solid #2828200c;
}
.role-owner {
  background: #f8e6ce;
}
.role-full {
  background: #dfecf4;
}
.role-contributor {
  background: #e5eddc;
}
.role-reader {
  background: #eee6f4;
}
.role-number {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #6b6357;
}
.role-icon {
  display: block;
  font-size: 48px;
  line-height: 1.4;
  margin: 22px 0 14px;
  font-family: Georgia, serif;
}
.role-card h3 {
  font:
    600 20px/1.3 Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.role-card p {
  font-size: 13px;
  color: #59594e;
  margin: 0 0 25px;
}
.role-pill {
  font-size: 10px;
  border: 1px solid #847d6a55;
  border-radius: 30px;
  padding: 5px 13px;
}
.section-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 25px 0 0;
}
.section-footnote-follow {
  margin-top: 4px;
}
/* A row of books (the landing page's) or reveal posters (/launch/) that
   fan.js lays out as a fan: one item at the centre, upright, the others
   tilting away along an arc, --d steps from it (--ahead is the side the next
   one is on). Without scripts, or with reduced motion, it is a plain row. */
.fan {
  --cw: 170px;
  --step: 138px;
  --drop: 9px;
  --tilt: 7deg;
  --fh: 440px;
  --ahead: 1;
}
[dir="rtl"] .fan {
  --ahead: -1;
}
.fan.is-fanned {
  --cw: 200px;
  display: block;
  position: relative;
  height: var(--fh);
  margin-inline: 0;
  padding: 0;
  overflow: clip;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.fan.is-fanned > * {
  position: absolute;
  top: 26px;
  left: 50%;
  width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  z-index: var(--z, 1);
  transform-origin: 50% 100%;
  transform: translate(
      calc(var(--d, 0) * var(--step) * var(--ahead)),
      calc(var(--d, 0) * var(--d, 0) * var(--drop) - var(--up, 0px))
    )
    rotate(calc(var(--d, 0) * var(--tilt) * var(--lean, 1) * var(--ahead)));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Hover only straightens and lifts an item where it is: one that came to the
   centre would run away from the pointer. */
@media (hover: hover) {
  .fan.is-fanned > :hover {
    --up: 10px;
    --lean: 0;
  }
}
.book-fan {
  list-style: none;
  margin: 0;
  padding: 8px 18px 22px;
  display: flex;
  gap: 16px;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.book-fan::-webkit-scrollbar {
  display: none;
}
.book-fan > * {
  flex: 0 0 var(--cw);
  display: flex;
  scroll-snap-align: center;
}
.book-fan .shelf-book {
  width: 100%;
  text-align: start;
}
.shelf-book {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  padding-block: 16px 14px;
  padding-inline: 18px 12px;
  border-radius: 3px 9px 9px 3px;
  box-shadow:
    inset 7px 0 0 #2828200d,
    0 8px 16px #3735291f;
  overflow-wrap: anywhere;
  --motif: #315b4b;
}
/* The spine sits on the inline-start edge, so it moves right in RTL. */
[dir="rtl"] .shelf-book {
  border-radius: 9px 3px 3px 9px;
  box-shadow:
    inset -7px 0 0 #2828200d,
    0 8px 16px #3735291f;
}
.shelf-book svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--motif);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shelf-topic {
  margin-top: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4f4a42;
}
.shelf-title {
  font-size: 22px;
  line-height: 1.1;
  margin-top: 4px;
}
.book-peach {
  background: #f8e2c6;
  --motif: #a65a31;
}
.book-lilac {
  background: #ebe1f3;
  --motif: #6b5689;
}
.book-sand {
  background: #efe3cc;
  --motif: #85653a;
}
.book-sky {
  background: #d9e9f3;
  --motif: #3b6684;
}
.book-sage {
  background: #e1ebd7;
  --motif: #315b4b;
}
.book-rose {
  background: #f4ddd6;
  --motif: #94493f;
}
.media-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.media-chips li {
  background: var(--surface);
  border-radius: 30px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 600;
}
.media-chips span {
  color: var(--green);
  margin-inline-end: 4px;
}
.feature-panel p.handwritten {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}
.referral-note {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 30px;
  border-radius: 12px;
  background: #f8e6ce;
}
.referral-icon {
  font:
    44px/1 Georgia,
    serif;
  color: #a65a31;
  text-align: center;
}
.referral-note h3 {
  font:
    600 20px/1.3 Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.referral-note p {
  font-size: 13px;
  color: #59594e;
  margin: 0;
}
/* The features: full-width panels, each its words beside its visual. A plain
   list; where every panel is known to fit the window (the stacking query
   below) each sticks to the top and the next slides up over it. */
.feature-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 64px;
  background: #f1ede3;
}
.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.feature-panel-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.feature-visual {
  min-width: 0;
}
.feature-symbol {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 25px;
}
.feature-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.3px;
  color: #6b665b;
}
.feature-panel h3 {
  font:
    600 clamp(31px, 2.8vw, 44px)/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 15px 0;
}
.feature-panel p {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
}
/* A tall, narrow window (a tablet upright): the words above the visual, both
   larger, so the panel is not a strip across an empty screen. */
@media (min-width: 701px) and (max-aspect-ratio: 4/5) {
  .feature-panel-in {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature-panel h3 {
    font-size: 46px;
  }
  .feature-panel p {
    font-size: 17px;
    max-width: 600px;
  }
}
.feature-peach {
  background: #f8e6ce;
}
.feature-sage {
  background: #e5eddc;
}
.feature-lilac {
  background: #eee6f4;
}
.feature-paper {
  background: #f4efe4;
}
/* The hardcover panel (#print): the app's Collection screen in a phone, and
   a photo of the printed book on a real shelf. Beside the words, the photo
   fills the panel's inline-end half to the window's edge and the phone
   straddles the middle; with the words above (a phone, an upright tablet)
   the phone sits beside a portrait photo that runs to the window's
   inline-end edge. The phone is drawn in --u, 1/410 of its width (390 of
   screen and a 10 bezel each side), so one markup fits every width. */
:where(#print) {
  min-height: 560px;
}
#print {
  --print-phone-w: clamp(170px, 18vw, 232px);
  /* The shell's margin: what the visual spans to reach the window's edge. */
  --print-bleed: max(36px, (100cqi - 1160px) / 2);
  container-type: inline-size;
  overflow: hidden;
}
#print .print-words {
  padding-inline-end: calc(var(--print-phone-w) * 0.47 + 8px);
}
#print .print-photo {
  position: absolute;
  inset-block: 0;
  inset-inline: 50% 0;
  display: block;
}
#print .print-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  background: #c9b89a;
}
#print .print-phone {
  position: absolute;
  z-index: 1;
  top: 50%;
  inset-inline-start: calc(50% - var(--print-phone-w) * 0.47);
  width: var(--print-phone-w);
  transform: translateY(-50%);
  container-type: inline-size;
  aspect-ratio: 410 / 800;
}
/* The dimming overlay stays above the phone. */
#print::after {
  z-index: 1;
}
.print-phone-body {
  --u: calc(100cqw / 410);
  position: absolute;
  inset: 0;
  padding: calc(10 * var(--u));
  border-radius: calc(52 * var(--u));
  background: #1c1c1a;
  box-shadow:
    0 0 0 calc(1.5 * var(--u)) #3a3a37,
    0 calc(24 * var(--u)) calc(48 * var(--u)) #1e1c1652;
}
.print-screen {
  --u: calc(100cqw / 410);
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(42 * var(--u));
  background: #f7f5f0;
  color: #1d1d1b;
  overflow: hidden;
}
.print-island {
  position: absolute;
  top: calc(12 * var(--u));
  left: 50%;
  width: calc(118 * var(--u));
  height: calc(34 * var(--u));
  transform: translateX(-50%);
  border-radius: calc(20 * var(--u));
  background: #121211;
}
.print-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(52 * var(--u));
  padding: 0 calc(30 * var(--u));
  font-size: calc(15 * var(--u));
  font-weight: 600;
}
.print-clock::before {
  content: "9:41";
}
html[lang^="ar"] .print-clock::before {
  content: "٩:٤١";
}
.print-status svg {
  width: calc(66 * var(--u));
  height: calc(12 * var(--u));
  fill: #1d1d1b;
}
.print-status .print-battery {
  fill: none;
  stroke: #1d1d1b;
  stroke-width: 1.2;
}
.print-head {
  padding: calc(6 * var(--u)) calc(20 * var(--u)) 0;
}
.print-title {
  font:
    700 calc(28 * var(--u)) / 1.15 Manrope,
    sans-serif;
  letter-spacing: calc(-0.4 * var(--u));
}
.print-subtitle {
  margin-top: calc(4 * var(--u));
  font-size: calc(13 * var(--u));
  line-height: 1.4;
  color: #706c64;
}
.print-group {
  padding: calc(22 * var(--u)) calc(20 * var(--u)) 0;
}
.print-group-row {
  display: flex;
  align-items: flex-start;
}
.print-group-row > div {
  flex: 1;
}
.print-group-name {
  font-size: calc(19 * var(--u));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: calc(-0.2 * var(--u));
}
.print-group-row small {
  display: block;
  margin-top: calc(2 * var(--u));
  font-size: calc(13 * var(--u));
  color: #706c64;
}
.print-more {
  display: grid;
  place-items: center;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  font-size: calc(20 * var(--u));
  letter-spacing: calc(-1 * var(--u));
  writing-mode: vertical-rl;
}
.print-shelf {
  position: relative;
  margin-top: calc(14 * var(--u));
  height: calc(246 * var(--u));
}
.print-lip {
  position: absolute;
  inset-inline: calc(-20 * var(--u));
  bottom: 0;
  height: calc(34 * var(--u));
  border-top: calc(3 * var(--u)) solid #f3d8a7;
  border-bottom: calc(5 * var(--u)) solid #9d7046;
  background:
    repeating-linear-gradient(
      90deg,
      #78502819 0 calc(2 * var(--u)),
      transparent calc(2 * var(--u)) calc(9 * var(--u)),
      #ffffff14 calc(9 * var(--u)) calc(14 * var(--u))
    ),
    linear-gradient(180deg, #e8c893, #d9b47c 60%, #cfa66f);
  box-shadow:
    0 calc(8 * var(--u)) calc(12 * var(--u)) #0003,
    0 calc(-1 * var(--u)) calc(1 * var(--u)) #ffffff26;
}
.print-books {
  position: absolute;
  inset-inline-start: 0;
  bottom: calc(32 * var(--u));
  display: flex;
  align-items: flex-end;
}
.print-books.is-face-out {
  gap: calc(16 * var(--u));
}
.print-book {
  position: relative;
  flex: none;
  height: calc(212 * var(--u));
  border-radius: calc(6 * var(--u));
  border: calc(1 * var(--u)) solid #59433840;
  box-shadow: calc(4 * var(--u)) calc(7 * var(--u)) calc(16 * var(--u))
    #00000038;
  overflow: hidden;
}
.print-book.is-cover {
  width: calc(150 * var(--u));
}
/* The board's edge by the spine, as the app's PhysicalBookCover draws it. */
.print-book.is-cover::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(9 * var(--u));
  background: linear-gradient(90deg, #3d2c27, #665047, #49352f);
  z-index: 2;
}
.print-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.print-cover-title {
  font-size: calc(21 * var(--u));
  line-height: 1.05;
  color: #2c3b33;
}
.print-eyebrow {
  font-size: calc(6 * var(--u));
  font-weight: 700;
  letter-spacing: calc(1.2 * var(--u));
  text-transform: uppercase;
  color: #2c3b33;
  opacity: 0.7;
}
/* Mia's book: sage board, cream label, the crayon drawing. */
.print-book.is-mia {
  background: #a9b797;
}
.print-book.is-mia .print-face {
  inset-block: calc(12 * var(--u));
  inset-inline: calc(18 * var(--u)) calc(12 * var(--u));
  justify-content: flex-start;
  gap: calc(6 * var(--u));
  padding: calc(10 * var(--u)) calc(8 * var(--u)) calc(6 * var(--u));
  background: #f6efdf;
  outline: calc(1 * var(--u)) solid #59433840;
  outline-offset: calc(-5 * var(--u));
}
.print-book.is-mia .print-cover-title {
  font-size: calc(22 * var(--u));
}
/* 小さな世界 fits the label on one line. */
html[lang^="ja"] .print-book.is-mia .print-cover-title {
  font-size: calc(18 * var(--u));
}
.print-book.is-mia img {
  width: 100%;
  height: calc(84 * var(--u));
  margin-top: auto;
  border-radius: calc(2 * var(--u));
  object-fit: cover;
  object-position: 50% 60%;
  mix-blend-mode: multiply;
}
.print-book.is-spine {
  width: calc(48 * var(--u));
  margin-inline-start: calc(2 * var(--u));
  border-radius: calc(3 * var(--u));
}
.print-book.is-spine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #00000029,
    #ffffff24 35%,
    transparent 60%,
    #00000033
  );
}
.print-book.is-spine::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(9 * var(--u));
  height: calc(2 * var(--u));
  background: #5943384d;
  box-shadow: 0 calc(192 * var(--u)) 0 #5943384d;
}
.print-spine-title {
  position: absolute;
  inset: calc(16 * var(--u)) 0;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  font-size: calc(14 * var(--u));
  line-height: 1;
  color: #2c3b33;
  white-space: nowrap;
}
.print-c-sky {
  background: var(--sky);
}
.print-c-mint {
  background: #cde9dd;
}
.print-c-peach {
  background: var(--peach);
}
.print-c-coral {
  background: #f3c3a8;
}
/* The words above the visual: the phone beside the portrait photo. */
@media (min-width: 701px) and (max-aspect-ratio: 4/5) {
  #print {
    padding-block-end: 0;
  }
  #print .print-words {
    padding-inline-end: 0;
  }
  /* The visual is a size container: the phone takes its height (less its
     margin), up to two fifths of the width; the photo takes the rest. */
  #print .print-visual {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: end;
    height: min(66vw, 640px);
    margin-inline-end: calc(-1 * var(--print-bleed));
    container-type: size;
  }
  #print .print-phone {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    width: min(40cqw, (100cqh - 28px) * 410 / 800);
    margin-bottom: 28px;
    transform: none;
  }
  #print .print-photo {
    position: static;
    height: 100%;
    min-height: 0;
  }
  #print .print-photo img {
    object-position: 50% 48%;
    border-start-start-radius: 20px;
  }
}
@media (max-width: 700px) {
  #print {
    --print-bleed: 18px;
    padding-block-end: 0;
  }
  #print .print-words {
    padding-inline-end: 0;
  }
  #print .print-visual {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: end;
    height: min(86vw, 336px);
    margin-top: 10px;
    margin-inline-end: calc(-1 * var(--print-bleed));
    container-type: size;
  }
  #print .print-phone {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    width: min(158px, 44cqw, (100cqh - 18px) * 410 / 800);
    margin-bottom: 18px;
    transform: none;
  }
  #print .print-photo {
    position: static;
    height: 100%;
    min-height: 0;
  }
  #print .print-photo img {
    object-position: 50% 48%;
    border-start-start-radius: 14px;
  }
}
.ai-conversation {
  padding: 20px 35px;
  transform: rotate(2deg);
}
.chat-bubble {
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  max-width: 290px;
  box-shadow: 0 5px 14px #37352908;
}
.user-bubble {
  background: #e0ead9;
  margin-left: auto;
  margin-bottom: 16px;
}
.assistant-bubble {
  background: var(--surface);
}
.assistant-bubble > span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.chat-preview {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #f6f1e6;
  margin-top: 15px;
  padding: 14px;
  border-radius: 4px;
}
.chat-preview > i {
  height: 60px;
  width: 75px;
  background: #d1d9c3;
  border-radius: 3px;
}
.chat-preview > div {
  flex: 1;
}
.chat-preview b {
  display: block;
  height: 5px;
  background: #d4c9b6;
  margin: 7px 0;
  width: 95%;
}
.chat-preview b:last-child {
  width: 65%;
}
.plan-cards {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plan-card {
  padding: 35px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.plan-plus {
  background: #edf1e5;
  border-color: #b9c7ae;
}
.plan-card h3 {
  font:
    600 27px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  margin: 10px 0;
}
.plan-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 25px;
  max-width: 260px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  font-size: 12px;
}
.check-list li {
  position: relative;
  padding: 7px 0 7px 23px;
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}
.plan-card .button {
  margin-top: auto;
  width: 100%;
}
.plan-badge {
  position: absolute;
  top: -17px;
  right: 17px;
  font-size: 18px;
  transform: rotate(3deg);
  background: var(--peach);
  padding: 5px 12px;
  border-radius: 3px;
}
.privacy-strip {
  display: grid;
  grid-template-columns: 125px 1fr 180px;
  gap: 30px;
  align-items: center;
  margin-top: 112px;
  padding: 40px;
  background: #efece2;
  border-radius: 12px;
}
.privacy-strip h2 {
  font-size: 33px;
}
.privacy-strip p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 510px;
}
.privacy-flower {
  font-size: 100px;
  color: #9caa87;
  line-height: 1;
}
.privacy-note {
  font-size: 25px;
  line-height: 1.3;
  color: #6d705b;
  transform: rotate(-6deg);
}
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 65px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-list details:first-child {
  padding-top: 0;
}
.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 500;
  font-size: 13px;
  list-style: none;
}
.faq-list summary:after {
  content: "+";
  font-size: 23px;
  font-weight: 400;
}
.faq-list details[open] summary:after {
  content: "−";
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  color: var(--muted);
  font-size: 12px;
  max-width: 510px;
  line-height: 1.9;
}
.download-section {
  text-align: center;
  background: #f6e6d1;
  border-radius: 12px;
  padding: 60px 30px;
  margin-top: 110px;
  position: relative;
  overflow: hidden;
}
.download-section h2 {
  font-size: 46px;
}
.download-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  margin: 26px 0 16px;
}
.store-badges button {
  background: transparent;
  padding: 0;
  min-height: 56px;
}
.store-badges img {
  width: auto;
  height: 56px;
  object-fit: contain;
}
.store-badges button:nth-child(2) img {
  height: 80px;
}
.coming-soon {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px !important;
  border: 1px solid #ad927544;
  border-radius: 30px;
  padding: 6px 13px;
}
.coming-soon span {
  font-size: 7px;
  color: var(--green);
}
.download-doodle {
  position: absolute;
  right: 50px;
  top: 50px;
  font-size: 90px;
  color: #ad795246;
  transform: rotate(20deg);
}
/* "Email me when it's live" under the store badges. */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 520px;
  margin: 22px auto 0;
  position: relative;
  z-index: 1;
}
.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #8a877d;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  /* Below 16px, iOS Safari zooms the page when the field is focused. */
  font-size: 16px;
}
.waitlist-form input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.waitlist-form input[aria-invalid="true"] {
  border-color: #a3352a;
}
.waitlist-form .button {
  flex: 0 1 auto;
}
.waitlist-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.waitlist-status:empty {
  display: none;
}
.waitlist-status:focus {
  outline: none;
}
.waitlist-status.is-error {
  color: #a3352a;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.waitlist-page section > .button {
  margin-top: 8px;
}
.site-footer {
  margin-top: 70px;
  padding-bottom: 26px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-top > .handwritten {
  font-size: 19px;
  color: var(--muted);
}
.footer-top nav {
  display: flex;
  gap: 22px;
  font-size: 11px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 9px;
  color: var(--muted);
  padding-top: 20px;
}
.footer-bottom > span:last-child {
  max-width: 480px;
  font-size: 8px;
}
.legal-main {
  max-width: 840px;
  padding: 60px 0 30px;
}
.legal-main > h1 {
  font:
    600 clamp(36px, 5vw, 58px)/1.12 Manrope,
    sans-serif;
  letter-spacing: -2px;
  margin: 20px 0;
}
.legal-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 650px;
}
.legal-summary {
  padding: 25px;
  background: #e8efdf;
  border-radius: 12px;
  margin: 30px 0;
}
.legal-summary h2 {
  font:
    600 20px Manrope,
    sans-serif;
  margin-top: 0;
}
.legal-summary p {
  margin-bottom: 0;
}
.legal-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  margin-top: 40px;
}
.legal-toc {
  font-size: 12px;
  align-self: start;
  position: sticky;
  top: 25px;
}
.legal-toc a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--green);
  min-height: 34px;
}
.legal-toc strong {
  display: block;
  margin-bottom: 12px;
}
.legal-content section {
  scroll-margin-top: 25px;
  margin-bottom: 35px;
}
.legal-content h2 {
  font:
    600 21px/1.3 Manrope,
    sans-serif;
  letter-spacing: -0.3px;
}
.legal-content h3 {
  font:
    600 16px/1.4 Manrope,
    sans-serif;
}
.legal-content p,
.legal-content li {
  font-size: 13px;
  color: #57554d;
  line-height: 1.9;
}
.legal-content ul,
.legal-content ol {
  padding-left: 20px;
}
.legal-content a {
  color: var(--green);
  text-underline-offset: 3px;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.7;
}
.legal-content th,
.legal-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-content th {
  background: #f0ece2;
  font-weight: 600;
}
.legal-content address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.9;
}
.legal-status {
  background: #f8e6ce;
  border: 1px solid #e6d5bd;
  padding: 18px;
  border-radius: 8px;
  font-size: 12px;
}
.delete-steps {
  list-style: none;
  padding: 0 !important;
}
.delete-steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 12px 0;
}
.delete-steps li strong {
  color: var(--ink);
}
.code {
  font:
    600 24px/1.3 ui-monospace,
    monospace;
  letter-spacing: 3px;
  display: inline-block;
  background: var(--sage);
  padding: 15px 25px;
  border-radius: 8px;
}
@keyframes float {
  0%,
  100% {
    rotate: -4deg;
    translate: 0 0;
  }
  50% {
    rotate: 5deg;
    translate: 0 -8px;
  }
}
@keyframes pop {
  to {
    scale: 1.3;
    opacity: 0;
  }
}
@keyframes replace {
  from {
    scale: 0.25;
    translate: 0 30px;
    opacity: 0;
  }
  to {
    scale: 1;
    translate: 0 0;
    opacity: 1;
  }
}
@keyframes spark {
  from {
    scale: 0.4;
    opacity: 0.8;
  }
  to {
    scale: 1.5;
    opacity: 0;
  }
}
@keyframes wave {
  to {
    scale: 1 0.45;
  }
}
@media (min-width: 1400px) {
  .margin-note {
    left: 25px;
  }
  .balloon-garden {
    right: 5px;
  }
}
@media (max-width: 1050px) {
  .story-page h2 {
    font-size: 34px;
    margin: 18px 0 12px;
  }
  .story-page .page-sticker {
    margin-top: 10px;
  }
  .margin-note {
    display: none;
  }
  .balloon-garden {
    right: -20px;
    top: 0;
    scale: 0.65;
    transform-origin: right top;
    pointer-events: none;
  }
  .balloon {
    pointer-events: auto;
  }
  .book {
    width: min(740px, 100%);
  }
  .privacy-strip {
    grid-template-columns: 80px 1fr;
  }
  .privacy-flower {
    font-size: 75px;
  }
  .privacy-note {
    display: none;
  }
  .footer-top > .handwritten {
    display: none;
  }
}
@media (max-width: 700px) {
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 76px;
    gap: 15px;
  }
  .site-header .brand img {
    width: 130px;
  }
  .site-header nav {
    display: none;
  }
  .site-header .button {
    font-size: 10px;
    gap: 9px;
    padding: 8px 12px;
  }
  .site-pill {
    height: auto;
    gap: 12px;
    padding-inline-start: 14px;
  }
  .site-pill .brand img {
    width: 104px;
  }
  .hero {
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -2.3px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hero-copy {
    font-size: 13px;
    max-width: 340px;
    margin: auto;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    gap: 12px;
    flex-direction: column;
    margin-top: 21px;
  }
  .small-note {
    font-size: 18px;
  }
  .book-theatre {
    padding-top: 32px;
  }
  .balloon-garden {
    right: -8px;
    top: 3px;
    width: 95px;
    height: 60px;
    scale: 0.38;
    transform-origin: right top;
    z-index: 2;
  }
  .book {
    max-width: 370px;
    grid-template-columns: 1fr;
  }
  .book:not(.is-enhanced) > .book-page:nth-child(3) {
    display: none;
  }
  .book:not(.is-enhanced) > .book-page {
    min-height: 490px;
  }
  .book-page {
    padding: 24px 23px 19px;
  }
  .book-page h2 {
    font-size: 32px;
  }
  .story-page h2 {
    font-size: 38px;
  }
  .book-page p {
    font-size: 12px;
  }
  .book-page .memory-quote {
    font-size: 22px;
  }
  .tall-photo {
    height: 325px;
  }
  .photo-page .tall-photo {
    height: 335px;
  }
  .landscape-photo {
    height: 170px;
  }
  .illustration-page .tall-photo {
    height: 350px;
  }
  .illustration-page .page-sticker {
    bottom: 43px;
    left: 28px;
  }
  .book-controls {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .book-controls .text-button {
    width: 100%;
    margin: 0;
    min-height: 44px;
    padding: 3px;
  }
  .chapter-nav {
    gap: 0;
  }
  .chapter-nav button {
    padding: 8px 9px;
    font-size: 10px;
  }
  .demo-disclosure {
    font-size: 9px;
    max-width: 310px;
    margin: 12px auto 0;
  }
  .book.is-linear {
    grid-template-columns: 1fr;
    max-width: 370px;
  }
  .section {
    padding-top: 76px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 13px;
  }
  .role-cards {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .role-card {
    padding: 23px 25px;
  }
  .role-icon {
    position: absolute;
    right: 25px;
    top: 32px;
    margin: 0;
    font-size: 40px;
  }
  .role-card h3 {
    margin-top: 24px;
    font-size: 21px;
  }
  .role-card p {
    max-width: 290px;
    margin-bottom: 18px;
  }
  .role-number {
    font-size: 8px;
  }
  .section-footnote {
    font-size: 10px;
    line-height: 1.9;
  }
  .fan {
    --cw: 150px;
    --step: 86px;
    --drop: 8px;
    --tilt: 8deg;
    --fh: 320px;
  }
  .fan.is-fanned {
    --cw: 150px;
  }
  .shelf-book {
    padding-block: 12px 10px;
    padding-inline: 12px 8px;
  }
  .shelf-book svg {
    width: 32px;
    height: 32px;
  }
  .shelf-topic {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .shelf-title {
    font-size: 17px;
  }
  .referral-note {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }
  .referral-icon {
    text-align: start;
  }
  .feature-panel {
    padding-block: 40px;
  }
  .feature-panel-in {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-panel h3 {
    font-size: 27px;
  }
  .feature-panel p {
    font-size: 14px;
  }
  .feature-symbol {
    margin-bottom: 19px;
  }
  .ai-conversation {
    padding: 15px 12px 10px;
    max-width: 320px;
    width: 100%;
    margin: auto;
  }
  .plan-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .plan-card {
    padding: 28px 25px;
  }
  .plan-badge {
    font-size: 16px;
  }
  .privacy-strip {
    margin-top: 75px;
    padding: 25px;
    gap: 5px;
    grid-template-columns: 1fr;
  }
  .privacy-flower {
    font-size: 45px;
  }
  .privacy-strip h2 {
    font-size: 30px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faq-section h2 {
    font-size: 32px;
  }
  .faq-list summary {
    font-size: 13px;
  }
  .download-section {
    margin-top: 75px;
    padding: 43px 20px;
  }
  .download-section h2 {
    font-size: 35px;
  }
  .download-doodle {
    right: 14px;
    top: 15px;
    font-size: 46px;
  }
  .store-badges {
    gap: 4px;
    flex-direction: column;
  }
  .store-badges img {
    height: 52px;
  }
  .store-badges button {
    min-height: 56px;
  }
  .waitlist-form .button {
    flex-basis: 100%;
  }
  .site-footer {
    margin-top: 40px;
  }
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .footer-top nav {
    gap: 18px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    font-size: 9px;
  }
  .legal-main {
    padding-top: 32px;
  }
  .legal-intro {
    font-size: 15px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
  }
  .legal-toc strong {
    width: 100%;
    margin: 0;
  }
  .legal-toc a {
    font-size: 11px;
  }
  .legal-summary {
    padding: 20px;
  }
  .legal-content table {
    font-size: 11px;
  }
  .legal-content th,
  .legal-content td {
    padding: 9px 7px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 42px;
  }
  .book-page {
    padding: 20px 18px 16px;
  }
  .book-page h2 {
    font-size: 28px;
  }
  .story-page h2 {
    font-size: 34px;
  }
  .book-page p {
    font-size: 11px;
  }
  .book-page .memory-quote {
    font-size: 20px;
  }
  html:not([lang="en"]) .book:not(.is-linear) .back-cover h2 {
    font-size: 32px;
    line-height: 1.05;
    margin: 8px 0;
  }
  .back-cover img {
    height: 130px;
    margin: 8px 0;
  }
  .tall-photo {
    height: 294px;
  }
  .photo-page .tall-photo {
    height: 310px;
  }
  .landscape-photo {
    height: 151px;
  }
  .voice-page h2 {
    margin: 12px 0 10px;
  }
  .voice-page .page-sticker {
    margin-top: 8px;
  }
  .voice-card {
    margin: 8px 0 10px;
  }
  .voice-page .page-bottom {
    padding-top: 8px;
  }
  .illustration-page .tall-photo {
    height: 330px;
  }
  .ai-layout-page h2 {
    font-size: 25px;
  }
  .mini-layout img {
    height: 85px;
  }
  .mini-layout.is-suggested img {
    height: 85px;
  }
  .page-top {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .page-bottom {
    font-size: 7px;
  }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .role-cards {
    grid-template-columns: 1fr 1fr;
  }
  .collaboration-page h2 {
    font-size: 29px;
    margin: 16px 0 10px;
  }
  .family-note {
    padding: 7px 10px;
    margin: 4px 0;
  }
  .family-note p {
    font-size: 17px;
  }
  .collaboration-page .reader-note {
    font-size: 9px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .balloon.is-popping {
    opacity: 0;
  }
  .balloon.is-replacing {
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .balloon-garden {
    scale: 1;
    width: 54px;
    height: 85px;
    right: 0;
    top: -29px;
  }
  .balloon {
    width: 54px;
    height: 85px;
  }
  .balloon-peach {
    top: 0;
    left: 0;
  }
  .balloon-sage,
  .balloon-lilac {
    display: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .skip-link {
    display: none;
  }
  .shell {
    width: 100%;
  }
  .legal-main {
    padding: 0;
    max-width: none;
  }
  .legal-layout {
    display: block;
  }
  .legal-content section {
    break-inside: avoid;
  }
  .legal-content a {
    color: inherit;
  }
  .legal-summary {
    border: 1px solid #aaa;
    background: white;
  }
  .legal-content p,
  .legal-content li {
    font-size: 11pt;
  }
  .legal-main h1 {
    font-size: 26pt;
  }
}
@media (max-width: 700px) {
  html:not([lang="en"]) .book:not(.is-linear) .ai-layout-page h2 {
    font-size: 25px;
    line-height: 1.1;
    margin: 8px 0 6px;
  }
  .ai-layout-page .page-sticker {
    min-height: 24px;
    margin-top: 12px;
    padding: 4px 8px;
  }
  .mini-layout.is-suggested {
    flex-direction: row-reverse;
    padding: 12px;
    gap: 16px;
  }
  .mini-layout.is-suggested img {
    width: 38%;
    height: 85px;
  }
  .ai-layout-page .demo-caption {
    margin-bottom: 0;
  }
}
@media (max-width: 360px) {
  .ai-layout-page {
    padding: 16px 20px;
  }
  html:not([lang="en"]) .book:not(.is-linear) .ai-layout-page h2 {
    font-size: 22px;
    line-height: 1.05;
    margin: 8px 0 4px;
  }
  .ai-layout-page .page-sticker {
    margin-top: 8px;
    font-size: 9px;
  }
  .mini-layout {
    padding: 4px;
    margin: 3px 0;
  }
  .mini-layout img,
  .mini-layout.is-suggested img {
    height: 58px;
  }
  .mini-layout.is-suggested {
    padding: 8px;
  }
  .demo-prompt {
    font-size: 9px;
    line-height: 1.4;
    padding: 6px 8px;
    margin: 2px 0 4px;
  }
  .ai-layout-page .demo-caption {
    font-size: 8px !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
  }
  .ai-layout-page .page-bottom {
    padding-top: 6px;
  }
  html:not([lang="en"]) .book:not(.is-linear) .collaboration-page h2 {
    font-size: 24px;
    line-height: 1.05;
    margin: 10px 0 6px;
  }
  .collaboration-page .family-note {
    padding: 5px 8px;
    margin: 2px 0;
  }
  .collaboration-page .family-note p {
    font-size: 15px;
    line-height: 1.15;
    margin-top: 2px;
  }
  .collaboration-page .reader-note {
    font-size: 9px;
    margin: 6px 0 8px;
  }
  .collaboration-page .page-bottom {
    padding-top: 8px;
  }
}
@media (max-width: 700px) {
  .book.is-rtl .book-page-content {
    padding: 24px 23px 19px;
  }
}
@media (max-width: 360px) {
  .book.is-rtl .book-page-content {
    padding: 20px 18px 16px;
  }
  .book.is-rtl .ai-layout-page .book-page-content {
    padding: 16px 20px;
  }
}
.book.is-linear:not(.is-enhanced) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.book.is-linear:not(.is-enhanced) > .book-page {
  display: flex !important;
  min-height: 520px;
}
@media (max-width: 700px) {
  .book.is-linear:not(.is-enhanced) {
    grid-template-columns: 1fr;
  }
}
html[lang^="ar"] body {
  font-family: "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
}
html[lang^="ar"] :is(h1, h2, h3, .print-title) {
  font-family:
    Manrope, "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
}
html[lang^="ar"] :is(.handwritten, .family-note p) {
  font-family:
    "Patrick Hand", "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", cursive;
}
html[lang^="hi"] body {
  font-family: "WondernotWebDevanagari", "Noto Sans Devanagari", sans-serif;
}
html[lang^="hi"] :is(h1, h2, h3, .print-title) {
  font-family:
    Manrope, "WondernotWebDevanagari", "Noto Sans Devanagari", sans-serif;
}
html[lang^="hi"] :is(.handwritten, .family-note p) {
  font-family:
    "Patrick Hand", "WondernotWebDevanagari", "Noto Sans Devanagari", cursive;
}
html[lang^="ja"] body {
  font-family: "WondernotWebJP", "Noto Sans JP", sans-serif;
}
html[lang^="ja"] :is(h1, h2, h3, .print-title) {
  font-family: Manrope, "WondernotWebJP", "Noto Sans JP", sans-serif;
}
html[lang^="ja"] :is(.handwritten, .family-note p) {
  font-family: "Patrick Hand", "WondernotWebJP", "Noto Sans JP", cursive;
}
html[lang^="ko"] body {
  font-family: "WondernotWebKR", "Noto Sans KR", sans-serif;
}
html[lang^="ko"] :is(h1, h2, h3, .print-title) {
  font-family: Manrope, "WondernotWebKR", "Noto Sans KR", sans-serif;
}
html[lang^="ko"] :is(.handwritten, .family-note p) {
  font-family: "Patrick Hand", "WondernotWebKR", "Noto Sans KR", cursive;
}
/* Keep script-native glyphs in the language picker on every locale page. */
.language-menu a[hreflang^="ja"] {
  font-family: "WondernotWebJP", "Noto Sans JP", sans-serif;
}
.language-menu a[hreflang^="ko"] {
  font-family: "WondernotWebKR", "Noto Sans KR", sans-serif;
}
.language-menu a[hreflang^="hi"] {
  font-family: "WondernotWebDevanagari", "Noto Sans Devanagari", sans-serif;
  letter-spacing: normal;
}
.language-menu a[hreflang^="ar"] {
  font-family: "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: start;
  letter-spacing: normal;
}
html[lang^="ar"] *,
html[lang^="hi"] * {
  letter-spacing: normal;
}
@media (max-width: 360px) {
  .story-page h2 {
    font-size: 25px;
    line-height: 1.1;
    margin: 10px 0 6px;
  }
  .story-page .page-sticker {
    min-height: 26px;
    margin-top: 8px;
    padding-block: 3px;
  }
  .story-page .little-line {
    height: 1px;
    margin-bottom: 6px;
  }
  .story-page p {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .story-page .memory-quote {
    font-size: 18px;
    line-height: 1.2;
    margin: 4px 0;
  }
  .story-page .page-doodle {
    font-size: 24px;
  }
  .story-page .page-bottom {
    padding-top: 8px;
  }
}
@media (min-width: 701px) and (max-width: 1050px) {
  html:not([lang="en"]) .book:not(.is-linear) .ai-layout-page h2 {
    font-size: 24px;
    line-height: 1.1;
    margin: 8px 0 6px;
  }
  .ai-layout-page .mini-layout.is-suggested {
    padding: 10px;
    gap: 10px;
  }
  .ai-layout-page .mini-layout.is-suggested img {
    height: 72px;
  }
}
/* A printed copy's public page (/p/{token}/{n}): one memory per screen. */
.printed-main {
  padding: 18px 0 10px;
  min-height: 55vh;
}
.printed-status {
  color: var(--muted);
  font-size: 13px;
}
.printed-skeleton {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  max-height: min(72vh, 680px);
  background: linear-gradient(90deg, #efe8da 30%, #f8f2e7 50%, #efe8da 70%);
  background-size: 300% 100%;
  animation: printed-shimmer 1.4s linear infinite;
}
@keyframes printed-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
.printed-top {
  margin-bottom: 20px;
}
.printed-top .eyebrow {
  color: var(--muted);
  margin: 0 0 6px;
}
.printed-top .printed-book-title {
  font:
    600 clamp(26px, 3.4vw, 38px)/1.15 Manrope,
    system-ui,
    sans-serif;
  letter-spacing: -0.6px;
  margin: 0;
  overflow-wrap: anywhere;
}
.printed-notice {
  background: #f8e6ce;
  border: 1px solid #e6d5bd;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin: 0 0 18px;
}
.printed-slide {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 36px;
  align-items: start;
  /* Horizontal drags turn the memory; scrolling and zooming stay the
     browser's. */
  touch-action: pan-y pinch-zoom;
  animation: printed-in 0.28s ease-out;
}
/* Zoomed in, every drag pans the zoomed page (printed-copy.js). */
.printed-stage.is-zoomed .printed-slide {
  touch-action: auto;
}
@keyframes printed-in {
  from {
    opacity: 0;
    translate: var(--printed-from, 0) 0;
  }
}
.printed-slide.is-text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin-inline: auto;
}
/* The book's background (book templates T5), scaled to cover the page. */
.printed-slide.has-background {
  padding: 24px;
  border-radius: 12px;
  background: var(--printed-background) center / cover no-repeat;
}
.printed-media {
  --printed-default: 4 / 3;
  position: relative;
  direction: ltr;
  width: 100%;
  aspect-ratio: var(--printed-ratio, var(--printed-default));
  max-height: min(72vh, 680px);
  border-radius: 12px;
  overflow: hidden;
  background: #efe8da;
}
.printed-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 6px;
}
.printed-cell {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: #e6dfd1;
  cursor: zoom-in;
}
.printed-media[data-count="1"] .printed-cell {
  border-radius: 0;
}
/* A photo with a caption (row 151): the cell and the caption share the area the
   grid gives it, the caption below, above, or beside the photo. */
.printed-figure {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.printed-figure.is-below,
.printed-figure.is-above {
  flex-direction: column;
}
.printed-figure .printed-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}
/* The caption is set as the memory's story is (same type and ink), a little
   smaller, and never more than two lines: a longer one ends in an ellipsis. */
.printed-caption {
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Noto Sans",
    sans-serif;
  font-size: 12.8px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.printed-figure.is-below .printed-caption,
.printed-figure.is-above .printed-caption {
  flex: 0 0 auto;
}
.printed-figure.is-left .printed-caption,
.printed-figure.is-right .printed-caption {
  flex: 0 0 38%;
  align-self: center;
}
/* A single captioned photo keeps its own shape and the caption is added to it:
   the area takes the cell's height (at the width the photo has) and the caption. */
.printed-media.is-captioned {
  aspect-ratio: auto;
  max-height: none;
}
.printed-media.is-captioned .printed-collage {
  position: static;
  display: block;
}
.printed-media.is-captioned .printed-figure .printed-cell {
  flex: 0 0 auto;
  aspect-ratio: var(--printed-ratio, var(--printed-default));
  max-height: min(72vh, 680px);
}
.printed-media.is-captioned .printed-figure.is-left .printed-cell,
.printed-media.is-captioned .printed-figure.is-right .printed-cell {
  flex: 0 0 62%;
}
@media (max-width: 700px) {
  .printed-media.is-captioned .printed-figure .printed-cell {
    max-height: 64vh;
  }
}
.printed-cell:focus-visible {
  outline-offset: -4px;
}
/* The photo that is the frame of the memory's video plays it in its cell. */
.printed-cell.has-video {
  cursor: default;
}
.printed-cell-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgb(31 31 26 / 72%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.printed-cell-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}
.printed-cell.has-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1f1f1a;
}
.printed-media.is-drawing,
.printed-media.is-drawing .printed-cell {
  background: #fff;
}
/* A memory on facing pages: two pages side by side, a grid each, a gutter
   between them. */
.printed-media.is-spread {
  --printed-default: 8 / 3;
}
.printed-media.is-spread .printed-collage {
  width: calc(50% - 8px);
}
.printed-media.is-spread .printed-collage.is-right {
  left: auto;
}
.printed-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.printed-crop img {
  position: absolute;
  max-width: none;
  opacity: 0;
}
.printed-crop img.is-placed {
  opacity: 1;
}
.printed-filters {
  position: absolute;
  width: 0;
  height: 0;
}
.printed-media.is-video {
  background: #1f1f1a;
}
.printed-media.is-video .printed-cell {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: none;
}
.printed-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.printed-media.is-audio {
  aspect-ratio: auto;
  max-height: none;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 48px 28px;
  background: var(--sky);
}
.printed-audio-mark {
  font-size: 54px;
  line-height: 1;
  color: var(--green);
}
.printed-words {
  min-width: 0;
}
.printed-date {
  margin: 4px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.printed-slide .printed-title {
  font:
    600 clamp(24px, 2.6vw, 32px)/1.2 Manrope,
    system-ui,
    sans-serif;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.printed-fields {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.printed-fields dt {
  color: var(--muted);
}
.printed-fields dd {
  margin: 0;
}
.printed-by {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
/* Memory words are as written, in any script: the site's language subsets
   don't cover them, so they use the system's fonts after Inter. */
.printed-slide .printed-body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Noto Sans",
    sans-serif;
}
.printed-body p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.printed-slide.is-text .printed-words {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px #28282012;
}
/* Players read left to right in every language, as the time does. */
.printed-player {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 0 18px;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.printed-player.is-large {
  margin: 0;
}
.printed-play {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
}
.printed-play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  translate: 2px 0;
  width: 0;
  height: 0;
  border-block: 8px solid transparent;
  border-left: 13px solid #fff;
}
.printed-play.is-playing::before {
  translate: none;
  width: 12px;
  height: 14px;
  border: 0;
  border-inline: 4px solid #fff;
}
.printed-seek {
  flex: 1;
  min-width: 0;
  accent-color: var(--green);
}
.printed-time {
  flex: none;
  direction: ltr;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.printed-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}
.printed-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}
.printed-arrow:not(:disabled):hover {
  background: var(--sage);
}
.printed-arrow:disabled {
  opacity: 0.35;
}
[dir="rtl"] .printed-arrow svg {
  transform: scaleX(-1);
}
.printed-counter {
  min-width: 72px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.printed-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.printed-state {
  max-width: 640px;
  padding: 30px 0 10px;
}
.printed-state h1 {
  font:
    600 clamp(30px, 4vw, 44px)/1.15 Manrope,
    sans-serif;
  letter-spacing: -1px;
  margin: 10px 0 18px;
}
.printed-state h1:focus {
  outline: none;
}
.printed-state p {
  color: #57554d;
  font-size: 15px;
}
/* The password page before a printed copy or a whole book. */
.printed-password .eyebrow {
  color: var(--muted);
  margin: 0;
}
.printed-password h1 {
  overflow-wrap: anywhere;
}
.printed-password-form {
  margin: 26px 0 18px;
}
.printed-password-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.printed-password-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.printed-password-row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #8a877d;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.printed-password-row input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.printed-password-row input[aria-invalid="true"] {
  border-color: #a3352a;
}
.printed-password-form .printed-password-error {
  min-height: 1.65em;
  margin: 8px 0 0;
  color: #a3352a;
  font-weight: 600;
}
.printed-top .printed-book-title:focus {
  outline: none;
}
.printed-app {
  margin-top: 56px;
  padding: 34px 24px 28px;
  border-radius: 12px;
  background: #f6e6d1;
  text-align: center;
}
.printed-app h2 {
  font:
    600 26px/1.2 Manrope,
    sans-serif;
  margin: 0 0 8px;
}
.printed-app > p:not(.coming-soon) {
  max-width: 520px;
  margin: 0 auto;
  color: #57554d;
  font-size: 14px;
}
.printed-app .store-badges {
  margin: 20px 0 12px;
}
.printed-report {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-underline-offset: 3px;
}
.printed-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.printed-dialog::backdrop {
  background: #141410e6;
}
.printed-dialog-frame {
  position: absolute;
  inset: 64px 16px 16px;
  direction: ltr;
}
.printed-dialog-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff1f;
  color: #fff;
}
.printed-dialog-close:focus-visible {
  outline-color: #fff;
}
@media (max-width: 700px) {
  .printed-main {
    padding-top: 6px;
  }
  .printed-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .printed-media {
    --printed-default: 1 / 1;
    max-height: 64vh;
  }
  .printed-media.is-spread {
    --printed-default: 2 / 1;
  }
  .printed-skeleton {
    aspect-ratio: 1 / 1;
  }
  .printed-slide.is-text .printed-words {
    padding: 26px 22px;
  }
  .printed-media.is-audio {
    padding: 36px 18px;
  }
  .printed-app {
    margin-top: 40px;
  }
}
/* The launch strip above the landing page's header (launch.js): the running
   offer in one sentence, its spots left and one dot per spot. It takes no room
   until there is an offer, then opens. */
.launch-strip {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  background: var(--sage);
  font-size: 13px;
  line-height: 1.4;
  transition:
    grid-template-rows 0.3s ease,
    opacity 0.3s ease;
}
.launch-strip.is-shown {
  grid-template-rows: 1fr;
  opacity: 1;
}
.launch-strip-row {
  display: block;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
}
a.launch-strip-row:focus-visible {
  outline-offset: -3px;
}
.launch-strip-in {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 11px 13px;
}
.launch-strip-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.launch-strip-words {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
}
.launch-sentence {
  font-size: 14px;
  font-weight: 600;
}
.launch-status {
  font-weight: 700;
}
.launch-today {
  font-weight: 600;
  color: var(--green);
}
.launch-status,
.launch-today,
.launch-big,
.launch-counters b {
  font-variant-numeric: tabular-nums;
}
.launch-strip .button {
  flex: none;
  font-size: 12px;
  padding: 8px 16px;
  min-height: 44px;
  white-space: nowrap;
}
/* One dot per spot; --dots, --dots-50 and --dots-25 are the dots in a row
   when all, at most 50 or at most 25 share one (launch.js). */
.launch-dots {
  --row: var(--dots);
  display: grid;
  grid-template-columns: repeat(var(--row), minmax(0, 7px));
  gap: 4px 2px;
  justify-content: space-between;
}
.launch-dots.is-few {
  gap: 4px;
  justify-content: start;
}
.launch-dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #315b4b33;
}
.launch-dots i.is-taken {
  background: var(--green);
}
/* The small green dot of something live: a count for today, the pill's
   "Launch" while an offer runs. Its ring breathes; still under reduced
   motion. */
.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: launch-ring 2.4s ease-out infinite;
}
@keyframes launch-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.site-pill > nav a .live-dot {
  margin-inline-start: 7px;
}
/* The launch page (launch.js): the hint line, the newest reveals
   (reveals.js), the offers as the live strip and the counters, all in the
   first view of a desktop; or, by the switch, the shelf, whose lead and the
   counters share a row above it, the fan below. The action (the store
   badges and the waiting list, #download) comes last: the pill's "Get the
   app" leads there. A grid, so the lead and the counters can share a row. */
.launch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "hint hint"
    "reveals reveals"
    "offers offers"
    "counters counters"
    "action action";
  align-items: start;
  row-gap: 24px;
  text-align: center;
}
.launch-page.is-shelf {
  grid-template-areas:
    "hint views"
    "lead counters"
    "offers offers"
    "reveals reveals"
    "action action";
  text-align: start;
}
.launch-hint {
  grid-area: hint;
  font:
    600 34px/1.2 Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  max-width: 900px;
  margin: 26px auto 2px;
}
.is-shelf .launch-hint {
  max-width: none;
  margin-inline: 0;
}
/* (In the strip view it shares the "All reveals" line, at the end of the
   reveals' room.) */
.launch-page:not(.is-shelf) .launch-views {
  grid-area: reveals;
  align-self: end;
  position: relative;
  z-index: 1;
}
.is-shelf .launch-views {
  margin: 24px 0 0 24px;
}
html[dir="rtl"] .is-shelf .launch-views {
  margin: 24px 24px 0 0;
}
/* The switch between the two views: an icon and its name each, the chosen
   one on sage. Above the strip it switches; on the shelf, beside the hint. */
.launch-views {
  grid-area: views;
  justify-self: end;
  align-self: start;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.launch-views button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 10px;
  color: var(--ink);
  font:
    600 14px/1 Manrope,
    sans-serif;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.launch-views button[aria-pressed="true"] {
  background: var(--sage);
}
.launch-views button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.launch-views svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The shelf's lead: the first offer's sentence, its spots left as one big
   number, today's count; before it opens, the "Opens with the app" chip. */
.launch-lead {
  grid-area: lead;
  align-self: center;
}
.launch-lead,
.launch-offers,
.launch-counters {
  opacity: 0;
  transition: opacity 0.28s ease;
}
.launch-lead.is-shown,
.launch-offers.is-shown,
.launch-counters.is-shown {
  opacity: 1;
}
.launch-lead h2,
.launch-live-offer h2,
.launch-row h2 {
  font:
    600 22px/1.25 Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin: 0;
}
.launch-page:not(.is-open) .launch-lead h2 {
  font-size: 30px;
  letter-spacing: -0.9px;
}
.launch-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 14px 0 8px;
  font:
    600 24px/1.1 Manrope,
    sans-serif;
  color: var(--muted);
}
.launch-big b {
  font-size: 112px;
  line-height: 0.92;
  letter-spacing: -5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
html[lang^="ar"] .launch-big b {
  font-family:
    Manrope, "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
}
.launch-today {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.launch-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  padding: 6px 13px;
  border: 1px solid #315b4b40;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.launch-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
}
/* The action: the store badges and the waiting list, as on the landing
   page, after the counters. */
.launch-action {
  grid-area: action;
  margin: 16px 0 24px;
  text-align: center;
}
.launch-action .store-badges {
  margin: 0 0 12px;
}
.launch-action .waitlist-form {
  margin-top: 16px;
}
.launch-action .coming-soon + .waitlist-form {
  margin-top: 22px;
}
/* The newest reveals, or the demo books until there are any: the fan is
   the hero. */
.launch-reveals {
  grid-area: reveals;
}
.reveals-all {
  display: block;
  margin-top: 4px;
  padding-block: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
/* Until there are reveals it holds its room, unseen, so nothing moves. */
.reveals-all:not(.is-shown) {
  visibility: hidden;
}
.reveals-all:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* The offers: the live strip, each offer's sentence, dots and counts... */
.launch-offers {
  grid-area: offers;
}
.launch-page:not(.is-shelf) .launch-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: start;
}
/* (The shapes' leaving copy lies inside the frame, without one of its own.) */
.launch-page:not(.is-shelf) .launch-offers:not(.is-leaving) {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.launch-live-offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 24px 18px;
}
.launch-live-offer.is-current {
  background: #edf1e5;
}
.launch-live-offer + .launch-live-offer {
  border-inline-start: 1px solid var(--line);
}
.launch-live-offer h2 {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}
.launch-live-offer .launch-dots {
  --row: var(--dots-50);
}
.launch-live-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  font-size: 14px;
}
.launch-dots i {
  position: relative;
}
.launch-dots i.is-last {
  box-shadow: 0 0 0 2px #315b4b2e;
}
.launch-dots i.is-last::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: launch-ring 2.4s ease-out infinite;
}
.launch-dots i.is-new {
  animation: launch-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.3);
}
@keyframes launch-pop {
  from {
    transform: scale(0);
  }
}
.is-intro .launch-dots i.is-taken:not(.is-new) {
  animation: launch-fill 0.25s calc(var(--i) * 9ms) both;
}
@keyframes launch-fill {
  from {
    background: #315b4b33;
    transform: scale(0.6);
  }
}
/* ...or the shelf: one slot per spot, a spine where it is taken. The slots
   stand --per to a shelf (50; 25 on a phone and on the small shelf), each
   drawing its piece of the board. The spine's height and colour are the
   slot's own (--h, --c, launch.js). */
.is-shelf .launch-offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.launch-shelf {
  --per: 50;
  --sh: 92px;
  --board: 7px;
  --gap: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: var(--gap);
  padding-bottom: 3px;
  /* The boards, one under each row of slots, with a lip. */
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--sh) - var(--board)),
    #e6d7bd calc(var(--sh) - var(--board)) var(--sh),
    #d9c7a6 var(--sh) calc(var(--sh) + 3px),
    transparent calc(var(--sh) + 3px) calc(var(--sh) + var(--gap))
  );
}
.launch-shelf i {
  position: relative;
  flex: 0 0 calc(100% / var(--per));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--sh);
  padding-bottom: var(--board);
}
.launch-shelf i::before {
  content: "";
  width: 78%;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  outline: 1px dashed #315b4b47;
  outline-offset: -1px;
}
.launch-shelf i.is-taken::before {
  outline: 0;
  background:
    linear-gradient(#ffffff59, #ffffff59) 0 14% / 100% 2px no-repeat,
    linear-gradient(#ffffff59, #ffffff59) 0 84% / 100% 2px no-repeat,
    var(--c);
  box-shadow: inset -2px 0 0 #00000014;
}
/* The newest spine wears a green cap. */
.launch-shelf i.is-last::before {
  box-shadow:
    inset -2px 0 0 #00000014,
    0 -6px 0 -3px var(--green);
}
/* A spot taken while the page is open drops onto the shelf; on first view
   the taken ones rise in order. */
.launch-shelf i.is-new::before {
  animation: launch-drop 0.8s cubic-bezier(0.2, 0.8, 0.3, 1.15);
}
@keyframes launch-drop {
  0% {
    transform: translateY(-46px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: none;
  }
}
.is-intro .launch-shelf i.is-taken:not(.is-new)::before {
  animation: launch-rise 0.35s calc(var(--i) * 9ms) both;
}
@keyframes launch-rise {
  from {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0;
  }
}
.launch-shelf.is-small {
  --per: 25;
  --sh: 38px;
  --board: 4px;
  width: 300px;
  padding-bottom: 0;
  background-size: 100% var(--sh);
}
/* Each other offer as a row with its small shelf. */
.launch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.launch-row h2 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.launch-row .launch-status {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}
.launch-row .launch-status.is-upcoming {
  font-weight: 600;
  color: var(--muted);
}
.launch-row a {
  padding-block: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-underline-offset: 5px;
  white-space: nowrap;
}
.launch-counters {
  grid-area: counters;
  display: flex;
  justify-content: center;
  gap: 110px;
  margin: 16px 0 0;
  text-align: center;
}
/* On the shelf they stand beside the lead, at the end of its row. */
.is-shelf .launch-counters {
  align-self: center;
  justify-self: end;
  gap: 56px;
  margin: 0;
  padding-inline-start: 24px;
}
.launch-counters p {
  margin: 0;
}
.launch-counters b {
  display: block;
  font:
    600 56px/1 Manrope,
    sans-serif;
  letter-spacing: -2.5px;
}
html[lang^="ar"] .launch-counters b {
  font-family:
    Manrope, "WondernotWebArabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
}
.launch-counters span {
  font-size: 13px;
  color: var(--muted);
}
/* A short window: the hint smaller and wider (one line in most
   languages), and the counters close under the strip, so the first view
   keeps them. */
@media (max-height: 920px) and (min-width: 701px) {
  .launch-hint {
    font-size: 28px;
    letter-spacing: -0.8px;
    max-width: none;
    margin-top: 16px;
  }
  .is-shelf .launch-views {
    margin-top: 12px;
  }
  .launch-counters {
    margin-top: 0;
  }
}
/* Less room: the hint smaller. */
@media (max-width: 1100px) {
  .launch-hint {
    font-size: 28px;
    letter-spacing: -0.8px;
    max-width: none;
  }
}
/* A narrow tablet: the shelf's counters on a row of their own under the
   lead, which keeps the width for its big number. */
@media (max-width: 1000px) and (min-width: 701px) {
  .launch-page.is-shelf {
    grid-template-areas:
      "hint views"
      "lead lead"
      "counters counters"
      "offers offers"
      "reveals reveals"
      "action action";
  }
  .is-shelf .launch-counters {
    justify-self: start;
    padding-inline-start: 0;
  }
}
/* The shapes shown while the offers load, sized as what replaces them. */
.launch-bone {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #efe8da 30%, #f8f2e7 50%, #efe8da 70%);
  background-size: 300% 100%;
  animation: printed-shimmer 1.4s linear infinite;
}
.launch-bone.is-title {
  height: 65px;
}
.launch-lead .launch-bone.is-title {
  height: 28px;
}
.launch-bone.is-big {
  width: 260px;
  height: 103px;
  margin: 14px 0 8px;
}
.launch-bone.is-today {
  width: 120px;
  height: 25px;
}
.launch-live-offer .launch-bone.is-title {
  height: 20px;
}
.launch-row .launch-bone.is-title {
  height: 22px;
}
.launch-bone.is-status {
  width: 72px;
  height: 23px;
}
.launch-bone.is-number {
  width: 120px;
  height: 56px;
}
.launch-bone.is-label {
  width: 120px;
  height: 13px;
  margin-block: 4px;
}
@media (max-width: 700px) {
  .launch-strip-in {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .launch-dots {
    --row: var(--dots-50);
    grid-template-columns: repeat(var(--row), minmax(0, 1fr));
  }
  .launch-dots.is-few {
    grid-template-columns: repeat(var(--row), minmax(0, 8px));
  }
  /* One column: the switch under the fan (above the strip it switches), or
     under the hint on the shelf; the counters after the offers in both. */
  .launch-page,
  .launch-page.is-shelf {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hint"
      "reveals"
      "views"
      "offers"
      "counters"
      "action";
    row-gap: 18px;
  }
  .launch-page.is-shelf {
    grid-template-areas:
      "hint"
      "views"
      "lead"
      "offers"
      "counters"
      "reveals"
      "action";
  }
  .launch-hint {
    font-size: 25px;
    letter-spacing: -0.7px;
    margin-top: 14px;
  }
  .launch-page:not(.is-shelf) .launch-hint {
    text-align: center;
  }
  .launch-page .launch-views,
  .launch-page:not(.is-shelf) .launch-views {
    grid-area: views;
    align-self: start;
    margin: 0;
  }
  .is-shelf .launch-counters {
    justify-self: center;
    gap: 44px;
    padding: 0;
  }
  .launch-lead h2 {
    font-size: 18px;
  }
  .launch-page:not(.is-open) .launch-lead h2 {
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  .launch-big {
    gap: 4px 10px;
    margin: 10px 0 6px;
    font-size: 19px;
  }
  .launch-big b {
    font-size: 72px;
    letter-spacing: -3px;
  }
  .launch-lead .launch-bone.is-title {
    height: 45px;
  }
  .launch-bone.is-today {
    height: 26px;
  }
  .launch-bone.is-big {
    width: 190px;
    height: 66px;
    margin: 10px 0 6px;
  }
  .launch-live-offer .launch-bone.is-title {
    height: 39px;
  }
  .launch-page:not(.is-shelf) .launch-offers {
    grid-template-columns: 1fr;
  }
  .launch-live-offer {
    gap: 8px;
    padding: 12px 16px 14px;
  }
  .launch-live-offer + .launch-live-offer {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .launch-live-offer .launch-dots {
    --row: var(--dots-25);
    grid-template-columns: repeat(var(--row), minmax(0, 9px));
    gap: 4px;
  }
  .launch-shelf {
    --per: 25;
    --sh: 56px;
    --board: 5px;
    --gap: 12px;
  }
  .launch-shelf.is-small {
    --sh: 38px;
    --board: 4px;
    width: 100%;
  }
  .launch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 18px;
  }
  .launch-row h2 {
    grid-column: 1 / -1;
    font-size: 15px;
  }
  .launch-row .launch-shelf {
    grid-column: 1 / -1;
  }
  .launch-counters {
    gap: 44px;
    margin: 14px 0 20px;
  }
  .launch-counters b {
    font-size: 42px;
  }
  .launch-bone.is-number {
    width: 90px;
    height: 42px;
  }
}
/* Book reveals (reveals.js): the gallery and upload form on /reveals/, and
   the newest four on /launch/. */
.reveals-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
/* The gallery's heading and "Upload yours": the button drops under a heading
   too long to share its line, so the room around them is the row's. */
#reveals-gallery .reveals-head {
  margin: 26px 0 34px;
}
#reveals-gallery h1 {
  margin: 0;
}
.reveals-head h1:focus,
.reveal-upload h1:focus {
  outline: none;
}
.launch-reveals .reveals-head {
  align-items: baseline;
  margin-bottom: 20px;
}
.reveals-head h2 {
  font:
    600 27px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  margin: 0;
}
.reveals-head h2 + a {
  /* A 44 px target on the heading's line. */
  padding-block: 12px;
  margin-block: -12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  text-decoration: none;
}
.reveals-head h2 + a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reveals-head .button {
  flex: none;
}
#reveals-grid:not(.launch-reveals *) {
  opacity: 0;
  transition: opacity 0.28s ease;
}
#reveals-grid.is-shown {
  opacity: 1;
}
.reveals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
/* /launch/: the newest seven in a fan (fan.js); the centre one plays. With
   reduced motion they are a plain row, as the demo books are. */
.launch-reveals .reveals-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.launch-reveals .reveals-grid.book-fan {
  display: flex;
}
.launch-reveals .fan {
  --cw: 176px;
  --step: 140px;
  --fh: 380px;
}
.launch-reveals .fan.is-fanned {
  --cw: 176px;
  overflow: clip;
}
/* The demo books, larger than the posters, so the fan keeps its height when
   the reveals take their place. */
.launch-reveals .fan.book-fan {
  --cw: 210px;
  --step: 160px;
}
.fan.is-fanned .reveal-name {
  text-align: center;
}
.reveal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.reveal-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
button.reveal-poster {
  background: var(--sage);
  cursor: pointer;
}
.reveal-poster img,
video.reveal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
video.reveal-poster {
  background: #1d1d1b;
  object-fit: contain;
}
.reveal-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px #3735291f;
}
.reveal-play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--green);
  margin-left: 4px;
}
.reveal-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 21px;
  min-height: 21px;
  overflow-wrap: anywhere;
}
/* The shapes shown while the reveals load. */
.launch-bone.reveal-name {
  width: 38%;
  height: 12px;
  min-height: 0;
  border-radius: 4px;
  margin-block: 5px 4px;
}
/* The upload form: one column, as wide as a phone's. */
.reveal-upload {
  max-width: 480px;
  margin-inline: auto;
}
.reveal-upload h1 {
  text-align: center;
  margin-bottom: 26px;
}
.reveal-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reveal-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 16px;
  border: 1.5px dashed #8a877d;
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.reveal-drop .button {
  cursor: pointer;
}
.reveal-drop input:focus-visible + .button,
.reveal-fields > input:focus-visible,
.reveal-check input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.reveal-file-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.reveal-file-name:empty {
  display: none;
}
.reveal-fields > input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #8a877d;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  /* Below 16px, iOS Safari zooms the page when the field is focused. */
  font-size: 16px;
}
.reveal-fields [aria-invalid="true"] {
  border-color: #a3352a;
}
.reveal-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.reveal-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}
.reveal-check input[aria-invalid="true"] {
  outline: 2px solid #a3352a;
  outline-offset: 2px;
}
.reveal-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.reveal-file span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.reveal-fields progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  background: #315b4b26;
  overflow: hidden;
}
.reveal-fields progress::-webkit-progress-bar {
  background: transparent;
}
.reveal-fields progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 8px;
}
.reveal-fields progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 8px;
}
.reveal-sent {
  text-align: center;
  padding-block: 66px 30px;
}
.reveal-sent h1 {
  font:
    600 27px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  margin: 0 0 10px;
}
.reveal-sent p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .reveals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* The shapes of one screen of the gallery. */
  #reveals-gallery .reveal:has(.launch-bone):nth-child(n + 5) {
    display: none;
  }
  /* /launch/: one row to swipe through, or the fan across the screen. */
  .launch-reveals .reveals-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    overflow-x: auto;
    margin-inline: -18px;
    padding-inline: 18px;
    scrollbar-width: none;
  }
  .launch-reveals .fan {
    --cw: 130px;
    --step: 82px;
    --fh: 300px;
  }
  .launch-reveals .fan.is-fanned {
    --cw: 130px;
  }
  .launch-reveals .fan.book-fan {
    --cw: 150px;
  }
  #reveals-gallery .reveals-head {
    margin: 14px 0 24px;
  }
  .launch-reveals .reveals-head {
    margin-bottom: 14px;
  }
  .reveals-head h2 {
    font-size: 22px;
  }
  .reveal-upload h1 {
    margin-bottom: 22px;
  }
}
/* A window too short for the fan's full size (a phone on its side). */
@media (max-height: 500px) and (min-width: 701px) {
  .fan {
    --step: 110px;
    --fh: 340px;
  }
  .fan.is-fanned {
    --cw: 150px;
  }
}
/* /launch/'s fan takes the height the window leaves it, so the hint, the
   fan, the strip and the counters share the first view: three sizes down
   from the full one, each with its posters and books in proportion (plain
   lengths, as fan.js reads --step). */
@media (max-height: 920px) and (min-width: 701px) {
  .launch-reveals .fan,
  .launch-reveals .fan.is-fanned {
    --cw: 146px;
    --step: 117px;
    --fh: 320px;
  }
  .launch-reveals .fan.book-fan {
    --cw: 165px;
    --step: 125px;
  }
}
@media (max-height: 800px) and (min-width: 701px) {
  .launch-reveals .fan,
  .launch-reveals .fan.is-fanned {
    --cw: 107px;
    --step: 86px;
    --fh: 250px;
  }
  .launch-reveals .fan.book-fan {
    --cw: 112px;
    --step: 85px;
  }
}
/* The library (library.js): the featured books as a larger row, then the
   shelf, whose board runs under each row of covers. */
.library-books {
  position: relative;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.library-books.is-shown {
  opacity: 1;
}
/* The books arrive over the shapes: the shapes stay where they stood, out of
   the layout, and fade out as the books fade in. */
.library-books.is-arriving .library-bones {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
  animation: library-fade 0.28s ease reverse both;
}
.library-books.is-arriving > :not(.library-bones) {
  animation: library-fade 0.28s ease both;
}
@keyframes library-fade {
  from {
    opacity: 0;
  }
}
/* The same on /launch/ and /reveals/ (launch.js, reveals.js): the shapes
   leave in a copy of their block laid over it. */
.is-arriving:not(.library-books) {
  position: relative;
}
.is-arriving > .is-leaving {
  position: absolute;
  inset: 0 0 auto;
  /* Over a grid (the live strip) it is laid over the first row, as wide. */
  grid-row: 1;
  grid-column: 1 / -1;
  margin: 0;
  pointer-events: none;
  animation: library-fade 0.28s ease reverse both;
}
.is-arriving:not(.library-books) > :not(.is-leaving) {
  animation: library-fade 0.28s ease both;
}
/* Moved into the copy, a shape's shimmer would start over as it leaves: it
   stands still while it fades. */
.is-leaving .launch-bone {
  animation: none;
}
.library-featured,
.library-shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.library-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.library-shelf {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px 22px;
  padding-inline: 26px;
}
.library-book a {
  display: block;
  text-decoration: none;
}
.library-book a:hover b {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* A cover as the landing page's shelf draws a book (.shelf-book). */
.library-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px 9px 9px 3px;
  overflow: hidden;
  transform: none;
}
[dir="rtl"] .library-cover {
  border-radius: 9px 3px 3px 9px;
}
.library-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-cover .shelf-title {
  margin: 0;
  max-height: 100%;
  overflow: hidden;
}
.library-featured .shelf-title {
  font-size: 34px;
}
.library-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.library-featured .library-words {
  margin-top: 12px;
}
.library-words b {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.library-featured .library-words b {
  font-size: 15px;
}
.library-words span {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* The board: a piece under each cover, joined across the gaps and carried to
   the row's ends. */
.library-shelf .library-words::before {
  content: "";
  height: 12px;
  margin: 14px -11px 12px;
  background: #e4d6bd;
}
.library-shelf .library-book:last-child .library-words::before {
  border-end-end-radius: 12px;
}
/* The shapes shown while the books load. */
.library-words .launch-bone {
  width: 60%;
  height: 12px;
  border-radius: 4px;
  margin-block: 3px 19px;
}
@media (min-width: 701px) {
  .library-shelf .library-book:nth-child(6n + 1) .library-words::before {
    margin-inline-start: -26px;
    border-end-start-radius: 12px;
  }
  .library-shelf .library-book:nth-child(6n) .library-words::before {
    margin-inline-end: -26px;
    border-end-end-radius: 12px;
  }
}
@media (max-width: 700px) {
  .library-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 36px;
  }
  .library-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
    padding-inline: 10px;
  }
  .library-featured .shelf-title {
    font-size: 24px;
  }
  .library-shelf .shelf-title {
    font-size: 15px;
  }
  .library-words b {
    font-size: 12px;
  }
  .library-featured .library-words b {
    font-size: 13px;
  }
  .library-words span {
    font-size: 11px;
  }
  .library-shelf .library-words::before {
    margin-inline: -6px;
  }
  .library-shelf .library-book:nth-child(3n + 1) .library-words::before {
    margin-inline-start: -10px;
    border-end-start-radius: 12px;
  }
  .library-shelf .library-book:nth-child(3n) .library-words::before {
    margin-inline-end: -10px;
    border-end-end-radius: 12px;
  }
  /* The shapes of one row. */
  .library-bones .library-book:nth-child(n + 4) {
    display: none;
  }
}
/* A public book's page (/l/…, printed-copy.js): "Report" sits at the end of
   the header. */
.site-header .printed-report {
  margin-top: 0;
  font-size: 13px;
  text-underline-offset: 4px;
}
.site-header .language-menu:has(+ .printed-report) {
  margin-inline-start: auto;
}
/* The drawings of three feature panels (the layout editor, covers and
   illustrations, offline and backup), from the demo book's own photos and
   words. Each sits in a box (.feature-art) and scales with it, so a smaller
   window gets a smaller drawing, never a cut one. Only transforms and
   opacity move, except the layout editor's photo, which grows so the words
   beside it reflow; site.js pauses it while it is off screen. Under reduced
   motion everything rests at its middle. */
.feature-art {
  height: clamp(300px, 100svh - 240px, 560px);
  container-type: size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}
.art {
  position: relative;
  container-type: inline-size;
  width: min(100cqw, 100cqh * var(--r));
  aspect-ratio: var(--r);
}
.art img {
  max-width: none;
}
.art p {
  margin: 0;
  max-width: none;
}
.art-shadow {
  box-shadow:
    0 14px 28px #4235221f,
    0 2px 4px #42352212;
}
.feature-art.is-paused * {
  animation-play-state: paused;
}
/* The layout editor: page 2 of the demo book with its photo selected and a
   style bar over its words. */
.art-layout {
  --r: 1.2;
}
.art-page {
  position: absolute;
  inset-inline-start: 4%;
  top: 17cqi;
  width: 90%;
  aspect-ratio: 1.414;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.4cqi;
  padding: 3.4cqi 3.8cqi;
  background: var(--surface);
  border: 1px solid #e7dfd0;
  border-radius: 3px;
  transform: rotate(-1.5deg);
}
.art-page-top,
.art-page-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2cqi;
  line-height: 1.3;
  white-space: nowrap;
}
.art-page-top {
  font-size: 1.3cqi;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6d695e;
}
.art-page-bottom {
  font-size: 1.2cqi;
  color: #6d695e;
}
.art-page-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 3.2cqi;
  padding: 1cqi;
}
.art-photo {
  position: relative;
  flex: none;
  width: 38%;
  animation: art-grow 11s ease-in-out infinite;
}
.art-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 2px;
}
.art-photo::before {
  content: "";
  position: absolute;
  inset: -0.7cqi;
  border: 2px solid var(--green);
  border-radius: 3px;
}
.art-handle {
  position: absolute;
  width: 1.7cqi;
  height: 1.7cqi;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 2px;
}
.art-handle:nth-of-type(-n + 2) {
  top: -1.5cqi;
}
.art-handle:nth-of-type(n + 3) {
  bottom: -1.5cqi;
}
.art-handle:nth-of-type(odd) {
  left: -1.5cqi;
}
.art-handle:nth-of-type(even) {
  right: -1.5cqi;
}
.art-pointer {
  position: absolute;
  inset-inline-start: calc(100% + 0.1cqi);
  top: calc(100% + 0.1cqi);
  width: 3.6cqi;
  height: auto;
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1.5px #0003);
}
[dir="rtl"] .art-pointer {
  transform: scaleX(-1);
}
@keyframes art-grow {
  0%,
  28%,
  100% {
    width: 33%;
  }
  50%,
  78% {
    width: 43%;
  }
}
.art-words {
  flex: 1;
  min-width: 0;
  padding: 1.6cqi 2cqi;
  border-radius: 4px;
  background: #fbeedd;
  outline: 1.5px dashed #315b4b77;
  outline-offset: 0.7cqi;
}
.art-layout .art-title {
  font-size: 5cqi;
  line-height: 1.05;
  color: var(--green);
  margin: 0 0 1.6cqi;
}
.art-layout .art-words p {
  font-size: 1.95cqi;
  line-height: 1.55;
  color: #4f4c44;
  margin: 0 0 1cqi;
}
.art-layout .art-words p.art-quote {
  font-size: 2.7cqi;
  line-height: 1.2;
  color: var(--ink);
  margin: 1.6cqi 0 0.4cqi;
}
.art-bar {
  position: absolute;
  z-index: 3;
  inset-inline-end: 3%;
  top: 8cqi;
  display: flex;
  align-items: center;
  gap: 1.1cqi;
  padding: 1.1cqi;
  background: var(--surface);
  border-radius: 1.8cqi;
  transform: rotate(1.5deg);
}
.art-chip {
  height: 5.6cqi;
  min-width: 5.6cqi;
  padding: 0 1.3cqi;
  border-radius: 1.1cqi;
  display: grid;
  place-items: center;
  background: #f6f1e6;
  font-size: 2.3cqi;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.art-chip.art-type {
  font-size: 3.2cqi;
  font-weight: 400;
}
/* The size, in the page's digits. */
.art-size {
  counter-reset: art-size 18;
}
.art-size::before {
  content: counter(art-size);
}
html[lang^="ar"] .art-size::before {
  content: counter(art-size, arabic-indic);
}
.art-sep {
  width: 1px;
  height: 3.6cqi;
  margin-inline: 0.3cqi;
  background: var(--line);
}
.art-swatch {
  width: 3.2cqi;
  height: 3.2cqi;
  border-radius: 50%;
  background: var(--swatch);
}
.art-swatch.is-on {
  box-shadow:
    0 0 0 0.5cqi var(--surface),
    0 0 0 0.85cqi var(--swatch);
}
.art-ink {
  --swatch: var(--ink);
}
.art-green {
  --swatch: var(--green);
}
.art-rust {
  --swatch: #ac633b;
}
.art-backdrop {
  width: 3.6cqi;
  height: 3.6cqi;
  border-radius: 0.8cqi;
  background: #fbeedd;
  border: 1px solid #e6d2b6;
  box-shadow:
    0 0 0 0.5cqi #f6f1e6,
    0 0 0 0.85cqi var(--green);
}
/* Covers and illustrations: the puddle photo in front, its storybook
   illustration sliding out from behind it, and the book with the photo on
   its cover. The photo never moves. */
.art-covers {
  --r: 1.4;
}
.art-card {
  position: absolute;
  padding: 1.3cqi 1.3cqi 4.4cqi;
  background: var(--surface);
  border-radius: 3px;
}
.art-card img,
.art-book-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.art-card img {
  aspect-ratio: 3 / 4;
  object-position: 50% 35%;
  border-radius: 1px;
}
.art-original {
  z-index: 2;
  inset-inline-start: 3%;
  top: 21cqi;
  width: 27cqi;
  transform: rotate(-4deg);
}
.art-illustration {
  z-index: 1;
  inset-inline-start: 24%;
  top: 15cqi;
  width: 27cqi;
  transform: rotate(5deg);
  animation: art-slide 10s ease-in-out infinite;
}
@keyframes art-slide {
  0%,
  12%,
  100% {
    transform: translate(-60%, 12%) rotate(-4deg);
    opacity: 0.4;
  }
  30%,
  86% {
    transform: rotate(5deg);
    opacity: 1;
  }
}
[dir="rtl"] .art-original {
  transform: rotate(4deg);
}
[dir="rtl"] .art-illustration {
  transform: rotate(-5deg);
  animation-name: art-slide-rtl;
}
@keyframes art-slide-rtl {
  0%,
  12%,
  100% {
    transform: translate(60%, 12%) rotate(4deg);
    opacity: 0.4;
  }
  30%,
  86% {
    transform: rotate(-5deg);
    opacity: 1;
  }
}
.art-arc {
  position: absolute;
  z-index: 3;
  inset-inline-start: 13%;
  top: 5cqi;
  width: 26%;
  height: 10cqi;
}
.art-arc svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #315b4bb3;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
}
.art-arc .art-arc-head {
  stroke-dasharray: none;
}
[dir="rtl"] .art-arc svg {
  transform: scaleX(-1);
}
.art-spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6.4cqi;
  height: 6.4cqi;
  margin: -3.4cqi 0 0 -3.2cqi;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--green);
  font-size: 3.4cqi;
  font-weight: 600;
  line-height: 1;
  animation: art-twinkle 3.6s ease-in-out infinite;
}
@keyframes art-twinkle {
  50% {
    transform: scale(1.12) rotate(18deg);
  }
}
.art-book {
  position: absolute;
  z-index: 4;
  inset-inline-start: 58%;
  top: 12cqi;
  width: 35cqi;
  aspect-ratio: 3 / 4;
  transform: rotate(2.5deg);
}
.art-book-pages {
  position: absolute;
  top: 1.4cqi;
  bottom: -1.2cqi;
  inset-inline-start: 1.4cqi;
  inset-inline-end: -1.2cqi;
  border-radius: 2px 6px 6px 2px;
  background: repeating-linear-gradient(90deg, #fbf7ee 0 2px, #e9e1d1 2px 3px);
}
.art-book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2cqi;
  padding: 3cqi 3cqi 2.8cqi 5cqi;
  border-radius: 3px 9px 9px 3px;
  background: #f1dcc0;
  box-shadow:
    inset 2.4cqi 0 0 #28282010,
    inset 2.8cqi 0 0 #ffffff40,
    0 1px 2px #42352218;
}
.art-book-cover img {
  flex: 1;
  min-height: 0;
  object-position: 50% 32%;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #4235221a;
}
.art-book-title {
  font-size: 4.2cqi;
  line-height: 1.02;
  color: var(--ink);
}
[dir="rtl"] .art-book {
  transform: rotate(-2.5deg);
}
[dir="rtl"] .art-book-pages {
  border-radius: 6px 2px 2px 6px;
  background: repeating-linear-gradient(270deg, #fbf7ee 0 2px, #e9e1d1 2px 3px);
}
[dir="rtl"] .art-book-cover {
  padding: 3cqi 5cqi 2.8cqi 3cqi;
  border-radius: 9px 3px 3px 9px;
  box-shadow:
    inset -2.4cqi 0 0 #28282010,
    inset -2.8cqi 0 0 #ffffff40,
    0 1px 2px #42352218;
}
html[lang^="ar"] .art-book-title {
  font-size: 3.4cqi;
  line-height: 1.35;
}
/* Offline, backup and export: the book's memories, newest first, each with
   where it is (on this phone, syncing, synced), and the two files the app
   writes. Measured in --u, 1/440 of its width (1/360 on a phone), so it
   scales as one drawing; its height follows its rows. */
.art-home {
  --r: 0.98;
  --u: calc(100cqi / 440);
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
}
.art-list {
  padding: calc(6 * var(--u)) calc(4 * var(--u)) calc(8 * var(--u));
  background: var(--surface);
  border-radius: calc(14 * var(--u));
  transform: rotate(-1.2deg);
}
.art-list-title {
  padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u));
  font-size: calc(22 * var(--u));
  line-height: 1.15;
}
.art-row {
  display: grid;
  grid-template-columns: calc(54 * var(--u)) minmax(0, 1fr) auto;
  gap: calc(14 * var(--u));
  align-items: center;
  padding: calc(11 * var(--u)) calc(16 * var(--u));
  border-top: 1px solid #efe9de;
}
.art-row img {
  width: calc(54 * var(--u));
  height: calc(54 * var(--u));
  border-radius: calc(9 * var(--u));
  object-fit: cover;
}
.art .art-row-title,
.art .art-row-by,
.art .art-file-name,
.art .art-file-ext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art .art-row-title {
  font-size: calc(14 * var(--u));
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.art .art-row-by {
  font-size: calc(12 * var(--u));
  line-height: 1.4;
  color: var(--muted);
}
.art-progress {
  height: calc(3 * var(--u));
  margin-top: calc(7 * var(--u));
  border-radius: calc(3 * var(--u));
  background: #ece5d6;
  overflow: hidden;
}
.art-progress div {
  height: 100%;
  border-radius: inherit;
  background: #7fa6c2;
  transform-origin: left;
  transform: scaleX(0.62);
  animation: art-drift 7s ease-in-out infinite alternate;
}
[dir="rtl"] .art-progress div {
  transform-origin: right;
}
@keyframes art-drift {
  from {
    transform: scaleX(0.38);
  }
  to {
    transform: scaleX(0.86);
  }
}
.art-status {
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--status-bg);
}
.art-status svg {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  fill: none;
  stroke: var(--status);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-local {
  --status-bg: #f3e8d6;
  --status: #8a6a3e;
}
.art-syncing {
  --status-bg: var(--sky);
  --status: #3b6684;
}
.art-syncing svg {
  animation: art-spin 3.2s linear infinite;
}
@keyframes art-spin {
  to {
    transform: rotate(360deg);
  }
}
.art-synced {
  --status-bg: var(--sage);
  --status: var(--green);
}
.art-files {
  display: flex;
  gap: calc(12 * var(--u));
  padding-inline: calc(8 * var(--u));
  transform: rotate(1deg);
}
.art-file {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  padding: calc(10 * var(--u));
  padding-inline-end: calc(14 * var(--u));
  background: var(--surface);
  border-radius: calc(11 * var(--u));
}
.art-file > div:last-child {
  min-width: 0;
}
.art-doc {
  flex: none;
  width: calc(30 * var(--u));
  height: calc(38 * var(--u));
  display: grid;
  place-items: center;
  border-radius: calc(3 * var(--u)) calc(9 * var(--u)) calc(3 * var(--u))
    calc(3 * var(--u));
  background: linear-gradient(
    225deg,
    #e4dccb 0 calc(7 * var(--u)),
    #f6f1e6 calc(7 * var(--u))
  );
  color: var(--green);
  font-size: calc(14 * var(--u));
  line-height: 1;
}
.art .art-file-name {
  font-size: calc(12 * var(--u));
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.art .art-file-ext {
  font-size: calc(11 * var(--u));
  line-height: 1.4;
  color: var(--muted);
}
/* The file names are the app's own, written left to right in every language. */
[dir="rtl"] .art-file [dir="ltr"] {
  text-align: right;
}
/* A tall, narrow window: the words above, the drawing in all the room
   under them (without stacking, a fixed box). */
@media (min-width: 701px) and (max-aspect-ratio: 4/5) {
  .feature-art {
    height: min(66vw, 640px);
  }
  .art-home {
    width: min(100cqw, 100cqh * var(--r), 760px);
  }
}
@media (max-width: 700px) {
  .feature-art {
    height: min(118vw, 520px);
  }
  .art-layout {
    --r: 0.9;
  }
  .art-page {
    inset-inline-start: 3%;
    top: 16cqi;
    width: 94%;
    aspect-ratio: 1;
    padding: 5cqi 4.6cqi;
    gap: 3.4cqi;
  }
  .art-page-top {
    font-size: 2.3cqi;
  }
  .art-page-bottom {
    font-size: 2.2cqi;
  }
  .art-page-body {
    gap: 4.4cqi;
    padding: 1.6cqi;
  }
  .art-photo {
    width: 44%;
    animation-name: art-grow-phone;
  }
  .art-photo img {
    aspect-ratio: 2 / 3;
  }
  .art-photo::before {
    inset: -1.1cqi;
  }
  .art-handle {
    width: 2.8cqi;
    height: 2.8cqi;
  }
  .art-handle:nth-of-type(-n + 2) {
    top: -2.5cqi;
  }
  .art-handle:nth-of-type(n + 3) {
    bottom: -2.5cqi;
  }
  .art-handle:nth-of-type(odd) {
    left: -2.5cqi;
  }
  .art-handle:nth-of-type(even) {
    right: -2.5cqi;
  }
  .art-pointer {
    width: 6cqi;
  }
  .art-words {
    padding: 2.4cqi 2.8cqi;
    outline-offset: 1cqi;
  }
  .art-layout .art-title {
    font-size: 7.2cqi;
    margin-bottom: 2.4cqi;
  }
  .art-layout .art-words p {
    font-size: 3cqi;
  }
  .art-layout .art-words p:not(:first-of-type) {
    display: none;
  }
  .art-bar {
    top: 2cqi;
    inset-inline-end: 2%;
    gap: 1.8cqi;
    padding: 1.8cqi;
    border-radius: 3cqi;
  }
  .art-chip {
    height: 9.6cqi;
    min-width: 9.6cqi;
    padding: 0 2.2cqi;
    border-radius: 2cqi;
    font-size: 3.9cqi;
  }
  .art-chip.art-type {
    font-size: 5.4cqi;
  }
  .art-sep {
    height: 6cqi;
  }
  .art-swatch {
    width: 5.4cqi;
    height: 5.4cqi;
  }
  .art-swatch.is-on {
    box-shadow:
      0 0 0 0.8cqi var(--surface),
      0 0 0 1.4cqi var(--swatch);
  }
  .art-backdrop {
    width: 6cqi;
    height: 6cqi;
    border-radius: 1.3cqi;
    box-shadow:
      0 0 0 0.8cqi #f6f1e6,
      0 0 0 1.4cqi var(--green);
  }
  .art-covers {
    --r: 0.8;
  }
  .art-card {
    padding: 2cqi 2cqi 6.6cqi;
  }
  .art-original {
    top: 24cqi;
    width: 42cqi;
  }
  .art-illustration {
    inset-inline-start: 38%;
    width: 42cqi;
  }
  .art-arc {
    inset-inline-start: 16%;
    top: 4cqi;
    width: 40%;
    height: 15.4cqi;
  }
  .art-spark {
    width: 10cqi;
    height: 10cqi;
    margin: -5.2cqi 0 0 -5cqi;
    font-size: 5.2cqi;
  }
  .art-book {
    inset-inline-start: 46%;
    top: 64cqi;
    width: 46cqi;
  }
  .art-book-cover {
    padding: 4cqi 4cqi 3.6cqi 6.4cqi;
    gap: 2.8cqi;
  }
  [dir="rtl"] .art-book-cover {
    padding: 4cqi 6.4cqi 3.6cqi 4cqi;
  }
  .art-book-title {
    font-size: 5.8cqi;
  }
  html[lang^="ar"] .art-book-title {
    font-size: 4.6cqi;
  }
  .art-home {
    --r: 0.8;
    --u: calc(100cqi / 360);
  }
  .art-list {
    transform: rotate(-1deg);
  }
  .art-row {
    grid-template-columns: calc(50 * var(--u)) minmax(0, 1fr) auto;
    gap: calc(12 * var(--u));
    padding-inline: calc(12 * var(--u));
  }
  .art-row img {
    width: calc(50 * var(--u));
    height: calc(50 * var(--u));
  }
  .art-files {
    gap: calc(10 * var(--u));
    padding-inline: calc(2 * var(--u));
  }
  .art-file {
    gap: calc(9 * var(--u));
    padding-inline-end: calc(10 * var(--u));
  }
}
@keyframes art-grow-phone {
  0%,
  28%,
  100% {
    width: 38%;
  }
  50%,
  78% {
    width: 48%;
  }
}
/* Stacking: each panel sticks to the top and the next slides up over it,
   only where every panel is known to fit the window, and never under reduced
   motion. The heights are the tallest panel's measured need in the longest
   language (German), plus a margin for a phone's or tablet's browser bars:
   - a phone 375-700 px wide needs 711 px (the AI manager's panel): 760 px;
     360-374 px wide needs 745 px (the AI manager's panel): 800 px; narrower ones never
     stack (320 px needs 862 px);
   - a wider window with the words beside the visual needs 579 px: 640 px;
   - an upright tablet (words above the visual) needs 933 px: 1000 px.
   The one underneath shrinks 3 % and dims a little as the next covers it,
   driven by that next panel's entry into the window (scroll-driven
   animations; without them the panels still stack). A phone's or an upright
   tablet's panel is its words at the top and its drawing in all the room
   under them; on a phone the type and the AI chat tighten with the window's
   height so they fit. */
@media (prefers-reduced-motion: no-preference) and (min-width: 375px) and (max-width: 700px) and (min-height: 760px),
  (prefers-reduced-motion: no-preference) and (min-width: 360px) and (max-width: 374px) and (min-height: 800px),
  (prefers-reduced-motion: no-preference) and (min-width: 701px) and (min-aspect-ratio: 801/1000) and (min-height: 640px),
  (prefers-reduced-motion: no-preference) and (min-width: 701px) and (max-aspect-ratio: 4/5) and (min-height: 1000px) {
  .feature-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: var(--nav-room) 40px;
    transform-origin: 50% 0;
  }
  @supports (animation-timeline: view()) {
    .feature-stack {
      timeline-scope:
        --feature-2, --feature-3, --feature-4, --feature-5, --feature-6;
    }
    .feature-panel:nth-child(2) {
      view-timeline-name: --feature-2;
    }
    .feature-panel:nth-child(3) {
      view-timeline-name: --feature-3;
    }
    .feature-panel:nth-child(4) {
      view-timeline-name: --feature-4;
    }
    .feature-panel:nth-child(5) {
      view-timeline-name: --feature-5;
    }
    .feature-panel:nth-child(6) {
      view-timeline-name: --feature-6;
    }
    .feature-panel:nth-child(1) {
      --covered-by: --feature-2;
    }
    .feature-panel:nth-child(2) {
      --covered-by: --feature-3;
    }
    .feature-panel:nth-child(3) {
      --covered-by: --feature-4;
    }
    .feature-panel:nth-child(4) {
      --covered-by: --feature-5;
    }
    .feature-panel:nth-child(5) {
      --covered-by: --feature-6;
    }
    .feature-panel:not(:last-child) {
      animation: feature-covered linear both;
      animation-timeline: var(--covered-by);
      animation-range: entry 0% entry 100%;
    }
    .feature-panel:not(:last-child)::after {
      animation: feature-dimmed linear both;
      animation-timeline: var(--covered-by);
      animation-range: entry 0% entry 100%;
    }
  }
}
@keyframes feature-covered {
  to {
    transform: scale(0.97);
  }
}
@keyframes feature-dimmed {
  to {
    opacity: 0.05;
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 375px) and (max-width: 700px) and (min-height: 760px),
  (prefers-reduced-motion: no-preference) and (min-width: 360px) and (max-width: 374px) and (min-height: 800px),
  (prefers-reduced-motion: no-preference) and (min-width: 701px) and (max-aspect-ratio: 4/5) and (min-height: 1000px) {
  .feature-panel {
    align-items: stretch;
  }
  .feature-panel-in {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .feature-art,
  #print .print-visual {
    flex: 1 1 0;
    height: auto;
    min-height: 220px;
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 375px) and (max-width: 700px) and (min-height: 760px),
  (prefers-reduced-motion: no-preference) and (min-width: 360px) and (max-width: 374px) and (min-height: 800px) {
  .feature-panel {
    padding-block: 80px 26px;
  }
  .feature-panel-in {
    gap: clamp(12px, 2svh, 20px);
  }
  .feature-symbol {
    font-size: clamp(26px, 3.6svh, 34px);
    margin-bottom: clamp(10px, 2svh, 19px);
  }
  .feature-panel h3 {
    font-size: clamp(23px, 3.1svh, 27px);
    margin-block: clamp(8px, 1.6svh, 15px);
  }
  .feature-panel p {
    font-size: clamp(13px, 1.65svh, 14px);
    line-height: 1.55;
  }
  .ai-conversation {
    padding-block: 4px;
  }
  .user-bubble {
    margin-bottom: 10px;
  }
  .chat-preview {
    margin-top: 10px;
    padding: 10px;
  }
  .chat-preview > i {
    height: 40px;
  }
}
