@font-face {
  font-family: BookDisplay;
  src: url("../assets/fonts/book-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: BookText;
  src: url("../assets/fonts/book-text.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: BookHand;
  src: url("../assets/fonts/book-hand.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fbf5e9;
  --paper-dark: #f4ebdb;
  --ink: #493c35;
  --muted: #78685d;
  --rose: #875360;
  --rose-soft: #d9a6ac;
  --line: #d9cdb9;
  --green: #737b63;
  --body: BookText, Georgia, "Times New Roman", serif;
  --heading: BookDisplay, Georgia, "Times New Roman", serif;
  --hand: BookHand, "Segoe Print", cursive;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ink);
  background: #e9e2d5;
  line-height: 1.75;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 50% 15%, #f6f0e6 0, transparent 68%), #e9e2d5;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: var(--rose);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
button {
  background: none;
  border: 0;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 5px;
  border-radius: 2px;
}
h1:focus,
h2:focus {
  outline: none;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
p {
  margin: 0 0 1.25em;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}
h1 {
  font-size: clamp(42px, 4.3vw, 64px);
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h2 {
  font-size: 32px;
  text-wrap: balance;
}
h3 {
  font-size: 24px;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
svg {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  transform: translateY(-180%);
  background: var(--paper);
  padding: 8px 15px;
  z-index: 40;
}
.skip-link:focus {
  transform: none;
}
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 8px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-name {
  font-family: var(--heading);
  font-size: 26px;
  letter-spacing: 0.035em;
  text-decoration: none;
  color: var(--ink);
}
.book-name span {
  font-size: 17px;
  color: var(--rose);
  padding-left: 8px;
}
.masthead-note {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--muted);
}
.book {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  background: var(--paper);
  border: 1px solid #d6c9b4;
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    0 2px 0 #e5dac8,
    0 5px 0 -1px #f9f2e5,
    0 6px 0 #d7cbb8,
    0 24px 55px #5745311c,
    3px 3px 9px #493c3514;
}
.book::after {
  content: "";
  position: absolute;
  inset: 5px 5px -5px;
  z-index: -1;
  border: 1px solid #cbbda7;
  border-radius: 4px;
}
.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 690px;
  position: relative;
  isolation: isolate;
}
.sheet {
  min-width: 0;
  padding: 90px 54px 46px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.77' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23795b3b' opacity='.032' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.left-sheet {
  border-radius: 3px 0 0 0;
  background-color: #faf3e6;
  box-shadow: inset -13px 0 19px -14px #63503b50;
}
.right-sheet {
  border-radius: 0 7px 0 0;
  box-shadow: inset 13px 0 23px -17px #63503b6b;
}
.spread::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    #a9947260 7%,
    #a9947255 94%,
    transparent
  );
  pointer-events: none;
}
.left-content {
  position: sticky;
  top: 38px;
}
.bookmark {
  position: absolute;
  top: -9px;
  left: 45px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 64px;
  padding: 0 10px 0 0;
}
.ribbon {
  width: 31px;
  height: 71px;
  padding-top: 15px;
  background: repeating-linear-gradient(90deg, #dda5ac 0 1px, #e5b4b9 1px 3px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
  color: #78454e;
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 3px 0 0 #ffffff20;
  transition: height 180ms;
}
.bookmark:hover .ribbon,
.bookmark:focus-visible .ribbon {
  height: 77px;
}
.bookmark-label {
  font-family: var(--heading);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.045em;
}
.chapter-eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  margin-bottom: 25px;
  line-height: 1.6;
}
.chapter-dot {
  width: 5px;
  height: 5px;
  background: var(--rose);
  border-radius: 50%;
  flex: none;
}
.prose {
  margin-top: 29px;
  font-size: 18px;
  line-height: 1.9;
}
.prose p:last-child {
  margin-bottom: 0;
}
.chapter-hello h1 {
  font-size: 83px;
  line-height: 1.08;
}
.greeting p:first-child {
  font-family: var(--heading);
  font-size: 27px;
  line-height: 1.5;
  margin-bottom: 21px;
}
.greeting p:first-child::first-letter {
  font-size: 48px;
  float: left;
  line-height: 0.9;
  margin: 7px 4px 0 0;
  color: var(--rose);
}
.greeting p:last-child {
  font-size: 16px;
  color: var(--muted);
  margin-top: 26px;
}
.handwritten {
  font-family: var(--hand);
  font-size: 25px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--rose);
}
.chapter-hello .right-sheet {
  padding-top: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.photo-preface {
  max-width: 300px;
  text-align: center;
  margin: 0 0 34px;
  transform: rotate(-3deg);
  font-size: 23px;
}
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 13px 15px;
  text-align: center;
  background: #fffdf7;
  border: 1px solid #ded4c3;
  box-shadow:
    0 6px 17px #4b382320,
    1px 2px 3px #604f3010;
  transform: rotate(-1.5deg);
  transition:
    transform 200ms,
    box-shadow 200ms;
  min-width: 0;
  isolation: isolate;
}
.photo-card:hover {
  transform: rotate(0);
  box-shadow: 0 9px 23px #4b382327;
}
.photo-card:active {
  transform: rotate(0) scale(0.99);
}
.cover-photo {
  max-width: 350px;
}
.tape {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 50%;
  width: 80px;
  height: 25px;
  transform: translateX(-50%) rotate(2deg);
  background: repeating-linear-gradient(
    90deg,
    #dca7ad70,
    #deb0b776 2px,
    #dca7ad70 3px
  );
  border-left: 1px dashed #dab0b4;
  border-right: 1px dashed #dab0b4;
  pointer-events: none;
}
.media-visual {
  width: 100%;
  aspect-ratio: var(--ratio, 1.3333);
  background: #eee7da;
  overflow: hidden;
  position: relative;
  border: 1px solid #dfd5c3;
}
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 40% 30%, #f8f2e6, #ece3d2);
  color: #958478;
}
.placeholder .sketch {
  width: 100%;
  max-height: 100%;
  opacity: 0.85;
}
.sketch {
  width: 100%;
  height: auto;
}
.photo-caption {
  display: block;
  font-family: var(--hand);
  font-size: 25px;
  color: var(--rose);
  line-height: 1.3;
  padding-top: 14px;
}
.photo-hint {
  display: block;
  font-family: var(--heading);
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.03em;
}
.photo-afterword {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 310px;
  margin-top: 34px;
  text-align: center;
}
.photo-afterword .sketch {
  width: 43px;
  height: 44px;
  flex: none;
  transform: rotate(-14deg);
  color: var(--rose);
}
.photo-afterword span {
  color: var(--muted);
  font-size: 21px;
}
.margin-note {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 310px;
}
.heart-button {
  width: 44px;
  min-height: 44px;
  font-size: 33px;
  line-height: 1;
  color: var(--rose);
  flex: none;
}
.secret-note {
  font-size: 22px;
  margin: 3px 0 0;
  animation: appear 0.2s ease;
}
.page-nav {
  position: relative;
  padding: 18px 39px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #d9cdb980;
  font-family: var(--heading);
  font-size: 19px;
  touch-action: pan-y;
}
.page-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.page-next {
  justify-self: end;
}
.page-count {
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--muted);
  white-space: nowrap;
}
.outside-note {
  text-align: center;
  padding: 25px 20px 32px;
  font-family: var(--hand);
  font-size: 22px;
  color: #89766c;
}
.outside-note span {
  margin-left: 14px;
  color: var(--rose);
}
.botanical {
  width: 190px;
  height: 190px;
  margin: 25px auto 20px;
  color: #93987f;
}
.botanical svg {
  height: 100%;
}
.rei-shortcut {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 35px 0 0;
  padding: 0;
  color: var(--rose);
  min-height: 50px;
  font-family: var(--hand);
  font-size: 22px;
}
.rei-shortcut .sketch {
  width: 65px;
  height: 54px;
}
.text-button,
.text-link {
  font-family: var(--heading);
  font-size: 18px;
  color: var(--rose);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: #87536060;
  text-underline-offset: 5px;
}
.text-button:hover,
.text-link:hover {
  text-decoration-color: var(--rose);
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 1px solid #bfa38f;
  border-radius: 2px;
  padding: 9px 17px;
  font-family: var(--heading);
  font-size: 20px;
  color: var(--rose);
  text-decoration: none;
  background: #fff8ed60;
}
.outline-button:hover {
  background: #eadacd50;
}
.gallery {
  width: 100%;
  min-width: 0;
}
.gallery-stage {
  padding: 10px 5px 0;
  touch-action: pan-y;
  min-width: 0;
}
.gallery-stage .media-visual {
  aspect-ratio: 1/1;
}
.gallery-stage .media-visual img {
  object-fit: contain;
}
.gallery-stage .photo-card {
  max-width: 390px;
  margin: auto;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 19px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 25px;
  color: var(--rose);
  line-height: 1;
}
.icon-button:hover {
  background: #e8dacc66;
}
.counter {
  font-family: var(--heading);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 55px;
  text-align: center;
}
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.thumbnail {
  padding: 3px;
  width: 62px;
  height: 57px;
  background: #f1e8d9;
  border: 1px solid var(--line);
  color: #8d7b6e;
  transition: transform 0.2s;
}
.thumbnail svg {
  width: 100%;
  height: 100%;
}
.thumbnail[aria-pressed="true"] {
  outline: 1px solid var(--rose);
  outline-offset: 3px;
  transform: rotate(-3deg);
  color: var(--rose);
}
.group-nav {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.group-jump {
  display: grid;
  grid-template-columns: 24px 1fr 15px;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1.35;
  min-height: 56px;
}
.group-number {
  font-size: 13px;
  color: var(--rose);
  letter-spacing: 0.03em;
}
.group-jump > span:last-child {
  font-size: 17px;
  color: var(--rose);
}
.group-jump:hover {
  color: var(--rose);
}
.side-note {
  font-size: 23px;
  margin: 30px 0 0;
}
.chapter-questions .right-sheet {
  padding-left: 43px;
  padding-right: 43px;
}
.search-label {
  display: block;
  font-family: var(--heading);
  font-size: 21px;
  margin-bottom: 10px;
}
.search-input {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #a99480;
  background: #f1e8d94d;
  min-height: 47px;
}
.search-input input {
  border: 0;
  background: none;
  font-family: var(--body);
  font-size: 16px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  min-height: 48px;
  appearance: none;
}
.search-input input::-webkit-search-cancel-button {
  display: none;
}
.search-input input::placeholder {
  color: #837467;
}
.clear-search {
  min-height: 44px;
  font-size: 13px;
  padding: 0 10px;
  color: var(--rose);
}
.search-count {
  font-family: var(--heading);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
  margin: 10px 0 28px;
  min-height: 22px;
}
.question-group {
  margin-top: 37px;
}
.question-group:first-child {
  margin-top: 0;
}
.question-group h2 {
  font-size: 28px;
  margin-bottom: 16px;
  scroll-margin-top: 30px;
}
.question-row {
  border-bottom: 1px solid #d8cab780;
}
.question-row h3 {
  font-size: 22px;
}
.question-toggle {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 17px;
  padding: 15px 0;
  min-height: 54px;
  width: 100%;
  text-align: left;
  font-family: var(--heading);
  font-size: 23px;
  line-height: 1.35;
  scroll-margin-top: 28px;
}
.question-toggle:hover {
  color: var(--rose);
}
.question-symbol {
  color: var(--rose);
  flex: none;
  font-family: var(--heading);
  font-size: 22px;
  transition: transform 180ms;
}
.question-toggle[aria-expanded="true"] .question-symbol {
  transform: rotate(45deg);
}
.question-toggle[aria-expanded="true"] {
  color: var(--rose);
}
.answer {
  padding: 2px 0 23px;
  overflow-wrap: anywhere;
}
.answer-text {
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}
.answer-text p:last-child {
  margin-bottom: 12px;
}
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.answer-actions .text-button,
.answer-actions .text-link {
  font-size: 16px;
  min-height: 44px;
}
.copy-feedback {
  display: block;
  font-family: var(--heading);
  font-size: 16px;
  color: var(--green);
}
.manual-copy textarea {
  width: 100%;
  resize: vertical;
  background: #fffcf4;
  border: 1px solid var(--line);
  font-size: 16px;
  padding: 10px;
  margin-top: 10px;
}
.rei-intro {
  margin: 21px 0 30px;
  font-size: 24px;
}
.pet-area {
  position: relative;
  padding: 8px 12px 0;
  max-width: 370px;
  margin: 0 auto;
}
.pet-area .photo-caption {
  display: none;
}
.pet-area .photo-hint {
  margin-top: 12px;
}
.rei-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}
.pet-button .sketch {
  width: 35px;
  height: 29px;
  color: var(--rose);
}
.pet-button {
  font-size: 19px;
  padding: 7px 13px;
}
.rei-actions .text-button {
  font-size: 17px;
}
.pet-status {
  display: block;
  font-family: var(--hand);
  font-size: 21px;
  text-align: center;
  color: var(--muted);
  min-height: 4.8em;
  line-height: 1.55;
  margin-top: 7px;
}
.paw-note {
  text-align: center;
  margin: 10px 0 0;
  font-size: 25px;
}
.audio-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}
.audio-status {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.poem {
  white-space: pre-wrap;
  font-size: 19px;
  line-height: 1.9;
  overflow-wrap: break-word;
}
.chapter-rei .right-sheet {
  padding-top: 99px;
}
.rei-extra {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.rei-extra h2 {
  margin-bottom: 30px;
}
.return-link {
  margin-top: 37px;
  text-align: left;
  justify-content: flex-start;
}
.pet-heart {
  position: absolute;
  z-index: 3;
  top: 40%;
  color: var(--rose);
  font-size: 25px;
  pointer-events: none;
  animation: heart-float 900ms ease-out forwards;
}
.drawings-grid {
  display: grid;
  gap: 38px;
  padding: 6px 8px;
}
.drawing-card {
  padding: 17px;
  transform: rotate(1deg);
  box-shadow: 0 3px 12px #4b382314;
}
.drawing-card:nth-child(2) {
  transform: rotate(-2deg);
}
.drawing-card .tape {
  background: #bcc1a458;
  border-color: #b4b9a6;
}
.drawing-card .placeholder {
  background: #f9f5eb;
}
.drawing-card .sketch {
  opacity: 0.55;
}
.drawing-card .media-visual {
  aspect-ratio: 1.5;
  border-color: transparent;
}
.drawing-card .photo-caption {
  font-size: 23px;
}
.closing-art {
  width: 270px;
  height: 220px;
  margin-top: 40px;
}
.closing-prose {
  margin-top: 47px;
}
.closing-prose p:last-child {
  color: var(--rose);
  font-family: var(--heading);
  font-size: 27px;
}
.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 35px;
}
.telegram-link {
  margin-top: 33px;
}
.data-message {
  font-size: 18px;
  line-height: 1.8;
  margin-top: 20px;
}
.resume {
  max-width: 1120px;
  margin: 0 auto 25px;
  padding: 15px 22px;
  background: #f8f0e2;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
  font-family: var(--heading);
  font-size: 18px;
}
.resume > span {
  margin-right: auto;
}
.resume .text-button {
  font-size: 17px;
}
.modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.modal {
  border: 1px solid #cfc0ab;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 90px #2d251f44;
  padding: 46px 44px 35px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.modal::backdrop {
  background: #302820a8;
  backdrop-filter: blur(4px);
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  z-index: 4;
  border: 0;
  font-family: var(--body);
  font-size: 27px;
  background: #fbf5e9e8;
}
.contents-modal {
  width: 590px;
}
.contents-modal h2 {
  font-size: 45px;
  margin: 14px 0 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contents-list {
  list-style: none;
  padding: 0;
  margin: 0 0 29px;
}
.contents-list a {
  display: grid;
  grid-template-columns: 32px 1fr 15px;
  gap: 14px;
  align-items: center;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--heading);
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  padding: 12px 0;
}
.contents-list a[aria-current="page"] {
  color: var(--rose);
}
.contents-number {
  font-size: 16px;
  color: var(--muted);
}
.contents-list a > span:last-child {
  color: var(--rose);
}
.contents-modal .handwritten {
  font-size: 22px;
  margin-bottom: 0;
}
.lightbox {
  width: min(1000px, calc(100% - 36px));
  padding: 52px 30px 18px;
  overflow: auto;
}
.lightbox-display {
  height: min(65dvh, 750px);
  touch-action: pan-y;
  display: grid;
  place-items: center;
  min-height: 120px;
}
.lightbox .full-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox img {
  object-fit: contain;
}
.lightbox .placeholder {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: var(--ratio);
  margin: auto;
}
.lightbox-caption {
  text-align: center;
  font-family: var(--hand);
  font-size: 25px;
  color: var(--rose);
  margin: 15px 0 0;
  line-height: 1.3;
}
.lightbox .gallery-controls {
  margin-top: 9px;
}
.turn-shadow {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 20%,
    #6e59422a 47%,
    #f9f0e2 51%,
    transparent 84%
  );
  transform-origin: center;
  perspective: 1200px;
}
.noscript {
  padding: 20px;
  text-align: center;
}
@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.6);
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -90px) scale(1.2);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 980px) {
  .chapter-rei .left-content {
    position: static;
  }
  .chapter-rei .left-sheet {
    align-self: stretch;
  }
  .chapter-photos .right-sheet,
  .chapter-drawings .right-sheet {
    padding-top: 95px;
  }
}
@media (max-width: 1180px) and (min-width: 980px) {
  .masthead,
  .book,
  .resume {
    margin-left: 28px;
    margin-right: 28px;
  }
  .sheet {
    padding-left: 39px;
    padding-right: 39px;
  }
  .chapter-questions .right-sheet {
    padding-left: 34px;
    padding-right: 34px;
  }
}
@media (max-width: 979px) {
  .masthead {
    max-width: 640px;
    padding: 22px 22px 24px;
  }
  .masthead-note {
    font-size: 20px;
  }
  .book {
    max-width: 640px;
    margin: 0 auto;
  }
  .spread {
    display: block;
    min-height: 0;
  }
  .spread::after {
    display: none;
  }
  .sheet {
    padding: 76px 48px 24px;
  }
  .left-sheet {
    box-shadow: inset 12px 0 23px -20px #63503b80;
    border-radius: 3px 7px 0 0;
    background-color: var(--paper);
  }
  .right-sheet {
    box-shadow: inset 12px 0 23px -20px #63503b80;
    padding-top: 20px;
    padding-bottom: 40px;
    border-radius: 0;
  }
  .left-content {
    position: static;
  }
  .bookmark {
    left: 39px;
  }
  .chapter-eyebrow {
    margin-bottom: 22px;
  }
  .chapter-hello h1 {
    font-size: 75px;
  }
  .chapter-hello .right-sheet {
    padding-top: 13px;
    padding-bottom: 35px;
  }
  .photo-preface {
    font-size: 23px;
    margin-bottom: 26px;
  }
  .cover-photo {
    max-width: 350px;
  }
  .photo-afterword {
    margin-top: 24px;
  }
  .greeting p:last-child {
    font-size: 17px;
  }
  .chapter-hello .margin-note {
    margin-top: 14px;
  }
  .chapter-hello .left-sheet {
    padding-bottom: 20px;
  }
  .botanical {
    width: 130px;
    height: 135px;
    margin: 10px auto;
  }
  .chapter-photos .botanical,
  .chapter-drawings .botanical {
    display: none;
  }
  .chapter-photos .handwritten,
  .chapter-drawings .handwritten {
    margin: 22px 0 0;
  }
  .rei-shortcut {
    margin-top: 23px;
  }
  .group-nav {
    margin-top: 22px;
  }
  .group-jump {
    padding: 12px 0;
  }
  .chapter-questions .right-sheet {
    padding: 12px 48px 40px;
  }
  .chapter-questions .side-note {
    margin-top: 22px;
  }
  .chapter-questions .rei-shortcut {
    margin-top: 12px;
  }
  .question-toggle {
    font-size: 24px;
  }
  .answer-text {
    font-size: 18px;
  }
  .question-group h2 {
    font-size: 31px;
  }
  .chapter-rei .right-sheet {
    padding-top: 20px;
  }
  .poem {
    font-size: 20px;
  }
  .pet-area {
    max-width: 370px;
  }
  .rei-intro {
    margin-top: 16px;
  }
  .chapter-rei h1 {
    max-width: 420px;
  }
  .drawings-grid {
    max-width: 440px;
    margin: auto;
    gap: 36px;
  }
  .closing-art {
    height: 170px;
    width: 230px;
    margin: 17px auto 4px;
  }
  .chapter-talk .left-content > .handwritten {
    margin-bottom: 0;
  }
  .closing-prose {
    margin-top: 0;
  }
  .resume {
    max-width: 640px;
    margin: 0 auto 22px;
    padding: 12px 20px;
  }
  .resume > span {
    width: 100%;
  }
  .gallery-stage .photo-card {
    max-width: 400px;
  }
  .page-nav {
    padding: 17px 38px;
  }
  .modal {
    padding: 52px 27px 27px;
  }
}
@media (max-width: 680px) {
  body {
    background: #eee6d8;
  }
  .book {
    margin: 0 12px;
  }
  .masthead {
    padding: 20px 25px 23px;
  }
  .masthead-note {
    font-size: 17px;
  }
  .book-name {
    font-size: 24px;
  }
  .sheet {
    padding-left: 29px;
    padding-right: 29px;
  }
  .bookmark {
    left: 28px;
  }
  .chapter-eyebrow {
    font-size: 10px;
    letter-spacing: 0.11em;
  }
  .chapter-hello h1 {
    font-size: 67px;
  }
  .greeting {
    margin-top: 24px;
  }
  .greeting p:first-child {
    font-size: 26px;
  }
  .prose {
    font-size: 18px;
    line-height: 1.85;
  }
  h1 {
    font-size: 43px;
  }
  .chapter-hello .right-sheet {
    padding-left: 34px;
    padding-right: 34px;
  }
  .photo-preface {
    font-size: 21px;
    max-width: 230px;
    margin-bottom: 25px;
  }
  .photo-card {
    padding: 11px 11px 12px;
  }
  .photo-caption {
    font-size: 24px;
  }
  .photo-afterword {
    max-width: 260px;
  }
  .photo-afterword span {
    font-size: 20px;
  }
  .page-nav {
    padding: 12px 22px 14px;
    gap: 10px;
    font-size: 18px;
  }
  .page-count {
    font-size: 20px;
    letter-spacing: 0.05em;
  }
  .chapter-questions .right-sheet {
    padding: 13px 29px 34px;
  }
  .group-jump {
    font-size: 21px;
  }
  .question-toggle {
    font-size: 24px;
  }
  .question-group h2 {
    font-size: 29px;
  }
  .answer-text {
    font-size: 18px;
  }
  .poem {
    font-size: 18px;
    line-height: 1.9;
  }
  .chapter-rei .right-sheet {
    padding-top: 19px;
  }
  .rei-actions {
    gap: 4px 10px;
  }
  .pet-button {
    font-size: 18px;
  }
  .pet-area {
    padding: 8px 4px 0;
  }
  .gallery-thumbnails {
    gap: 13px;
  }
  .gallery-controls {
    gap: 24px;
  }
  .thumbnail {
    width: 58px;
  }
  .drawings-grid {
    padding: 8px 2px;
  }
  .photo-hint {
    font-size: 14px;
  }
  .closing-links {
    gap: 9px 20px;
  }
  .resume {
    margin: 0 12px 23px;
    column-gap: 14px;
  }
  .resume .text-button {
    font-size: 16px;
  }
  .outside-note {
    font-size: 21px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .contents-modal {
    padding: 53px 25px 25px;
  }
  .contents-list a {
    font-size: 23px;
    grid-template-columns: 26px 1fr 12px;
    gap: 9px;
  }
  .lightbox {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 56px 12px 18px;
  }
  .lightbox-display {
    height: 60dvh;
  }
  .lightbox-caption {
    font-size: 23px;
  }
  .lightbox .full-image .placeholder {
    max-height: 100%;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: var(--ratio);
  }
  .lightbox .full-image {
    display: grid;
    place-items: center;
  }
  .lightbox .placeholder .sketch {
    max-height: 55dvh;
  }
}
@media (max-width: 360px) {
  .masthead {
    padding-left: 20px;
    padding-right: 20px;
  }
  .masthead-note {
    font-size: 15px;
    max-width: 125px;
    text-align: right;
  }
  .sheet {
    padding-left: 23px;
    padding-right: 23px;
  }
  .book {
    margin: 0 8px;
  }
  .chapter-hello .right-sheet {
    padding-left: 28px;
    padding-right: 28px;
  }
  .chapter-questions .right-sheet {
    padding-left: 23px;
    padding-right: 23px;
  }
  .chapter-eyebrow {
    font-size: 9px;
  }
  .bookmark {
    left: 22px;
  }
  h1 {
    font-size: 39px;
  }
  .chapter-hello h1 {
    font-size: 62px;
  }
  .greeting p:first-child {
    font-size: 24px;
  }
  .photo-caption {
    font-size: 22px;
  }
  .page-nav {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 17px;
    gap: 6px;
  }
  .page-count {
    font-size: 18px;
  }
  .poem {
    font-size: 18px;
  }
  .search-input input {
    font-size: 15px;
  }
  .clear-search {
    font-size: 12px;
    padding: 0 7px;
  }
  .question-toggle {
    font-size: 23px;
  }
  .contents-list a {
    font-size: 21px;
  }
  .pet-button {
    font-size: 17px;
  }
  .rei-intro {
    font-size: 23px;
  }
  .gallery-thumbnails {
    gap: 11px;
  }
}
.masthead-note,
.outside-note {
  color: #705e52;
}
.right-sheet > .rei-shortcut {
  margin: 35px auto 0;
}
@media (max-width: 680px) {
  .page-nav {
    grid-template-columns: minmax(45px, auto) minmax(40px, 1fr) auto;
    gap: 8px;
  }
  .page-nav a {
    white-space: nowrap;
  }
  .page-count {
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .turn-shadow,
  .pet-heart {
    display: none !important;
  }
  .photo-card:hover {
    transform: rotate(-1.5deg);
  }
}
