:root {
  --cream: #fff6d9;
  --cream-soft: #fff9ea;
  --cream-card: #fffdf3;
  --green: #256326;
  --green-dark: #15481b;
  --leaf: #6da13a;
  --red: #d91d2b;
  --red-dark: #a9111b;
  --brown: #4b2c17;
  --ink: #2f241d;
  --blue: #246aa7;
  --sky: #9ed8f2;
  --white: #ffffff;
  --shadow: 0 14px 28px rgba(75, 44, 23, 0.16);
  --soft-shadow: 0 8px 18px rgba(75, 44, 23, 0.12);
  --max-page: 1672px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 26%, rgba(109, 161, 58, 0.1), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(217, 29, 43, 0.06), transparent 24%),
    var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
  line-height: 1.4;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 9px 13px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(100%, var(--max-page));
  min-height: 80px;
  margin: 0 auto;
  padding: 12px clamp(20px, 8vw, 138px);
  background:
    radial-gradient(circle at 1% 0%, rgba(109, 161, 58, 0.22), transparent 13%),
    radial-gradient(circle at 99% 0%, rgba(109, 161, 58, 0.18), transparent 13%),
    var(--cream);
  box-shadow: 0 6px 18px rgba(75, 44, 23, 0.08);
  animation: fade-down 420ms ease both;
}

.brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  color: var(--red);
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 var(--white),
    4px 4px 0 rgba(75, 44, 23, 0.16);
}

.brand-apple {
  position: absolute;
  top: -12px;
  right: 0.42em;
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 55% 45% 50% 50%;
  box-shadow: 0 1px 0 rgba(75, 44, 23, 0.2);
}

.brand-apple::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -8px;
  width: 13px;
  height: 7px;
  background: var(--leaf);
  border-radius: 100% 0 100% 0;
  transform: rotate(-28deg);
}

.brand-apple::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -5px;
  width: 2px;
  height: 7px;
  background: var(--brown);
  border-radius: 99px;
  transform: rotate(12deg);
}

.brand-tagline {
  display: block;
  margin-top: 7px;
  color: var(--green-dark);
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 44px);
  color: var(--green-dark);
  font-size: clamp(0.95rem, 1.45vw, 1.16rem);
  font-weight: 900;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a span {
  color: inherit;
  font-size: 1.24em;
  line-height: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 3px;
  background: var(--red);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--red);
}

.site-nav a.is-active span {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  place-items: center;
  padding: 8px;
  border: 2px solid rgba(37, 99, 38, 0.22);
  border-radius: 12px;
  background: var(--cream-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 3px auto;
  background: var(--green-dark);
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  width: min(100%, var(--max-page));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: min(100%, var(--max-page));
  min-height: 0;
  overflow: hidden;
  background: var(--sky);
  animation: fade-in 520ms 80ms ease both;
}

.hero-artwork {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-explore-link {
  position: absolute;
  left: 41.6%;
  top: 72.6%;
  z-index: 4;
  display: block;
  width: 17.4%;
  height: 17.2%;
  border-radius: 999px;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.hero-explore-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.books {
  position: relative;
  padding: 10px clamp(16px, 7.9vw, 132px) 12px;
  background: var(--cream);
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--brown);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading h2::before,
.section-heading h2::after {
  color: #f4b51d;
  font-size: 0.76em;
}

.section-heading h2::before {
  content: "☘ ★";
  color: var(--leaf);
}

.section-heading h2::after {
  content: "★ ☘";
  color: var(--leaf);
}

.book-carousel {
  position: relative;
}

.book-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  align-items: stretch;
  scroll-behavior: smooth;
}

.book-card {
  min-width: 0;
}

.book-card:nth-child(2).reveal {
  transition-delay: 90ms;
}

.book-card:nth-child(3).reveal {
  transition-delay: 180ms;
}

.book-card:nth-child(4).reveal {
  transition-delay: 270ms;
}

.book-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  color: inherit;
  background: var(--cream-card);
  border: 2px solid rgba(37, 99, 38, 0.14);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.book-link:hover,
.book-link:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 38, 0.34);
  box-shadow: 0 18px 34px rgba(75, 44, 23, 0.2);
}

