:root {
    --ink: #38312d;
    --muted: #756d65;
    --cream:#fffaf0;
    --pink: #ed6c88;
    --green: #426951;
    --line: #e7dfd0;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
    cursor: pointer;
}

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

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -.045em;
}

h1,
h2 {
    font-weight: 800;
}

p {
    color: var(--muted);
}

.wrap {
    max-width: 1240px;
    width: calc(100% - 96px);
    margin: auto;
}

.header {
    height: 112px;
    max-width: 1376px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}

.brand {
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: -2px;
    display: grid;
    grid-template-columns: 38px auto;
    column-gap: 9px;
    line-height: 1;
}

.brand svg {
    width: 34px;
    fill: var(--pink);
    grid-row: span 2;
    align-self: center;
    transform: rotate(-15deg);
}

.brand-note {
    font: 10px 'Trebuchet MS', sans-serif;
    letter-spacing: 1.2px;
    margin-top: 6px;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: bold;
}

.header nav a:not(.nav-cta):hover,
.text-link:hover {
    color: #a53558;
}

.nav-cta {
    border: 1px solid #d6cbb8;
    border-radius: 28px;
    padding: 11px 20px;
}

.nav-cta span {
    margin-left: 14px;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 65px;
}

.eyebrow {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.5;
    color: #6e6d59;
}

.tiny-star {
    color: #b99a3c;
    font-size: 19px;
    vertical-align: middle;
    margin-right: 7px;
    margin-left: 7px;
}

.hero h1 {
    font-size: clamp(52px, 5.55vw, 78px);
    margin: 24px 0 25px;
    letter-spacing: -4px;
}

.rainbow {
    color: #d95877;
    position: relative;
    display: inline-block;
}

.rainbow:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 7px;
    border-top: 3px solid #e6bb62;
    border-radius: 50%;
    transform: rotate(-2deg);
}

.hero-copy > p {
    font-size: 17px;
    line-height: 1.8;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 33px;
}

.button {
    display: inline-flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
}

.pink {
    background: var(--pink);
    color: #332322;
    box-shadow: 0 5px 0 #e7b2a22b;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(.97);
}

.text-link {
    font-size: 13px;
    font-weight: bold;
}

.text-link span {
    margin-left: 10px;
}

.hero-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 42px;
    font-size: 11px;
    line-height: 1.5;
    color: #7f796b;
}

.color-dots {
    display: flex;
    padding-left: 4px;
}

.color-dots i {
    width: 22px;
    height: 22px;
    border: 2px solid var(--cream);
    border-radius: 50%;
    margin-left: -4px;
    background: #e98699;
}

.color-dots i:nth-child(2) {
    background: #edc75d;
}

.color-dots i:nth-child(3) {
    background: #92af83;
}

.color-dots i:nth-child(4) {
    background: #84b9ce;
}

.hero-art {
    height: 600px;
    position: relative;
    background: #e9edd7;
    border-radius: 150px 150px 28px 28px;
    transform: rotate(2deg);
    border: 8px solid #fff;
    box-shadow: 0 15px 45px #61483212;
}

.hero-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    border-radius: inherit;
}

.art-top {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    color: #385d49;
    font-weight: bold;
    z-index: 1;
}

.art-top span:last-child {
    display: block;
    font-size: 30px;
}

.art-label {
    background: #fff5d9;
    position: absolute;
    bottom: 27px;
    left: -25px;
    box-shadow: 0 4px 14px #57341d16;
    padding: 17px 52px 17px 23px;
    transform: rotate(-7deg);
    border: 1px solid #e4d6ad;
    border-radius: 6px;
    font-size: 23px;
    font-weight: bold;
    line-height: 1.2;
}

.art-label em {
    font: italic 24px Georgia, serif;
    color: #a44b60;
}

.art-label > span {
    position: absolute;
    right: 15px;
    top: 25px;
    font-size: 30px;
    color: var(--pink);
}

.art-spark {
    position: absolute;
    right: -18px;
    top: 49%;
    font-size: 66px;
    color: #e5b63e;
    transform: rotate(10deg);
    text-shadow: 2px 3px #fff;
}

