:root {
  --ink: #171128;
  --ink-soft: #382c52;
  --paper: #fffaf1;
  --paper-strong: #fff4da;
  --white: #ffffff;
  --pink: #ff4fa6;
  --hot-pink: #f625a4;
  --purple: #6b28a8;
  --deep-purple: #2a1648;
  --cyan: #10bbe5;
  --green: #59ca56;
  --gold: #ffd64d;
  --sunset: #ff8a25;
  --coral: #ff6f7e;
  --line: rgba(35, 25, 58, 0.14);
  --shadow: 0 24px 70px rgba(35, 20, 63, 0.2);
  --display-font: "Arial Rounded MT Bold", "Trebuchet MS", "Chalkboard SE", system-ui, sans-serif;
  --story-font: "Chalkboard SE", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --body-font: "Avenir Next", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --rainbow-brand: linear-gradient(90deg, #ff4fa6 0%, #ff9e25 22%, #ffe052 36%, #59ca56 51%, #10bbe5 69%, #9555ee 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.rainbow-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 118px;
  padding: 14px clamp(18px, 4vw, 56px) 38px;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(18, 11, 36, 0.64), rgba(18, 11, 36, 0.28) 56%, rgba(18, 11, 36, 0));
  backdrop-filter: none;
}

.brand,
.nav-links,
.header-cta {
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  overflow: visible;
}

.brand-logo {
  width: clamp(205px, 16vw, 250px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(20, 10, 42, 0.34));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: var(--white);
  font-family: var(--display-font);
  font-size: 1rem;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(107, 40, 168, 0.78),
    0 7px 16px rgba(11, 5, 24, 0.38);
}

.nav-links a,
.header-cta,
.button,
.store-button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.header-cta {
  justify-self: end;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(42, 22, 72, 0.96), rgba(23, 17, 40, 0.96)) padding-box,
    var(--rainbow-brand) border-box;
  color: var(--white);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 14px 30px rgba(23, 17, 40, 0.22);
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible,
.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 74svh;
  isolation: isolate;
  overflow: hidden;
  background: #24143e;
  color: var(--white);
}

.hero-bg,
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-background.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before,
.final-cta::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 15, 43, 0.82) 0%, rgba(20, 15, 43, 0.54) 45%, rgba(20, 15, 43, 0.18) 100%),
    rgba(20, 15, 43, 0.12);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  min-height: 74svh;
  padding: 146px 0 44px;
}

.hero-inner > *,
.story-grid > *,
.retailer-inner > *,
.about-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 670px;
  min-width: 0;
  padding-top: 12px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--display-font);
  text-shadow: 0 2px 0 rgba(107, 40, 168, 0.42);
}

.eyebrow.dark {
  color: var(--purple);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display-font);
  font-weight: 900;
}

p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 4.2vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow:
    0 3px 0 rgba(107, 40, 168, 0.95),
    0 8px 18px rgba(19, 10, 45, 0.32);
  text-wrap: balance;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 20px;
  padding: 0;
  font-family: var(--display-font);
  font-size: clamp(1.36rem, 2.55vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-0.8deg);
}

.hero-subtitle span {
  display: inline-block;
  padding: 0 2px;
  background: var(--rainbow-brand);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.74);
  filter:
    drop-shadow(0 2px 0 rgba(92, 30, 128, 0.96))
    drop-shadow(0 6px 12px rgba(19, 10, 45, 0.36));
  white-space: nowrap;
}

.hero-description {
  max-width: min(100%, 500px);
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-family: var(--story-font);
  font-weight: 500;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-family: var(--display-font);
  font-weight: 900;
}

