/* Journal layout, illustration placement and responsive behaviour. */

:root {
  --ink: #614474;
  --paper: #faf5e9;
  --soft: #9b839e;
  --highlight: #e5ccaa;
  --tape: #cdb5a8;
  --wash: #eee0cd;
  --cloth: #b9a5c3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0px;
  min-height: 100dvh;
  background: radial-gradient(at 15% 0px, rgb(232, 223, 237), transparent 60%), rgb(217, 205, 221);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  border: 0px;
  background: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.3;
  cursor: default;
}

button:focus-visible, a:focus-visible {
  outline: rgb(118, 84, 143) solid 2px;
  outline-offset: 4px;
}

a {
  color: inherit;
}

.journal-header {
  margin: auto;
  display: flex;
  align-items: center;
  height: 66px;
}

.dedication {
  font: 19px "Architects Daughter", cursive;
  transform: rotate(-4deg);
}

.book-title {
  font-size: 12px;
  letter-spacing: 1px;
}

.header-sun {
  border-radius: 50%;
}

.journal-shell {
  max-width: 1040px;
  padding: 0px 24px;
  margin: auto;
}

/* Month tabs and page navigation. */
.tabs {
  height: 42px;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 25px;
  align-items: end;
  position: relative;
  z-index: 3;
}

.tabs button {
  padding: 10px 15px 13px;
  background: rgb(240, 230, 212);
  border-radius: 6px 6px 0px 0px;
  font-size: 12px;
  transform: translateY(5px);
  transition: transform 0.2s;
  box-shadow: rgba(85, 65, 94, 0.03) 0px -2px 4px;
}

.tabs button:nth-child(2), .tabs button:nth-child(3), .tabs button:nth-child(4) {
  background: rgb(224, 231, 230);
}

.tabs button:nth-child(5), .tabs button:nth-child(6) {
  background: rgb(226, 231, 215);
}

.tabs button[aria-current="page"] {
  transform: translateY(0px);
  padding-bottom: 17px;
  background: var(--paper);
  font-weight: 500;
}

.book {
  height: calc(-166px + 100dvh);
  min-height: 580px;
  max-height: 780px;
  position: relative;
  border: 11px solid var(--cloth);
  border-radius: 7px 13px 13px 7px;
  background: var(--paper);
  box-shadow: rgba(73, 49, 75, 0.13) 0px 22px 50px, rgba(73, 49, 75, 0.145) 2px 4px 5px;
}

.book[data-season="winter"] {
  --highlight: #cedfe8;
  --tape: #bdcdd1;
  --wash: #e6ebed;
  --soft: #85969f;
}

.book[data-season="spring"] {
  --highlight: #dce3b8;
  --tape: #c8d0b0;
  --wash: #e7ead5;
  --soft: #8b9479;
}

.book::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 0h6M0 3h6M0 0v6M3 0v6' stroke='%23614474' stroke-opacity='.2' stroke-width='.5'/%3E%3C/svg%3E");
}

.page-stack {
  position: absolute;
  inset: 3px -5px -6px 5px;
  border-radius: 0px 6px 6px 0px;
  background: repeating-linear-gradient(rgb(248, 242, 231) 0px, rgb(248, 242, 231) 2px, rgb(215, 205, 189) 3px, rgb(250, 245, 233) 4px);
  z-index: -1;
  box-shadow: rgba(70, 49, 73, 0.19) 1px 2px 3px;
}

.paper {
  position: relative;
  height: 100%;
  background: radial-gradient(ellipse at 98% 0,var(--wash),transparent 45%),var(--paper);
  border-radius: 2px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(203, 184, 210) transparent;
  transform-origin: left center;
  isolation: isolate;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23785a64' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

.book.turning .paper {
  transform: rotateY(-9deg);
  opacity: 0.3;
}

.book.turning-back .paper {
  transform: rotateY(9deg);
  opacity: 0.3;
}

.page-curl {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: linear-gradient(135deg, transparent 48%, rgb(230, 221, 205) 50%, rgb(251, 247, 237) 80%);
  pointer-events: none;
  filter: drop-shadow(rgba(112, 84, 98, 0.094) -1px -1px 1px);
}

.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 4px;
  font-size: 13px;
}

.page-controls button {
  padding: 6px;
}

#page-number {
  font: 12px "Architects Daughter";
  color: rgb(113, 93, 123);
}

/* Calendar and letter layout. */
.spread {
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
}

.calendar-leaf {
  padding: 35px 27px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(120, 92, 108, 0.082);
  box-shadow: rgba(76, 49, 78, 0.5) 8px 0px 18px -18px;
}

.chapter {
  font: 11px "Architects Daughter";
  letter-spacing: 0.5px;
  color: var(--soft);
  margin: 0px 0px 6px;
}

.month-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
  width: fit-content;
}

h1 {
  font-size: 48px;
  font-weight: 400;
  margin: 0px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.month-heading::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -6px;
}

.year {
  font-size: 11px;
  letter-spacing: 2px;
  z-index: 1;
}

.verse {
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0px 0px;
  max-width: 350px;
  font-style: italic;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0px, 1fr));
  gap: 2px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.weekday {
  font-size: 10px;
  text-align: center;
  padding-bottom: 12px;
  color: rgb(141, 124, 145);
}

.day {
  height: 53px;
  font-size: 17px;
  position: relative;
  display: grid;
  place-items: center;
}

.day.past::before, .day.past::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.7px;
  background: rgb(162, 138, 180);
  border-radius: 60%;
  transform: rotate(48deg);
}

.day.past::after {
  transform: rotate(-43deg);
}

.day.today {
  border: 1px dashed rgb(154, 127, 174);
  border-radius: 48% 53% 45% 51%;
  background: rgba(212, 195, 227, 0.16);
}

.today::after {
  content: "today";
  font: 9px "Architects Daughter";
  position: absolute;
  bottom: 0px;
}

.day.marked::before {
  content: "×";
  font: 43px "Architects Daughter";
  color: rgb(155, 125, 176);
  position: absolute;
  animation: 0.5s ease 0s 1 normal both running ink;
}

.day:disabled {
  opacity: 1;
  color: inherit;
}

.calendar-caption {
  font: 14px "Architects Daughter";
  margin: 20px 0px 0px;
  transform: rotate(-2deg);
  color: rgb(142, 119, 155);
}

.monthly-count {
  font-size: 11px;
  margin-top: 5px;
  color: rgb(139, 120, 151);
}

.garden {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 240px;
  margin-top: auto;
  padding-top: 18px;
}

.bloom {
  width: 13px;
  height: 15px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%23a98ab6'%3E%3Cellipse cx='15' cy='9' rx='4' ry='7'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate(72 15 15)'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate(144 15 15)'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate(216 15 15)'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate(288 15 15)'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='3' fill='%23c9a65d'/%3E%3C/svg%3E") center center / contain no-repeat;
}

.bloom:nth-child(3n) {
  opacity: 0.6;
  transform: rotate(28deg);
}

.letter-leaf {
  padding: 45px 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.note {
  position: relative;
  z-index: 2;
  padding: 24px 20px 18px;
  transform: rotate(-3deg);
  width: min(100%, 290px);
  margin-top: 35px;
}

.note::before {
  content: "";
  position: absolute;
  width: 65px;
  height: 20px;
  top: -10px;
  left: 35%;
  background: var(--tape);
  opacity: 0.65;
  transform: rotate(5deg);
}

.note-text {
  font: 22px / 1.6 "Architects Daughter";
  margin: 0px;
}

.note-signature {
  font: 11px "Architects Daughter";
  color: rgb(155, 131, 158);
  display: block;
  margin-top: 15px;
}

.baymax {
  position: absolute;
  z-index: 2;
  transform: rotate(6deg);
  transition: transform 0.6s;
}

.reveal .baymax {
  transform: translateY(-9px) rotate(-2deg);
}

.margin-note {
  font: 14px "Architects Daughter";
  transform: rotate(4deg);
  align-self: flex-start;
  margin: 25px 0px 0px 12px;
  color: rgb(140, 120, 147);
}

.sunshine {
  position: absolute;
  border-radius: 50%;
}

.sunshine::after {
  content: "";
  position: absolute;
  border-radius: 22px;
  transition: transform 1.6s, opacity 1.6s;
}

.signoff {
  font: 16px "Architects Daughter";
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 22px 0px 0px;
}

.signoff small {
  display: block;
  font: 9px Fraunces;
  color: rgb(155, 131, 158);
}

/* Record sleeves, gramophone and music controls. */
.music-spread {
  height: 100%;
  position: relative;
  overflow: auto;
}

.music-spread h1 {
  font-size: 38px;
}

.gramophone {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(rgba(97, 68, 116, 0.063) 0px 4px 3px);
}

.sleeve-name {
  font-size: 11px;
  display: block;
}

.song-title {
  font-size: 21px;
  font-weight: 400;
  margin: 12px 0px 3px;
}

.artist {
  font: 12px "Architects Daughter";
  color: rgb(143, 121, 155);
  margin: 0px 0px 8px;
}

.music-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

#play {
  font: 16px "Architects Daughter";
  border-bottom: 1px solid rgb(177, 154, 201);
}

#status {
  font: 12px "Architects Daughter";
}

#youtube {
  border: 0px;
  display: none;
  margin: 12px auto 0px;
}

#youtube.active {
  display: block;
}

.music-sticker {
  width: 80px;
  object-fit: contain;
  bottom: 15px;
  left: 10px;
  transform: rotate(-10deg);
}