.cover-frame {
  display: grid;
  place-items: center;
  min-height: clamp(210px, 17vw, 250px);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 234, 0.92)),
    #fff;
  border-bottom: 2px solid rgba(37, 99, 38, 0.1);
}

.cover-frame img {
  width: 100%;
  max-width: 214px;
  height: clamp(178px, 14vw, 218px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(75, 44, 23, 0.18);
}

.book-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 14px;
}

.book-body strong {
  color: var(--red);
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.05;
}

.book-body > span:not(.learn-more) {
  max-width: 24ch;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
  font-weight: 800;
  line-height: 1.14;
}

.book-body .book-stories {
  max-width: 25ch;
  color: var(--green-dark);
  font-size: 0.82rem;
  line-height: 1.18;
}

.learn-more {
  margin-top: 7px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.book-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: #6a9c36;
  box-shadow: var(--soft-shadow);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.book-arrow:hover,
.book-arrow:focus-visible {
  background: var(--green);
  transform: translateY(-50%) scale(1.05);
}

.book-arrow-left {
  left: clamp(-72px, -4.5vw, -58px);
}

.book-arrow-right {
  right: clamp(-72px, -4.5vw, -58px);
}

.author {
  position: relative;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: center;
  width: min(calc(100% - 190px), 1395px);
  min-height: 155px;
  margin-top: 2px;
  padding: 0 34px;
  overflow: hidden;
  background: rgba(223, 240, 193, 0.9);
  border: 2px solid rgba(37, 99, 38, 0.1);
  border-radius: 30px 30px 8px 8px;
  box-shadow: var(--soft-shadow);
}

.author::before,
.author::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 48px;
  background:
    radial-gradient(ellipse at center, rgba(109, 161, 58, 0.4) 0 38%, transparent 40%);
  opacity: 0.5;
}

.author::before {
  left: 30px;
  top: 22px;
}

.author::after {
  right: 34px;
  bottom: 18px;
}

.author-portrait {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  margin-top: -8px;
  background:
    url("author-section.png") 11% center / auto 168px no-repeat,
    #f3d7ce;
  border: 7px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
}

.author-copy {
  position: relative;
  z-index: 1;
}

.author-copy h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.1;
}

.author-copy p {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--brown);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  font-weight: 800;
  line-height: 1.32;
}

.author-bear {
  position: relative;
  z-index: 1;
  height: 142px;
  align-self: end;
  background: url("author-section.png") right bottom / auto 157px no-repeat;
}

.book-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, var(--content));
  padding: 20px 18px 16px;
}

.detail-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 253, 243, 0.94);
  border: 2px solid rgba(37, 99, 38, 0.13);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.detail-card > img {
  width: 100%;
  max-width: 118px;
  height: 118px;
  margin: 0;
  padding: 8px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(37, 99, 38, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(75, 44, 23, 0.13);
}

.detail-card h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(1.14rem, 1.8vw, 1.42rem);
}

.detail-card p {
  margin: 7px 0 0;
  font-weight: 700;
  line-height: 1.26;
}

