:root {
  --paper: #fffaf0;
  --paper-deep: #f2e7d0;
  --ink: #26212f;
  --ink-soft: #554d60;
  --line: rgba(38, 33, 47, 0.16);
  --series-purple: #6753a5;
  --series-purple-deep: #3c2f68;
  --series-purple-soft: #ded6f5;
  --spell-lime: #b8d956;
  --spell-yellow: #ffd44f;
  --search-blue: #a9def0;
  --search-red: #e9584b;
  --shadow: 0 28px 72px rgba(38, 33, 47, 0.2);
  --small-shadow: 0 14px 38px rgba(38, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.95);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50% 44% 54% 43%;
  font-family: "Bree Serif", Georgia, serif;
  font-size: 15px;
  transform: rotate(-6deg);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: "Bree Serif", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand-copy span {
  margin-top: 5px;
  color: #6d6576;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-nav a {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.series-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 23%, rgba(255, 212, 79, 0.78) 0 4px, transparent 5px),
    radial-gradient(circle at 87% 16%, rgba(184, 217, 86, 0.76) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 80%, rgba(255, 255, 255, 0.48) 0 3px, transparent 4px),
    linear-gradient(135deg, #f2edff 0%, #d8cdf5 44%, #8c77c5 100%);
  background-size: 96px 96px, 126px 126px, 82px 82px, auto;
}

.series-hero::before,
.series-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 47% 53% 43% 57%;
}

.series-hero::before {
  width: 470px;
  height: 470px;
  right: -190px;
  top: -190px;
  border: 58px solid rgba(255, 255, 255, 0.18);
  transform: rotate(21deg);
}

.series-hero::after {
  width: 310px;
  height: 310px;
  left: -145px;
  bottom: -150px;
  background: rgba(255, 212, 79, 0.25);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  padding: 76px 0 96px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.kicker,
.eyebrow,
.shelf-position {
  margin: 0 0 14px;
  color: var(--series-purple-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Bree Serif", Georgia, serif;
  font-size: clamp(55px, 7.4vw, 96px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: #40394a;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
}

.primary-action,
.pending-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--series-purple-deep);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(60, 47, 104, 0.28);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #2f2357;
  transform: translateY(-1px);
}

.text-action {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.creator-line {
  margin: 25px 0 0;
  color: #595061;
  font-size: 13px;
  font-weight: 800;
}

.hero-books {
  position: relative;
  width: min(460px, 100%);
  min-height: 540px;
  justify-self: center;
}

.lead-cover {
  position: absolute;
  z-index: 2;
  width: min(338px, 76%);
  left: 3%;
  top: 20px;
  margin: 0;
}

.lead-cover::before {
  position: absolute;
  inset: 8% -8% -5% 11%;
  z-index: -1;
  content: "";
  border: 3px solid rgba(38, 33, 47, 0.56);
  border-radius: 34% 48% 39% 44%;
  background: var(--spell-lime);
  transform: rotate(7deg);
}

.lead-cover img,
.secondary-cover img,
.next-cover,
.shelf-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.lead-cover img {
  border: 8px solid rgba(255, 250, 240, 0.98);
  border-radius: 4px 18px 18px 4px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.secondary-cover {
  position: absolute;
  width: min(250px, 56%);
  right: 0;
  top: 94px;
  opacity: 0.9;
  transform: rotate(8deg);
}

.secondary-cover img {
  border: 7px solid rgba(255, 250, 240, 0.92);
  border-radius: 4px 15px 15px 4px;
  box-shadow: 0 22px 55px rgba(38, 33, 47, 0.22);
}

.start-badge,
.shelf-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 9px 13px 10px 16px;
  background: var(--spell-yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.start-badge {
  left: -29px;
  top: -17px;
}

.cover-note {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 37px;
  max-width: 190px;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 13px 18px 11px 21px;
  background: #fff6ad;
  font-family: "Bree Serif", Georgia, serif;
  font-size: 17px;
  line-height: 1.18;
  transform: rotate(3deg);
}

.lead-book {
  padding: clamp(82px, 10vw, 132px) 0;
  overflow: hidden;
  background: #201c28;
  color: #fffaf0;
}

.lead-grid,
.color-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(46px, 8vw, 104px);
}

.story-art {
  margin: 0;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 22px 10px 28px 14px;
  background: #fff;
  color: #5b5364;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.story-art img {
  width: 100%;
  aspect-ratio: 1.54 / 1;
  object-fit: cover;
}

.story-art figcaption,
.next-art figcaption {
  padding: 11px 15px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.book-copy h2,
.color-copy h2,
.next-copy h2,
.section-heading h2,
.shelf-heading h2 {
  margin: 0;
  font-family: "Bree Serif", Georgia, serif;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.eyebrow.light {
  color: var(--spell-lime);
}

.book-hook {
  margin: 23px 0 0;
  font-family: "Bree Serif", Georgia, serif;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.16;
}

.book-copy > p:not(.eyebrow, .book-hook),
.next-copy > p:not(.eyebrow, .book-hook),
.color-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: #ddd7e3;
  font-size: clamp(17px, 1.55vw, 20px);
}

.book-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.book-details li {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #f1edf5;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pending-action {
  margin-top: 30px;
  cursor: not-allowed;
  opacity: 0.9;
}

.pending-action:not([disabled]) {
  cursor: pointer;
  opacity: 1;
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.purchase-actions .pending-action {
  margin-top: 0;
}

.light-action {
  background: var(--spell-yellow);
  color: var(--ink);
  box-shadow: none;
}

.color-beat {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--series-purple-soft);
}

.color-grid {
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.12fr);
}

.color-copy > p:not(.eyebrow) {
  color: #4d4657;
}

.color-art {
  transform: rotate(1.15deg);
}

.next-adventure {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 11vw, 142px) 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.72) 0 5px, transparent 6px),
    radial-gradient(circle at 91% 28%, rgba(233, 88, 75, 0.5) 0 5px, transparent 6px),
    #dff4fb;
  background-size: 96px 96px, 126px 126px, auto;
}

.next-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(340px, 0.8fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(35px, 5vw, 68px);
}

.next-cover-wrap {
  position: relative;
}

.next-cover {
  border: 7px solid #fff;
  border-radius: 4px 16px 16px 4px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.book-number {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  right: -18px;
  top: -23px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50% 44% 52% 43%;
  background: var(--search-red);
  color: #fff;
  font-family: "Bree Serif", Georgia, serif;
  font-size: 25px;
  transform: rotate(7deg);
}

.next-copy > p:not(.eyebrow, .book-hook) {
  color: #4d4657;
}

.compact-details li {
  border-color: rgba(38, 33, 47, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.next-art {
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 20px 11px 25px 15px;
  background: #fff;
  color: #5b5364;
  box-shadow: var(--small-shadow);
  transform: rotate(1.5deg);
}

.next-art img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  object-position: center;
}

.read-together {
  padding: clamp(84px, 10vw, 132px) 0;
  background: var(--paper);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  max-width: 670px;
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 20px);
}

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

.reading-card {
  min-height: 260px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 17px 25px 19px 29px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--small-shadow);
}

.reading-card:nth-child(2) {
  border-radius: 27px 15px 25px 17px;
}

.reading-card:nth-child(3) {
  border-radius: 15px 28px 18px 24px;
}

.card-mark {
  display: block;
  margin-bottom: 23px;
  color: var(--series-purple);
  font-family: "Bree Serif", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.reading-card h3 {
  margin: 0;
  font-family: "Bree Serif", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

.reading-card p {
  margin: 15px 0 0;
  color: #5b5364;
  line-height: 1.55;
}

.book-shelf {
  padding: clamp(88px, 11vw, 140px) 0;
  background: var(--series-purple-deep);
  color: #fff;
}

.shelf-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 50px;
}

.shelf-heading .eyebrow {
  color: var(--spell-lime);
}

.shelf-heading > p {
  margin: 0 0 6px;
  color: #d9d2e7;
  font-size: 18px;
}

.series-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
}

.shelf-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 28px;
  padding: 29px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.shelf-lead {
  border-color: rgba(184, 217, 86, 0.52);
  background: rgba(184, 217, 86, 0.1);
}

.shelf-cover {
  position: relative;
}

.shelf-cover img {
  border: 5px solid #fff;
  border-radius: 3px 11px 11px 3px;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.24);
}