.record-count {
  font: 11px "Architects Daughter";
  color: rgb(143, 121, 155);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes ink {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

@media (min-width: 1300px) {
  .journal-header {
    height: 85px;
  }

  .tabs {
    height: 50px;
  }

  .book {
    height: calc(-210px + 100dvh);
  }

  .calendar-leaf {
    padding: 45px;
  }

  .day {
    height: 62px;
  }

  .calendar {
    margin-top: 38px;
  }

  h1 {
    font-size: 57px;
  }

}

@media (max-width: 650px) {
  .dedication {
    font-size: 17px;
  }

  .book-title {
    font-size: 9px;
    max-width: 120px;
    text-align: center;
    line-height: 1.5;
  }

  .journal-shell {
    padding: 0px 10px;
  }

  .tabs {
    height: 35px;
    gap: 3px;
    justify-content: center;
    padding: 0px 5px;
  }

  .tabs button {
    font-size: 10px;
    padding: 8px 10px 9px;
  }

  .tabs button[aria-current="page"] {
    padding-bottom: 12px;
  }

  .book {
    min-height: 570px;
    max-height: none;
    border-width: 7px;
  }

  .book::before {
    inset: -7px;
  }

  .spread {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto;
  }

  .calendar-leaf {
    padding: 22px 20px 0px;
    border-right: 0px;
    box-shadow: none;
  }

  .chapter {
    font-size: 10px;
  }

  h1 {
    font-size: 39px;
  }

  .year {
    font-size: 10px;
  }

  .verse {
    font-size: 10px;
    margin: 10px 0px 0px;
    max-width: 265px;
  }

  .calendar {
    gap: 1px;
  }

  .weekday {
    font-size: 9px;
    padding-bottom: 6px;
  }

  .day {
    font-size: 15px;
  }

  .today::after {
    font-size: 8px;
    bottom: -1px;
  }

  .day.past::before, .day.past::after {
    width: 23px;
  }

  .day.marked::before {
    font-size: 35px;
  }

  .calendar-caption {
    font-size: 12px;
    margin: 10px 0px 0px;
    display: inline-block;
  }

  .monthly-count {
    font-size: 9px;
    margin: 4px 0px 0px;
  }

  .garden {
    padding-top: 8px;
    max-width: 220px;
    gap: 1px;
  }

  .bloom {
    width: 10px;
    height: 12px;
  }

  .letter-leaf {
    padding: 14px 22px 20px;
    overflow: visible;
    min-height: 175px;
    flex: 1 1 0%;
    align-items: flex-start;
    justify-content: center;
  }

  .note {
    width: calc(100% - 44px);
    padding: 14px 17px 12px;
    margin-top: 8px;
    transform: rotate(-2deg);
    min-height: 75px;
  }

  .note-signature {
    margin-top: 6px;
  }

  .margin-note {
    font-size: 11px;
    margin: 12px 0px 0px 3px;
  }

  .signoff {
    font-size: 12px;
    margin: 10px 0px 0px;
    align-self: center;
  }

  .signoff small {
    display: none;
  }

  .page-controls {
    padding: 9px 1px;
    font-size: 11px;
  }

  .page-controls button {
    padding: 5px 3px;
  }

  #page-number {
    font-size: 10px;
  }

  .music-spread h1 {
    font-size: 31px;
  }

  .gramophone {
    height: 145px;
    max-width: 230px;
  }

  .sleeve-name {
    display: none;
  }

  .song-title {
    font-size: 21px;
  }

  .artist {
    font-size: 11px;
  }

  .music-sticker {
    width: 50px;
    left: 2px;
    bottom: 3px;
  }

  .record-count {
    margin: 8px 0px;
  }

  .chapter.music-chapter {
    margin-bottom: 8px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .book {
    min-height: 510px;
  }

  .verse {
    font-size: 9px;
  }

  .calendar-leaf {
    padding-top: 16px;
  }

  .gramophone {
    height: 108px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: auto ease 0s 1 normal none running none !important;
    transition: none !important;
  }

  .book.turning .paper, .book.turning-back .paper {
    transform: none;
  }

}

.devotional {
  width: 115px;
  height: 135px;
  object-fit: contain;
  align-self: flex-end;
  margin-top: 12px;
  transform: rotate(3deg);
}

@media (max-width: 650px) {
  .devotional {
    position: absolute;
    right: -3px;
    bottom: 3px;
    width: 75px;
    height: 90px;
    margin: 0px;
    z-index: 0;
  }

  .letter-leaf:has(.devotional) .note {
    width: calc(100% - 51px);
  }

}

.paper {
  overflow-x: hidden;
}

.legacy-peek {
  background: url("assets/illustrations.png") 50% 0px / 300% 200% no-repeat;
  clip-path: ellipse(46% 32% at 50% 52%);
  mix-blend-mode: multiply;
}

@media (max-width: 650px) {
  .legacy-peek {
    top: -48px;
  }

}

.spread {
  overflow: clip;
}

@media (max-height: 740px) and (max-width: 650px) {
  .letter-leaf {
    min-height: 120px;
    padding: 8px 22px 10px;
  }

  .note {
    padding: 11px 15px 9px;
    margin-top: 5px;
    min-height: 65px;
  }

  .note-signature {
    margin-top: 4px;
  }

  .margin-note {
    margin-top: 7px;
    font-size: 10px;
  }

  .signoff {
    margin-top: 6px;
  }

  .garden {
    padding-top: 5px;
  }

  .calendar-caption {
    margin-top: 6px;
  }

}

.book {
  perspective: 1800px;
  touch-action: pan-y;
  isolation: isolate;
}

.paper {
  transition: none !important;
  transform: none !important;
}

/* Lift the rotating sheet above the tabs during a turn. */
.book.is-turning {
  cursor: grabbing;
  z-index: 10;
}

/* Let projected page corners extend beyond the book boundary. */
.flip-stage {
  position: absolute;
  inset: 0px;
  z-index: 8;
  overflow: visible;
  pointer-events: none;
  perspective: 1800px;
  border-radius: 2px;
  --fold-shadow: 0;
  --fold-light: 0;
}

.flip-leaf {
  position: absolute;
  inset: 0px;
  transform-style: preserve-3d;
  transform-origin: 0px 50%;
  will-change: transform;
}

.flip-face {
  position: absolute;
  inset: 0px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
  overflow: hidden;
}

.flip-front::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(90deg,rgba(64,42,56,var(--fold-shadow)),transparent 40%,rgba(255,252,239,var(--fold-light)) 80%);
  pointer-events: none;
}

.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg,#ddd2bd55,transparent 35%),var(--paper);
  box-shadow: rgba(64, 42, 56, 0.25) 8px 0px 30px;
}

.flip-back::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(90deg,transparent,rgba(64,42,56,var(--fold-shadow)));
}

.flip-face > .paper {
  height: 100%;
  overflow: hidden;
}

.page-curl {
  width: 32px;
  height: 32px;
}

.page-controls button {
  color: rgb(97, 68, 116);
}

.page-controls button:disabled {
  opacity: 0.45;
}

.taped-piece {
  position: absolute;
  margin: 0px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(rgba(112, 88, 68, 0.082) 1px 3px 2px);
}

.mounted-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.botanical-piece {
  width: 160px;
  height: 170px;
  right: 18px;
  top: 20px;
  transform: rotate(9deg);
}

.washi {
  position: absolute;
  width: 64px;
  height: 20px;
  opacity: 0.83;
  background: repeating-linear-gradient(45deg, rgba(202, 184, 166, 0.314) 0px, rgba(202, 184, 166, 0.314) 2px, transparent 2px, transparent 6px), rgba(222, 202, 181, 0.85);
  clip-path: polygon(0px 5%, 4% 0px, 9% 9%, 15% 0px, 20% 7%, 28% 0px, 34% 7%, 42% 0px, 50% 8%, 58% 0px, 66% 6%, 75% 0px, 83% 8%, 92% 0px, 100% 5%, 97% 95%, 90% 100%, 82% 92%, 73% 100%, 65% 94%, 58% 100%, 50% 92%, 42% 100%, 34% 94%, 26% 100%, 18% 93%, 9% 100%, 0px 95%);
  box-shadow: rgba(88, 65, 36, 0.082) 0px 1px 1px;
}

.washi-one {
  left: 12px;
  top: 34px;
  transform: rotate(-28deg);
}

.washi-two {
  right: 10px;
  bottom: 24px;
  transform: rotate(-25deg);
}

[data-season="winter"] .washi {
  background: repeating-linear-gradient(90deg, rgba(180, 196, 203, 0.267) 0px, rgba(180, 196, 203, 0.267) 1px, transparent 1px, transparent 7px), rgba(208, 221, 224, 0.85);
}

[data-season="spring"] .washi {
  background: repeating-linear-gradient(45deg, rgba(179, 190, 161, 0.267) 0px, rgba(179, 190, 161, 0.267) 2px, transparent 2px, transparent 7px), rgba(215, 221, 198, 0.88);
}

.devotional-piece {
  box-shadow: rgba(97, 68, 116, 0.086) 1px 3px 5px;
}

.devotional-piece .washi-one {
  top: -8px;
  left: 7px;
  transform: rotate(-9deg);
}

.devotional-piece .washi-two {
  bottom: 0px;
  right: -6px;
  transform: rotate(-27deg);
  width: 45px;
}

.legacy-peek {
  filter: drop-shadow(rgba(97, 68, 116, 0.07) 0px 2px 1px);
}

@media (max-width: 650px) {
  .botanical-piece {
    top: auto;
    right: 10px;
    bottom: 5px;
    width: 105px;
    height: 110px;
    transform: rotate(9deg);
  }

  .botanical-piece .washi {
    width: 42px;
    height: 14px;
  }

  .botanical-piece .washi-one {
    top: 24px;
    left: 5px;
  }

  .devotional-piece .washi {
    width: 38px;
    height: 12px;
  }

  .devotional-piece .washi-one {
    top: -6px;
  }

  .devotional-piece .washi-two {
    width: 30px;
  }

  .letter-leaf:has(.devotional-piece) .botanical-piece {
    right: auto;
    left: -7px;
    width: 80px;
    height: 90px;
    bottom: 2px;
    opacity: 0.65;
  }

}

[hidden] {
  display: none !important;
}

.music-spread {
  padding: 30px 42px 24px;
  text-align: left;
  overflow-x: hidden;
}

.music-spread > .chapter, .music-spread > h1 {
  position: relative;
  z-index: 2;
  margin-left: 32px;
}

.music-spread > h1 {
  font-size: 38px;
}

.listening-room {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 330px;
  position: relative;
  z-index: 2;
}

.music-desk {
  height: 315px;
  position: relative;
  isolation: isolate;
}

.gramophone-object {
  display: grid;
  place-items: center;
  position: absolute;
  left: 0px;
  bottom: 25px;
  width: 215px;
  height: 260px;
}

/* The overlay uses the painting's own aspect ratio, so padding never shifts the spindle. */
.gramophone-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1312 / 1199;
  pointer-events: none;
}

.gramophone-art .gramophone {
  display: block;
}

.gramophone-spindle,
.gramophone-tonearm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
}

.gramophone-spindle {
  clip-path: polygon(48.75% 60.2%,49% 59.85%,49.7% 59.85%,50.1% 60.15%,50.1% 61.65%,49.7% 61.85%,48.75% 61.6%);
}

.gramophone-tonearm {
  z-index: 4;
  clip-path: polygon(61.28% 52.88%,59.45% 53.38%,57.93% 54.63%,57.09% 56.8%,57.32% 59.05%,58.38% 60.72%,58.92% 61.3%,58.61% 62.38%,57.92% 64.22%,58.38% 64.47%,59.53% 62.38%,60.21% 61.63%,61.97% 61.55%,63.72% 60.05%,64.48% 58.05%,64.56% 56.05%,63.26% 53.8%,62.12% 53.13%);
}

.gramophone-object .gramophone {
  width: 100%;
  height: 100%;
  max-height: none;
  filter: drop-shadow(rgba(97, 68, 116, 0.063) 2px 6px 3px);
}

.record-object {
  position: absolute;
  width: 156px;
  height: 156px;
  right: 55px;
  top: 68px;
  z-index: 3;
}

.album-front {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 0px;
  background: rgb(229, 214, 231);
  box-shadow: rgba(62, 46, 68, 0.22) 1px 4px 8px;
  border: 2px solid rgb(240, 231, 215);
  overflow: hidden;
}

.album-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.album-front::after {
  content: "";
  position: absolute;
  inset: 0px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: rgba(255, 255, 255, 0.2) 3px 0px 2px inset;
  pointer-events: none;
}

.album-front .sleeve-name {
  font: 16px "Architects Daughter";
  padding: 22px 10px;
  text-align: center;
}

.vinyl-record {
  position: absolute;
  left: var(--record-out,47%);
  top: 7%;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  padding: 0px;
  z-index: 1;
  box-shadow: rgba(60, 44, 66, 0.2) 3px 5px 9px;
  touch-action: none;
  cursor: ew-resize;
  background: rgb(41, 35, 45);
}

.record-grooves {
  display: block;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgb(48, 42, 52) 0px, rgb(48, 42, 52) 1px, rgb(72, 65, 76) 2px, rgb(44, 38, 48) 3px, rgb(60, 53, 65) 4px);
  border: 3px solid rgb(40, 34, 45);
}

.record-grooves::before {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  background: conic-gradient(transparent 0deg, rgba(255, 255, 255, 0.133) 35deg, transparent 70deg, transparent 180deg, rgba(255, 255, 255, 0.067) 220deg, transparent 250deg);
}

.record-centre {
  position: absolute;
  left: 34%;
  top: 34%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgb(172, 146, 184);
  border: 2px solid rgb(202, 185, 212);
  box-shadow: rgb(172, 146, 184) 0px 0px 0px 3px inset, rgb(214, 197, 223) 0px 0px 0px 4px inset;
}

.record-centre::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: calc(50% - 2.5px);
  top: calc(50% - 2.5px);
  background: rgb(33, 29, 38);
  border-radius: 50%;
}

.playing .record-grooves, .playing .record-centre {
  animation: 5s linear 0s infinite normal none running spin;
}

.desk-note {
  position: absolute;
  bottom: 0px;
  left: 28px;
  font: 14px "Architects Daughter";
  transform: rotate(-5deg);
  color: rgb(142, 119, 155);
}

.record-controls {
  position: relative;
  text-align: center;
  padding: 12px 0px;
}

.record-controls .song-title {
  font-size: 24px;
  font-weight: 400;
  margin: 4px 0px 8px;
}

.record-controls .artist {
  max-width: 300px;
  font: 12px / 1.5 "Architects Daughter";
  margin: 0px auto 12px;
  color: rgb(138, 118, 149);
}

