/* Homepage: final component and responsive rules. */
.mobile-heading-break {
  display: none;
}

@media (max-width: 740px) {
  .mobile-heading-break {
    display: revert;
  }
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/charly-final-2.webp') center 35%/cover;
  opacity: .17;
  filter: blur(2px);
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#faf6e9 0%,#faf6e9e8 30%,#faf6e944 70%),linear-gradient(0deg,#faf6e9,transparent 30%);
}

.hero-inner {
  max-width: 1280px;
  margin: auto;
  display: grid;
  padding: 45px 48px 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font: 12px/1.5 Luckiest;
  color: #7d7150;
  margin: 0 0 22px;
}

h1 {
  font-size: clamp(42px,4.5vw,66px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 0 0 25px;
}

h1 em {
  font-style: normal;
  color: #b7622f;
}

.intro {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 27px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  font-size: 17px;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.details {
  font-size: 14px;
  color: #746e58;
  margin: 24px 0 0;
}

.film {
  position: relative;
  margin: 0;
  transform: rotate(2deg);
  border-radius: 8px;
}

.film video {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.film figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #656647;
}

.stories {
  max-width: 1280px;
  margin: auto;
  padding: 64px 48px 75px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0;
}

.section-heading p:last-child {
  max-width: 305px;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.story:nth-child(2) {
  padding-top: 37px;
}

.story:nth-child(3) {
  padding-top: 74px;
}

.story-image {
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 48% 48% 5px 5px;
}

.story:nth-child(2) .story-image {
  border-radius: 5px 5px 48% 48%;
}

.story-image img {
  width: 100%;
  height: 100%;
}

.story-number {
  font: calc(12px + 2pt) Luckiest;
  letter-spacing: 2px;
  color: #8b754f;
  margin: 12px 0 6px;
}

.story h3 {
  font-weight: 400;
  font-size: 29px;
  line-height: 1.12;
  margin: 0 0 13px;
}

.story p.description {
  margin: 0 0 18px;
}

.read {
  border: 0;
  border-bottom: 1px solid #77917b;
  padding: 0 0 5px;
  background: none;
  cursor: pointer;
  font-size: 17px;
}

.read span {
  display: inline-block;
}

.end {
  border-top: 1px solid #d8dcc3;
}

.end h2 {
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 12px;
}

.end p {
  font-size: 18px;
  margin: 0 0 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1184px;
  margin: auto;
  padding: 25px 0;
  font-size: 13px;
  color: #71755f;
}

.footer a {
  margin-left: 18px;
}

dialog {
  max-width: 820px;
  width: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #274c3a;
  box-shadow: 0 20px 80px #0005;
}

dialog::backdrop {
  background: #142a20b8;
  backdrop-filter: blur(6px);
}

.dialog-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.dialog-inner img {
  width: 100%;
  height: 100%;
}

.dialog-copy {
  padding: 45px 32px;
}

.dialog-copy h2 {
  font-size: 30px;
  font-weight: 400;
}

.dialog-copy p {
  font-size: 19px;
  line-height: 1.6;
}

.close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff9e9;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
}

.dialog-copy small {
  font-size: 13px;
  color: #747555;
}

@media(min-width:1400px) {
  .hero-inner {
    padding-top: 55px;
    padding-bottom: 65px;
  }
}

@media(max-width:1050px) {
  .hero-inner {
    padding: 35px 30px;
    gap: 28px;
  }

  .intro {
    font-size: 18px;
  }

  .footer {
    margin: 0 30px;
  }

  .stories {
    padding: 50px 30px;
  }

  .stories-grid {
    gap: 24px;
  }

  .story h3 {
    font-size: 25px;
  }
}

@media(max-width:740px) {
  .hero-inner {
    padding: 29px 24px 35px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 46px;
    letter-spacing: -1.5px;
    max-width: 450px;
    margin-bottom: 18px;
  }

  .intro {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .actions {
    gap: 18px;
  }

  .button {
    font-size: 14px;
    padding: 15px 17px;
  }

  .text-link {
    font-size: 16px;
  }

  .details {
    margin-top: 18px;
    font-size: 13px;
  }

  .film {
    margin: 0 8px;
    transform: rotate(1.5deg);
  }

  .stories {
    padding: 40px 24px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 36px;
    margin-bottom: 17px;
  }

  .section-heading p:last-child {
    max-width: 400px;
    font-size: 17px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .story:nth-child(n) {
    padding: 0;
  }

  .story-image {
    border-radius: 45% 45% 5px 5px;
  }

  .story:nth-child(2) .story-image {
    border-radius: 5px 5px 40% 40%;
  }

  .story p.description {
    max-width: 460px;
  }

  .footer {
    margin: 0 24px;
    line-height: 1.6;
  }

  .footer a {
    margin-left: 0;
    margin-right: 15px;
  }

  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .dialog-inner img {
    max-height: 32vh;
    object-position: center 36%;
  }

  .dialog-copy {
    padding: 18px 25px 25px;
  }

  .dialog-copy h2 {
    margin-top: 8px;
  }

  .dialog-copy p {
    font-size: 17px;
  }
}

@media(max-width:740px) {
  .hero-inner .eyebrow {
    order: 0;
    margin: 0;
  }

  .hero-inner h1 {
    font-size: 35px;
    line-height: 1.06;
  }

  .hero-inner .film {
    order: 2;
    margin: 5px 8px 12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *:before, *:after {
    transition: none!important;
  }
}

.story:nth-child(1) .story-image img, .story:nth-child(3) .story-image img {
  filter: brightness(1.075);
}

body {
  color: #3d4935;
}

.hero:before, .hero:after {
  display: none;
}

.hero-inner {
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
}

.cover-scene {
  margin: 0;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.cover-scene img {
  width: 100%;
  display: block;
  mask-image: linear-gradient(90deg,transparent,black 12%,black 90%,transparent),linear-gradient(0deg,transparent,black 12%,black 91%,transparent);
  mask-composite: intersect;
}

.hero h1 {
  font-size: clamp(40px,4.2vw,62px);
}

.stories-grid {
  gap: 50px;
}

.story:nth-child(n) {
  padding-top: 0;
}

.story-image, .story:nth-child(2) .story-image {
  border-radius: 0;
  aspect-ratio: 1.25;
  overflow: visible;
  isolation: isolate;
  mix-blend-mode: multiply;
}

.story-image img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.quiet-moment {
  max-width: 1184px;
  margin: 10px auto 70px;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.moment-copy h2, .end h2 {
  font-weight: 400;
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 20px;
}

.moment-copy>p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.6;
}

.film figcaption {
  font-size: 13px;
}

.end {
  position: relative;
  max-width: 1280px;
  margin: auto;
  background: transparent;
  border: 0;
  padding: 0 48px 45px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 55px;
  align-items: center;
  text-align: left;
}

.end-art img {
  display: block;
  width: 100%;
  mask-image: linear-gradient(90deg,transparent,black 10%,black 90%,transparent),linear-gradient(0deg,transparent,black 10%,black 88%,transparent);
  mask-composite: intersect;
}

.end p {
  line-height: 1.6;
}

.dialog-inner img {
  mix-blend-mode: multiply;
  object-fit: contain;
  padding: 25px;
}

dialog {
  background: #faf5e9 url('assets/charly-final-3.webp') center/1000px;
}

.footer {
  border-top: 1px solid #cbbf9e;
}

@media(max-width:740px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 35px;
  }

  .cover-scene {
    order: 2;
    margin: -5px -24px -10px;
  }

  .cover-scene img {
    max-height: 420px;
    object-fit: contain;
  }

  .stories-grid {
    gap: 36px;
  }

  .story-image {
    aspect-ratio: 1.6;
  }

  .quiet-moment {
    margin: 0 24px 40px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .moment-copy h2, .end h2 {
    font-size: 33px;
  }

  .quiet-moment .film {
    margin: 0 8px;
  }

  .end {
    padding: 0 24px 35px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .end-art {
    margin: 0 -24px;
  }

  .end-art img {
    max-height: 420px;
    object-fit: contain;
  }

  .end-copy {
    text-align: center;
  }

  .story h3 {
    font-size: 28px;
  }
}

h1, h2, h3 {
  font-family: "Averia Serif Libre",Georgia,serif;
  font-weight: 400;
}

:root {
  --charly-divider: linear-gradient(90deg,#b53d3c 0% 16.6667%,#ce5f33 16.6667% 33.3333%,#895837 33.3333% 50%,#e2a83f 50% 66.6667%,#8e9d5f 66.6667% 83.3333%,#4c8c8b 83.3333% 100%);
}

.section-divider {
  margin: 24px auto 0;
}

.quiet-moment {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-image: var(--charly-divider) 1;
}

.book-cover {
  justify-content: center;
}

.film {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.film-frame {
  border-radius: 8px;
}

.film-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.film figcaption {
  padding: 14px 4px 0;
  gap: 12px;
}

@media(max-width:740px) {
  .section-divider {
    margin: 20px 24px 0;
  }

  .book-cover img {
    max-width: 430px;
    max-height: none;
  }
}

.hero .eyebrow, .stories .section-heading .eyebrow, .moment-copy>.eyebrow {
  font-size: 24px;
  line-height: 1.4;
}

.book-preview {
  max-width: 1280px;
  margin: auto;
  padding: 0 48px 55px;
}

.book-preview h2 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 25px;
}

.book-page {
  display: block;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: #3d4935;
  cursor: zoom-in;
  text-align: center;
  border-radius: 8px;
}

.book-page img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  transition: transform .2s;
}

.book-page:hover:where(html:not([data-touch-input]) *) img {
  transform: scale(1.04);
}

.book-page span {
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media(max-width:740px) {
  .hero .eyebrow, .stories .section-heading .eyebrow, .moment-copy>.eyebrow {
    font-size: 22px;
  }

  .book-preview {
    padding: 0 24px 40px;
  }

  .book-preview h2 {
    font-size: 33px;
  }

  .book-page {
    flex: 0 0 90%;
    scroll-snap-align: center;
  }

  .book-page img {
    aspect-ratio: 4/3;
  }

  .book-page span {
    font-size: 16px;
  }

  .story-number {
    line-height: 1.5;
  }
}

.header:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1184px,calc(100% - 96px));
  background: var(--charly-divider);
}

.section-divider {
  width: calc(100% - 96px);
  max-width: 1184px;
}

.hero-inner>div {
  display: block;
}

.hero-inner {
  align-items: stretch;
  padding-top: 20px;
}

.book-cover {
  position: relative;
  align-self: stretch;
  margin: 0;
  min-width: 0;
}

.book-cover img {
  position: absolute;
  left: 50%;
  width: auto;
  max-width: none;
  max-height: none;
  transform: translateX(-44.58%);
  object-fit: contain;
}

.book-carousel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  outline-offset: 4px;
  cursor: grab;
}

.book-carousel:active:where(html:not([data-touch-input]) *) {
  cursor: grabbing;
}

.book-track {
  display: flex;
  will-change: transform;
}

.book-carousel .book-page {
  flex: 0 0 76%;
  min-width: 0;
  padding: 0 0 16px;
  opacity: .38;
  user-select: none;
}

.book-carousel .book-page.is-current {
  opacity: 1;
}

.book-carousel .book-page img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  pointer-events: none;
  transform: none;
}

.book-carousel .book-page span {
  pointer-events: none;
}

.book-carousel .book-page:hover:where(html:not([data-touch-input]) *) img {
  transform: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media(min-width:741px) and (max-width:1150px) {
  .header:after, .section-divider {
    width: calc(100% - 60px);
  }
}

@media(max-width:740px) {
  .header:after, .section-divider {
    width: calc(100% - 48px);
  }

  .section-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-inner {
    padding-top: 0;
  }

  .hero-inner>div {
    display: block;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .book-cover {
    order: 2;
    min-height: 0;
    width: 100%;
  }

  .book-preview {
    padding-left: 0;
    padding-right: 0;
  }

  .book-preview h2 {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .book-track, .book-carousel .book-page {
    transition: none;
  }
}

@property --sketch-reveal{syntax:'<percentage>';inherits:false;initial-value:0%}

.button:hover:where(html:not([data-touch-input]) *), .menu a:hover:where(html:not([data-touch-input]) *) {
  transform: translate(3px,3px);
}

.read {
  color: #895837;
  border-bottom-color: #895837;
  transition: color .2s,border-color .2s,transform .2s;
}

.read:hover:where(html:not([data-touch-input]) *) {
  border-bottom-color: #ce5f33;
  transform: translate(2px,2px);
}

.intro {
  max-width: none;
}

.age-note {
  color: #4c8c8b;
  display: inline-block;
  margin-top: 5px;
}

.story-image {
  position: relative;
}

.story:nth-child(1) .story-image {
  --sketch-image: url('assets/coconut-sparkle-rough-v2.webp');
  --sketch-direction: 90deg;
  --sketch-hue: 345deg;
}

.story:nth-child(2) .story-image {
  --sketch-image: url('assets/charly-final-7.webp');
  left: -10px;
  --sketch-direction: 180deg;
  --sketch-hue: 120deg;
}

.story:nth-child(3) .story-image {
  top: 10px;
  --sketch-image: url('assets/rock-transparent.webp');
  --sketch-direction: 270deg;
  --sketch-hue: 55deg;
}

@media (max-width: 740px) {
  .story:nth-child(2) .story-image {
    width: 80%;
  }

  .story:nth-child(3) .story-image {
    top: auto;
    margin-top: 10px;
  }
}

.story-image:hover:where(html:not([data-touch-input]) *) img {
  transform: none;
}

.book-track {
  gap: 19px;
  transition: transform .65s cubic-bezier(.22,.68,.25,1);
}

.book-carousel .book-page {
  flex-basis: 61%;
  padding-bottom: 0;
  transition: opacity .65s,transform .65s;
}

.book-page span {
  display: none;
}

@media(max-width:740px) {
  .book-cover {
    aspect-ratio: 1.08;
  }

  .book-carousel .book-page {
    flex-basis: 67%;
  }

  .book-track {
    gap: 11px;
  }

  .intro {
    max-width: none;
  }
}

.book-cover {
  overflow: visible;
  filter: none;
}

@media(min-width:741px) {
  .hero-inner {
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  }

  .book-cover {
    align-self: start;
    /* Preserve the original full-width cover size; shrink with its column. */
    aspect-ratio: 611.09375 / 530.515625;
  }
}

.book-cover img {
  top: -15.05%;
  height: 137.7%;
  clip-path: none;
  filter: none;
  mask-image: linear-gradient(90deg,transparent 0%,#000 9%,#000 79%,transparent 99%),linear-gradient(0deg,transparent 0%,#000 12%,#000 92%,transparent 100%);
  mask-composite: intersect;
}

.button, .menu a, .read {
  transition: background-color .2s,color .2s,transform .15s,box-shadow .2s;
}

.button:hover:where(html:not([data-touch-input]) *), .menu a:hover:where(html:not([data-touch-input]) *), .read:hover:where(html:not([data-touch-input]) *) {
  transform: none;
}

.button:hover:where(html:not([data-touch-input]) *) {
  background: #dc9223;
}

.button:active:where(html:not([data-touch-input]) *), .menu a:active:where(html:not([data-touch-input]) *), .read:active:where(html:not([data-touch-input]) *) {
  transform: translate(1.5px,1.5px);
}

.amazon-badge, .nav .amazon-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  background: #fff9e9;
  border: 1px solid #e2d4b6;
  border-bottom: 3px solid #c8b18a;
  border-radius: 10px;
  min-height: 0;
  box-shadow: 0 5px 14px #46331b12;
}

.amazon-badge img {
  display: block;
  transition: transform .3s ease;
  transform-origin: center;
}

.amazon-badge:hover:where(html:not([data-touch-input]) *), .nav .amazon-badge:hover:where(html:not([data-touch-input]) *) {
  background: #f0dfb7;
  transform: none;
}

.amazon-badge:hover:where(html:not([data-touch-input]) *) img {
  transform: translateY(-2px) rotate(-1deg);
}

.amazon-badge:active:where(html:not([data-touch-input]) *), .nav .amazon-badge:active:where(html:not([data-touch-input]) *) {
  transform: translate(1.5px,1.5px);
}

@media(max-width:740px) {
  .book-cover {
    margin: 12px 0 24px;
  }
}

.story-image img {
  transition: transform .35s ease;
}

.story-image:hover:where(html:not([data-touch-input]) *) img, .story-image:focus-visible img {
  transform: scale(1.045);
}

.read span {
  margin-left: 0;
  margin-right: 5px;
  font-weight: 400;
}

.story:nth-child(1) h3 {
  color: #cba111;
}

.story:nth-child(2) h3 {
  color: #6c9e9e;
}

.story:nth-child(3) h3 {
  color: #8f9d5f;
}

.read, .read:hover:where(html:not([data-touch-input]) *) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: none;
  text-decoration: none;
}

.read .read-hand {
  display: inline-block;
  line-height: 1;
  margin: 0;
  font-weight: 400;
  text-decoration: none;
}

.read .read-label {
  display: inline-block;
  margin: 0;
  font-size: 1em;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.read .read-hand {
  font-size: 1.5em;
}

.story:nth-child(1) {
  --story-color: #cba111;
}

.story:nth-child(2) {
  --story-color: #6c9e9e;
}

.story:nth-child(3) {
  --story-color: #8f9d5f;
}

.story .story-number, .story .description, .story .read {
  color: var(--story-color);
}

.stories {
  padding-top: 30px;
}

.story .read:hover:where(html:not([data-touch-input]) *) {
  color: var(--story-color);
}

.read:hover:where(html:not([data-touch-input]) *) {
  color: #895837;
}

.button:hover:where(html:not([data-touch-input]) *) {
  color: #303d28;
}

@media(max-width:740px) {
  .stories {
    padding-top: 25px;
  }
}

.book-preview h2 {
  margin-bottom: 0;
}

.book-carousel .book-page img {
  margin-top: -9%;
}

.stories+.quiet-moment {
  margin-top: 0;
}

@media(max-width:740px) {
  .book-preview h2 {
    margin-bottom: 0;
  }

  .stories+.quiet-moment {
    margin-top: 0;
  }
}

.amazon-badge img {
  height: auto;
}

.amazon-badge img {
  width: 108px;
}

.amazon-badge:hover:where(html:not([data-touch-input]) *) img, .amazon-badge:focus-visible img {
  transform: none;
}

.story .story-number, .story:nth-child(n) h3, .story .description, .story .read, .story .read:hover:where(html:not([data-touch-input]) *) {
  color: #3d4935;
  transition: color .25s ease;
}

.story:has(.story-image:hover:where(html:not([data-touch-input]) *),.story-copy:hover:where(html:not([data-touch-input]) *)) .story-number, .story:has(.story-image:hover:where(html:not([data-touch-input]) *),.story-copy:hover:where(html:not([data-touch-input]) *)) h3, .story:has(.story-image:hover:where(html:not([data-touch-input]) *),.story-copy:hover:where(html:not([data-touch-input]) *)) .description, .story:has(.story-image:hover:where(html:not([data-touch-input]) *),.story-copy:hover:where(html:not([data-touch-input]) *)) .read, .story:focus-within:where(html:not([data-touch-input]) *) .story-number, .story:focus-within:where(html:not([data-touch-input]) *) h3, .story:focus-within:where(html:not([data-touch-input]) *) .description, .story:focus-within:where(html:not([data-touch-input]) *) .read {
  color: var(--story-color);
}

.story {
  text-align: center;
}

.story .story-image {
  margin-left: auto;
  margin-right: auto;
}

.story .story-number, .story h3, .story .description {
  margin-left: auto;
  margin-right: auto;
}

.story .read {
  position: relative;
  justify-content: center;
}

@media (min-width: 741px) and (max-width: 900px) {
  .story .read {
    font-size: clamp(14px, 1.9vw, 17px);
  }
}

.hero h1 {
  color: #3d4935;
}

.book-preview {
  padding-top: 30px;
}

.book-preview h2, .extras-title {
  font-family: "Averia Serif Libre",Georgia,serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0;
}

.quiet-moment {
  display: block;
  padding: 30px 0 50px;
}

.extras-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 35px 70px 0;
}

.film-frame {
  padding: 9px;
}

.film-frame:after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: inset 0 7px 16px #201a125c,inset 5px 0 12px #201a1238,inset -4px 0 10px #201a122b,inset 0 -2px 7px #201a122b;
}

@media(max-width:740px) {
  .book-preview {
    padding-top: 25px;
  }

  .book-preview h2, .extras-title {
    font-size: 36px;
    line-height: 1.1;
  }

  .quiet-moment {
    padding: 25px 0 35px;
  }

  .extras-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 0;
  }
}

.film-frame:after {
  display: none;
}

.film-frame {
  background: #fff9e5;
  border: 1px solid #d7cdb7;
  box-shadow: 0 7px 15px #46331b24,0 2px 4px #46331b12;
}

.stories, .book-preview {
  padding-top: 20px;
}

.quiet-moment {
  padding-top: 20px;
}

@media(max-width:740px) {
  .stories, .book-preview, .quiet-moment {
    padding-top: 16px;
  }
}

.book-carousel .book-page img {
  margin-bottom: 0;
}

#ausmalen .end-art img {
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: 0;
  max-width: none;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
}

#ausmalen .end-art {
  padding: 0 12px;
}

@media (min-width: 741px) {
  #ausmalen .end-art {
    /* Bring the pencils closer while retaining breathing room beside the copy. */
    margin-inline: -48px -24px;
  }
}

@media(max-width:740px) {
  #ausmalen .end-art {
    margin: 0;
    padding: 0 10px 8px;
  }
}