.included {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.retailer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.retailer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 14px rgba(75, 44, 23, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.retailer-btn:hover,
.retailer-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 11px 18px rgba(75, 44, 23, 0.16);
}

.retailer-authorhouse {
  background: var(--green);
}

.retailer-bn {
  background: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-green {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 18px rgba(37, 99, 38, 0.18);
}

.button-red {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 18px rgba(217, 29, 43, 0.2);
}

.activities {
  padding: 12px 18px 18px;
}

.activities-card {
  max-width: 890px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 42px);
  background: rgba(255, 253, 243, 0.9);
  border: 2px dashed rgba(37, 99, 38, 0.27);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.activities-card h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.activities-card p {
  max-width: 64ch;
  margin: 10px auto 2px;
  font-weight: 800;
}

.site-footer {
  width: min(100%, var(--max-page));
  margin: 0 auto;
  padding: 22px 18px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 3% 68%, rgba(255, 246, 217, 0.16), transparent 12%),
    radial-gradient(circle at 97% 60%, rgba(255, 246, 217, 0.14), transparent 13%),
    linear-gradient(180deg, #226024, #15481b);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
}

.site-footer a {
  color: var(--white);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.leaf,
.butterfly {
  position: absolute;
  display: block;
}

.leaf {
  width: 30px;
  height: 16px;
  background: var(--leaf);
  border-radius: 100% 0 100% 0;
  opacity: 0.5;
}

.leaf-one {
  left: 30%;
  top: 74%;
  animation: leaf-float 7s ease-in-out infinite;
}

.leaf-two {
  right: 28%;
  top: 21%;
  animation: leaf-float 8s 1.1s ease-in-out infinite;
}

.butterfly {
  width: 20px;
  height: 18px;
}

.butterfly::before,
.butterfly::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 18px;
  background: #4e9bc8;
  border-radius: 80% 20% 80% 40%;
}

.butterfly::before {
  right: 9px;
  transform: rotate(-26deg);
}

.butterfly::after {
  left: 9px;
  transform: scaleX(-1) rotate(-26deg);
}

.butterfly-one {
  left: 29%;
  top: 57%;
  animation: butterfly-float 6s ease-in-out infinite;
}

.butterfly-two {
  right: 35%;
  top: 25%;
  animation: butterfly-float 7s 900ms ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes leaf-float {
  0%,
  100% {
    transform: translateY(0) rotate(-18deg);
  }

  50% {
    transform: translateY(13px) rotate(8deg);
  }
}

@keyframes butterfly-float {
  0%,
  100% {
    transform: translateY(0) rotate(7deg);
  }

  50% {
    transform: translateY(-11px) rotate(-8deg);
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding-right: clamp(18px, 4vw, 64px);
    padding-left: clamp(18px, 4vw, 64px);
  }

  .site-nav {
    gap: 18px;
  }

  .book-arrow-left {
    left: -8px;
  }

  .book-arrow-right {
    right: -8px;
  }

  .book-carousel {
    padding: 0 56px;
  }

  .author {
    width: min(calc(100% - 36px), 1395px);
    grid-template-columns: 188px minmax(0, 1fr) 260px;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 74px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 249, 234, 0.98);
    border: 1px solid rgba(37, 99, 38, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(37, 99, 38, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .book-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .book-row::-webkit-scrollbar {
    display: none;
  }

  .book-card {
    flex: 0 0 min(310px, 82vw);
    scroll-snap-align: start;
  }

  .author {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 18px 24px;
  }

  .author-portrait {
    width: 142px;
    height: 142px;
    background-size: auto 142px;
  }

  .author-bear {
    display: none;
  }

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

  .detail-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .detail-card > img {
    max-width: 104px;
    height: 104px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    padding: 11px 16px;
  }

  .brand-mark {
    font-size: 2rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }

  .books {
    padding-right: 12px;
    padding-left: 12px;
  }

  .section-heading h2 {
    display: block;
    font-size: 1.55rem;
  }

  .book-carousel {
    padding: 0 42px;
  }

  .book-arrow {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .author {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), 1395px);
    padding: 18px;
    text-align: center;
  }

  .author-portrait {
    margin: 0 auto;
  }

  .book-details {
    grid-template-columns: 1fr;
    padding-right: 12px;
    padding-left: 12px;
  }

  .detail-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .detail-card > img {
    max-width: 88px;
    height: 88px;
  }

  .retailer-buttons {
    gap: 6px;
  }

  .retailer-btn {
    min-height: 32px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