.music-buttons {
  gap: 18px;
}

.music-buttons button {
  font-size: 27px;
  padding: 7px;
}

#play {
  font-size: 17px;
}

#status {
  font-size: 12px;
  margin: 8px 0px;
  min-height: 16px;
}

#youtube {
  width: 100%;
  max-width: 320px;
  height: 205px;
  margin-top: 10px;
}

.record-shelf-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 17px "Architects Daughter";
  margin: 12px 30px 0px;
}

.record-shelf-heading small {
  font-size: 11px;
  color: rgb(154, 131, 158);
}

.record-shelf {
  display: flex;
  gap: 0px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(196, 173, 199) transparent;
  position: relative;
  z-index: 3;
  margin: 0px 20px;
  padding: 6px 0px 10px;
  min-height: 118px;
}

.collection-card {
  display: block;
  flex: 0 0 auto;
  width: 76px;
  height: 94px;
  padding: 0px;
  margin: 8px 12px;
  position: relative;
  background: rgb(226, 212, 227);
  box-shadow: rgba(96, 68, 107, 0.125) 1px 3px 4px;
  text-align: left;
}

.collection-card img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.533);
}

.collection-card span {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 9px / 17px "Architects Daughter";
  background: rgb(255, 250, 240);
  padding: 1px 4px;
}

.collection-card.selected {
  outline: rgb(158, 123, 169) solid 2px;
  outline-offset: 3px;
}

.shelf-note {
  font: 12px "Architects Daughter";
  color: rgb(155, 131, 158);
  text-align: center;
  margin: 2px 0px 0px;
}

.music-sticker {
  position: absolute;
  display: block;
  margin: 0px;
  background-image: url("assets/music-stickers.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(rgba(97, 68, 116, 0.125) 1px 2px 1px);
  z-index: 4;
  pointer-events: auto;
}

.sticker-0 {
  width: 90px;
  height: 75px;
  right: 34px;
  top: 22px;
  background-position: 0px 0px;
}

.sticker-1 {
  width: 80px;
  height: 80px;
  right: 0px;
  top: 190px;
  background-position: 50% 0px;
}

.sticker-2 {
  width: 58px;
  height: 78px;
  left: 5px;
  top: 205px;
  background-position: 100% 0px;
}

.sticker-3 {
  width: 60px;
  height: 88px;
  left: 4px;
  top: 20px;
  background-position: 0px 100%;
}

.sticker-4 {
  width: 75px;
  height: 75px;
  right: 1px;
  bottom: 18px;
  background-position: 50% 100%;
}

.sticker-5 {
  width: 90px;
  height: 65px;
  left: 12px;
  bottom: 10px;
  background-position: 100% 100%;
}

[data-draggable] {
  touch-action: none;
  cursor: grab;
  translate: var(--drag-x,0px) var(--drag-y,0px);
  rotate: var(--tilt,0deg);
  will-change: translate;
}

.picked-up {
  cursor: grabbing !important;
  filter: drop-shadow(rgba(77, 53, 91, 0.19) 3px 9px 6px) !important;
  z-index: 50 !important;
}

.record-object::after {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
}

.record-object.picked-up .album-front {
  box-shadow: rgba(73, 51, 79, 0.208) 3px 10px 14px;
}

@media (max-width: 650px) {
  .music-spread {
    padding: 22px 20px 12px;
  }

  .music-spread > .chapter, .music-spread > h1 {
    margin-left: 15px;
  }

  .music-spread > .chapter {
    font-size: 10px;
    max-width: 240px;
  }

  .music-spread > h1 {
    font-size: 30px;
  }

  .listening-room {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-height: 0px;
  }

  .music-desk {
    height: 185px;
    width: 100%;
  }

  .gramophone-object {
    width: 165px;
    height: 185px;
    left: -1px;
    bottom: 0px;
  }

  .record-object {
    width: 112px;
    height: 112px;
    right: 42px;
    top: 42px;
  }

  .desk-note {
    bottom: 0px;
    left: 28px;
  }

  .record-controls {
    padding: 8px 0px 0px;
    width: 100%;
  }

  .record-controls .song-title {
    font-size: 21px;
    margin: 2px 0px 3px;
  }

  .record-controls .artist {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .music-buttons {
    gap: 17px;
  }

  .music-buttons button {
    padding: 3px 8px;
    font-size: 24px;
  }

  #play {
    font-size: 15px;
  }

  #status {
    margin: 4px 0px;
    min-height: 12px;
    font-size: 11px;
  }

  .record-shelf-heading {
    margin: 10px 6px 0px;
    font-size: 14px;
  }

  .record-shelf {
    margin: 0px 4px;
    padding: 4px 0px 8px;
    min-height: 106px;
  }

  .collection-card {
    width: 66px;
    height: 84px;
    margin: 7px 9px;
  }

  .collection-card img {
    width: 66px;
    height: 66px;
  }

  .collection-card span {
    font-size: 8px;
  }

  .shelf-note {
    font-size: 10px;
  }

  .music-sticker.sticker-0 {
    width: 55px;
    height: 45px;
    right: 4px;
    top: 23px;
  }

  .music-sticker.sticker-1 {
    width: 45px;
    height: 49px;
    right: 0px;
    top: 212px;
  }

  .music-sticker.sticker-2 {
    width: 35px;
    height: 53px;
    left: 0px;
    top: 256px;
  }

  .music-sticker.sticker-3 {
    width: 38px;
    height: 65px;
    left: -3px;
    top: 70px;
  }

  .music-sticker.sticker-4 {
    width: 49px;
    height: 48px;
    right: 1px;
    bottom: 9px;
  }

  .music-sticker.sticker-5 {
    width: 62px;
    height: 45px;
    left: 8px;
    bottom: 6px;
  }

  #youtube {
    height: 200px;
    max-width: 300px;
    margin: 8px auto 0px;
  }

  .has-video .gramophone-object {
    height: 110px;
    width: 110px;
    left: 35px;
  }

  .has-video .record-object {
    width: 80px;
    height: 80px;
    top: 18px;
    right: 70px;
  }

  .has-video .desk-note {
    display: none;
  }

  .has-video .record-shelf-heading {
    margin-top: 8px;
  }

  .has-video .collection-card {
    width: 48px;
    height: 64px;
    margin: 6px 8px;
  }

  .has-video .collection-card img {
    width: 48px;
    height: 48px;
  }

  .has-video .collection-card span {
    line-height: 14px;
  }

  .has-video .music-sticker.sticker-1 {
    top: 150px;
  }

  .has-video .music-sticker.sticker-2 {
    top: 300px;
  }

  .has-video .shelf-note {
    display: none;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .music-spread {
    padding: 14px 20px 8px;
  }

  .music-desk {
    height: 153px;
  }

  .gramophone-object {
    height: 155px;
    width: 145px;
  }

  .record-object {
    width: 100px;
    height: 100px;
    top: 30px;
    right: 35px;
  }

  .record-shelf-heading {
    margin-top: 6px;
  }

  .record-shelf {
    min-height: 90px;
  }

  .collection-card {
    width: 58px;
    height: 74px;
    margin: 5px 8px;
  }

  .collection-card img {
    width: 58px;
    height: 58px;
  }

  .has-video .gramophone-object {
    height: 80px;
    width: 85px;
    left: 48px;
  }

  .has-video .record-object {
    width: 57px;
    height: 57px;
    top: 8px;
    right: 88px;
  }

  .has-video .record-controls {
    padding-top: 3px;
  }

  .has-video .record-controls .song-title {
    font-size: 17px;
  }

  .has-video .record-controls .artist {
    font-size: 9px;
    margin-bottom: 0px;
  }

  .has-video #status {
    margin: 0px;
    min-height: 0px;
  }

  .has-video .record-shelf-heading {
    font-size: 12px;
    margin-top: 4px;
  }

  .has-video .record-shelf {
    min-height: 64px;
    padding-bottom: 2px;
  }

  .has-video .collection-card {
    width: 42px;
    height: 54px;
    margin: 4px 7px;
  }

  .has-video .collection-card img {
    width: 42px;
    height: 42px;
  }

  .has-video .collection-card span {
    font-size: 7px;
    line-height: 12px;
  }

  .has-video .music-sticker.sticker-0 {
    width: 40px;
    height: 35px;
  }

  .has-video .music-sticker.sticker-3 {
    height: 45px;
    width: 30px;
  }

  .has-video .music-sticker.sticker-1 {
    top: 120px;
  }

  .has-video .music-sticker.sticker-2 {
    top: 250px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .flip-stage {
    display: none;
  }

  [data-draggable] {
    will-change: auto;
  }

}

.music-sticker {
  aspect-ratio: 1 / 1;
  height: auto !important;
}

.music-spread > .music-sticker {
  inset: auto;
}

.music-spread > .sticker-0 {
  right: 20px;
  top: 16px;
}

.music-spread > .sticker-1 {
  right: 3px;
  top: 175px;
}

.music-spread > .sticker-2 {
  left: 3px;
  top: 250px;
}

.music-spread > .sticker-3 {
  left: 10px;
  top: 95px;
}

.music-spread > .sticker-4 {
  right: 10px;
  bottom: 8px;
}

.music-spread > .sticker-5 {
  left: 12px;
  bottom: 10px;
}

@media (max-width: 650px) {
  .music-spread > .sticker-0 {
    right: 7px;
    top: 12px;
  }

  .music-spread > .sticker-1 {
    right: 2px;
    top: 192px;
  }

  .music-spread > .sticker-2 {
    left: 0px;
    top: 250px;
  }

  .music-spread > .sticker-3 {
    left: 0px;
    top: 75px;
  }

  .music-spread > .sticker-4 {
    right: 4px;
    bottom: 15px;
  }

  .music-spread > .sticker-5 {
    left: 8px;
    bottom: 12px;
  }

  .music-spread.has-video > .sticker-1 {
    top: 135px;
  }

  .music-spread.has-video > .sticker-2 {
    top: 280px;
  }

}

.fern-piece {
  width: 95px;
  height: 165px;
  right: 20px;
  bottom: 20px;
  transform: rotate(-13deg);
  opacity: 0.85;
}

.fern-piece .washi-one {
  top: auto;
  bottom: 28px;
  left: 22%;
  width: 55px;
  transform: rotate(15deg);
}

.fern-piece .washi-two {
  display: none;
}

@media (max-width: 650px) {
  .fern-piece {
    width: 48px;
    height: 92px;
    bottom: -48px;
    opacity: 0.65;
  }

  .fern-piece .washi-one {
    width: 34px;
    height: 12px;
    bottom: 15px;
    left: 10%;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .fern-piece {
    width: 38px;
    height: 75px;
    bottom: -35px;
    right: 70px;
  }

}

.botanical-piece .washi-two {
  top: 22%;
  bottom: auto;
  right: 0px;
  transform: rotate(24deg);
}

.music-buttons #play {
  border: 0px;
  padding: 5px 10px;
}

.pencil-icon {
  display: block;
  width: 27px;
  height: 27px;
  color: rgb(113, 86, 126);
  filter: drop-shadow(rgba(113, 86, 126, 0.094) 0.4px 0.6px 0px);
}

.music-buttons #play .pencil-icon {
  width: 34px;
  height: 34px;
}

.music-buttons button:hover .pencil-icon {
  color: rgb(77, 46, 93);
  transform: rotate(-3deg);
}

.crank-button {
  position: absolute;
  width: 48px;
  height: 43px;
  padding: 0px;
  z-index: 6;
  touch-action: none;
  cursor: grab;
}

.crank-arm {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 10% 30%;
  transform: rotate(var(--crank-angle,0deg));
  filter: drop-shadow(rgba(85, 53, 27, 0.208) 1px 2px 1px);
}