.extras-section {
  border-bottom: 0;
}

.extras-section .extras-content {
  display: block;
  padding: 30px 0 0;
}

.extras-section #ausmalen {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: none;
  padding: 0 48px 20px;
}

.extras-section .film {
  width: calc(100% - 48px);
  max-width: 520px;
  margin: 45px auto 20px;
}

@media(max-width:740px) {
  .extras-section #ausmalen {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .extras-section .film {
    width: calc(100% - 16px);
    margin: 30px auto 20px;
  }
}

#ausmalen .button {
  font-size: 20px;
}

@media(max-width:740px) {
  #ausmalen .button {
    font-size: 18px;
  }
}

.extras-section .extras-content {
  padding-top: clamp(6px, .75vw, 11px);
}

.extras-section {
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.extras-section .film {
  margin-bottom: 10px;
}

@media(max-width:740px) {
  .extras-section .extras-content {
    padding-top: 6px;
  }

  .extras-section {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .extras-section .film {
    margin-bottom: 10px;
  }
}

.carousel-dot:after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.book-track {
  transition-property: transform!important;
  transition-duration: var(--slide-duration,0ms)!important;
  transition-timing-function: cubic-bezier(.2,.75,.22,1)!important;
  transition-delay: 0ms!important;
}

.book-carousel {
  padding-top: 60px;
  padding-bottom: 60px;
}

.book-carousel .book-page {
  transform: scale(.89);
  transform-origin: center center;
  transition-property: transform,opacity!important;
  transition-duration: var(--slide-duration,0ms)!important;
  transition-timing-function: cubic-bezier(.2,.75,.22,1)!important;
}

.book-carousel .book-page.is-current {
  transform: scale(1.3);
}

@media(max-width:740px) {
  .book-carousel {
    padding-top: 38px;
    padding-bottom: 42px;
  }
}

@media(max-width:740px) {
  .hero .details {
    font-size: 18px;
    line-height: 1.5;
  }
}

.extras-section .video-extra {
  max-width: none;
  grid-template-columns: .95fr 1.05fr;
  padding: 0 48px 20px;
  margin: 45px auto 20px;
  gap: 55px;
  align-items: center;
}

.extras-section .video-extra .film {
  max-width: none;
}

@media(max-width:740px) {
  .extras-section .video-extra {
    grid-template-columns: 1fr;
    padding: 0 8px 20px;
    margin: 30px auto 20px;
    gap: 24px;
  }

  .extras-section .video-extra .film {
    width: 100%;
    margin: 0;
  }

  .video-extra .end-copy {
    display: contents;
  }

  .extras-section .video-extra {
    text-align: center;
  }

  .video-extra .end-copy>h2 {
    grid-row: 1;
    margin-bottom: 0;
  }

  .video-extra .end-copy>p {
    grid-row: 2;
    margin: 0;
  }

  .extras-section .video-extra .film {
    grid-row: 3;
  }

  .video-extra .end-copy .sound-controls {
    grid-row: 4;
    margin: 0;
  }
}

.sound-controls {
  transform: rotate(-2deg);
  text-align: center;
  margin: 22px 0 0;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: #f4edda;
  color: #895837;
  border: 1px solid #b8a47b;
  border-bottom: 3px solid #a58b59;
  border-radius: 7px;
  font-family: "Averia Serif Libre",Georgia,serif;
  font-size: 18px;
  cursor: pointer;
}

.sound-toggle:hover:where(html:not([data-touch-input]) *) {
  background: #e9ddbc;
}

.sound-toggle[aria-pressed="true"] {
  background: #dde8dc;
  color: #386563;
  border-color: #7b9a85;
}

.sound-toggle:disabled {
  opacity: .65;
  cursor: wait;
}

.sound-status {
  font-size: 14px!important;
  margin: 8px 0 0!important;
  min-height: 0;
  line-height: 1.4;
}

.sound-status:empty {
  display: none;
}

@media(max-width:740px) {
  .sound-toggle {
    font-size: 17px;
  }

  .sound-controls {
    margin-top: 18px;
  }
}

.video-extra .end-copy .sound-controls {
  transform: none;
  text-align: left;
  margin: 24px 0 0;
}

.final-section .closing-picture {
  padding: 12px;
}

.closing-picture-frame {
  padding: 9px;
  background: #fff9e5;
  border: 1px solid #d7cdb7;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: 0 7px 15px #46331b24,0 2px 4px #46331b12;
}

.final-section .closing-picture-frame img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: 3px;
}

@media(max-width:740px) {
  .final-section .closing-picture {
    margin: 0;
    padding: 12px;
  }

  .final-section .closing-picture-frame img {
    max-height: none;
  }
}

.hero .details {
  color: #3d4935;
  font-size: 20px;
  line-height: 1.6;
  margin: 24px 0 22px;
}

.hero .age-note {
  color: #4c8c8b;
}

@media(max-width:1050px) {
  .hero .details {
    font-size: 18px;
  }
}

@media(max-width:740px) {
  .hero-inner .details {
    font-size: 18px;
    line-height: 1.5;
  }
}

.hero .intro {
  margin-bottom: 0;
}

.hero .age-note {
  font-size: inherit;
}

@media(max-width:740px) {
  .hero-inner .intro {
    margin-bottom: 0;
  }

  .hero .age-note {
    font-size: inherit;
    margin-top: 0;
  }
}

.hero .details {
  margin-top: 10px;
}

.hero .age-note {
  font-weight: 400;
}

@media(max-width:740px) {
  .hero-inner .details {
    margin-top: 10px;
  }
}

.hero+.section-divider {
  margin-top: 18px;
}

.stories .section-heading {
  margin-bottom: 18px;
}

@media(max-width:740px) {
  .hero+.section-divider {
    margin-top: 15px;
  }

  .stories .section-heading {
    margin-bottom: 14px;
  }

  .stories .section-heading h2 {
    margin-bottom: 0;
  }
}

main .amazon-badge {
  border-radius: 11px;
}

main .amazon-badge img {
  display: block;
  height: auto;
  transform: none;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *) {
  transform: none;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *) img {
  transform: none;
}

main .amazon-badge {
  border-bottom: 1px solid #d8b677;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *) {
  border-color: #c7a15d;
  box-shadow: none;
  background: #f8eed9;
}

.amazon-picture-link {
  display: block;
}

.book-cover>.amazon-picture-link {
  position: absolute;
  inset: 0;
}

.amazon-picture-link:focus-visible {
  outline: 3px solid #895837;
  outline-offset: 6px;
}

.book-cover>.amazon-picture-link {
  pointer-events: none;
}

.book-cover>.amazon-picture-link img {
  pointer-events: none;
}

.book-cover>.amazon-picture-link:after {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 786 / 791;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
}

@media(min-width:741px) and (max-width:1150px) {
  html {
    scroll-padding-top: 160px;
  }
}

@media(max-width:740px) {
  html {
    /* Leave room for the 53px height change during a jump from the top. */
    scroll-padding-top: 192px;
  }

  html:has(body.scrolled) {
    scroll-padding-top: 135px;
  }
}

.wave-logo {
  position: relative;
  isolation: isolate;
}

.wave-logo:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

.wave-logo>img {
  clip-path: inset(73% 0 0 0);
}

@keyframes charly-letter-wave{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-6.5%) rotate(-2.5deg)}65%{transform:translateY(1%) rotate(1deg)}}

