@font-face {
  font-family: "Andika";
  src: url("assets/original-template/andika-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Andika";
  src: url("assets/original-template/andika-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "Andika", Arial, sans-serif;
  color: #777;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 14px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #40a041;
}

audio {
  display: block;
  width: 100%;
  min-width: 0;
  height: 38px;
}

.original-header {
  height: 111px;
  background: #fff;
}

.header-inner {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.slogans p {
  position: absolute;
  top: 14px;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.slogan-first {
  left: 0;
  width: calc(20% - 5px);
  color: #8bc53f;
}

.slogan-second {
  left: 22%;
  width: 12%;
  color: #7a7a7a;
}

.original-logo {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 130px;
  height: 91px;
  transform: translateX(-50%);
}

.original-logo img {
  width: 130px;
  height: 91px;
  object-fit: contain;
}

.header-player {
  position: absolute;
  top: 14px;
  right: -10px;
  width: min(360px, 31vw);
  height: 26px;
}

.book-stage {
  position: relative;
  height: 856px;
  overflow: hidden;
  background: #fff url("assets/original-template/bg1.png") center center / cover no-repeat;
}

.book-grid {
  display: grid;
  width: min(1140px, 100%);
  height: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-column {
  position: relative;
  min-width: 0;
}

.release-ribbon {
  position: absolute;
  top: 10px;
  left: 50%;
  width: min(275px, 24vw);
  max-width: 90%;
  height: auto;
  transform: translateX(-50%);
}

.cover {
  position: absolute;
  top: 105px;
  left: 50%;
  width: 385px;
  max-width: calc(100% - 20px);
  height: auto;
  transform: translateX(-50%);
}

.book-donation {
  position: absolute;
  right: 0;
  top: calc(74% + 2px);
  width: 50%;
  padding: 0 10px;
  color: #7a7a7a;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
}

.book-donation p {
  margin: 0 0 26px;
}

.book-donation .donation-title {
  color: #42a041;
  font-size: 17px;
  line-height: 1.3;
}

.book-donation a {
  text-decoration: none;
}

.illustration-section {
  position: relative;
  z-index: 1;
  height: min(calc((100vw - 20px) * 0.6634 + 10px), 952px);
  margin-top: -20px;
  padding: 0 10px;
}

.illustration-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.reader-reviews {
  position: relative;
  z-index: 0;
  min-height: 651px;
  padding: 10px 0;
  background: #fff url("assets/original-template/bg2.png") center center / cover no-repeat;
}

.review-layout {
  display: grid;
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.review-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 19px;
}

.review-stack img {
  width: calc(100% - 10px);
  height: auto;
}

.reader-photo {
  justify-self: center;
  width: 83.5%;
  height: auto;
  object-fit: contain;
}

.reader-banner {
  min-height: 381px;
  padding: 10px;
  background: linear-gradient(180deg, #fff 0%, #e0f1d7 100%);
}

.reader-banner img {
  width: 100%;
  height: auto;
}

.ipad-section {
  position: relative;
  min-height: 697px;
  padding: 10px 0;
  overflow: hidden;
  background: #f4f8eb url("assets/original-template/bg_ipad.png") center bottom / cover no-repeat;
}

.ipad-layout {
  display: grid;
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.ipad-carousel {
  position: relative;
  height: 636px;
  overflow: hidden;
}

.ipad-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: original-slideshow 70s linear infinite;
}

.ipad-carousel img:nth-child(1) { animation-delay: 0s; }
.ipad-carousel img:nth-child(2) { animation-delay: -5s; }
.ipad-carousel img:nth-child(3) { animation-delay: -10s; }
.ipad-carousel img:nth-child(4) { animation-delay: -15s; }
.ipad-carousel img:nth-child(5) { animation-delay: -20s; }
.ipad-carousel img:nth-child(6) { animation-delay: -25s; }
.ipad-carousel img:nth-child(7) { animation-delay: -30s; }
.ipad-carousel img:nth-child(8) { animation-delay: -35s; }
.ipad-carousel img:nth-child(9) { animation-delay: -40s; }
.ipad-carousel img:nth-child(10) { animation-delay: -45s; }
.ipad-carousel img:nth-child(11) { animation-delay: -50s; }
.ipad-carousel img:nth-child(12) { animation-delay: -55s; }
.ipad-carousel img:nth-child(13) { animation-delay: -60s; }
.ipad-carousel img:nth-child(14) { animation-delay: -65s; }

@keyframes original-slideshow {
  0%, 6.3% { opacity: 1; }
  7.2%, 100% { opacity: 0; }
}

.later-reviews {
  align-items: flex-end;
  gap: 14px;
}

.later-reviews img {
  width: calc(100% - 10px);
}

.press-heading,
.audio-title {
  display: flex;
  height: 119px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
}

.press-heading img {
  width: min(745px, 96%);
  height: auto;
}

.press-logos {
  min-height: 563px;
  padding: 20px;
  background: #fff;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.press-grid a {
  display: grid;
  min-width: 0;
  height: clamp(139px, 17.45vw, 251px);
  place-items: center;
  border: 1px solid #8cbe91;
  background: #fff;
  transition: border-color 180ms ease;
}

.press-grid a:hover {
  border: 2px solid #2bad0a;
}

.press-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audio-title {
  height: 119px;
}

.audio-title img {
  width: min(575px, 96%);
  height: auto;
}

.audio-cast {
  min-height: 352px;
  padding: 20px;
}

.cast-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cast-grid img {
  width: 75%;
  height: auto;
  justify-self: center;
  object-fit: contain;
}

.audio-row {
  position: relative;
  z-index: 0;
  display: grid;
  width: min(1120px, calc(100% - 20px));
  min-height: 270px;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  isolation: isolate;
}

.audio-row::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff url("assets/original-template/bg2.png") center center / cover no-repeat;
  content: "";
}

.audio-card {
  display: grid;
  min-width: 0;
  padding: 15px 5px 0;
  grid-template-columns: minmax(100px, 31%) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.audio-card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.audio-details {
  display: flex;
  min-width: 0;
  min-height: 247px;
  padding: 8px 7px 0 0;
  flex-direction: column;
  align-items: flex-start;
}

.audio-details h2 {
  margin: 0;
  color: #2bad0a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.audio-details p {
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.4;
}

.audio-details audio {
  margin-top: auto;
}

.second-audio-row {
  min-height: 270px;
}

.greeting-divider {
  height: 47px;
  padding: 15px 10px 8px;
  overflow: hidden;
}

.greeting-divider img {
  width: 100%;
  height: 15px;
  object-fit: cover;
}

.greetings {
  min-height: 829px;
  padding: 10px 20px 20px;
  background: #fff url("assets/original-template/confetti.png") center center / cover no-repeat;
}

.section-title-image {
  width: min(745px, 96%);
  height: 99px;
  margin: 0 auto 30px;
  object-fit: contain;
}

.portrait-grid {
  display: grid;
  width: min(1100px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.portrait-grid img {
  width: 100%;
  height: auto;
}

.project-team {
  min-height: 489px;
  padding: 10px 20px 25px;
  background: #fff url("assets/original-template/bg2.png") center center / cover no-repeat;
}

.project-team .section-title-image {
  height: 99px;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  width: min(1100px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-grid img {
  width: 100%;
  height: auto;
}

.original-footer {
  display: flex;
  min-height: 343px;
  padding: 10px 20px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #f5faee url("assets/original-template/bg_foot.png") center center / cover no-repeat;
  color: #447543;
  text-align: center;
}

.original-footer img {
  width: 227px;
  height: 207px;
  object-fit: contain;
}

.original-footer a {
  margin-top: 4px;
  color: #447543;
  text-decoration: none;
}

.original-footer p {
  margin: 4px 0 0;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .original-header {
    height: 117px;
  }

  .header-inner {
    width: calc(100% - 40px);
  }

  .release-ribbon {
    width: min(201px, 24vw);
  }

  .cover {
    top: 84px;
  }

  .book-stage {
    height: 860px;
  }

  .book-donation {
    font-size: 17px;
  }

  .book-donation .donation-title {
    font-size: 17px;
  }

  .reader-reviews {
    min-height: 483px;
  }

  .reader-photo {
    width: 81%;
  }

  .reader-banner {
    min-height: 229px;
  }

  .ipad-section {
    min-height: 634px;
  }

  .ipad-carousel {
    height: 574px;
  }

  .press-logos {
    min-height: 338px;
  }

  .press-grid a {
    height: 139px;
  }

  .audio-cast {
    min-height: 323px;
  }

  .cast-grid img {
    width: 95%;
  }

  .audio-row,
  .second-audio-row {
    min-height: 315px;
  }

  .audio-details {
    min-height: 273px;
  }

  .second-audio-row {
    min-height: 295px;
  }

  .greetings {
    min-height: 643px;
  }

  .portrait-grid img {
    max-height: 232px;
    object-fit: cover;
  }

  .project-team {
    min-height: 406px;
  }

  .team-grid img {
    max-height: 207px;
    object-fit: cover;
  }

  .original-footer {
    min-height: 256px;
  }

  .original-footer img {
    width: 132px;
    height: 120px;
  }
}

@media (max-width: 767px) {
  .original-header {
    height: 156px;
  }

  .header-inner {
    width: 100%;
  }

  .slogans p {
    top: 4px;
    font-size: 13px;
  }

  .slogan-first {
    left: 12px;
    width: 30%;
  }

  .slogan-second {
    left: 36%;
    width: 20%;
  }

  .original-logo {
    top: 45px;
    width: 100px;
    height: 70px;
  }

  .original-logo img {
    width: 100px;
    height: 70px;
  }

  .header-player {
    top: 119px;
    right: 10px;
    width: min(280px, 72vw);
  }

  .book-stage {
    height: auto;
    min-height: 0;
    padding-bottom: 270px;
    background-position: center top;
  }

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

  .book-column {
    height: 620px;
  }

  .release-ribbon {
    top: 12px;
    width: min(201px, 62vw);
  }

  .cover {
    top: 80px;
    width: min(385px, 86vw);
  }

  .book-donation {
    top: auto;
    right: 4%;
    bottom: 20px;
    width: 92%;
    font-size: 14px;
  }

  .book-donation .donation-title {
    font-size: 16px;
  }

  .illustration-section {
    height: auto;
    margin-top: 0;
    padding: 0 8px;
  }

  .illustration-section img {
    height: auto;
  }

  .reader-reviews {
    min-height: 0;
    padding: 16px 0;
  }

  .review-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-stack img,
  .reader-photo {
    width: 100%;
  }

  .reader-banner {
    min-height: 0;
    padding: 8px;
  }

  .ipad-section {
    min-height: 0;
    padding: 12px 0;
  }

  .ipad-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ipad-carousel {
    height: 465px;
  }

  .later-reviews {
    align-items: center;
  }

  .later-reviews img {
    width: 100%;
  }

  .press-logos {
    min-height: 0;
    padding: 10px;
  }

  .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .press-grid a {
    height: 125px;
  }

  .audio-cast {
    min-height: 0;
    padding: 12px;
  }

  .cast-grid {
    gap: 6px;
  }

  .audio-row,
  .second-audio-row {
    min-height: 0;
    padding: 12px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .audio-card {
    grid-template-columns: minmax(100px, 31%) minmax(0, 1fr);
  }

  .audio-details {
    min-height: 150px;
  }

  .greeting-divider {
    height: 36px;
    padding-top: 10px;
  }

  .greetings,
  .project-team {
    min-height: 0;
    padding: 10px 12px 20px;
  }

  .section-title-image,
  .project-team .section-title-image {
    height: auto;
    margin-bottom: 16px;
  }

  .portrait-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portrait-grid img,
  .team-grid img {
    max-height: none;
  }

  .original-footer {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipad-carousel img {
    animation: none;
  }

  .ipad-carousel img:first-child {
    opacity: 1;
  }
}