.ribbon {
    border-block: 1px solid #e5ddcb;
    background: #e5dfd0;
    display: flex;
    justify-content: center;
    gap: 47px;
    padding: 17px 24px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.ribbon b {
    color: #b19a56;
}

.section {
    padding-top: 95px;
    padding-bottom: 85px;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 38px;
}

.section-top p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 5px;
}

h2 {
    font-size: 46px;
    margin-top: 17px;
    letter-spacing: -1.9px;
}

.serif {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.book-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.book-display {
    height: 420px;
    position: relative;
    border-radius: 20px;
    background: #dce2d1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.winter .book-display {
    background: #dce1e8;
}

.book-display:before {
    content: '';
    position: absolute;
    width: 325px;
    height: 325px;
    border: 1px solid #fff9;
    border-radius: 50%;
    box-shadow: 0 0 0 35px #ffffff36, 0 0 0 70px #ffffff26;
}

.book-tag {
    position: absolute;
    left: 24px;
    top: 21px;
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #516140;
    font-weight: bold;
}

.winter .book-tag {
    color: #4a617e;
}

.cover {
    height: 300px;
    width: auto;
    position: relative;
    transform: rotate(-7deg);
    box-shadow: -4px 2px 0 #fff, -8px 4px 0 #d7d0b9, 12px 19px 20px #2b412a30;
    transition: transform .3s;
}

.winter .cover {
    transform: rotate(6deg);
}

.book-card:hover .cover {
    transform: rotate(-3deg) translateY(-4px);
}

.winter:hover .cover {
    transform: rotate(3deg) translateY(-4px);
}

.display-doodle {
    position: absolute;
    right: 42px;
    top: 60px;
    font-size: 55px;
    color: #9ab16a;
}

.winter .display-doodle {
    color: #93abc2;
}

.peek {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #fffdf5;
    border: 0;
    border-radius: 24px;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px #00000009;
}

.peek:hover {
    background: #ffe2e8;
}

.peek span {
    margin-left: 12px;
}

.book-info {
    padding: 25px 8px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-kicker {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #8c7856;
    font-weight: bold;
}

.book-info h3 {
    font-size: 25px;
    margin-top: 10px;
    letter-spacing: -.7px;
}

.book-info p {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.book-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    gap: 12px;
}

.availability {
    font-size: 11px;
    color: #6b6b55;
    background: #efe9d6;
    border-radius: 20px;
    padding: 5px 12px;
}

.author {
    font: italic 14px Georgia, serif;
    color: #80756b;
}

.play {
    background: #e4dfe7;
    border-block: 1px solid #e6dfed;
    position: relative;
    overflow: hidden;
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: center;
    gap: 60px;
    max-width: 1240px;
}

.play-copy .eyebrow {
    color: #796b85;
}

.coming {
    display: inline-block;
    font-size: 10px;
    background: #e3d9ec;
    color: #665073;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 26px;
}

.play h2 {
    margin-top: 16px;
}

.play-copy > p {
    font-size: 15px;
    margin-top: 23px;
    max-width: 400px;
}

.play-copy .small-copy {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 15px;
}

.dark {
    background: #54445f;
    color: white;
    margin-top: 27px;
    font-size: 12px;
}

.play-frame {
    background: #fffdfa;
    box-shadow: 0 15px 35px #50405b13;
    border: 1px solid #e3dce6;
    border-radius: 15px;
    padding: 20px;
}

.paper-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: #89778f;
    margin-bottom: 15px;
}

.paper-top span:last-child {
    font-size: 22px;
}

.coloring-app {
    width: 100%;
    max-width: none;
    aspect-ratio: 3/4;
    border: 1px dashed #d4c6df;
    border-radius: 7px;
    background: #fcfafc;
    display: grid;
    place-items: center;
    position: relative;
}

.coloring-app:empty:before {
    content: '✧\A A little magic\A is coming soon';
    white-space: pre;
    text-align: center;
    color: #9b88aa;
    font: italic 22px/1.65 Georgia, serif;
    pointer-events: none;
}

.paper-bottom {
    font-size: 10px;
    text-align: center;
    margin-top: 15px;
    color: #928598;
}

.paper-bottom span {
    color: #c48fa4;
    margin-left: 10px;
}

.pencil-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 95px;
    margin-top: 25px;
    transform: rotate(-7deg);
    padding-left: 15px;
}