@keyframes charly-heart-pulse{0%,100%{transform:scale(1)}28%{transform:scale(1.5)}48%{transform:scale(1)}70%{transform:scale(1.35)}}

#ausmalen .end-art>a {
  position: relative;
  display: block;
  width: min(100%, 470px);
  max-width: 100%;
  margin: 0 auto;
  cursor: default;
}

#ausmalen .coloring-paper-hover { cursor: pointer; }

#ausmalen .coloring-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#ausmalen .coloring-sheet {
  pointer-events: none;
  isolation: isolate;
}

#ausmalen .coloring-paper-shading {
  mix-blend-mode: multiply;
}

#ausmalen .coloring-sheet-paper {
  fill: #fdfdfd;
  filter: drop-shadow(0 3px 3px #49331b3b);
}

#ausmalen .coloring-props {
  filter: drop-shadow(2px 5px 7px #49331b4d);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #ausmalen .coloring-sheet {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 210ms ease-out;
  }

  #ausmalen .coloring-paper-hover:hover:where(html:not([data-touch-input]) *) + .coloring-sheet {
    transform: rotate(2deg);
  }
}

main .amazon-badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(125deg,#fffdf4 0%,#fff8e8 42%,#f9eed8 72%,#fffaed 100%) padding-box,linear-gradient(135deg,#cfb887 0%,#e8d6ae 28%,#cdb283 55%,#ebdbb9 80%,#d2bb91 100%) border-box;
  box-shadow: inset 0 1px 1px #ffffffb3;
}

main .amazon-badge:after {
  content: "";
  position: absolute;
  pointer-events: none;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *), main .amazon-badge:focus-visible {
  border-color: transparent;
  box-shadow: inset 0 1px 1px #ffffffb3;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *):after, main .amazon-badge:focus-visible:after {
  opacity: .3;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *), main .amazon-badge:focus-visible {
  background: linear-gradient(125deg,#fffdf4 0%,#fff8e8 42%,#f9eed8 72%,#fffaed 100%) padding-box,linear-gradient(135deg,#cfb887 0%,#e8d6ae 28%,#cdb283 55%,#ebdbb9 80%,#d2bb91 100%) border-box;
}

main .amazon-badge:after {
  z-index: 1;
  inset: -30% auto -30% -50%;
  width: 42%;
  background: linear-gradient(105deg,transparent 8%,#ffffff59 28%,#fffffff2 50%,#ffffff70 72%,transparent 92%);
  background-size: 100% 100%;
  background-position: 0 0;
  opacity: 0;
  transform: translateX(0);
  transition: none;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *):after, main .amazon-badge:focus-visible:after {
  background-position: 0 0;
  animation: amazon-gold-glint 1100ms cubic-bezier(.3,.1,.3,1) both;
}

@keyframes amazon-gold-glint{0%{transform:translateX(0);opacity:0}15%{opacity:.65}80%{opacity:.65}100%{transform:translateX(450%);opacity:0}}

.story .story-image {
  pointer-events: none;
  cursor: default;
}

.story .story-image img {
  pointer-events: none;
}

.story-hit-shape {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.story-hit-shape path {
  fill: transparent;
  stroke: none;
  pointer-events: fill;
  cursor: pointer;
}

main .amazon-badge, main .amazon-badge:hover:where(html:not([data-touch-input]) *), main .amazon-badge:focus-visible {
  box-shadow: 0 0 12px #70532d26,inset 0 1px 1px #ffffffb3;
}

.story-copy {
  display: flow-root;
}

.hero .book-facts {
  font-size: 16px;
  line-height: 1.5;
  color: #3d4935;
  margin: 0 0 20px;
}

@media(max-width:740px) {
  .hero .book-facts {
    font-size: 15px;
  }
}

@media(max-width:740px) {
  .sketch-author svg {
    width: 32px;
    height: 32px;
  }
}

.book-cover>.amazon-picture-link img {
  will-change: transform;
}

@media(prefers-reduced-motion:reduce) {
  .book-cover>.amazon-picture-link img {
    transform: translateX(-44.58%);
    will-change: auto;
  }
}

.book-cover>.amazon-picture-link:after {
  content: none;
}

.cover-hit-area {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 786 / 791;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}

@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .book-cover>.amazon-picture-link:hover:where(html:not([data-touch-input]) *) img {
    transform: translateX(-44.58%) perspective(700px) rotateX(var(--cover-rx,1.5deg)) rotateY(var(--cover-ry,-3deg)) scale(1.03);
  }
}

.book-cover>.amazon-picture-link:hover:where(html:not([data-touch-input]) *) img {
  transform: translateX(-44.58%) translateY(-6px) perspective(700px) rotateX(var(--cover-rx,2deg)) rotateY(var(--cover-ry,-3deg)) scale(1.03);
}

@media(prefers-reduced-motion:reduce) {
  .book-cover>.amazon-picture-link:hover:where(html:not([data-touch-input]) *) img {
    transform: translateX(-44.58%) scale(1.03);
    transition: none;
  }
}

.book-cover>.amazon-picture-link img {
  transform: translateX(-44.58%) translateY(0) rotate(0deg) scale(1);
  transform-origin: 44.58% 47.2%;
  transition: transform 525ms cubic-bezier(.22,.61,.36,1)!important;
}

.book-cover>.amazon-picture-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) img {
  transform: translateX(-44.58%) translateY(-5px) rotate(-2deg) scale(1.05);
}

.final-section .closing-picture-frame {
  transform-origin: center;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1)!important;
}

.author-teaser {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px 65px;
}

.author-teaser h2 {
  font-family: "Averia Serif Libre",Georgia,serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 24px;
}

.author-teaser p {
  max-width: 740px;
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.author-teaser .text-link {
  display: inline-block;
  color: inherit;
  text-underline-offset: 6px;
  transition: color .25s ease;
}

.author-teaser .text-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  color: #4c8c8b;
}

@media(max-width:1050px) {
  .author-teaser {
    padding: 20px 30px 50px;
  }

  .author-teaser p {
    font-size: 18px;
  }
}

@media(max-width:740px) {
  .author-teaser {
    padding: 16px 24px 30px;
  }

  .author-teaser h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .author-teaser p {
    font-size: 18px;
    line-height: 1.6;
  }
}

main .amazon-badge:before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg,#fff6d9 0%,#f8e3a4 42%,#eed18a 72%,#fff0c4 100%);
  opacity: 0;
  transition: opacity 700ms ease!important;
}

main .amazon-badge:is(:hover:where(html:not([data-touch-input]) *),:focus-visible):before {
  opacity: 0;
}

main .amazon-badge img {
  position: relative;
  z-index: 1;
}

main .amazon-badge {
  transform: scale(1);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(.22,.61,.36,1)!important;
}

main .amazon-badge:hover:where(html:not([data-touch-input]) *), main .amazon-badge:focus-visible {
  transform: scale(1.1);
}

main .amazon-badge:active:where(html:not([data-touch-input]) *) {
  transform: scale(1.08);
}

main .amazon-badge:before {
  content: none;
}

.story .story-image img {
  transform: scale(1);
  transition: transform 800ms cubic-bezier(.22,.61,.36,1)!important;
}

.story:has(.story-image:hover:where(html:not([data-touch-input]) *),.story-copy:hover:where(html:not([data-touch-input]) *)) .story-image img, .story:focus-within:where(html:not([data-touch-input]) *) .story-image img {
  transform: scale(1.07);
}