.platter-record {
  position: absolute;
  left: 30.48780488%;
  top: 57.04753962%;
  width: 37.80487805%;
  height: 9.00750626%;
  border-radius: 50%;
  transform: rotate(1deg);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.record-loaded .platter-record {
  opacity: 1;
}

.record-loaded .vinyl-record {
  opacity: 0;
  pointer-events: none;
}

.flying-vinyl {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  transform-origin: 50% 50%;
  background: radial-gradient(circle, rgb(183, 156, 197) 0px, rgb(183, 156, 197) 18%, rgb(216, 198, 224) 18%, rgb(216, 198, 224) 20%, transparent 20%), repeating-radial-gradient(circle, rgb(48, 38, 51) 0px, rgb(48, 38, 51) 2px, rgb(88, 73, 93) 3px, rgb(43, 36, 46) 4px);
  box-shadow: rgba(52, 33, 61, 0.145) 0px 5px 12px;
}

#player-mount {
  min-width: 0px;
}

#player-mount:empty {
  display: none;
}

.music-spread .music-buttons {
  min-height: 44px;
}

.music-spread.has-video #player-mount {
  margin: 6px auto 0px;
  max-width: 320px;
}

.music-spread.has-video #youtube {
  margin: 0px auto;
}

.music-spread > .sticker-6 {
  width: 83px;
  left: 38%;
  bottom: 12px;
  background-image: url("assets/piano-stickers.png");
  background-position: 0px 0px;
}

.music-spread > .sticker-7 {
  width: 55px;
  left: 35%;
  top: 25px;
  background-image: url("assets/piano-stickers.png");
  background-position: 50% 0px;
}

.music-spread > .sticker-8 {
  width: 50px;
  right: 19%;
  top: 18px;
  background-image: url("assets/piano-stickers.png");
  background-position: 100% 0px;
}

.music-spread > .sticker-9 {
  width: 62px;
  right: 4px;
  top: 315px;
  background-image: url("assets/piano-stickers.png");
  background-position: 100% 100%;
}

@media (max-width: 650px) {
  .crank-button {
    width: 39px;
    height: 35px;
  }

  .has-video .crank-button {
    width: 32px;
    height: 29px;
  }

  .music-spread > .sticker-6 {
    width: 65px;
    left: 36%;
    bottom: 15px;
  }

  .music-spread > .sticker-7 {
    width: 35px;
    left: 1px;
    top: 155px;
  }

  .music-spread > .sticker-8 {
    width: 35px;
    right: 75px;
    top: 10px;
  }

  .music-spread > .sticker-9 {
    width: 37px;
    right: 0px;
    top: 425px;
  }

  .music-spread.has-video > .sticker-9 {
    top: 330px;
  }

  .has-video .music-desk {
    height: 105px;
  }

  .has-video .record-controls {
    padding-top: 4px;
  }

  .has-video .record-shelf {
    min-height: 74px;
  }

  .record-controls .artist {
    max-width: 260px;
  }

  .desk-note {
    font-size: 9px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .has-video .music-desk {
    height: 68px;
  }

  .has-video .music-buttons {
    min-height: 35px;
  }

  .has-video .music-buttons .pencil-icon {
    width: 23px;
    height: 23px;
  }

  .has-video .music-buttons #play .pencil-icon {
    width: 28px;
    height: 28px;
  }

  .has-video .crank-button {
    width: 28px;
    height: 27px;
  }

  .music-spread.has-video > .sticker-9 {
    top: 104px;
    bottom: auto;
    right: 5px;
    width: 25px;
    height: 42px;
  }

  .music-spread.has-video > .sticker-7 {
    top: 110px;
  }

}

@media (min-width: 651px) {
  .spread {
    grid-template-columns: 1fr 1fr;
  }

  .book::after {
    content: "";
    position: absolute;
    left: calc(50% - 8px);
    top: 0px;
    bottom: 0px;
    width: 16px;
    background: linear-gradient(90deg, transparent, rgba(104, 81, 68, 0.03) 40%, rgba(115, 88, 68, 0.09) 49%, rgba(255, 255, 255, 0.333) 53%, transparent);
    pointer-events: none;
    z-index: 5;
  }

  .desktop-turn .flip-leaf {
    left: 50%;
    width: 50%;
    transform-origin: 0px 50%;
  }

  .desktop-turn.reverse-turn .flip-leaf {
    left: 0px;
    transform-origin: 100% 50%;
  }

  .desktop-turn .flip-face > .paper, .desktop-turn .stationary-leaf > .paper {
    position: absolute;
    top: 0px;
    width: var(--spread-width);
    height: 100%;
    max-width: none;
  }

  .desktop-turn.forward-turn .flip-front > .paper {
    left: calc(var(--spread-width) * -.5);
  }

  .desktop-turn.forward-turn .flip-back > .paper {
    left: 0px;
  }

  .desktop-turn.reverse-turn .flip-front > .paper {
    left: 0px;
  }

  .desktop-turn.reverse-turn .flip-back > .paper {
    left: calc(var(--spread-width) * -.5);
  }

  .stationary-leaf {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 50%;
    overflow: hidden;
    backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  }

  .stationary-leaf > .paper {
    left: 0px;
  }

  .reverse-turn .stationary-leaf {
    left: 50%;
  }

  .reverse-turn .stationary-leaf > .paper {
    left: calc(var(--spread-width) * -.5);
  }

  .desktop-turn .flip-leaf {
    z-index: 2;
  }

  .desktop-turn .flip-back::after {
    pointer-events: none;
  }

}

.sunshine {
  width: 124px;
  height: 124px;
  left: 12px;
  top: 22px;
  background: none;
  box-shadow: none;
  opacity: 1;
  z-index: 2;
}

.sun-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(rgba(237, 189, 94, 0.333) 0px 0px 13px);
  transition: filter 1.5s;
}

.sunshine::after {
  width: 50px;
  height: 18px;
  left: 0px;
  top: auto;
  bottom: 10px;
  opacity: 0.45;
  background: rgb(217, 206, 220);
  box-shadow: rgb(217, 206, 220) 10px -8px 0px -3px;
}

.sunshine.shining {
  filter: none;
}

.sunshine.shining .sun-illustration {
  filter: drop-shadow(rgba(239, 185, 74, 0.6) 0px 0px 23px) drop-shadow(rgba(245, 214, 126, 0.44) 0px 0px 45px);
}

.sunshine.shining::after {
  transform: translateX(80px);
  opacity: 0;
}

.single-specimen .specimen-cutout {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url("assets/single-flowers.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.flower-0 .specimen-cutout {
  background-position: 0px 0px;
}

.flower-1 .specimen-cutout {
  background-position: 50% 0px;
}

.flower-2 .specimen-cutout {
  background-position: 100% 0px;
}

.flower-3 .specimen-cutout {
  background-position: 0px 100%;
}

.flower-4 .specimen-cutout {
  background-position: 50% 100%;
}

.flower-5 .specimen-cutout {
  background-position: 100% 100%;
}

.single-specimen {
  width: 135px;
  height: 155px;
  right: 27px;
  top: 20px;
}

.single-specimen .washi-one {
  top: auto;
  bottom: 22px;
  left: 35%;
  width: 50px;
  transform: rotate(-14deg);
}

.devotional-piece {
  width: 195px;
  height: 218px;
  right: 20px;
  bottom: 20px;
  padding: 8px 8px 16px;
  transform: rotate(3deg);
  background: rgb(255, 249, 237);
  filter: drop-shadow(rgba(185, 155, 91, 0.125) 1px 4px 4px);
}

.letter-leaf:has(.devotional-piece) {
  justify-content: flex-start;
  padding-top: 170px;
}

.letter-leaf:has(.devotional-piece) .signoff {
  align-self: flex-start;
  max-width: 145px;
  margin-left: 8px;
}

.hanging-angel {
  position: absolute;
  right: 12px;
  top: 0px;
  width: 78px;
  aspect-ratio: 0.75 / 1;
  background-image: url("assets/angels.png");
  background-size: 200% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(rgba(167, 131, 73, 0.19) 1px 3px 1px);
  z-index: 3;
  transform: rotate(6deg);
  transform-origin: 50% 0px;
}

.angel-0 {
  background-position: 0px 0px;
}

.angel-1 {
  background-position: 100% 0px;
}

.hanging-angel::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 40%;
  width: 26px;
  height: 10px;
  background: rgba(212, 195, 213, 0.69);
  transform: rotate(-12deg);
}

.day.holiday {
  background: radial-gradient(rgba(233, 210, 157, 0.333), transparent 72%);
  border: 1px solid rgba(205, 178, 127, 0.333);
  border-radius: 47% 53% 52% 48%;
}

.day.holiday::after {
  content: attr(data-holiday);
  font: 8px "Architects Daughter", cursive;
  position: absolute;
  bottom: -2px;
  color: rgb(155, 120, 66);
}

.book[data-month="1"] {
  --cloth: #aebfc9;
  --highlight: #d1dfe9;
  --wash: #e0e9ed;
  --tape: #b8c9d1;
}

.book[data-month="2"] {
  --cloth: #b7bfce;
  --highlight: #dbe2ed;
  --wash: #e6eaf1;
}

.book[data-month="3"] {
  --cloth: #b6acc6;
  --highlight: #e2d9e9;
  --wash: #ece5ee;
}

.book[data-month="4"] {
  --cloth: #b6bca2;
  --highlight: #e1e5c4;
  --wash: #ebecd9;
}

.book[data-month="5"] {
  --cloth: #b6bda3;
  --highlight: #dde5bd;
  --wash: #edf0d8;
}

.paper[data-month="1"]::after, .paper[data-month="2"]::after {
  content: "";
  position: absolute;
  inset: 0px;
  background-image: radial-gradient(circle at 20% 30%, rgb(255, 255, 255) 0px, rgb(255, 255, 255) 2px, transparent 3px), radial-gradient(circle at 70% 65%, rgb(255, 255, 255) 0px, rgb(255, 255, 255) 1px, transparent 2px);
  background-size: 83px 109px, 57px 71px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.spread {
  z-index: 1;
}

.christmas-piece {
  width: 180px;
  height: 180px;
  right: 40px;
  top: 20px;
}

.letter-leaf:has(.devotional-piece) .margin-note {
  max-width: 190px;
}

.book[data-month="5"] .calendar-leaf::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -25px;
  width: 170px;
  height: 150px;
  background: url("assets/single-flowers.png") 100% 100% / 300% 200% no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 650px) {
  .sunshine {
    inset: -70px 8px auto auto;
    width: 92px;
    height: 92px;
  }

  .sunshine::after {
    width: 35px;
    height: 13px;
    bottom: 6px;
    left: 3px;
  }

  .single-specimen {
    width: 96px;
    height: 108px;
    right: 7px;
    top: auto;
    bottom: 2px;
  }

  .single-specimen .washi-one {
    bottom: 12px;
    width: 35px;
    height: 13px;
    left: 30%;
  }

  .devotional-piece {
    width: 135px;
    height: 148px;
    right: 11px;
    bottom: 13px;
    padding: 6px 6px 12px;
  }

  .letter-leaf:has(.devotional-piece) {
    justify-content: flex-start;
  }

  .letter-leaf:has(.devotional-piece) .signoff {
    font-size: 12px;
    max-width: 120px;
    align-self: flex-start;
    margin-left: 0px;
  }

  .letter-leaf:has(.devotional-piece) .margin-note {
    max-width: 150px;
  }

  .hanging-angel {
    width: 55px;
    right: 2px;
    top: 10px;
  }

  .letter-leaf:has(.devotional-piece) .hanging-angel {
    right: 1px;
    top: 2px;
    width: 48px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    width: 83px;
    height: 83px;
  }

  .christmas-piece {
    width: 100px;
    height: 105px;
    inset: auto auto 1px -5px;
    opacity: 0.7;
  }

  .easter-piece {
    inset: auto auto 3px -4px;
    opacity: 0.8;
  }

  .calendar-leaf {
    z-index: 1;
  }

  .letter-leaf {
    z-index: 2;
  }

  .book[data-month="5"] .calendar-leaf::after {
    width: 80px;
    height: 85px;
    bottom: -42px;
    left: 10px;
    opacity: 0.6;
  }

  .hanging-angel::before {
    width: 18px;
    height: 8px;
  }

  .fern-piece {
    right: 100px;
  }

  .note-text {
    font-size: 17px;
    line-height: 1.6;
  }

  .verse {
    line-height: 1.7;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .sunshine {
    right: 7px;
  }

  .devotional-piece {
    width: 107px;
    height: 121px;
    bottom: 8px;
    right: 4px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    width: 70px;
    height: 70px;
  }

  .hanging-angel {
    width: 40px;
    top: 3px;
  }

  .letter-leaf:has(.devotional-piece) .hanging-angel {
    width: 35px;
    right: 0px;
    top: -1px;
  }

  .note-text {
    font-size: 14px;
  }

  .christmas-piece, .easter-piece {
    width: 72px;
    height: 83px;
    left: -8px;
  }

  .letter-leaf:has(.devotional-piece) .margin-note {
    font-size: 8px;
    max-width: 160px;
    margin-top: 5px;
  }

  .letter-leaf:has(.devotional-piece) .signoff {
    font-size: 10px;
    margin-top: 5px;
  }

  .single-specimen {
    width: 78px;
    height: 88px;
  }

  .book[data-month="5"] .calendar-leaf::after {
    width: 58px;
    height: 67px;
    bottom: -29px;
  }

}

.header-sun {
  width: 30px;
  height: 30px;
  background: none;
  box-shadow: none;
}

.header-sun img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(rgba(228, 188, 91, 0.4) 0px 0px 5px);
}