.pencil-row i {
    display: block;
    height: 65px;
    width: 14px;
    background: #ea8b9e;
    clip-path: polygon(0 100%, 0 20%, 50% 0, 100% 20%, 100% 100%);
    border-bottom: 7px solid #c47388;
    border-radius: 2px;
}

.pencil-row i:nth-child(2) {
    background: #efbd56;
    height: 80px;
}

.pencil-row i:nth-child(3) {
    background: #9bb487;
    height: 72px;
}

.pencil-row i:nth-child(4) {
    background: #89b5cf;
    height: 90px;
}

.pencil-row i:nth-child(5) {
    background: #b29cc5;
    height: 65px;
}

.about {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 70px;
    padding-block: 100px;
}

.about-image {
    padding: 12px;
    background: #fff;
    border: 1px solid #e9e0ce;
    border-radius: 18px;
    transform: rotate(-2deg);
    box-shadow: 0 12px 35px #65512e0b;
}

.about-image img {
    aspect-ratio: 1.45;
    object-fit: cover;
    border-radius: 10px;
}

.about h2 {
    font-size: 40px;
}

.about-copy p {
    font-size: 14px;
    margin-top: 20px;
    max-width: 390px;
}

.about-copy .text-link {
    display: inline-block;
    margin-top: 22px;
}

footer {
    background: #e0d9cc;
    border-top: 1px solid #e0d7c6;
    padding: 38px 0 23px;
}

.footer-main,
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: start;
}

.footer-main > :nth-child(2),
.footer-bottom > :nth-child(2) {
    justify-self: center;
}

.footer-main > :last-child,
.footer-bottom > :last-child {
    justify-self: end;
}

.footer-main {
    align-items: center;
    gap: 20px;
}

.footer-brand {
    font: 700 35px Georgia, serif;
    letter-spacing: -2px;
}

.footer-brand span {
    font-size: 18px;
    color: #b48c4a;
    margin-left: 8px;
}

.footer-main p {
    font: italic 18px Georgia, serif;
}

.footer-main > a:last-child {
    font-size: 11px;
    font-weight: bold;
}

.footer-bottom {
    font-size: 9px;
    color: #847c70;
    border-top: 1px solid #dbd2c3;
    padding-top: 20px;
    margin-top: 25px;
    gap: 15px;
}

dialog {
    border: 0;
    padding: 22px;
    border-radius: 16px;
    width: min(580px, calc(100% - 28px));
    max-height: 94dvh;
    box-shadow: 0 20px 100px #0003;
    background: var(--cream);
    color: var(--ink);
}

dialog::backdrop {
    background: #312a28b8;
    backdrop-filter: blur(5px);
}

.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.dialog-top h2 {
    font-size: 22px;
    margin: 5px 0 15px;
    letter-spacing: -.6px;
}

.dialog-top .eyebrow {
    font-size: 8px;
}

.icon-button {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #ded4c1;
    background: #fffcf5;
    border-radius: 50%;
    font-size: 21px;
    color: var(--ink);
}

.icon-button:disabled {
    opacity: .35;
    cursor: default;
}

#preview-page {
    max-height: 65dvh;
    width: 100%;
    object-fit: contain;
    background: white;
    border: 1px solid #e7decc;
}

.dialog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 12px;
}

.skip {
    position: absolute;
    top: -100px;
    left: 15px;
    background: #fff;
    padding: 10px;
    z-index: 10;
}

.skip:focus {
    top: 10px;
}

:focus-visible {
    outline: 3px solid #8e4082;
    outline-offset: 5px;
}

@media (min-width: 1450px) {
    .hero {
        gap: 70px;
    }
}