.hero {
  overflow: visible;
}

.book-cover, .book-cover>.amazon-picture-link {
  overflow: visible;
}

html {
  overflow-anchor: none;
}

.book-carousel .book-page {
  cursor: grab;
}

.book-carousel:active:where(html:not([data-touch-input]) *) .book-page {
  cursor: grabbing;
}

.carousel-dots {
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  min-height: 32px;
}

.carousel-dot {
  position: relative;
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  transition: width 450ms cubic-bezier(.22,.61,.36,1)!important;
}

.carousel-dot:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 6px;
  border-radius: 999px;
  background: #c0b49e52;
  transition: background-color 450ms ease!important;
}

.carousel-dot[aria-pressed="true"] {
  width: 70px;
  background: transparent;
}

.carousel-dot[aria-pressed="true"]:before {
  background: #c0b49e;
}

.carousel-dot:hover:where(html:not([data-touch-input]) *):before {
  background: #c0b49e99;
}

.carousel-dot[aria-pressed="true"]:hover:where(html:not([data-touch-input]) *):before {
  background: #c0b49e;
}

.carousel-dot:focus-visible {
  outline-offset: 2px;
  border-radius: 8px;
}

.hero .age-note {
  display: inline;
  margin-top: 0;
  line-height: inherit;
}

.quiet-moment.extras-section {
  width: calc(100% - 96px);
  max-width: 1184px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media(min-width:741px) and (max-width:1050px) {
  .quiet-moment.extras-section {
    width: calc(100% - 60px);
  }
}

@media(max-width:740px) {
  .quiet-moment.extras-section {
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
  }
}

#ausmalen .end-copy>.eyebrow {
  color: #895837;
  margin-bottom: 8px;
}

#ausmalen .button {
  transform: scale(1);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(.22,.61,.36,1),background-color 250ms ease!important;
}

#ausmalen .button:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  transform: scale(1.05);
}

#ausmalen .button:active:where(html:not([data-touch-input]) *) {
  transform: scale(1.03);
}

.book-carousel {
  -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 3.5%,#000 96.5%,transparent 100%);
  mask-image: linear-gradient(to right,transparent 0%,#000 3.5%,#000 96.5%,transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media(max-width:740px) {
  .book-carousel {
    -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 2.5%,#000 97.5%,transparent 100%);
    mask-image: linear-gradient(to right,transparent 0%,#000 2.5%,#000 97.5%,transparent 100%);
  }
}

html {
  background: #faf5e9;
}

html:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #faf5e9 url('assets/charly-final-3.webp') center top/1440px auto repeat;
}

body {
  background: transparent!important;
}

body:before {
  content: none!important;
}

html.scroll-gliding {
  scroll-behavior: auto!important;
}

.section-divider {
  height: 5px;
  background: #ce5f33;
}

.hero+.section-divider {
  background: #e2a83f;
}

.book-preview+.section-divider {
  background: #ce5f33;
  position: relative;
  top: -20px;
  margin-bottom: -20px;
}

.quiet-moment.extras-section {
  border-top: 5px solid #8e9d5f;
  border-bottom: 0;
}

.final-section+.section-divider {
  background: #4c8c8b;
}

@media(min-width:1051px) {
  .extras-section .video-extra {
    margin-top: calc(-65px + 1cm);
  }
}

.final-section {
  padding-top: 0;
}

.final-section .closing-picture-frame {
  width: 89.25%;
  margin-left: auto;
  margin-right: auto;
}

@media(max-width:740px) {
  .final-section {
    padding-top: 35px;
  }
}

.final-section {
  margin-top: -1cm;
}

@media(max-width:1050px) {
  .extras-section .video-extra {
    margin-top: calc(45px + 1cm);
  }
}

@media(max-width:740px) {
  .extras-section .video-extra {
    margin-top: 0;
  }
}

@media(max-width:740px) {
  main, .hero-inner, .section-heading, .story-copy, .moment-copy, .end-copy, .author-teaser, .author-page, .dialog-copy {
    text-align: center;
  }

  .hero-inner h1, .hero-inner .intro, .hero-inner .details, .hero-inner .book-facts, .story p.description, .author-teaser p {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .section-heading {
    justify-content: center;
  }

  .video-extra .end-copy .sound-controls {
    text-align: center;
    margin: 0;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .footer>span, .footer>nav {
    width: 100%;
  }

  .footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .footer nav a {
    margin: 0;
  }
}

.author-teaser .author-link-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.author-teaser a.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.author-teaser .author-link-hand {
  display: inline-block;
  flex-shrink: 0;
  font-size: 25.5px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
}

main .amazon-badge {
  padding: 11.7px 19.8px;
}

main .amazon-badge img {
  width: 115.2px;
}

@media(max-width:740px) {
  main .amazon-badge {
    padding: 10.8px 18px;
  }

  main .amazon-badge img {
    width: 104.4px;
  }
}

.header .sketch-menu a[href$="#geschichten"][aria-current="location"] .nav-word {
  color: #ce5f33;
}

.header .sketch-menu a[href$="#blick-ins-buch"][aria-current="location"] .nav-word {
  color: #e2a83f;
}

.header .sketch-menu a:nth-child(3)[aria-current="location"] .nav-word {
  color: #8e9d5f;
}

.header .sketch-menu a:nth-child(4)[aria-current="location"] .nav-word {
  color: #4c8c8b;
}

.section-divider {
  -webkit-mask-image: linear-gradient(to right,transparent 0%,#00000026 8.75%,#00000080 22.5%,#000000e5 37.5%,#000 50%,#000000e5 62.5%,#00000080 77.5%,#00000026 91.25%,transparent 100%);
  mask-image: linear-gradient(to right,transparent 0%,#00000026 8.75%,#00000080 22.5%,#000000e5 37.5%,#000 50%,#000000e5 62.5%,#00000080 77.5%,#00000026 91.25%,transparent 100%);
}

.quiet-moment.extras-section {
  border-image: linear-gradient(to right,#8e9d5f00 0%,#8e9d5f26 8.75%,#8e9d5f80 22.5%,#8e9d5fe5 37.5%,#8e9d5f 50%,#8e9d5fe5 62.5%,#8e9d5f80 77.5%,#8e9d5f26 91.25%,#8e9d5f00 100%) 1;
}

.film-frame {
  position: relative;
}

.video-start {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border: 1px solid #895837;
  border-radius: 8px;
  background: #fcf8eff2;
  color: #895837;
  font: 16px "Averia Serif Libre",Georgia,serif;
  white-space: nowrap;
  cursor: pointer;
  z-index: 2;
}

.video-start[hidden] {
  display: none;
}

.book-preview .carousel-dots {
  position: relative;
}

@media(max-width:740px) {
  .book-preview .carousel-dots {
    margin-top: -22px;
  }

  .book-preview {
    padding-bottom: 24px;
  }
}

#geschichten, #blick-ins-buch {
  scroll-margin-top: -40px;
}

#extras, #autor-teaser {
  scroll-margin-top: -16px;
}

.sound-toggle {
  transition: transform .5s ease,background .2s;
  text-decoration: none;
}

.sound-toggle:hover:where(html:not([data-touch-input]) *) {
  transform: scale(1.05);
}

.sound-toggle:active:where(html:not([data-touch-input]) *) {
  transform: scale(1.02);
}

.island-teaser.end {
  margin-top: 18px;
  transform: none;
}

.island-preview {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
}

.island-preview img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 24px #49331b25;
}

#island-dialog::backdrop {
  background: #182a29ba;
  backdrop-filter: blur(5px);
}

.island-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff8e9;
}

.island-bar h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 400;
}

.island-x {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #895837;
  font-size: 30px;
  cursor: pointer;
}

.island-map {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.island-map>img {
  width: 100%;
  height: auto;
  display: block;
}

.island-info {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(380px,88%);
  max-height: 90%;
  overflow: auto;
  padding: 22px 26px;
  background: #fff9eeed;
  box-shadow: 0 12px 50px #163d4255;
  border: 1px solid #c6b18b;
  border-radius: 12px;
  text-align: center;
}

.island-info[hidden] {
  display: none;
}

.island-info .island-x {
  position: absolute;
  right: 6px;
  top: 4px;
}

.island-portrait {
  width: 190px;
  max-width: 65%;
  aspect-ratio: 1;
  margin: auto;
  background-image: url('assets/insel-figuren.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
}

.island-info h3 {
  font-size: 29px;
  margin: 8px 0 10px;
}

.island-info p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.island-hint {
  padding: 12px 20px;
  margin: 0;
  font-size: 16px;
  text-align: center;
}

@media(max-width:600px) {
  .island-info {
    padding: 16px;
  }

  .island-portrait {
    width: 115px;
  }

  .island-info h3 {
    font-size: 24px;
  }

  .island-info p {
    font-size: 16px;
  }

  .island-bar h2 {
    font-size: 21px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .sound-toggle, .island-preview, .island-sign {
    transition: none;
  }
}

.story[role="button"] {
  cursor: pointer;
}

.story[role="button"]:focus-visible {
  outline: 3px solid #167a81;
  outline-offset: 8px;
  border-radius: 6px;
}

.story[role="button"] .story-image {
  cursor: pointer;
}

.story[role="button"]:hover:where(html:not([data-touch-input]) *) :is(.story-number,h3,.description,.read) {
  color: var(--story-color);
}

.story[role="button"]:hover:where(html:not([data-touch-input]) *) .story-image img {
  transform: scale(1.07);
}

.island-teaser .island-preview {
  padding: 9px;
  background: #fff9e5;
  border: 1px solid #d7cdb7;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: 0 7px 15px #46331b24,0 2px 4px #46331b12;
}

@media (prefers-reduced-motion: no-preference) {
  .island-teaser .island-preview {
    transition: transform 525ms cubic-bezier(.22,.61,.36,1);
  }

  .island-teaser .island-preview:focus-visible {
    transform: translateY(-5px) rotate(-4deg) scale(1.03);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .island-teaser .island-preview:hover:where(html:not([data-touch-input]) *) {
    transform: translateY(-5px) rotate(-4deg) scale(1.03);
  }
}

.island-teaser .island-preview img {
  mask-image: none;
  -webkit-mask-image: none;
  max-height: none;
  box-shadow: none;
  border-radius: 3px;
}

.final-section .closing-picture-frame {
  transform: rotate(2deg) scale(1);
}

.final-section .closing-picture-frame:has(.amazon-picture-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)) {
  transform: translateY(-5px) rotate(4deg) scale(1.05);
}

@media(min-width:741px) {
  .final-section {
    grid-template-columns: .95fr 1.05fr;
  }

  .final-section .end-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .final-section .closing-picture {
    grid-column: 2;
    grid-row: 1;
  }
}

@media(max-width:740px) {
  .island-teaser .end-art {
    margin: 0 12px;
  }

  .island-teaser {
    row-gap: 30px;
  }

  .island-teaser .end-copy, .final-section .end-copy {
    display: contents;
  }

  .island-teaser .end-copy>h2, .final-section .end-copy>h2 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .island-teaser .end-art, .final-section .closing-picture {
    grid-column: 1;
    grid-row: 2;
  }

  .island-teaser .end-copy>p, .final-section .end-copy>p {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .island-teaser .end-copy>p {
    margin-top: -20px;
  }

  .island-teaser .end-copy>.sound-toggle, .final-section .end-copy>.amazon-badge {
    grid-column: 1;
    grid-row: 4;
    justify-self: center;
  }

  .island-teaser .end-copy>.sound-toggle {
    margin-top: -8px;
  }
}

main .extras-section .sound-toggle, main .final-section .amazon-badge {
  transform: scale(1);
  transition: transform 500ms cubic-bezier(.22,.61,.36,1),background 200ms ease!important;
}

main .extras-section .sound-toggle:is(:hover:where(html:not([data-touch-input]) *),:focus-visible), main .final-section .amazon-badge:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  transform: scale(1.07);
}

.island-teaser .end-art {
  margin: 0;
  padding: 12px;
}

@media(max-width:740px) {
  .island-teaser .end-art {
    /* Halve the 30px row gap plus 12px of padding above the map. */
    margin-top: -21px;
  }
}

.island-teaser .island-preview {
  width: 89.25%;
  margin-left: auto;
  margin-right: auto;
}

.extras-section .video-extra .film {
  width: calc(89.25% - 21.42px);
  margin: 0 auto;
}

.final-section .closing-picture-frame, .final-section .closing-picture-frame:has(.amazon-picture-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)) {
  transform: rotate(2deg);
  transition: none!important;
}

.island-teaser .island-preview, .extras-section .video-extra .film {
  width: var(--extras-media-width,89.25%);
  max-width: none;
  flex-shrink: 0;
}

.island-teaser .island-preview, .final-section .closing-picture-frame, .video-extra .film-frame {
  box-shadow: 0 7px 15px #46331b24,0 2px 4px #46331b12;
}

#ausmalen .end-art>a {
  transform: translateY(-15px);
  transform-origin: center;
}

@media (min-width: 741px) {
  #ausmalen .end-art>a {
    margin-inline: 0 auto;
    /* The sharpener sits 10% into the image, under the r in Extras. */
    transform: translate(calc(62px - 10%), -15px);
  }
}