.record-loading .vinyl-record {
  opacity: 0;
  pointer-events: none;
}

.crank-button::before {
  content: "";
  position: absolute;
  inset: -7px;
}

.music-buttons button {
  min-width: 42px;
  min-height: 42px;
}

@media (max-width: 650px) {
  .book[data-month="5"] .calendar-leaf::after {
    display: none;
  }

  .letter-leaf:has(.devotional-piece) .christmas-piece {
    right: auto;
  }

  .letter-leaf:has(.devotional-piece) .easter-piece {
    right: auto;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .letter-leaf:has(.devotional-piece) .christmas-piece, .letter-leaf:has(.devotional-piece) .easter-piece {
    width: 75px;
    height: 90px;
    left: -4px;
    bottom: 0px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    right: 70px;
  }

}



.vinyl-plane {
  position: absolute;
  left: 0px;
  top: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%) rotateX(77.42355947deg);
  transform-style: preserve-3d;
}

.platter-grooves {
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgb(41, 34, 45) 0px, rgb(41, 34, 45) 1px, rgb(81, 67, 87) 2px, rgb(48, 38, 52) 3px, rgb(62, 50, 67) 4px);
  border: 1px solid rgb(36, 30, 41);
  transform-origin: 50% 50%;
  animation: record-spin 2.8s linear infinite;
  animation-play-state: paused;
}

.platter-label {
  position: absolute;
  left: 34%;
  top: 34%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgb(187, 160, 196);
  background-size: cover;
  background-position: center;
  box-shadow: rgb(216, 193, 223) 0px 0px 0px 1px inset, rgb(172, 142, 182) 0px 0px 0px 3px inset;
}

.platter-label::after {
  content: "";
  position: absolute;
  left: 46%;
  top: 46%;
  width: 8%;
  height: 8%;
  background: rgb(50, 38, 56);
  border-radius: 50%;
}

.playing .platter-grooves {
  animation-play-state: running;
}

.platter-grooves::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 12deg,transparent 0deg,rgba(212,197,227,.22) 18deg,transparent 34deg,transparent 188deg,rgba(212,197,227,.08) 203deg,transparent 220deg);
}

.vinyl-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from -38deg,transparent,rgba(255,244,215,.08) 30deg,transparent 65deg,transparent 210deg,rgba(255,244,215,.06) 240deg,transparent 270deg);
}

@keyframes record-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .platter-grooves { animation: none; }
}

.crank-button {
  left: 76%;
  top: 68%;
}

.seasonal-sun {
  background: url("assets/seasonal-suns.png") 0% 0% / 300% 200% no-repeat;
  object-fit: initial;
}

.sun-face-0 {
  background-position: 0px 0px;
}

.sun-face-1 {
  background-position: 50% 0px;
}

.sun-face-2 {
  background-position: 100% 0px;
}

.sun-face-3 {
  background-position: 0px 100%;
}

.sun-face-4 {
  background-position: 50% 100%;
}

.sun-face-5 {
  background-position: 100% 100%;
}

.angel-spring {
  background-image: url("assets/spring-angel.png");
  background-size: contain;
  background-position: center center;
}

.journal-pencil {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.calendar-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  padding-left: 3px;
  flex-shrink: 0;
}

.doodle-month-2 {
  rotate: 8deg;
  bottom: 34px;
  left: 24px;
  color: rgb(135, 157, 172);
}

.doodle-month-3 {
  rotate: -14deg;
  left: 30px;
  bottom: 22px;
  color: rgb(175, 144, 164);
}

.doodle-month-4 {
  rotate: 13deg;
  left: 22px;
  bottom: 24px;
  color: rgb(142, 158, 124);
}

.calendar-leaf {
  isolation: isolate;
}