.button-primary {
  background: var(--gold);
  color: #26172b;
  box-shadow: 0 12px 28px rgba(255, 207, 73, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.button-secondary.light {
  border-color: rgba(23, 17, 40, 0.18);
  background: var(--white);
  color: var(--ink);
}

.store-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 10px 20px;
  background:
    linear-gradient(180deg, #fff8df, #fff1bd) padding-box,
    var(--rainbow-brand) border-box;
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 900;
  box-shadow:
    inset 0 -3px 0 rgba(107, 40, 168, 0.12),
    0 14px 32px rgba(35, 25, 58, 0.14);
}

.store-label {
  color: #7a4a86;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.store-logo {
  display: inline-block;
  white-space: nowrap;
}

.amazon-logo {
  position: relative;
  padding: 0 2px 6px;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.amazon-logo::after {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 42%;
  height: 8px;
  border-bottom: 3px solid #ff9900;
  border-radius: 0 0 80% 80%;
  content: "";
  transform: rotate(-8deg);
}

.store-amazon {
  border-color: transparent;
}

.hero-art {
  align-self: end;
  justify-self: start;
  transform: translateX(-18px);
}

.hero-art img {
  width: min(360px, 100%);
  margin-left: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
  filter: none;
}

.retailer-strip {
  padding: clamp(32px, 5vw, 58px) 0;
  background:
    linear-gradient(90deg, rgba(255, 79, 166, 0.04), rgba(255, 214, 77, 0.1), rgba(16, 187, 229, 0.04)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.retailer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
}

.retailer-strip h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--deep-purple);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.88);
}

.retailer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.retailer-actions .store-button {
  min-width: min(100%, 360px);
  min-height: 76px;
  border-radius: 18px;
}

.story-section,
.why-section,
.inside-section,
.coloring-section,
.about-section {
  padding: clamp(68px, 9vw, 116px) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(580px, 1fr);
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
}

.section-heading h2,
.about-grid h2,
.final-inner h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--deep-purple);
  text-wrap: balance;
}

.story-copy h2 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 2.7vw, 2.74rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--deep-purple);
  text-wrap: balance;
}

.sentence-heading span {
  display: block;
}

.story-copy p,
.about-grid p,
.final-inner p {
  color: var(--ink-soft);
  font-family: var(--story-font);
  font-size: 1.1rem;
}

.book-details {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
}

.book-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.book-details dt {
  color: var(--purple);
  font-family: var(--display-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-details dd {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 800;
}

.feature-image {
  margin: 0;
}

.feature-image img {
  width: min(860px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 25px 55px rgba(35, 20, 63, 0.18));
}

.why-section {
  background: #fff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading.compact {
  max-width: 720px;
}

.reason-grid,
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reason-card,
.sample-card {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--rainbow-brand) border-box;
  box-shadow: 0 18px 46px rgba(35, 25, 58, 0.08);
}

.reason-card {
  min-height: 332px;
  padding: 24px 24px 28px;
}

.reason-icon {
  display: block;
  width: min(190px, 90%);
  height: 126px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(107, 40, 168, 0.2));
}

.reason-card h3,
.sample-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--deep-purple);
}

.reason-card p,
.sample-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--story-font);
}

.inside-section {
  background: var(--paper-strong);
}

.coloring-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 79, 166, 0.16), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(16, 187, 229, 0.16), transparent 30%),
    linear-gradient(135deg, #fff8f2 0%, #fff2cf 48%, #f5fbff 100%);
  border-top: 1px solid rgba(35, 25, 58, 0.08);
  border-bottom: 1px solid rgba(35, 25, 58, 0.08);
}

.coloring-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.coloring-copy {
  max-width: 560px;
}