.story p.description {
  font-size: 18px;
  line-height: 1.6;
}

main .hero:has(.book-cover .amazon-picture-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)) .amazon-badge:after, main .final-section:has(.closing-picture .amazon-picture-link:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)) .amazon-badge:after {
  background-position: 0 0;
  animation: amazon-gold-glint 1100ms cubic-bezier(.3,.1,.3,1) both;
}

.author-teaser .text-link {
  font-size: calc(17px + 2pt);
}

.story .read .read-hand {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.09em;
}

@media(max-width:740px) {
  .author-teaser .text-link {
    font-size: calc(16px + 2pt);
  }
}

.story.story-reset :is(.story-number,h3,.description,.read) {
  color: #3d4935!important;
}

.story.story-reset .story-image img {
  transform: scale(1)!important;
}

.footer nav a {
  transition: color 250ms ease;
}

.footer nav a:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  color: #4c8c8b;
}

#ausmalen .end-copy {
  position: relative;
  top: -32px;
}

.extras-section .end h2, .final-section .end-copy h2 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.15;
  overflow-wrap: break-word;
}

@media(max-width:740px) {
  #ausmalen .end-art>a {
    width: min(100%, 350px);
  }
}

#story-dialog .close {
  box-shadow: 0 3px 12px #263b3540,0 1px 3px #263b3526;
  transition: background-color 250ms ease,color 250ms ease,box-shadow 250ms ease;
}

#story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  background: #4c8c8b;
  color: #fff9e9;
  box-shadow: 0 4px 14px #263b354d,0 1px 3px #263b3533;
}

.author-teaser .author-link-hand, .author-page .author-link-hand {
  font-size: 38.25px;
  line-height: 1;
  flex-shrink: 0;
}

#island-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  color: #3d4935;
  box-shadow: none;
}

#island-dialog[open] {
  display: grid;
  place-items: center;
}

#island-dialog .island-map {
  flex: none;
  container-type: inline-size;
}

#island-dialog .island-map>img:first-child {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#island-dialog .island-logo {
  position: absolute;
  pointer-events: none;
}

#island-dialog .island-x {
  position: absolute;
  right: max(16px,env(safe-area-inset-right));
  top: max(16px,env(safe-area-inset-top));
  z-index: 6;
  width: 58px;
  height: 58px;
  min-height: 0;
  border: 2px solid #fff4de;
  border-radius: 50%;
  background: #895837;
  box-shadow: 0 5px 18px #182a2966,0 2px 5px #182a294d;
  transition: background .25s,transform .25s;
  cursor: pointer;
  color: white;
}

#island-dialog .island-x:before, #island-dialog .island-x:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23px;
  height: 4px;
  border-radius: 3px;
  background: #fff;
  transform: translate(-50%,-50%) rotate(45deg);
}

#island-dialog .island-x:after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

#island-dialog .island-x:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  background: #4c8c8b;
  transform: scale(1.05);
}

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

.island-arrows path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-outline {
  stroke: #fff4d7;
  stroke-width: .8;
}

.arrow-ink {
  stroke: #3d4935;
  stroke-width: .3;
}

.arrow-tip {
  stroke: #3d4935;
  stroke-width: .35;
  filter: drop-shadow(0 0 .2px #fff4d7);
}

#island-dialog[open] .island-arrows :is(.arrow-outline,.arrow-ink) {
  stroke-dasharray: 1;
  animation: island-draw .65s ease-out var(--delay) both;
}

#island-dialog[open] .arrow-tip {
  transform-box: fill-box;
  transform-origin: center;
  animation: island-tip .3s calc(var(--delay) + .5s) both;
}

#island-dialog .island-info {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(420px,90vw);
  padding: 50px 24px 24px;
  color: #3d4935;
  box-sizing: border-box;
}

#island-dialog .island-info .island-x {
  width: 44px;
  height: 44px;
  right: 8px;
  top: 8px;
}

#island-dialog .island-info h3 {
  font-size: clamp(19px,3.8dvh,27px);
  line-height: 1.15;
  margin: 8px 0;
}

#island-dialog .island-info p {
  font-size: clamp(14px,2.8dvh,18px);
  line-height: 1.4;
}

@keyframes island-unmask{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(-20% -20% -30% -20%)}}

@keyframes island-settle{0%{transform:translateY(-10%) scaleY(.88)}65%{transform:translateY(3%) scaleY(1.04)}82%{transform:translateY(-1%) scaleY(.99)}100%{transform:none}}

@keyframes island-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

@keyframes island-tip{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}

@media(max-height:450px) {
  #island-dialog .island-info {
    width: min(570px,92vw);
    text-align: left;
  }

  #island-dialog .island-portrait {
    position: absolute;
  }

  #island-dialog .island-info p {
    font-size: 14px;
  }
}

@media(max-width:600px) {
  #island-dialog>#island-close {
    width: 50px;
    height: 50px;
    right: 10px;
    top: 10px;
  }
}

#island-dialog {
  --map-rim: 10px;
}

#island-dialog .island-map {
  width: min(calc(100vw - 60px),calc(100dvh - 60px));
  height: min(calc(100vw - 60px),calc(100dvh - 60px));
  box-shadow: none;
}

#island-dialog .island-map:before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--map-rim));
  z-index: -1;
  background: #fff9e5;
  border: 1px solid #d7cdb7;
  border-radius: 8px;
  box-shadow: 0 7px 24px #14272155;
  pointer-events: none;
}

#island-dialog #island-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 0;
  box-shadow: 0 5px 19px #102e3980,0 2px 6px #102e3966;
}

#island-dialog #island-close:before, #island-dialog #island-close:after {
  background: #4c8c8b;
}

#island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  background: #4c8c8b;
}

#island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible):before, #island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible):after {
  background: #fff;
}

body.island-active>:not(#island-dialog), body.island-active>:not(#island-dialog) *, body.island-active>:not(#island-dialog) *:before, body.island-active>:not(#island-dialog) *:after {
  animation-play-state: paused!important;
}

@media(max-width:600px) {
  #island-dialog #island-close {
    width: 44px;
    height: 44px;
    right: 8px;
    top: 8px;
  }
}

#island-dialog .island-logo {
  width: 26.2%;
  left: 3.5%;
  top: 3.5%;
  height: auto;
  filter: drop-shadow(0 2px 3px #17373540);
}

@keyframes island-label-reveal{0%{clip-path:inset(0 0 100% 0);transform:translateY(-6%) scaleY(.94)}75%{clip-path:inset(-15% -15% -20% -15%);transform:translateY(2%) scaleY(1.02)}100%{clip-path:inset(-15% -15% -20% -15%);transform:none}}

@keyframes island-label-scale{0%{opacity:0;transform:scale(.75)}75%{opacity:1;transform:scale(1.025)}100%{opacity:1;transform:scale(1)}}

#island-dialog .island-x:before, #island-dialog .island-x:after, #island-dialog #island-close:before, #island-dialog #island-close:after {
  height: 5px;
  background: #3d4935;
  border-radius: 45% 35% 40% 30%;
  width: 24px;
  transform: translate(-50%,-50%) rotate(43deg);
}

#island-dialog .island-x:after, #island-dialog #island-close:after {
  width: 23px;
  transform: translate(-50%,-50%) rotate(-46deg);
}

#island-dialog .island-x:is(:hover:where(html:not([data-touch-input]) *),:focus-visible):before, #island-dialog .island-x:is(:hover:where(html:not([data-touch-input]) *),:focus-visible):after {
  background: #fff;
}

#island-dialog .island-portrait.is-charly {
  background-image: url('assets/charly-portrait.webp');
  background-size: contain;
  background-position: center!important;
}

#island-dialog .island-sign {
  position: absolute;
  width: max-content;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #3d4935;
  font-family: Luckiest,sans-serif;
  font-size: clamp(12px,2.65cqw,27px);
  line-height: 1;
  letter-spacing: .02em;
  z-index: 2;
  cursor: pointer;
  transform: translate(-50%,-50%) scale(1);
  transform-origin: center;
  transition: transform .225s cubic-bezier(.25,.1,.25,1),color .225s!important;
  filter: drop-shadow(0 2px 3px #223b3440);
}

#island-dialog .island-sign:is(:hover:where(html:not([data-touch-input]) *),:focus-visible,[aria-expanded=true]) {
  transform: translate(-50%,-50%) scale(1.08);
  background: none;
  color: #4c8c8b;
}

/* Each sign is a complete graphic: parchment and outlined lettering scale together. */
#island-dialog .island-plaque {
  display: block;
  max-width: none;
  padding: 0;
  transform-origin: center;
  pointer-events: none;
}

#island-dialog:not(.map-ready) :is(.island-logo,.island-sign,.island-effects,.island-map>img:first-child) {
  visibility: hidden;
}

#island-dialog.map-ready :is(.island-logo,.island-map>img:first-child) {
  animation: island-map-in .35s ease-out both;
}

#island-dialog.map-ready .island-plaque {
  animation: island-sign-in .275s cubic-bezier(.25,.1,.25,1) calc(450ms + var(--delay)) both;
}

@keyframes island-map-in{from{opacity:0}to{opacity:1}}

@keyframes island-sign-in{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}

.island-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  color: #895837;
  background: #fff9e5;
  font-size: 20px;
}

.island-loading[hidden] {
  display: none;
}

.island-loading:before {
  content: '';
  display: block;
  width: 25px;
  height: 25px;
  margin: auto;
  border: 3px solid #89583733;
  border-top-color: #895837;
  border-radius: 50%;
  animation: island-loading 1s linear infinite;
}

.island-loading.load-error:before {
  display: none;
}

.island-retry {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.island-retry[hidden] {
  display: none;
}

@keyframes island-loading{to{transform:rotate(360deg)}}

.island-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.island-water {
  position: absolute;
  inset: 0;
  clip-path: polygon(49.9% 15.2%,51.5% 15.2%,51.1% 17.4%,49.8% 17.4%);
  opacity: .42;
}

.island-water.water-middle {
  clip-path: polygon(49.7% 20.5%,52.9% 20.6%,53.5% 22.5%,53.2% 25.9%,49.9% 26.2%,49.6% 23.4%);
}

.island-water.water-lower {
  clip-path: polygon(49.8% 28.5%,55.3% 28.6%,56.2% 30%,56.3% 33.5%,50.4% 33.7%,50.1% 31%);
}

.island-water:before {
  content: '';
  position: absolute;
  inset: -5% 0;
  background: repeating-linear-gradient(180deg,transparent 0 7px,#ffffffdd 10px,transparent 16px 29px);
  animation: island-water-flow 1.3s linear infinite;
}

@keyframes island-water-flow{to{transform:translateY(29px)}}

.island-spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.5%;
  height: .24%;
  border-radius: 50%;
  background: #fffde8;
  box-shadow: 0 0 6px 2px #fff8dca0;
  opacity: 0;
  animation: island-sparkle 3.8s ease-in-out var(--phase) infinite;
}

@keyframes island-sparkle{0%,20%,100%{opacity:0;transform:scale(.45)}45%{opacity:.95;transform:scale(1.15)}72%{opacity:0;transform:scale(.65)}}

#island-dialog .island-logo {
  z-index: 3;
}