.paper[data-season="winter"] {
  background: radial-gradient(ellipse at 0 0,#dce8f066,transparent 45%),radial-gradient(ellipse at 100% 100%,#e0eaf277,transparent 45%),var(--paper);
}

@media (min-width: 651px) {
  .calendar-leaf .garden {
    padding-top: 10px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .note {
    margin-top: 12px;
  }

  .letter-leaf:not(:has(.devotional-piece)) {
    justify-content: center;
    padding-bottom: 60px;
  }

}

@media (max-width: 650px) {
  .calendar-extras {
    padding-left: 0px;
  }

  .calendar-leaf .garden {
    padding-top: 7px;
  }

  .sunshine {
    top: -72px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    top: -66px;
  }

  .letter-leaf:has(.devotional-piece) {
    padding-top: 18px;
  }

  .letter-leaf:not(:has(.devotional-piece)) {
    min-height: 157px;
  }

  .letter-leaf .note {
    margin-top: 5px;
  }

  .letter-leaf .margin-note {
    margin-top: 11px;
  }

  .letter-leaf .signoff {
    margin-top: 9px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .letter-leaf:not(:has(.devotional-piece)) {
    min-height: 120px;
  }

  .letter-leaf:has(.devotional-piece) {
    padding-top: 10px;
  }

  .letter-leaf .margin-note {
    margin-top: 6px;
  }

  .letter-leaf .signoff {
    margin-top: 5px;
  }

  .sunshine {
    top: -62px;
    width: 72px;
    height: 72px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    top: -55px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .letter-leaf:has(.devotional-piece) {
    padding-bottom: 6px;
  }

}

.dedication, .chapter, .note-text, .note-signature, .margin-note, .signoff, .calendar-caption, .desk-note, .shelf-note, .record-shelf-heading {
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}

/* Original sticker artwork keeps its transparent silhouette. */
.supplied-sticker {
  position: relative;
  display: block;
  flex: 0 0 auto;
  transform: rotate(var(--scrap-tilt,-5deg));
  filter: drop-shadow(rgba(93, 66, 107, 0.086) 1px 2px 1px);
}

.supplied-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.letter-character {
  position: absolute;
  left: 28px;
  bottom: 22px;
  width: 100px;
  height: 115px;
  z-index: 1;
}

.baymax {
  width: 75px;
  height: 100px;
  right: -12px;
  top: -82px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(rgba(105, 86, 115, 0.125) 1px 2px 1px);
}

.scripture-slip {
  margin: 16px 0px 0px;
  padding: 10px 13px 9px 14px;
  position: relative;
  max-width: 360px;
  background: linear-gradient(100deg, rgba(255, 250, 240, 0.7), rgba(255, 250, 240, 0.125));
  border-left: 2px solid rgb(188, 163, 197);
  transform: rotate(-0.6deg);
}

.scripture-slip::before {
  content: "";
  position: absolute;
  width: 35px;
  height: 10px;
  left: 8px;
  top: -5px;
  background: var(--tape);
  opacity: 0.65;
  rotate: -7deg;
}

.scripture-slip .verse {
  font-family: Fraunces, Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: rgb(98, 71, 114);
  margin: 0px;
  max-width: none;
}

.verse-reference {
  font: 10px "Architects Daughter", cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgb(158, 128, 91);
  margin-top: 7px;
  text-align: right;
}

.letter-leaf::before {
  content: "";
  position: absolute;
  inset: 28px 20px 20px;
  background: repeating-linear-gradient(transparent 0px, transparent 27px, rgba(181, 162, 188, 0.145) 27px, rgba(181, 162, 188, 0.145) 28px, transparent 28px, transparent 29px);
  mask-image: linear-gradient(transparent, rgb(0, 0, 0) 18%, rgb(0, 0, 0) 82%, transparent);
  opacity: 0.75;
  pointer-events: none;
}

.note-text {
  color: rgb(96, 65, 111);
}

.month-heading {
  rotate: -0.45deg;
}

.signoff {
  padding: 3px 8px;
  border-bottom: 1px dashed rgb(179, 152, 192);
  rotate: -3deg;
}

.signoff small {
  margin-top: 7px;
}

.tabs .music-tab {
  padding-top: 2px;
  padding-bottom: 9px;
  min-width: 40px;
}

.tabs .music-tab img {
  display: block;
  width: 26px;
  height: 28px;
  object-fit: contain;
  rotate: 8deg;
}

.tabs .music-tab[aria-current="page"] {
  padding-bottom: 13px;
}

.journal-header {
  position: relative;
  max-width: 1040px;
  padding: 6px 24px 0px;
  justify-content: space-between;
}

.journal-bookplate {
  display: flex;
  align-items: center;
  max-width: 470px;
}

.dedication-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journal-header .book-title {
  font: 18px / 1.15 Fraunces, Georgia, serif;
  letter-spacing: 0.2px;
}

.journal-header .dedication {
  font: 12px / 1.2 "Architects Daughter", cursive;
  transform: none;
}

.bookplate-bow {
  object-fit: contain;
  rotate: -9deg;
}

.bookplate-flower {
  object-fit: contain;
  rotate: 13deg;
}

.journal-header .header-sun {
  position: absolute;
  right: 20px;
  top: -2px;
  width: 83px;
  height: 83px;
  rotate: 10deg;
  z-index: 4;
}

.journal-header .header-sun img {
  filter: drop-shadow(rgba(228, 187, 101, 0.5) 0px 0px 9px);
}

.journal-sunlight {
  position: absolute;
  inset: 0px;
  pointer-events: none;
  z-index: 4;
  border-radius: 3px;
  background: conic-gradient(from 192deg at 100% 0px, transparent 0deg, rgba(242, 207, 116, 0.125) 5deg, transparent 12deg, rgba(244, 212, 137, 0.094) 19deg, transparent 27deg, rgba(239, 208, 128, 0.094) 36deg, transparent 44deg), radial-gradient(at 100% 0px, rgba(247, 219, 142, 0.125), transparent 67%);
  mask-image: linear-gradient(rgb(0, 0, 0), transparent 85%);
  mix-blend-mode: multiply;
}

@media (min-width: 651px) {
  .calendar {
    margin-top: 19px;
  }

  .day {
    height: 45px;
  }

}

@media (max-width: 650px) {
  .journal-header {
    height: 55px;
    padding: 4px 11px 0px;
  }

  .journal-header .book-title {
    max-width: none;
    line-height: 1.15;
    white-space: nowrap;
  }

  .journal-header .dedication {
    line-height: 1.1;
  }

  .journal-header .header-sun {
    width: 64px;
    height: 64px;
    right: 5px;
    top: 1px;
  }

  .tabs {
    padding-right: 44px;
  }

  .book {
    height: calc(-140px + 100dvh);
  }

  .tabs .music-tab {
    min-width: 34px;
    padding: 2px 8px 7px;
  }

  .tabs .music-tab img {
    width: 22px;
    height: 25px;
  }

  .tabs .music-tab[aria-current="page"] {
    padding-bottom: 10px;
  }

  .scripture-slip {
    margin-top: 10px;
    padding: 7px 10px 6px;
    max-width: 280px;
  }

  .scripture-slip .verse {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .verse-reference {
    font-size: 8px;
    letter-spacing: 0.7px;
    margin-top: 4px;
  }

  .scripture-slip::before {
    width: 27px;
    height: 8px;
    top: -4px;
  }

  .calendar {
    margin-top: 14px;
  }

  .day {
    height: 32px;
  }

  .calendar-caption {
    margin-top: 6px;
  }

  .calendar-extras {
    gap: 10px;
  }

  .letter-character {
    width: 62px;
    height: 72px;
    left: 20px;
    bottom: 9px;
  }

  .baymax {
    width: 57px;
    height: 75px;
    top: -59px;
    right: -9px;
  }

  .letter-leaf::before {
    inset: 8px 12px;
  }

  .note-signature {
    font-size: 8px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .journal-header {
    height: 52px;
  }

  .journal-bookplate {
    max-width: 264px;
  }

  .journal-header .book-title {
    font-size: 12px;
  }

  .journal-header .header-sun {
    width: 59px;
    height: 59px;
  }

  .book {
    height: calc(-137px + 100dvh);
  }

  .scripture-slip {
    margin-top: 8px;
    padding: 5px 8px 4px;
    max-width: 270px;
  }

  .scripture-slip .verse {
    font-size: 9px;
    line-height: 1.35;
  }

  .verse-reference {
    font-size: 7px;
    margin-top: 3px;
  }

  .calendar {
    margin-top: 7px;
  }

  .day {
    height: 24px;
  }

  .calendar-extras {
    gap: 8px;
  }

  .baymax {
    width: 44px;
    height: 59px;
    top: -47px;
    right: -7px;
  }

  .letter-character {
    width: 45px;
    height: 52px;
    left: 19px;
    bottom: 5px;
  }

  .note-signature {
    font-size: 7px;
  }

}

.pencil-media {
  display: block;
  background: url("assets/pencil-media.png") 0% 0% / 200% 200% no-repeat;
  filter: none;
  width: 37px !important;
  height: 25px !important;
}

.music-buttons #play .pencil-media {
  width: 45px !important;
  height: 30px !important;
}

.media-play {
  background-position: 0px 0px;
}

.media-pause {
  background-position: 100% 0px;
}

.media-previous {
  background-position: 0px 100%;
}

.media-next {
  background-position: 100% 100%;
}

.tabs .music-tab {
  background-color: rgb(226, 213, 233);
}

.tabs .music-tab[aria-current="page"] {
  background-color: var(--paper);
}

@media (max-height: 740px) and (max-width: 650px) {
  .book[data-month="2"] .day {
    height: 22px;
  }

}

.supplied-music-sticker {
  position: absolute;
  z-index: 3;
  width: 66px;
  height: 70px;
  filter: drop-shadow(rgba(97, 68, 116, 0.094) 1px 2px 1px);
}

.music-scrap-0 {
  width: 74px;
}

.music-scrap-1 {
  width: 54px;
  height: 62px;
}

.music-scrap-2 {
  width: 56px;
  height: 76px;
}

@media (max-height: 740px) and (max-width: 650px) {
  .music-scrap-0 {
    width: 37px;
    height: 39px;
  }

  .music-scrap-1 {
    width: 32px;
    height: 36px;
  }

  .music-scrap-2 {
    width: 30px;
    height: 43px;
  }

  .has-video .music-scrap-0 {
    bottom: auto;
  }

  .has-video .music-scrap-1 {
    bottom: auto;
  }

  .has-video .music-scrap-2 {
    right: 26%;
    bottom: 3%;
    width: 26px;
    height: 37px;
  }

}

/* Scattered seasonal stickers and their individual anchors. */
.journal-scrap {
  position: absolute;
  z-index: 2;
  width: 62px;
  height: 72px;
  pointer-events: none;
}

.calendar-extras {
  height: 104px;
  min-height: 104px;
  margin: 0px;
}

.scrap-word {
  right: 72px;
  bottom: 40px;
  width: 125px;
  height: 112px;
  z-index: 3;
}

.scrap-foot-0 {
  left: 34px;
  bottom: 59px;
  width: 62px;
  height: 75px;
}

.scrap-foot-1 {
  left: 124px;
  bottom: 22px;
  width: 66px;
  height: 72px;
}

.scrap-edge-0 {
  left: 0px;
  top: 43%;
  rotate: -8deg;
}

.scrap-edge-1 {
  right: 3px;
  top: 59%;
}

.scrap-letter-0 {
  left: 42%;
  top: 30px;
  width: 65px;
  height: 76px;
}

.scrap-letter-1 {
  left: 10px;
  top: 42%;
  width: 46px;
  height: 70px;
}

.scrap-letter-2 {
  right: 27px;
  bottom: 35px;
  width: 62px;
  height: 83px;
}

.letter-leaf:has(.devotional-piece) .scrap-letter-2 {
  right: auto;
  left: 42%;
  bottom: 28px;
  width: 62px;
  height: 75px;
}

.letter-leaf:has(.devotional-piece) .letter-character {
  bottom: 38px;
  left: 40px;
  width: 75px;
  height: 94px;
}

.calendar-leaf .fern-piece {
  left: 16px;
  right: auto;
  bottom: 165px;
  width: 54px;
  height: 100px;
}

@media (max-width: 650px) {
  .calendar-extras {
    height: 62px;
    min-height: 62px;
  }

  .scrap-word {
    bottom: 8px;
    width: 98px;
    height: 86px;
  }

  .scrap-foot-0 {
    left: 24px;
    bottom: 17px;
    width: 44px;
    height: 51px;
  }

  .scrap-foot-1 {
    left: 101px;
    bottom: 4px;
    width: 46px;
    height: 49px;
  }

  .scrap-edge-0 {
    left: -2px;
    top: 47%;
  }

  .scrap-edge-1 {
    right: 0px;
    top: 64%;
  }

  .scrap-letter-0 {
    left: 43%;
    top: -7px;
    width: 38px;
    height: 40px;
  }

  .scrap-letter-1 {
    left: 0px;
    top: 37%;
    width: 22px;
    height: 39px;
  }

  .scrap-letter-2 {
    right: 3px;
    bottom: 91px;
    width: 30px;
    height: 41px;
  }

  .letter-leaf:has(.devotional-piece) .scrap-letter-2 {
    left: 43%;
    right: auto;
    bottom: 9px;
    width: 37px;
    height: 45px;
  }

  .letter-leaf:has(.devotional-piece) .letter-character {
    left: 43%;
    bottom: 60px;
    width: 40px;
    height: 48px;
  }

  .letter-leaf:has(.devotional-piece) {
    min-height: 219px;
  }

  .calendar-leaf .fern-piece {
    left: auto;
    right: 1px;
    bottom: 54px;
    width: 29px;
    height: 63px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .hanging-angel {
    right: 0px;
    top: 4px;
    width: 40px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .scrap-word {
    bottom: 5px;
  }

  .scrap-foot-0 {
    left: 21px;
    bottom: 12px;
    width: 34px;
    height: 39px;
  }

  .scrap-foot-1 {
    left: 91px;
    bottom: 0px;
    width: 37px;
    height: 39px;
  }

  .scrap-letter-0 {
    top: -2px;
    width: 29px;
    height: 31px;
    left: 44%;
  }

  .scrap-letter-1 {
    width: 17px;
    height: 30px;
    top: 38%;
  }

  .scrap-letter-2 {
    right: 1px;
    bottom: 63px;
    width: 23px;
    height: 32px;
  }

  .letter-leaf:has(.devotional-piece) .scrap-letter-2 {
    left: 52%;
    bottom: 5px;
    width: 25px;
    height: 32px;
  }

  .letter-leaf:has(.devotional-piece) .letter-character {
    left: 49%;
    bottom: 40px;
    width: 29px;
    height: 35px;
  }

  .letter-leaf:has(.devotional-piece) {
    min-height: 149px;
  }

  .calendar-leaf .fern-piece {
    bottom: 42px;
    width: 23px;
    height: 48px;
  }

}

[data-draggable] {
  pointer-events: auto;
}

[data-draggable].picked-up {
  z-index: 12;
  filter: drop-shadow(rgba(97, 68, 116, 0.157) 4px 9px 6px);
}

.journal-scrap[data-draggable], .taped-piece[data-draggable], .sunshine[data-draggable], .hanging-angel[data-draggable], .baymax[data-draggable] {
  pointer-events: auto;
}

.taped-piece > img, .journal-scrap > img, .header-sun > img {
  pointer-events: none;
}

.seasonal-atmosphere {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.calendar-leaf, .letter-leaf {
  background: transparent;
}

.journal-header {
  z-index: 4;
  overflow: visible;
}

.journal-bookplate {
  background: none;
  border: 0px;
  box-shadow: none;
  padding: 0px;
  rotate: -1deg;
  gap: 9px;
  overflow: visible;
}

.dedication-group {
  gap: 3px;
}

.journal-header .dedication {
  font-size: 15px;
  color: rgb(119, 83, 138);
  rotate: -2deg;
}

.dedication-sunshine {
  position: relative;
  isolation: isolate;
  display: inline-block;
}

.dedication-sunshine::before {
  content: "";
  position: absolute;
  inset: 40% -4px 0px;
  background: rgba(241, 207, 119, 0.5);
  mask: url("assets/markers/swoop.svg") center center / 100% 100% no-repeat;
  z-index: -1;
}

.bookplate-bow {
  width: 38px;
  height: 49px;
  filter: drop-shadow(rgba(116, 81, 132, 0.125) 2px 4px 2px);
}

.bookplate-flower {
  width: 46px;
  height: 73px;
  position: relative;
  top: 5px;
  filter: drop-shadow(rgba(116, 81, 132, 0.094) 2px 4px 2px);
}

.paper[data-month="0"] {
  --marker: #d8ad60;
  --marker-shape: url('assets/markers/brushed.svg');
}

.paper[data-month="1"] {
  --marker: #b4d4c8;
  --marker-shape: url('assets/markers/swoop.svg');
}

.paper[data-month="2"] {
  --marker: #b9cee7;
  --marker-shape: url('assets/markers/double.svg');
}

.paper[data-month="3"] {
  --marker: #dfafc4;
  --marker-shape: url('assets/markers/brushed.svg');
}

.paper[data-month="4"] {
  --marker: #bfd09d;
  --marker-shape: url('assets/markers/double.svg');
}

.paper[data-month="5"] {
  --marker: #cab3de;
  --marker-shape: url('assets/markers/swoop.svg');
}

.month-heading::after {
  height: 21px;
  bottom: -2px;
  border-radius: 0px;
  background: var(--marker);
  mask: var(--marker-shape) center/100% 100% no-repeat;
  opacity: 0.65;
  transform: rotate(-1deg);
}

.calendar-caption {
  width: fit-content;
  position: relative;
  isolation: isolate;
}

.calendar-caption::before {
  content: "";
  position: absolute;
  inset: 48% -4px -1px;
  background: rgba(240, 208, 135, 0.376);
  mask: url("assets/markers/brushed.svg") center center / 100% 100% no-repeat;
  z-index: -1;
}

.verse-reference {
  text-decoration-line: underline;
  text-decoration-style: initial;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.letter-leaf:not(:has(.devotional-piece)) .single-specimen {
  width: 194px;
  height: 215px;
  right: 10px;
  top: 2px;
}

.easter-piece {
  width: 237px;
  height: 249px;
  right: 18px;
  top: 0px;
}

.scrap-edge-0 {
  width: 34px;
  height: 125px;
}

.scrap-edge-1 {
  width: 30px;
  height: 58px;
}

.book[data-month="5"] .scrap-edge-1 {
  width: 36px;
  height: 105px;
}

.home-garland {
  border: 0px;
  position: relative;
  width: 215px;
  height: 143px;
  padding: 43px 20px 26px;
  text-align: center;
  align-self: flex-start;
  isolation: isolate;
  max-width: none !important;
  margin-top: 14px !important;
}

.home-line {
  font: 22px / 1.35 "Architects Daughter", cursive;
  display: block;
}

.garland-flowers {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.book[data-month="5"] .letter-character {
  left: 43%;
  top: 15%;
  bottom: auto;
  width: 50px;
  height: 63px;
}

.book[data-month="1"] .scrap-letter-1 {
  top: 48%;
  left: 7px;
  width: 39px;
  height: 56px;
}

.music-scrap-0 {
  left: 48%;
  top: 16%;
  bottom: auto;
}

.music-scrap-1 {
  right: 23%;
  top: 19%;
  bottom: auto;
}

.music-scrap-2 {
  right: 15%;
  bottom: 5%;
}

.music-scrap-3 {
  left: 18%;
  bottom: 4%;
  width: 116px;
  height: 89px;
}

@media (max-width: 650px) {
  .journal-bookplate {
    max-width: 280px;
    gap: 6px;
    height: 50px;
  }

  .journal-header .book-title {
    font-size: 13px;
  }

  .journal-header .dedication {
    font-size: 12px;
  }

  .bookplate-bow {
    width: 27px;
    height: 39px;
  }

  .bookplate-flower {
    width: 28px;
    height: 58px;
    top: 3px;
  }

  .scrap-word {
    right: 114px;
  }

  .letter-leaf:has(.devotional-piece) .sunshine {
    right: 4px;
  }

  .scrap-edge-0 {
    width: 28px;
    height: 87px;
  }

  .scrap-edge-1 {
    width: 23px;
    height: 44px;
  }

  .book[data-month="5"] .scrap-edge-1 {
    width: 27px;
    height: 75px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .single-specimen {
    width: 123px;
    height: 141px;
    right: 0px;
    top: auto;
    bottom: -1px;
  }

  .letter-leaf:has(.devotional-piece) .easter-piece {
    width: 154px;
    height: 166px;
    left: -9px;
    bottom: -2px;
  }

  .letter-leaf:has(.devotional-piece) .christmas-piece {
    width: 137px;
    height: 143px;
    left: -6px;
    bottom: -2px;
  }

  .home-garland {
    width: 160px;
    height: 91px;
    padding: 25px 16px 13px;
  }

  .home-line {
    font-size: 15px;
    line-height: 1.3;
  }

  .book[data-month="5"] .letter-character {
    left: 65px;
    top: -44px;
    bottom: auto;
    width: 35px;
    height: 45px;
  }

  .book[data-month="1"] .scrap-letter-1 {
    top: 40%;
    left: 0px;
    width: 20px;
    height: 32px;
  }

  .music-scrap-0 {
    left: 3%;
    top: 47%;
    bottom: auto;
    width: 39px;
    height: 41px;
  }

  .music-scrap-1 {
    right: 3%;
    top: 43%;
    bottom: auto;
    width: 35px;
    height: 39px;
  }

  .music-scrap-2 {
    bottom: 12%;
    width: 40px;
    height: 55px;
  }

  .music-scrap-3 {
    left: 13%;
    width: 104px;
    height: 79px;
  }

  .music-spread.has-video {
    min-height: 800px;
  }

  .has-video .music-scrap-0 {
    left: 3%;
    top: 37%;
    bottom: auto;
    width: 32px;
    height: 34px;
  }

  .has-video .music-scrap-1 {
    right: 3%;
    top: 40%;
    bottom: auto;
    width: 29px;
    height: 34px;
  }

  .has-video .music-scrap-2 {
    right: 26%;
    bottom: 3%;
    width: 30px;
    height: 42px;
  }

  .has-video .music-scrap-3 {
    left: 18%;
    top: auto;
    bottom: 97px;
    width: 99px;
    height: 77px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .journal-bookplate {
    height: 47px;
  }

  .journal-header .dedication {
    font-size: 11px;
  }

  .bookplate-flower {
    height: 55px;
  }

  .calendar-extras {
    height: 40px;
    min-height: 40px;
  }

  .letter-leaf {
    padding-bottom: 6px;
  }

  .scrap-word {
    right: 103px;
    width: 87px;
    height: 74px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .single-specimen {
    width: 100px;
    height: 111px;
  }

  .letter-leaf:has(.devotional-piece) .easter-piece {
    width: 102px;
    height: 117px;
  }

  .letter-leaf:has(.devotional-piece) .christmas-piece {
    width: 94px;
    height: 106px;
  }

  .home-garland {
    margin-top: 3px !important;
  }

  .book[data-month="5"] .letter-character {
    top: -34px;
    left: 61px;
    width: 27px;
    height: 35px;
  }

  .scrap-edge-0 {
    width: 23px;
    height: 67px;
  }

  .music-scrap-3 {
    width: 91px;
    height: 69px;
  }

  .has-video .music-scrap-0 {
    top: 23%;
    left: 0px;
    width: 26px;
    height: 28px;
  }

  .has-video .music-scrap-1 {
    top: 28%;
    right: 2px;
    width: 24px;
    height: 28px;
  }

  .has-video .music-scrap-3 {
    bottom: 97px;
    width: 94px;
    height: 72px;
  }

}

@media (max-width: 360px) {
  .journal-bookplate {
    max-width: calc(100% - 62px);
    gap: 4px;
  }

  .journal-header .book-title {
    font-size: 10px;
  }

  .journal-header .dedication {
    font-size: 10px;
  }

  .bookplate-bow {
    width: 20px;
  }

  .bookplate-flower {
    width: 23px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .garland-flowers, .seasonal-atmosphere {
    animation: auto ease 0s 1 normal none running none;
  }

}

@media (min-width: 651px) {
  .calendar-leaf .fern-piece {
    left: auto;
    right: 48px;
    bottom: 152px;
    width: 70px;
    height: 125px;
  }

}

.page-position {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-controls .weather-toggle {
  width: 25px;
  height: 25px;
  padding: 3px;
  color: rgb(138, 117, 152);
  opacity: 0.75;
}

.weather-toggle[data-paused="true"] {
  opacity: 0.35;
}

.weather-toggle[hidden] {
  display: none;
}

@media (max-width: 650px) {
  .home-garland {
    position: absolute;
    left: 22px;
    bottom: 5px;
    margin: 0px !important;
  }

  .page-controls .weather-toggle {
    width: 22px;
    height: 22px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .home-garland {
    width: 146px;
    height: 65px;
    padding: 17px 13px 9px;
  }

  .home-line {
    font-size: 12px;
  }

}

@media (max-width: 650px) {
  .music-scrap-3 {
    bottom: 10%;
  }

  .music-scrap-2 {
    right: 24%;
  }

  .book[data-month="5"] .scrap-letter-2 {
    left: 0px;
    bottom: 3px;
    width: 23px;
    height: 32px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .music-spread:not(.has-video) > .sticker-9 {
    top: 60px;
    right: 2px;
    width: 27px;
    height: 48px;
  }

}

@media (max-width: 650px) {
  .letter-leaf:has(.devotional-piece) .note {
    width: calc(100% - 137px);
    padding: 12px 12px 10px;
  }

  .letter-leaf:has(.devotional-piece) .note-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .book[data-month="5"] .margin-note {
    display: none;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .letter-leaf:has(.devotional-piece) .note {
    width: calc(100% - 105px);
    padding: 9px 10px 8px;
  }

  .letter-leaf:has(.devotional-piece) .note-text {
    font-size: 13px;
    line-height: 1.45;
  }

  .music-spread {
    min-height: 0px;
  }

  .music-spread:not(.has-video) .music-desk {
    height: 135px;
  }

  .music-spread:not(.has-video) .record-controls {
    padding-top: 0px;
  }

  .music-spread:not(.has-video) #status:empty {
    display: none;
  }

  .music-spread:not(.has-video) .record-shelf {
    min-height: 90px;
    padding-bottom: 2px;
  }

  .music-spread:not(.has-video) .shelf-note {
    display: none;
  }

  .music-spread:not(.has-video) > .sticker-5 {
    left: 1px;
    top: 194px;
    bottom: auto;
    width: 34px;
    height: 45px;
  }

  .music-scrap-3 {
    bottom: 2%;
  }

  .music-scrap-2 {
    right: 15%;
    bottom: 2%;
  }

  .music-spread.has-video {
    min-height: 700px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .music-spread:not(.has-video) .record-object {
    width: 108px;
    height: 108px;
    top: 22px;
    right: 37px;
  }

}

.scrap-word-extra {
  right: 20px;
  top: 12px;
  width: 125px;
  height: 112px;
  z-index: 3;
}

.scrap-heading {
  right: 1px;
  top: 35%;
  width: 43px;
  height: 53px;
}

.scrap-extra-0 {
  left: 211px;
  bottom: 18px;
  width: 64px;
  height: 76px;
}

.scrap-extra-1 {
  right: 5px;
  top: 27%;
  width: 44px;
  height: 60px;
}

.tv-sticker {
  filter: drop-shadow(rgba(101, 68, 120, 0.14) 1px 3px 2px);
}

.tv-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.tbbt-sticker {
  position: absolute;
  z-index: 2;
  left: 43%;
  bottom: 23px;
  width: 89px;
  height: 89px;
  rotate: -7deg;
}

.tbbt-cell-1 {
  rotate: 6deg;
}

.tbbt-cell-2 {
  left: 35%;
  width: 135px;
  height: 112px;
  rotate: -9deg;
}

.tbbt-sticker.tv-slot-1 {
  left: 14%;
  bottom: 105px;
  width: 110px;
  height: 84px;
  rotate: 9deg;
}

.tbbt-sticker.tv-slot-2 {
  left: auto;
  right: 5%;
  bottom: 110px;
  width: 75px;
  height: 115px;
  rotate: -8deg;
}

.music-tv-sticker {
  position: absolute;
  z-index: 3;
  width: 78px;
  height: 80px;
}

.music-tv-0 { left: 3%; top: 37%; }
.music-tv-1 { right: 14%; top: 46%; }
.music-tv-2 { left: 65%; bottom: 2%; width: 103px; }

.painted-snowflake {
  position: absolute;
  z-index: 2;
  width: 51px;
  height: 51px;
  background: url('assets/painted-snowflakes.png') var(--flake-cell) 0/300% 100% no-repeat;
  filter: drop-shadow(rgba(107, 143, 166, 0.2) 1px 2px 2px);
  rotate: -9deg;
}

.snowflake-0 {
  left: 0px;
  top: 32%;
  width: 40px;
  height: 43px;
}

.snowflake-1 {
  right: 5px;
  top: 38%;
  rotate: 12deg;
}

.snowflake-2 {
  left: 27%;
  bottom: 23px;
  width: 48px;
  height: 49px;
  rotate: -6deg;
}

.note {
  background: none;
  border: 0px;
  box-shadow: none;
  isolation: isolate;
}

/* The paper covers Baymax’s lower half; note text remains above it. */
.note::after {
  content: "";
  position: absolute;
  inset: 0px;
  z-index: 1;
  background: repeating-linear-gradient(transparent 0px, transparent 27px, rgba(208, 194, 216, 0.17) 27px, rgba(208, 194, 216, 0.17) 28px), rgb(255, 250, 240);
  border-left: 1px solid rgba(212, 179, 195, 0.2);
  box-shadow: rgba(97, 68, 116, 0.063) 2px 5px 13px;
}

.note::before {
  z-index: 4;
  pointer-events: none;
}

.note-text, .note-signature {
  position: relative;
  z-index: 3;
}

.note .baymax {
  z-index: 0;
  top: -47px;
  width: 75px;
  height: 100px;
}

@media (max-width: 650px) {
  .calendar-leaf h1 {
    font-size: 37px;
  }

  .month-heading {
    gap: 8px;
  }

  .scrap-word-extra {
    right: 2px;
    top: 7px;
    width: 87px;
    height: 78px;
  }

  .scrap-heading {
    right: 0px;
    top: 34%;
    width: 28px;
    height: 34px;
  }

  .scrap-extra-0 {
    left: 65px;
    bottom: 13px;
    width: 33px;
    height: 40px;
  }

  .scrap-extra-1 {
    right: 1px;
    top: 15%;
    width: 25px;
    height: 34px;
  }

  .letter-leaf:not(:has(.devotional-piece)) {
    justify-content: flex-start;
    padding-top: 14px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .note-text {
    font-size: 16px;
    line-height: 1.5;
  }

  .has-tbbt .margin-note {
    display: none;
  }

  .tbbt-sticker {
    left: 44%;
    bottom: 5px;
    width: 66px;
    height: 67px;
  }

  .tbbt-cell-2 {
    left: 36%;
    width: 103px;
    height: 79px;
  }

  .tbbt-sticker.tv-slot-1 {
    left: 70%;
    bottom: 4px;
    width: 72px;
    height: 50px;
  }

  .tbbt-sticker.tv-slot-2 {
    right: 2%;
    bottom: 70px;
    width: 40px;
    height: 60px;
  }

  .tbbt-sticker.tv-knock { width: 53px; height: 83px; bottom: 58px; }

  .music-tv-sticker { width: 44px; height: 48px; }
  .music-tv-0 { left: 2%; top: 40%; }
  .music-tv-1 { right: 13%; top: 40%; }
  .music-tv-2 { left: 45%; bottom: 13%; width: 62px; height: 44px; }

  .painted-snowflake {
    width: 33px;
    height: 34px;
  }

  .snowflake-0 {
    left: 0px;
    top: 31%;
    width: 28px;
    height: 31px;
  }

  .snowflake-1 {
    right: 0px;
    top: 39%;
    width: 28px;
    height: 31px;
  }

  .snowflake-2 {
    left: 29%;
    bottom: 4px;
    width: 31px;
    height: 33px;
  }

  .note .baymax {
    top: -35px;
    width: 57px;
    height: 75px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .scrap-word-extra {
    top: 4px;
    width: 84px;
    height: 72px;
  }

  .scrap-heading {
    top: 32%;
    width: 24px;
    height: 29px;
  }

  .scrap-extra-0 {
    left: 59px;
    bottom: 9px;
    width: 27px;
    height: 33px;
  }

  .scrap-extra-1 {
    top: 14%;
    width: 20px;
    height: 27px;
  }

  .letter-leaf:not(:has(.devotional-piece)) {
    padding-top: 8px;
  }

  .letter-leaf:not(:has(.devotional-piece)) .note-text {
    font-size: 14px;
    line-height: 1.45;
  }

  .tbbt-sticker {
    width: 46px;
    height: 48px;
    bottom: 3px;
    left: 45%;
  }

  .tbbt-cell-2 {
    width: 76px;
    height: 56px;
    left: 38%;
  }

  .tbbt-sticker.tv-slot-1 {
    left: 70%;
    width: 61px;
    height: 38px;
  }

  .tbbt-sticker.tv-slot-2 {
    right: 2%;
    bottom: 48px;
    width: 32px;
    height: 48px;
  }

  .tbbt-sticker.tv-knock { width: 43px; height: 68px; bottom: 43px; }

  .tbbt-cell-1.tv-slot-1 { left: 35%; bottom: 2px; }

  .music-tv-sticker { width: 32px; height: 37px; }
  .music-tv-0, .music-tv-1 { top: 44%; }
  .has-video .music-tv-0, .has-video .music-tv-1 { top: 25%; }
  .music-tv-2 { width: 48px; height: 35px; }

  .snowflake-0 {
    width: 24px;
    height: 27px;
  }

  .snowflake-1 {
    width: 25px;
    height: 28px;
    top: 41%;
  }

  .snowflake-2 {
    width: 26px;
    height: 29px;
    bottom: 2px;
    left: 28%;
  }

  .note .baymax {
    top: -27px;
    width: 44px;
    height: 59px;
  }

}

@media (max-width: 360px) {
  .calendar-leaf h1 {
    font-size: 29px;
  }

  .month-heading {
    gap: 5px;
  }

  .year {
    font-size: 8px;
  }

  .scrap-word-extra {
    width: 77px;
    height: 69px;
  }

}

.note::after {
  pointer-events: auto;
}

@media (max-width: 650px) {
  .letter-leaf:has(.devotional-piece) .scrap-letter-0 {
    left: 9%;
    top: -8px;
  }

}

@media (max-height: 740px) and (max-width: 650px) {
  .tbbt-cell-1 {
    left: 65%;
  }

}

/* The travel slip lives outside page snapshots and unfolds over the journal. */
.journey-tab {
  position: absolute;
  z-index: 5;
  top: 77%;
  right: -33px;
  width: 55px;
  min-height: 58px;
  padding: 6px 7px 5px;
  background: linear-gradient(105deg, #eee4cf, #fff9eb 35%, #f7ecd6);
  border-radius: 2px 5px 5px 1px;
  box-shadow: 2px 3px 5px #50344b25, inset 2px 0 3px #907f6520;
  rotate: 5deg;
  transition: rotate .2s, translate .2s;
}
.journey-tab:hover { rotate: 0deg; translate: 3px 0; }
.journey-tab img { display: block; width: 35px; height: 32px; object-fit: contain; }
.journey-tab span { display: block; font: 10px/1.1 'Architects Daughter', cursive; }
.journey-dialog {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: min(820px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  perspective: 1600px;
}
.journey-dialog::backdrop { background: #34213e75; backdrop-filter: blur(3px); }
.travel-paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 27px 36px 20px;
  background: repeating-linear-gradient(0deg, #987e5311 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 20% 30%, #fffdf3b0, transparent 65%), #f9f0dc;
  border-radius: 2px 5px 3px 2px;
  box-shadow: 0 22px 75px #22132566, inset 0 0 30px #c9ab7a22;
  transform-origin: 76% 80%;
}
.travel-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 32%, #bca68528 33.1%, #fffbedb0 33.5%, transparent 35%, transparent 65%, #a9927328 66.3%, #fffbedc0 66.8%, transparent 69%);
}
.travel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.travel-eyebrow { margin: 0 0 6px; font: 13px/1.4 'Architects Daughter', cursive; color: #967c94; }
.travel-heading h2 { margin: 0; font: 32px/1.15 Fraunces, Georgia, serif; font-weight: 400; }
.travel-close { padding: 6px 0 8px 12px; min-height: 44px; white-space: nowrap; font: 13px/1.3 'Architects Daughter', cursive; }
.travel-close span { display: inline-block; font-size: 24px; margin-left: 6px; vertical-align: -2px; }
.travel-map { position: relative; width: 100%; aspect-ratio: 720/375; margin-top: 2px; }
.travel-geography { display: block; width: 100%; height: 100%; overflow: visible; }
.travel-geography text { fill: #735480; font-family: 'Architects Daughter', cursive; }
.country-name { font-size: 17px; opacity: .72; }
.ottawa-label { font-size: 16px; text-anchor: end; }
.ottawa-pin { fill: #896891; }
.travel-thread { stroke: #a48aa175; stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.travel-ink { stroke: #815b92; stroke-width: 2.1; stroke-linecap: round; }
.travel-month-pins circle { fill: #f9f0dc; stroke: #ab91af; stroke-width: 1.2; }
.travel-plane {
  position: absolute;
  z-index: 4;
  width: 55px;
  height: 55px;
  padding: 4px;
  translate: -50% -50%;
  rotate: var(--plane-angle, 0deg);
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(1px 3px 2px #5e466137);
}
.travel-plane img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: scale .18s; }
.is-dragging .travel-plane { cursor: grabbing; }
.is-dragging .travel-plane img { scale: 1.18; }
.travel-maple { position: absolute; width: 65px; height: 70px; left: 6%; bottom: 8%; rotate: -17deg; opacity: .83; pointer-events: none; }
.travel-home {
  position: absolute;
  z-index: 2;
  translate: -50% -20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  min-width: 75px;
  font: 17px/1.2 'Architects Daughter', cursive;
}
.travel-home img { width: 41px; height: 38px; object-fit: contain; filter: drop-shadow(1px 2px 1px #b99c7430); }
.travel-home span { display: block; }
.travel-home small { display: block; font-size: 12px; color: #927a91; }
.travel-home-hello {
  position: absolute;
  z-index: 5;
  width: 150px;
  text-align: center;
  translate: -50% -110%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s, translate .45s, visibility .35s;
}
.travel-home-hello img { display: block; width: 80px; height: 80px; object-fit: contain; margin: auto; filter: drop-shadow(0 0 10px #efc85c80); }
.travel-home-hello span { padding: 2px 7px; background: #faf1deeb; font: 14px/1.4 'Architects Daughter', cursive; }
.home-says-hello .travel-home-hello { opacity: 1; visibility: visible; translate: -50% -127%; }
.travel-months { display: flex; justify-content: space-between; margin: 9px 6px 0; position: relative; z-index: 4; }
.travel-months button { min-width: 44px; min-height: 44px; padding: 7px 5px; font: 14px/1.3 'Architects Daughter', cursive; color: #9b849b; }
.travel-months button[aria-current] { color: #654474; text-decoration: underline; text-decoration-color: #d9ba78; text-decoration-thickness: 5px; text-underline-offset: -2px; text-decoration-skip-ink: none; }
.travel-caption { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; font: 14px/1.4 'Architects Daughter', cursive; }
.travel-hint { font-size: 12px; color: #9a8399; }
.is-previewing .travel-now { color: #9b729e; }
.travel-fold { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: #f8efd9; opacity: 0; backface-visibility: hidden; }
.travel-fold-left { right: 66.666%; transform-origin: 100% 50%; }
.travel-fold-right { left: 66.666%; transform-origin: 0% 50%; }
.is-unfolding .travel-paper { animation: travel-open .7s cubic-bezier(.2,.7,.2,1) both; }
.is-unfolding .travel-fold-left { animation: travel-left .85s cubic-bezier(.15,.65,.2,1) both; }
.is-unfolding .travel-fold-right { animation: travel-right .9s cubic-bezier(.15,.65,.2,1) both; }
@keyframes travel-open { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.91); } to { opacity: 1; transform: none; } }
@keyframes travel-left { 0% { opacity: 1; transform: perspective(900px) rotateY(110deg); } 75% { opacity: .8; } 100% { opacity: 0; transform: perspective(900px) rotateY(0deg); } }
@keyframes travel-right { 0% { opacity: 1; transform: perspective(900px) rotateY(-110deg); } 75% { opacity: .8; } 100% { opacity: 0; transform: perspective(900px) rotateY(0deg); } }
@media (max-width: 650px) {
  .journey-tab { top: auto; right: auto; bottom: -28px; left: 28%; width: 42px; min-height: 48px; padding: 4px; }
  .journey-tab img { width: 31px; height: 28px; }
  .journey-tab span { font-size: 9px; }
  .journey-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 28px); }
  .travel-paper { padding: 20px 16px 15px; }
  .travel-heading h2 { font-size: 25px; }
  .travel-eyebrow { font-size: 12px; }
  .travel-close { font-size: 11px; padding-left: 0; }
  .travel-map { aspect-ratio: 360/450; margin-top: 0; }
  .travel-paper::after { background: linear-gradient(0deg, transparent 48%, #bca68528 49.4%, #fffbedb0 49.8%, transparent 51%); }
  .travel-maple { left: 5%; bottom: 21%; width: 54px; height: 60px; }
  .travel-plane { width: 49px; height: 49px; }
  .travel-home { font-size: 16px; }
  .travel-home img { width: 33px; height: 31px; }
  .travel-months { margin: 0; }
  .travel-caption { flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 3px; }
}
@media (max-height: 760px) and (max-width: 650px) {
  .travel-paper { padding-top: 12px; padding-bottom: 9px; }
  .travel-map { width: min(100%, calc(80dvh - 168px)); margin-inline: auto; }
  .travel-heading h2 { font-size: 23px; }
  .travel-eyebrow { margin-bottom: 2px; }
  .travel-caption { font-size: 12px; }
  .travel-hint { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-unfolding .travel-paper, .is-unfolding .travel-fold { animation: none; }
  .journey-tab, .travel-plane img, .travel-home-hello { transition: none; }
}
@media (min-width: 651px) and (max-height: 550px) {
  .journey-dialog { max-height: calc(100dvh - 16px); }
  .travel-paper { padding: 8px 24px; }
  .travel-heading h2 { font-size: 22px; }
  .travel-eyebrow { font-size: 11px; margin-bottom: 2px; }
  .travel-map { width: min(100%, calc(192dvh - 346px)); margin-inline: auto; }
  .travel-caption { font-size: 12px; }
}