.coloring-copy h2 {
  margin-bottom: 20px;
  color: var(--deep-purple);
  font-size: clamp(2.25rem, 4.2vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.coloring-copy p {
  color: var(--ink-soft);
  font-family: var(--story-font);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.coloring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button-coloring {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, #ffed86, #ff9b36) padding-box,
    var(--rainbow-brand) border-box;
  color: #fff7b7;
  text-shadow:
    0 2px 0 rgba(107, 40, 168, 0.88),
    0 4px 10px rgba(35, 20, 63, 0.24);
  box-shadow:
    inset 0 -4px 0 rgba(107, 40, 168, 0.22),
    0 16px 32px rgba(255, 79, 166, 0.18);
}

.coloring-preview {
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 24px 46px rgba(107, 40, 168, 0.18));
  transform: rotate(1deg);
  transition: transform 180ms ease, filter 180ms ease;
}

.coloring-preview:hover,
.coloring-preview:focus-visible {
  filter: drop-shadow(0 28px 52px rgba(107, 40, 168, 0.24));
  transform: rotate(0deg) translateY(-2px);
}

.coloring-preview img {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
}

.sample-card {
  overflow: hidden;
}

.sample-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sample-card div {
  padding: 20px;
}

.about-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 79, 166, 0.12), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(16, 187, 229, 0.14), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #fff4da 100%);
  border-top: 1px solid rgba(35, 25, 58, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.about-copy {
  max-width: 690px;
}

.about-copy h2 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.98;
  color: var(--deep-purple);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}

.about-copy p {
  margin-bottom: 15px;
}

.about-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 26px;
  color: var(--deep-purple);
  font-family: var(--display-font);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.family-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
  align-items: stretch;
}

.family-collage::before {
  position: absolute;
  inset: 8% -5% 6% 10%;
  z-index: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 214, 77, 0.34), transparent 34%),
    radial-gradient(circle at 78% 62%, rgba(255, 79, 166, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.52);
  content: "";
  filter: blur(0.2px);
  transform: rotate(-2deg);
}

.family-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#fffaf1, #fffaf1) padding-box,
    var(--rainbow-brand) border-box;
  box-shadow: 0 18px 42px rgba(35, 20, 63, 0.18);
}

.family-photo:nth-child(2) {
  transform: rotate(-2.2deg);
}

.family-photo:nth-child(3) {
  transform: rotate(2.4deg);
}

.family-photo-tall {
  grid-column: 1 / -1;
  width: min(62%, 330px);
  justify-self: center;
  transform: rotate(-1deg);
}

.family-photo-wide {
  grid-column: 1 / -1;
  transform: rotate(1.2deg);
}

.family-photo img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.family-photo-wide img {
  aspect-ratio: 16 / 8.4;
  object-position: center 42%;
}

.family-photo:not(.family-photo-wide) img {
  aspect-ratio: 4 / 5;
}

.family-photo-tall img {
  object-position: center top;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 11vw, 136px) 0;
  background: #24143e;
  color: var(--white);
  text-align: center;
}

.final-cta::before {
  background: rgba(20, 15, 43, 0.68);
}

.final-inner {
  max-width: 820px;
}

.final-inner h2 {
  color: var(--white);
  text-shadow:
    0 3px 0 rgba(107, 40, 168, 0.95),
    0 8px 20px rgba(19, 10, 45, 0.36);
}

.final-inner p {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--story-font);
  font-size: 1.18rem;
}

.centered {
  justify-content: center;
}

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-inner,
  .story-grid,
  .retailer-inner,
  .coloring-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-art {
    width: min(420px, 82vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-art img {
    margin: 0 auto;
  }

  .retailer-actions {
    justify-content: flex-start;
  }

  .retailer-actions,
  .reason-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .coloring-copy {
    max-width: 700px;
  }

  .coloring-preview {
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 78px;
    padding: 10px 16px 24px;
  }

  .brand-logo {
    width: 172px;
  }

  .header-cta {
    display: none;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    min-height: auto;
    padding: 96px 0 46px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.3vw, 2.36rem);
    overflow-wrap: normal;
  }

  .hero-subtitle {
    margin: -2px 0 18px;
    font-size: clamp(1.2rem, 6.6vw, 1.58rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .button,
  .store-button {
    width: 100%;
  }

  .coloring-actions {
    flex-direction: column;
  }

  .book-details div,
  .family-collage {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: 0;
  }

  .reason-icon {
    width: min(176px, 82%);
    height: 112px;
  }

  .family-photo-wide {
    grid-column: auto;
  }

  .family-photo-tall {
    width: 100%;
  }

  .family-photo img,
  .family-photo:not(.family-photo-wide) img {
    aspect-ratio: 4 / 4.5;
  }

  .family-photo-wide img {
    aspect-ratio: 16 / 10;
    object-position: center center;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