.island-coconut-glint {
  position: absolute;
  left: 26.35%;
  top: 32.2%;
  width: 1.8%;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle,#fffce4 0%,#ffe8a580 23%,transparent 68%);
  animation: island-coconut-shine 9s ease-in-out -3s infinite;
  transform: translate(-50%,-50%);
}

.island-coconut-glint:before, .island-coconut-glint:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9%;
  height: 90%;
  border-radius: 50%;
  background: #fffbe4;
  transform: translate(-50%,-50%) rotate(16deg);
}

.island-coconut-glint:after {
  height: 9%;
  width: 90%;
}

@keyframes island-coconut-shine{0%,83%,100%{opacity:0;transform:translate(-50%,-50%) scale(.35)}88%{opacity:.95;transform:translate(-50%,-50%) scale(1)}94%{opacity:0;transform:translate(-50%,-50%) scale(.5)}}

.island-spark.pond-spark {
  width: .75%;
  height: .18%;
  box-shadow: 0 0 4px 1px #fffadca0;
  animation-duration: 3.2s;
}

.island-gull {
  position: absolute;
  left: 18%;
  top: 19%;
  width: 11%;
  height: 7.3%;
  overflow: visible;
  animation: island-gull-circle 24s linear infinite;
  opacity: .8;
}

.island-gull.gull-two {
  left: 58%;
  top: 17%;
  width: 9.5%;
  height: 6.3%;
  animation-duration: 29s;
  animation-delay: -10s;
}

.island-gull.gull-three {
  left: 48%;
  top: 28%;
  width: 8.5%;
  height: 5.7%;
  animation-duration: 33s;
  animation-delay: -20s;
}

.island-gull path {
  fill: none;
  stroke: #fff9e8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: island-gull-wings 1.7s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes island-gull-circle{0%{opacity:0;transform:translate(0,0) rotate(-6deg)}12%{opacity:.95}50%{transform:translate(calc(var(--flight-x) * .5),calc(var(--flight-y) * .5)) rotate(6deg)}85%{opacity:.95}100%{opacity:0;transform:translate(var(--flight-x),var(--flight-y)) rotate(-6deg)}}

@keyframes island-gull-wings{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.45)}}

#island-dialog .island-effects *, #island-dialog .island-effects *:before {
  animation-play-state: paused;
}

#island-dialog[open].map-ready:not(.info-open):not(.effects-paused) .island-effects *, #island-dialog[open].map-ready:not(.info-open):not(.effects-paused) .island-effects *:before {
  animation-play-state: running;
}

#island-dialog #island-close, #island-dialog #character-close, #story-dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 6;
  display: block;
  width: 40.5px;
  height: 40.5px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #3d4935;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 4px 14px #102e3960,0 2px 5px #102e394d;
  cursor: pointer;
  transform: none;
  transition: background .25s ease,transform .25s ease;
}

#island-dialog #island-close::before, #island-dialog #character-close::before, #story-dialog .close::before, #island-dialog #island-close::after, #island-dialog #character-close::after, #story-dialog .close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3.75px;
  border-radius: 45% 35% 40% 30%;
  background: #3d4935;
  transform: translate(-50%,-50%) rotate(43deg);
}

#island-dialog #island-close::after, #island-dialog #character-close::after, #story-dialog .close::after {
  width: 17.25px;
  transform: translate(-50%,-50%) rotate(-46deg);
}

#island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible), #island-dialog #character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible), #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
  background: #4c8c8b;
  transform: scale(1.05);
}

#island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::before, #island-dialog #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::after, #island-dialog #character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::before, #island-dialog #character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::after, #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::before, #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible)::after {
  background: #fff;
}

@media(max-width:600px) {
  #island-dialog #island-close, #island-dialog #character-close, #story-dialog .close {
    width: 33px;
    height: 33px;
    right: 8px;
    top: 8px;
  }
}

#island-dialog .island-portrait {
  width: min(310px,39dvh);
  max-width: 94%;
}

#island-dialog .island-info {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding-top: 44px;
}

@media(max-height:450px) {
  #island-dialog .island-info {
    padding: 24px 52px 24px 185px;
    min-height: 195px;
  }

  #island-dialog .island-portrait {
    width: 165px;
    max-width: none;
    left: 10px;
    top: 24px;
  }
}

@media(max-width:740px) {
  #island-dialog .island-sign[data-character="1"] {
    --island-sign-x: 19.5%;
    --island-sign-y: 64%;
  }

  #island-dialog .island-sign[data-character="2"] {
    --island-sign-x: 67%;
    --island-sign-y: 44%;
  }

  #island-dialog .island-sign[data-character="3"] {
    --island-sign-x: 91%;
    --island-sign-y: 28.5%;
  }
}

#island-dialog.info-open #island-close {
  visibility: hidden;
  pointer-events: none;
}

#island-dialog .island-info {
  z-index: 10;
  background: #fff9ee;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

#island-dialog.info-open .island-map:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  background: #182a2940;
}

html:has(#story-dialog[open]), body:has(#story-dialog[open]) {
  overflow: hidden;
}

#story-dialog {
  box-sizing: border-box;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

#story-dialog .dialog-inner, #story-dialog .dialog-copy {
  min-width: 0;
  max-width: 100%;
}

#story-dialog .dialog-inner img {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media(max-width:740px) {
  #story-dialog {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow-y: auto;
  }

  #story-dialog .close {
    position: sticky;
    float: right;
    top: 8px;
    right: auto;
    margin: 8px 8px -41px 0;
    z-index: 10;
  }

  #story-dialog .dialog-inner {
    width: 100%;
    padding: 24px 18px;
    box-sizing: border-box;
  }

  #story-dialog .dialog-copy {
    padding: 0;
    overflow-wrap: break-word;
  }

  #story-dialog .dialog-inner img {
    width: 100%;
    max-height: 28dvh;
    padding: 0;
    object-fit: contain;
  }

  #story-dialog .dialog-copy h2 {
    font-size: clamp(26px,7vw,36px);
    line-height: 1.2;
  }

  #story-dialog .dialog-copy p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.5;
  }

  #story-dialog .dialog-copy .eyebrow {
    font-size: 18px;
    margin: 20px 0 16px;
  }
}

.book-preview .book-carousel {
  padding-top: 0;
  padding-bottom: calc(8px + 2%);
  margin-top: calc(8px - 3.45%);
}

.book-preview .book-carousel .book-page img {
  aspect-ratio: 10 / 7;
  margin-top: 0;
  margin-bottom: 0;
}

.book-preview .carousel-dots {
  margin-top: -8px;
}

@media(max-width:740px) {
  .book-preview .book-carousel {
    margin-top: calc(8px - 3.8%);
    padding-bottom: calc(8px + 2.3%);
  }
}

main>.section-divider {
  margin-top: 18px;
}

.hero-inner {
  padding-bottom: 32px;
}

main>.hero+.section-divider {
  margin-top: 18px;
}

.book-preview {
  padding-bottom: 18px;
}

.stories {
  padding-bottom: 51.25px;
}

.final-section {
  padding-bottom: 18.75px;
}

@media(min-width:741px) and (max-width:1050px) {
  .stories {
    padding-bottom: 32.5px;
  }
}

@media(max-width:740px) {
  main>.section-divider {
    margin-top: 15px;
  }

  .hero-inner {
    padding-bottom: 24px;
  }

  main>.hero+.section-divider {
    margin-top: 15px;
  }

  .stories {
    padding-bottom: 25px;
  }

  .final-section {
    padding-bottom: 11.25px;
  }
}

.hero {
  overflow-x: clip;
  overflow-y: visible;
}

.intro-mobile {
  display: none;
}

@media(max-width:740px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero-inner>.hero-copy {
    display: contents!important;
  }

  .hero-inner h1 {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .hero-inner .book-cover {
    order: 2;
    align-self: center;
    flex: none;
    width: min(100%,400px);
    margin: 0 0 4px;
    aspect-ratio: 1.08;
  }

  .hero-inner .intro {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .intro-desktop {
    display: none;
  }

  .intro-mobile {
    display: inline;
  }

  .hero-inner .actions {
    order: 4;
    justify-content: center;
    width: 100%;
  }

  .hero-inner .details {
    order: 5;
    margin: 0;
    width: 100%;
  }

  .hero-inner .book-facts {
    order: 6;
    margin: 0;
    width: 100%;
  }

  #island-dialog .island-sign {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }
}


/* Quieter mobile carousel indicators; keep the expanded touch targets. */
@media(max-width:740px) {
  .carousel-dot { width: 28px; }
  .carousel-dot[aria-pressed="true"] { width: 52px; }
  .carousel-dot:before { top: 14px; height: 4px; }
}

/* Lighter section dividers on mobile. */
@media(max-width:740px) {
  .section-divider { height: 3px; }
  .quiet-moment.extras-section { border-top-width: 3px; }
}

/* Match the author text link and shift each story action as a complete group. */
.story .read {
  font-size: calc(17px + 2pt);
  left: 10px;
}
@media(max-width:740px) {
  .story .read { font-size: calc(16px + 2pt); }
}

/* Align the pointing hand with the author section text above. */
.author-teaser a.text-link {
  position: relative;
  left: 0;
}

/* Reveal the complete map together; labels no longer pop in after opening. */
#island-dialog.map-ready .island-plaque {
  animation: none;
  opacity: 1;
}
.island-open[aria-busy="true"] { cursor: progress; }
@media(min-width:741px) and (hover:hover) and (pointer:fine) {
  #island-dialog .island-sign:hover {
    transform: translate(-50%,-50%) scale(1.08);
    filter: drop-shadow(0 4px 5px #223b3466) brightness(1.06);
  }
}

/* Graphic labels: restore turquoise lettering without recoloring parchment. */
#island-dialog .island-sign {
  transition: transform 225ms cubic-bezier(.25,.1,.25,1), filter 225ms ease!important;
  transition-delay: 0ms!important;
}
#island-dialog .island-plaque-hover {
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 225ms ease;
}
#island-dialog .island-sign:is(:focus-visible,[aria-expanded="true"]) {
  transform: translate(-50%,-50%) scale(1.04);
  filter: drop-shadow(0 4px 5px #223b3466);
}
#island-dialog .island-sign:is(:focus-visible,[aria-expanded="true"]) .island-plaque-hover {
  opacity: 1;
}
@media (hover:hover) and (pointer:fine) {
  #island-dialog .island-sign:hover:where(html:not([data-touch-input]) *) {
    transform: translate(-50%,-50%) scale(1.04);
    filter: drop-shadow(0 4px 5px #223b3466);
  }
  #island-dialog .island-sign:hover:where(html:not([data-touch-input]) *) .island-plaque-hover {
    opacity: 1;
  }
}

/* Keep the map plaque center fixed through every interaction state. */
#island-dialog .island-sign { transform-origin: 50% 50%; }


/* Consistent spacing for adjacent headings and text. */
.author-teaser h2 { margin-bottom: 20px; }
.island-sound-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}

/* Expand the clickable region without changing the parchment graphic. */
#island-dialog .island-sign::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 12px;
}
@media(max-width:740px) {
  .extras-section .video-extra { row-gap: 20px; }
  #island-dialog .island-sign {
    font-size: calc(clamp(12px, 2.65cqw, 27px) * 1.2);
    min-width: 0;
    min-height: 0;
  }
  /* Anchor each enlargement at the opposite corner of the original sign. */
  #island-dialog .island-sign[data-character="0"] {
    left: calc(17.63% + .415970em)!important;
    top: calc(40.66% - .173333em + 10px)!important;
  }
  #island-dialog .island-sign[data-character="1"] {
    left: calc(19.5% + .323444em - 15px)!important;
    top: calc(64% + .173333em)!important;
  }
  #island-dialog .island-sign[data-character="2"] {
    left: calc(67% - .361040em)!important;
    top: calc(44% - .173333em)!important;
  }
  #island-dialog .island-sign[data-character="3"] {
    left: calc(91% - .324502em)!important;
    top: calc(28.5% + .173333em)!important;
  }
  #island-dialog #island-close, #island-dialog #character-close, #story-dialog .close {
    width: 44px;
    height: 44px;
  }
}
/* Keep Paco and Fredo distinct on very narrow screens. */
@media(max-width:360px) {
  #island-dialog .island-sign[data-character="3"]::before { left: 0; bottom: 0; }
}