@media (max-width: 1050px) {
    .wrap {
        width: calc(100% - 56px);
    }

    .header {
        padding: 0 28px;
        height: 95px;
    }

    .header nav {
        gap: 20px;
        font-size: 12px;
    }

    .brand {
        font-size: 31px;
    }

    .hero {
        gap: 25px;
    }

    .hero-art {
        height: 540px;
    }

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

    .hero-actions {
        gap: 17px;
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .button {
        padding: 14px 20px;
        gap: 18px;
    }

    .ribbon {
        gap: 25px;
        font-size: 9px;
    }

    .play-layout {
        gap: 50px;
    }

    .section-top p {
        max-width: 310px;
    }

    h2 {
        font-size: 39px;
    }

    .about {
        gap: 40px;
    }

    .about h2 {
        font-size: 34px;
    }

    .book-info h3 {
        font-size: 22px;
    }
}

@media (max-width: 760px) {
    .header {
        height: 90px;
        padding: 0 22px;
        position: relative;
        z-index: 5;
    }

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

    .brand {
        font-size: 31px;
    }

    .brand-note {
        font-size: 8px;
    }

    .brand svg {
        width: 28px;
    }

    .menu-toggle {
        display: block;
        border: 1px solid #ded4bf;
        background: transparent;
        padding: 8px 14px;
        border-radius: 22px;
        font-size: 12px;
    }

    .menu-toggle span {
        margin-left: 8px;
    }

    .header nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        background: #fffcf5;
        border: 1px solid #ded4bf;
        border-radius: 16px;
        padding: 18px;
        box-shadow: 0 10px 30px #60452915;
    }

    .header nav.open {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .header nav a {
        padding: 12px;
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 25px;
        gap: 40px;
        padding-bottom: 45px;
    }

    .hero-copy {
        padding: 0 5px;
    }

    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: clamp(48px, 10vw, 69px);
        letter-spacing: -3px;
        margin-top: 20px;
    }

    .hero-copy > p {
        max-width: 480px;
    }

    .hero-actions {
        flex-wrap: wrap;
        margin-top: 27px;
        gap: 22px;
    }

    .hero-foot {
        margin-top: 27px;
    }

    .hero-art {
        height: 510px;
        max-width: 500px;
        width: calc(100% - 16px);
        margin: auto;
        border-radius: 120px 120px 20px 20px;
        transform: rotate(1deg);
    }

    .art-label {
        left: -12px;
        bottom: 22px;
        font-size: 21px;
    }

    .art-top {
        top: 22px;
    }

    .ribbon {
        gap: 16px;
        justify-content: space-around;
        padding: 14px 16px;
        text-align: center;
        font-size: 8px;
    }

    .ribbon span:last-of-type,
    .ribbon b:last-child {
        display: none;
    }

    .section {
        padding-block: 62px;
    }

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

    .section-top p {
        margin-top: 22px;
        max-width: 100%;
        font-size: 13px;
    }

    .section-top p br {
        display: none;
    }

    h2 {
        font-size: 37px;
    }

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

    .book-display {
        height: 400px;
    }

    .book-info {
        padding-inline: 3px;
    }

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

    .book-info p {
        max-width: 100%;
    }

    .play-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .play-copy > p {
        max-width: 100%;
    }

    .pencil-row {
        display: none;
    }

    .play-frame {
        max-width: 460px;
        width: 100%;
        margin: 12px auto 0;
    }

    .play .button {
        margin-top: 24px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-image img {
        aspect-ratio: 1.65;
    }

    .about-copy p {
        max-width: 100%;
    }

    .about h2 {
        font-size: 37px;
    }

    .footer-main {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 30px;
    }

    .footer-main p {
        font-size: 16px;
    }

    .footer-main > a:last-child {
        width: 100%;
        margin-top: 12px;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .footer-bottom span:last-child {
        width: 100%;
    }
}

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

    * {
        transition: none !important;
        transform: none !important;
    }
}

/* Shared purchase and announcement styles for every book collection. */
.book-actions {
    display: flex;
    margin-top: auto;
}

.book-cta {
    margin: 0;
    width: 260px;
    max-width: 100%;
    min-height: 62px;
    font-size: 12px;
}

.book-cta > span {
    font-size: 19px;
    color: #b26979;
}

.book-cta.is-coming-soon {
    background: #eadfbd;
    color: #6b5832;
    cursor: default;
}

.book-cta.is-coming-soon:hover {
    transform: none;
    filter: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 25px;
}

.social-links a {
    font-size: 12px;
    font-weight: bold;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #c6b8a4;
}

.social-links a:hover {
    color: #a53558;
}

.brand-note {
    font-size: 8px;
    letter-spacing: 1px;
}

@media (min-width: 761px) and (max-width: 1050px) {
    .play-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 35px;
    }

    .play h2 {
        font-size: 35px;
    }
}

@media (max-width: 760px) {
    .book-cta {
        width: 100%;
        font-size: 11px;
    }

    .brand-note {
        font-size: 7px;
        letter-spacing: .7px;
    }
}