.shelf-label {
  left: -13px;
  top: -15px;
}

.secondary-label {
  background: var(--search-blue);
  transform: rotate(3deg);
}

.shelf-position {
  color: #cfc6df;
}

.shelf-copy h3 {
  margin: 0;
  font-family: "Bree Serif", Georgia, serif;
  font-size: clamp(31px, 3vw, 43px);
  font-weight: 400;
  line-height: 1;
}

.shelf-copy > p:not(.shelf-position) {
  margin: 16px 0 0;
  color: #ddd7e8;
  line-height: 1.5;
}

.retailer-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.retailer-list a,
.retailer-list button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.retailer-list button {
  cursor: not-allowed;
}

.retailer-list span {
  font-weight: 900;
}

.retailer-list small {
  color: #cfc6df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 35px 0;
  background: #1e1926;
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.footer-series {
  color: #fff;
  font-family: "Bree Serif", Georgia, serif;
  font-size: 20px !important;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: 38px;
  }

  .next-grid {
    grid-template-columns: minmax(210px, 0.48fr) minmax(0, 0.92fr);
  }

  .next-art {
    grid-column: 1 / -1;
    width: min(720px, 100%);
    justify-self: center;
  }

  .next-art img {
    aspect-ratio: 1.54 / 1;
  }

  .series-shelf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .lead-grid,
  .color-grid,
  .next-grid,
  .shelf-heading {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-books {
    width: min(470px, 100%);
  }

  .lead-book .book-copy {
    grid-row: 1;
  }

  .color-copy {
    max-width: 660px;
  }

  .next-grid {
    max-width: 720px;
  }

  .next-cover-wrap {
    width: min(280px, 78%);
  }

  .next-art {
    grid-column: auto;
  }

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

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .header-inner {
    min-height: 66px;
  }

  .header-nav {
    display: none;
  }

  .series-hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 42px;
    padding: 54px 0 72px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 14.3vw, 70px);
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
    text-align: center;
  }

  .text-action {
    align-self: center;
  }

  .creator-line span {
    display: none;
  }

  .creator-line {
    display: grid;
    gap: 2px;
  }

  .hero-books {
    width: min(360px, 94%);
    min-height: 450px;
    margin: 0 auto;
  }

  .lead-cover {
    width: 73%;
    left: 2%;
  }

  .secondary-cover {
    width: 53%;
    top: 76px;
  }

  .start-badge {
    left: -12px;
  }

  .cover-note {
    right: -5px;
    bottom: 18px;
    max-width: 164px;
    font-size: 15px;
  }

  .lead-book,
  .color-beat,
  .next-adventure,
  .read-together,
  .book-shelf {
    padding: 76px 0;
  }

  .lead-grid,
  .color-grid,
  .next-grid {
    gap: 37px;
  }

  .book-copy h2,
  .color-copy h2,
  .next-copy h2,
  .section-heading h2,
  .shelf-heading h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .story-art,
  .next-art {
    border-width: 6px;
  }

  .book-details {
    gap: 7px;
  }

  .pending-action {
    width: 100%;
  }

  .next-cover-wrap {
    margin-left: 10px;
  }

  .shelf-heading {
    gap: 22px;
  }

  .shelf-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .shelf-label {
    min-height: 31px;
    left: -11px;
    top: -13px;
    padding: 0 9px;
    font-size: 9px;
  }

  .shelf-copy h3 {
    font-size: 31px;
  }

  .retailer-list {
    grid-column: 1 / -1;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .hero-books {
    min-height: 408px;
  }

  .cover-note {
    bottom: 6px;
  }

  .shelf-card {
    grid-template-columns: 1fr;
  }

  .shelf-cover {
    width: min(185px, 65%);
  }

  .shelf-copy > p:not(.shelf-position) {
    margin-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