/* The map logo uses the same letter wave and heart pulse as the menu. */
#island-dialog .island-logo-control {
  position: absolute;
  width: 26.2%;
  left: 3.5%;
  top: 3.5%;
  z-index: 3;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  line-height: 0;
  cursor: default;
  touch-action: manipulation;
  filter: drop-shadow(0 2px 3px #17373540);
}
#island-dialog .island-logo-control .island-logo {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  filter: none;
  opacity: 0;
  animation: none;
}
#island-dialog .island-logo-control :is(.logo-letter,.logo-heart) {
  background-image: url('assets/island-logo.webp');
}
#island-dialog .island-logo-control .logo-letter {
  clip-path: inset(0 var(--clip-right) 0 var(--clip-left));
}
#island-dialog .island-logo-control .letter-0 { --clip-left: 0%; --clip-right: 82%; }
#island-dialog .island-logo-control .letter-1 { --clip-left: 18%; --clip-right: 66%; }
#island-dialog .island-logo-control .letter-2 { --clip-left: 34%; --clip-right: 49%; }
#island-dialog .island-logo-control .letter-3 { --clip-left: 51%; --clip-right: 31%; }
#island-dialog .island-logo-control .letter-4 { --clip-left: 69%; --clip-right: 18%; }
#island-dialog .island-logo-control .letter-5 { --clip-left: 82%; --clip-right: 0%; }
#island-dialog .island-logo-control .logo-heart {
  clip-path: polygon(39% 28%,46% 28%,46% 49%,42.5% 59%,39% 49%);
  transform-origin: 42.5% 43%;
}
#island-dialog:not(.map-ready) .island-logo-control { visibility: hidden; }
#island-dialog .island-logo-control:focus-visible { outline: 2px solid #fff9e5; outline-offset: 6px; }
.map-close-glyph { display: none; }

@media(max-width:740px) {
  /* 26.4 px visible circle = 60% of 44 px, inside a 50 px touch target. */
  #island-dialog #island-close {
    width: 50px;
    height: 50px;
    right: -3.8px;
    top: -3.8px;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  #island-dialog #island-close::before, #island-dialog #island-close::after { content: none; }
  #island-dialog #island-close:is(:hover,:focus-visible) { background: transparent; transform: none; }
  #island-close .map-close-glyph {
    display: block;
    position: absolute;
    inset: 11.8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 9px #102e3960, 0 1px 3px #102e394d;
    pointer-events: none;
    transition: background .25s ease;
  }
  #island-close .map-close-glyph::before, #island-close .map-close-glyph::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10.8px;
    height: 2.25px;
    border-radius: 2px;
    background: #3d4935;
    transform: translate(-50%,-50%) rotate(43deg);
  }
  #island-close .map-close-glyph::after { transform: translate(-50%,-50%) rotate(-46deg); }
  #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .map-close-glyph { background: #4c8c8b; }
  #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .map-close-glyph::before,
  #island-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .map-close-glyph::after { background: white; }
}

/* All character cards share one close control: 70% visible size, 52px target. */
#island-dialog #character-close {
  --character-close-size: 28.35px;
  width: 52px;
  height: 52px;
  top: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
#island-dialog #character-close::before, #island-dialog #character-close::after { content: none; }
#island-dialog #character-close:is(:hover,:focus-visible) { background: transparent; transform: none; }
#character-close .character-close-glyph {
  position: absolute;
  inset: calc((52px - var(--character-close-size)) / 2);
  display: block;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 9px #102e3960, 0 1px 3px #102e394d;
  pointer-events: none;
  transition: background .25s ease, transform .25s ease;
}
#character-close .character-close-glyph::before, #character-close .character-close-glyph::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12.6px;
  height: 2.625px;
  border-radius: 2px;
  background: #3d4935;
  transform: translate(-50%,-50%) rotate(43deg);
}
#character-close .character-close-glyph::after { transform: translate(-50%,-50%) rotate(-46deg); }
#character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .character-close-glyph { background: #4c8c8b; transform: scale(1.05); }
#character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .character-close-glyph::before,
#character-close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .character-close-glyph::after { background: white; }
@media(max-width:740px) {
  #island-dialog #character-close {
    --character-close-size: 30.8px;
    top: 0;
    right: 0;
  }
}

/* The readiness animation must not reveal the static logo behind its animated letters. */
#island-dialog.map-ready .island-logo-control > img.island-logo {
  visibility: hidden;
  opacity: 0;
  animation: none;
}
/* Finger-friendly logo trigger without enlarging the artwork. */
@media(max-width:740px) {
  #island-dialog .island-logo-control::before {
    content: '';
    position: absolute;
    inset: -18px -16px;
    border-radius: 10px;
  }
}

/* Match the book introduction's desktop text size; retain the existing compact sizes. */
@media(min-width:1051px) {
  .extras-section .end-copy > p, .final-section .end-copy > p { font-size: 20px; line-height: 1.6; }
}

/* Keep age and book specifications as one compact information block. */
.hero .book-details { margin: 10px 0 20px; }
.hero .book-details > .details, .hero .book-details > .book-facts { margin: 0; }
.hero .book-details .age-note { margin-top: 0; }
@media(max-width:740px) {
  .hero-inner .book-details { order: 4; width: 100%; margin: 0; }
  .hero-inner .actions { order: 5; }
}

/* Optical spacing: the 18px age line needs less lead-in than the smaller facts line. */
@media(max-width:740px) {
  .hero-inner .book-details { margin-top: -6px; }
  .hero-inner { padding-bottom: 12px; }
  main > .hero + .section-divider { margin-top: 12px; }
}
/* Enlarge mobile spreads by 20%, retaining their distance to heading and dots. */
@media(max-width:740px) {
  .book-preview .book-carousel .book-page { flex-basis: 80.4%; }
  /* Compensate the 1.3x centered slide's extra top/bottom extent. */
  .book-preview .book-carousel {
    margin-top: calc(8px - 2.393%);
    padding-bottom: calc(8px + 3.707%);
  }
}

/* Story previews: mobile close matches the character cards: small icon, generous tap target. */
#story-dialog .story-close-glyph { display: none; }
@media (max-width: 740px) {
  #story-dialog .close {
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    padding: 0;
    margin: 4px 4px -44px 0;
    top: 0;
    right: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    transform: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #story-dialog .close::before,
  #story-dialog .close::after { content: none; }
  #story-dialog .story-close-glyph {
    position: absolute;
    display: block;
    inset: calc((52px - 30.8px) / 2);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px #102e3960, 0 1px 3px #102e394d;
    pointer-events: none;
    transition: background .25s ease, transform .25s ease;
  }
  #story-dialog .story-close-glyph::before,
  #story-dialog .story-close-glyph::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 12.6px;
    height: 2.625px;
    border-radius: 2px;
    background: #3d4935;
    transform: translate(-50%,-50%) rotate(43deg);
  }
  #story-dialog .story-close-glyph::after { transform: translate(-50%,-50%) rotate(-46deg); }
  #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) {
    background: transparent;
    transform: none;
  }
  #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .story-close-glyph {
    background: #4c8c8b;
    transform: scale(1.05);
  }
  #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .story-close-glyph::before,
  #story-dialog .close:is(:hover:where(html:not([data-touch-input]) *),:focus-visible) .story-close-glyph::after {
    background: #fff;
  }
}

/* Give the longer story previews room beside their illustrations. */
@media(min-width:741px) {
  #story-dialog {
    width: calc(100vw - 32px);
    max-width: 1120px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
  }
  #story-dialog .dialog-inner {
    grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
    align-items: center;
    gap: 28px;
    padding: 44px 36px;
  }
  #story-dialog .dialog-inner img {
    width: 100%;
    height: auto;
    max-height: 560px;
    padding: 0;
    object-fit: contain;
    object-position: center;
  }
  #story-dialog .dialog-copy { padding: 0; }
  #story-dialog .dialog-copy .eyebrow { margin: 0 0 18px; }
  #story-dialog .dialog-copy h2 { margin: 0 0 24px; line-height: 1.15; }
  #story-dialog .dialog-copy #dialog-text { margin: 0; }
}
@media(max-width:740px) {
  #story-dialog .dialog-inner { row-gap: 18px; }
  #story-dialog .dialog-copy .eyebrow { margin-top: 0; }
  #story-dialog .dialog-copy #dialog-text { margin-bottom: 0; }
}

/* Stack the preview before either column becomes too narrow to read comfortably. */
@media(min-width:741px) and (max-width:1050px) {
  #story-dialog .dialog-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 32px; }
  #story-dialog .dialog-inner img { width: 100%; height: 340px; max-height: 340px; }
  #story-dialog .dialog-copy { width: 100%; max-width: 660px; margin: 0 auto; }
}

/* Show the mute action while the jungle ambience is playing. */
#sound-toggle .sound-slash { display: none; }
#sound-toggle[aria-pressed="true"] .sound-waves { display: none; }
#sound-toggle[aria-pressed="true"] .sound-slash { display: block; }

/* Let the map determine the shared media width, independently of the closing image. */
.island-teaser .island-preview { width: 89.25%; }
/* Match the closing illustration to the Extras media and center the copy beside it. */
.final-section .closing-picture-frame {
  width: var(--extras-media-width, 75%);
  max-width: 100%;
  box-sizing: border-box;
}
@media(min-width:741px) {
  .final-section { align-items: center; }
  .final-section .end-copy { align-self: center; }
}

/* The copy defines the desktop row height; illustrations fit inside that height. */
#story-dialog .dialog-art { display: contents; }
@media(min-width:1051px) {
  #story-dialog .dialog-art {
    display: block;
    position: relative;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
  }
  #story-dialog .dialog-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: right center;
  }
}

/* Size each art column to the drawing, instead of leaving an empty half-column. */
@media(min-width:1051px) {
  #story-dialog { width: max-content; max-width: calc(100vw - 32px); }
  #story-dialog .dialog-inner {
    grid-template-columns: var(--story-art-width, 350px) minmax(0, clamp(400px, 42vw, 550px));
  }
  #story-dialog .dialog-art {
    height: var(--story-art-height, 320px);
    align-self: center;
  }
  #story-dialog .dialog-art img { object-position: center; }
}

/* Match the butterfly's optical side margins, excluding transparent canvas edges. */
@media(min-width:1051px) {
  #story-dialog .dialog-art img {
    inset: auto;
    left: var(--story-image-left, 0px);
    top: var(--story-image-top, 0px);
    width: var(--story-image-width, 100%);
    height: var(--story-image-height, 100%);
    max-width: none;
  }
  #story-dialog[data-story-art="butterfly"] .dialog-art img { transform: translateY(10px); }
}

/* Give the taller rock illustration more breathing room at both outer edges. */
@media(min-width:1051px) {
  #story-dialog[data-story-art="rock"] .dialog-inner {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* Reduce only the coconut and butterfly teaser artwork; retain hover movement and tap areas. */
.story[data-story="0"] .story-image img,
.story[data-story="1"] .story-image img {
  scale: .9;
  translate: 0 15px;
}

/* Lift the entire stories section and the following document flow by 20px. */
main > .stories { margin-top: -20px; }

/* Reduce the space below the stories heading by 20px, preserving the heading position. */
.stories .section-heading { margin-bottom: -2px; }
@media(max-width:740px) {
  .stories .section-heading { margin-bottom: -6px; }
}

@font-face {
  font-family: "Averia Serif Libre";
  src: url('assets/averia-serif-libre-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Complete raster parchment/foil/type surfaces; isolated icons remain animatable. */
main .extras-section .sound-toggle {
 position: relative; display: inline-block; flex: none;
 width: calc(var(--graphic-width) * .9); max-width: calc(100vw - 24px); height: 46.8px;
 padding: 0; border: 0; border-radius: 13px;
 background: transparent var(--surface) center / 100% 100% no-repeat;
 box-shadow: none; filter: drop-shadow(0 2px 3px #63451e24);
 transform: translate3d(0,0,0) scale(1); transform-origin: center center;
 will-change: transform;
 transition: transform 380ms ease, filter 380ms ease !important;
 text-decoration: none; vertical-align: middle; cursor: pointer;
}
main .extras-section .sound-toggle::before,
main .extras-section .sound-toggle::after { content: none; }
main .extras-section .sound-toggle .extras-label {
 position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
 overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
main .extras-section .sound-toggle .extras-icon {
 position: absolute; left: 12.6px; top: 9px;
 display: block; width: 28.8px; height: 28.8px;
 background: transparent var(--icon-image) center / contain no-repeat;
 transform-origin: center center;
 transform: translate3d(0,0,0) rotate(0deg);
 will-change: transform;
}
main .extras-section .sound-toggle .map-icon,
main .extras-section .sound-toggle .sound-icon-on,
main .extras-section .sound-toggle .sound-icon-off { width: 43.2px; }




main .extras-section #sound-toggle .sound-icon-off { display: none; }
main .extras-section #sound-toggle[aria-pressed="true"] .sound-icon-on { display: none; }
main .extras-section #sound-toggle[aria-pressed="true"] .sound-icon-off { display: block; }
main .extras-section .download-coloring {
 --graphic-width: 325px;
 --surface: url('assets/extras-paper3-download-normal.png');
 --hover-surface: url('assets/extras-paper3-download-hover.png');
}
main .extras-section .sound-toggle.island-open {
 --graphic-width: 255px;
 --surface: url('assets/extras-paper3-map-normal.png');
 --hover-surface: url('assets/extras-paper3-map-hover.png');
}
main .extras-section #sound-toggle {
 --graphic-width: 235px;
 --surface: url('assets/extras-paper3-sound-on-normal.png');
 --hover-surface: url('assets/extras-paper3-sound-on-hover.png');
}
main .extras-section #sound-toggle[aria-pressed="true"] {
 --graphic-width: 235px;
 --surface: url('assets/extras-paper3-sound-off-normal.png');
 --hover-surface: url('assets/extras-paper3-sound-off-hover.png');
}

main .extras-section .sound-toggle:focus-visible {
 outline: none;

 transform: translate3d(0,0,0) scale(1.03); filter: drop-shadow(0 2px 3px #63451e24);
}
@media(hover:hover) and (pointer:fine) {
 main .extras-section .sound-toggle:hover:where(html:not([data-touch-input]) *) {

  transform: translate3d(0,0,0) scale(1.03); filter: drop-shadow(0 2px 3px #63451e24);
 }
}
main .extras-section .sound-toggle:active { transform: translate3d(0,0,0) scale(.99); }
@media(prefers-reduced-motion:reduce) {
 main .extras-section .sound-toggle { transition: none !important; }
 main .extras-section .sound-toggle .extras-icon { animation: none !important; }
}

main .extras-section .download-icon { --icon-image: url('assets/extras-paper3-icon-download-normal.png'); --icon-hover: url('assets/extras-paper3-icon-download-hover.png'); }

main .extras-section .map-icon { --icon-image: url('assets/extras-paper3-icon-map-normal.png'); --icon-hover: url('assets/extras-paper3-icon-map-hover.png'); }

main .extras-section .sound-icon-on { --icon-image: url('assets/extras-paper3-icon-sound-on-normal.png'); --icon-hover: url('assets/extras-paper3-icon-sound-on-hover.png'); }

main .extras-section .sound-icon-off { --icon-image: url('assets/extras-paper3-icon-sound-off-normal.png'); --icon-hover: url('assets/extras-paper3-icon-sound-off-hover.png'); }

main .extras-section .sound-toggle .download-icon,
main .extras-section .sound-toggle .map-icon { top: 8.1px; }
main .extras-section .sound-toggle:focus-visible .extras-icon {  }
@media(hover:hover) and (pointer:fine) {
 main .extras-section .sound-toggle:hover:where(html:not([data-touch-input]) *) .extras-icon {  }
}

/* Crossfade preloaded raster lettering, preserving the same parchment underneath. */
main .extras-section .sound-toggle::before {
 content: ""; position: absolute; inset: 0;
 background: transparent var(--hover-surface) center / 100% 100% no-repeat;
 opacity: 0; transition: opacity 250ms ease;
 pointer-events: none; border-radius: 0;
}
main .extras-section .sound-toggle .extras-icon::after {
 content: ""; position: absolute; inset: 0;
 background: transparent var(--icon-hover) center / contain no-repeat;
 opacity: 0; transition: opacity 250ms ease; pointer-events: none;
}
main .extras-section #sound-toggle[aria-pressed="true"]::before,
main .extras-section #sound-toggle[aria-pressed="true"] .extras-icon::after,
main .extras-section .sound-toggle:focus-visible::before,
main .extras-section .sound-toggle:focus-visible .extras-icon::after { opacity: 1; }
@media(hover:hover) and (pointer:fine) {
 main .extras-section .sound-toggle:hover:where(html:not([data-touch-input]) *)::before,
 main .extras-section .sound-toggle:hover:where(html:not([data-touch-input]) *) .extras-icon::after { opacity: 1; }
}
@media(prefers-reduced-motion:reduce) {
 main .extras-section .sound-toggle::before,
 main .extras-section .sound-toggle .extras-icon::after { transition: none; }
}

/* Consistent regular-weight main and section headings. */
main .hero h1,
main .stories .section-heading h2,
main .book-preview h2,
main .extras-title,
main .extras-section .end h2,
main .final-section .end-copy h2,
main .author-teaser h2 { font-weight: 400; font-synthesis: none; }
main .stories .section-heading h2,
main .book-preview h2,
main .extras-title,
main .extras-section .end h2,
main .final-section .end-copy h2,
main .author-teaser h2 { font-size: 44px; }
@media(max-width:740px) {
 main .stories .section-heading h2,
 main .book-preview h2,
 main .extras-title,
 main .extras-section .end h2,
main .final-section .end-copy h2,
 main .author-teaser h2 { font-size: 36px; }
}


/* Supporting headings: 30px desktop, 25px mobile. */
main .extras-section .end-copy > h2,
main .final-section .end-copy > h2 { font-size: 30px; }
@media(max-width:740px) {
 main .extras-section .end-copy > h2,
 main .final-section .end-copy > h2 { font-size: 25px; }
}

/* Playback state must not move or resize the control. */
/* Compact spacing between supporting headings and their copy. */
@media(min-width:741px) {
 main .extras-section .end-copy > h2,
 main .final-section .end-copy > h2 { margin-bottom: 12px; }
}
@media(max-width:740px) {
 main #ausmalen .end-copy > h2 { margin-bottom: 12px; }
 /* Account for the existing 20px grid gap between these two rows. */
 main .extras-section .video-extra .end-copy > h2 { margin-bottom: -8px; }
}

@media(min-width:1051px) {
 main .extras-section .video-extra .end-copy > h2 {
  width: max-content;
  max-width: none;
  white-space: nowrap;
 }
}

main .extras-section #sound-toggle,
main .extras-section #sound-toggle[aria-pressed="true"] { --graphic-width: 235px; }

/* Playback states share the enlarged geometry, without a click-scale dip. */
main .extras-section #sound-toggle[aria-pressed="true"],
main .extras-section #sound-toggle.sound-size-held,
main .extras-section #sound-toggle:active {
 transform: translate3d(0,0,0) scale(1.03);
 transition: none !important;
}

/* Bring complete Extras rows closer together on desktop. */
/* Playback artwork swaps immediately; idle hover still fades gently. */
main .extras-section #sound-toggle[aria-pressed="true"]::before,
main .extras-section #sound-toggle[aria-pressed="true"] .extras-icon::after,
main .extras-section #sound-toggle.sound-size-held::before,
main .extras-section #sound-toggle.sound-size-held .extras-icon::after {
 transition: none;
}

@media(min-width:1051px) {
 main .extras-section .video-extra { margin-top: calc(-105px + 1cm); }
 main .extras-section .island-teaser.end { margin-top: -22px; }
 main .final-section { margin-top: calc(-1cm + 24px); }
}

/* Image and matching parchment control share their existing hover treatments. */
@media(hover:hover) and (pointer:fine) {
 main .extras-section .sound-toggle.paired-hover {
  transform: translate3d(0,0,0) scale(1.03);
 }
 main .extras-section .sound-toggle.paired-hover::before,
 main .extras-section .sound-toggle.paired-hover .extras-icon::after { opacity: 1; }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 #ausmalen .end-art > a.paired-hover .coloring-sheet { transform: rotate(2deg); }
 .island-teaser .island-preview.paired-hover {
  transform: translateY(-5px) rotate(-4deg) scale(1.03);
 }
}

/* Keep sound artwork mounted and a permanent parchment base under every state. */
main .extras-section #sound-toggle {
 background-image: url('assets/extras-paper3-sound-on-normal.png');
}
main .extras-section #sound-toggle::before { content: none; }
#sound-toggle .sound-artwork { position: absolute; inset: 0; pointer-events: none; }
#sound-toggle .sound-artwork img {
 position: absolute; inset: 0; display: block;
 width: 100%; height: 100%; max-width: none;
 opacity: 0; pointer-events: none;
}
#sound-toggle .sound-artwork .sound-art-normal-on { opacity: 1; }
#sound-toggle .sound-artwork .sound-art-hover-on { transition: opacity 250ms ease; }
#sound-toggle[aria-pressed="true"] .sound-artwork .sound-art-normal-off,
#sound-toggle[aria-pressed="true"] .sound-artwork .sound-art-hover-off { opacity: 1; }
#sound-toggle .extras-icon { z-index: 1; }
@media(hover:hover) and (pointer:fine) {
 #sound-toggle:not([aria-pressed="true"]):hover:where(html:not([data-touch-input]) *) .sound-artwork .sound-art-hover-on,
 #sound-toggle:not([aria-pressed="true"]).paired-hover .sound-artwork .sound-art-hover-on { opacity: 1; }
}
#sound-toggle:not([aria-pressed="true"]):focus-visible .sound-artwork .sound-art-hover-on { opacity: 1; }
#sound-toggle[aria-pressed="true"] .sound-artwork img,
#sound-toggle.sound-size-held .sound-artwork img { transition: none; }
@media(prefers-reduced-motion:reduce) {
 #sound-toggle .sound-artwork .sound-art-hover-on { transition: none; }
}

/* Align only the closing copy with the Extras text column above it. */
/* Mobile images match the film's measured width; all three stay upright. */
@media(max-width:740px) {
 main .extras-section .island-teaser,
 main .extras-section .video-extra,
 main .final-section { grid-template-columns: minmax(0,1fr); }
 main .extras-section .island-teaser .end-art,
 main .final-section .closing-picture {
  width: var(--mobile-film-width,min(100%,400px));
  max-width: none;
  padding: 0;
  margin-inline: 0;
  justify-self: center;
  box-sizing: border-box;
 }
 main .extras-section .island-teaser .island-preview,
 main .final-section .closing-picture-frame {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
 }
 main .extras-section .video-extra .film {
  width: min(100%,400px);
  max-width: none;
  margin-inline: 0;
  justify-self: center;
  box-sizing: border-box;
 }
 main .extras-section .video-extra .film,
 main .extras-section .island-teaser .island-preview,
 main .final-section .closing-picture-frame { transform: none !important; }
}

@media(min-width:1051px) {
 main .final-section .end-copy { margin-left: 48px; }
}
@media(min-width:741px) and (max-width:1050px) {
 main .final-section .end-copy { margin-left: 30px; }
}

/* Match the mobile story links: label centered optically, hand outside. */
@media(max-width:740px) {
  .author-teaser a.text-link {
    left: 10px;
    min-height: 38.25px;
  }
  .author-teaser a.text-link .author-link-hand {
    position: absolute;
    inset-inline-end: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
  }
}
