/* Peachy's Pages */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #FBF4EC; color: #3E2E28; font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a, button { -webkit-tap-highlight-color: rgba(219,124,82,0.15); }
a { color: #DB7C52; text-decoration: none; transition: color .2s, background-color .2s; }
a:hover { color: #C96A42; }
::selection { background: #F4CDB0; }
:focus-visible { outline: 3px solid #DB7C52; outline-offset: 3px; }

.display { font-family: 'Baloo 2', 'Quicksand', sans-serif; }
.script { font-family: 'Caveat', cursive; color: #DB7C52; font-weight: 600; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #3E2E28; color: #FFF8F1; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #FFF8F1; }

/* Nav */
.nav { position: -webkit-sticky; position: sticky; top: 0; z-index: 50; background: rgba(251,244,236,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #EFDECB; }
.nav .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: block; width: 104px; height: 62px; overflow: hidden; flex-shrink: 0; }
.nav-logo img { width: 170px; max-width: none; margin-left: -33px; margin-top: -46px; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 16px; }
.nav-links a { color: #3E2E28; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover { color: #DB7C52; }

/* Buttons */
.btn { display: inline-block; border-radius: 999px; font-weight: 700; font-size: 17px; padding: 15px 30px; }
.btn-dark { background: #3E2E28; color: #FFF8F1; }
.btn-dark:hover { background: #DB7C52; color: #FFF8F1; }
.btn-outline { border: 2px solid #3E2E28; color: #3E2E28; padding: 13px 28px; }
.btn-outline:hover { background: #F4E4D2; color: #3E2E28; }
.btn-peach { background: #DB7C52; color: #FFF8F1; }
.btn-peach:hover { background: #C96A42; color: #FFF8F1; }
.nav-links .btn-peach { color: #FFF8F1; padding: 11px 22px; font-size: 16px; }
.nav-links .btn-peach:hover { color: #FFF8F1; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 120px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .script { font-size: 28px; }
.hero h1 { font-size: 64px; font-size: clamp(44px, 5.4vw, 64px); line-height: 1.06; margin: 0; font-weight: 800; text-wrap: pretty; }
.hero p { font-size: 19px; line-height: 1.65; margin: 0; max-width: 46ch; color: #6B564C; }
.hero p strong { color: #3E2E28; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art { position: relative; min-height: 440px; }
.hero-circle { position: absolute; top: 8px; right: -10px; width: 380px; height: 380px; border-radius: 50%; background: #F4D8BC; }
.hero-main { position: absolute; top: 44px; left: 0; width: 92%; border-radius: 26px; -webkit-transform: rotate(2deg); transform: rotate(2deg); box-shadow: 0 24px 48px rgba(62,46,40,0.22); }
.hero-cover { position: absolute; bottom: -40px; left: -24px; width: 210px; border-radius: 14px; border: 6px solid #FFF8F1; -webkit-transform: rotate(-6deg); transform: rotate(-6deg); box-shadow: 0 16px 32px rgba(62,46,40,0.25); }

/* Sections */
.section-title { font-size: 42px; margin: 0; font-weight: 800; }

/* Gallery */
.work { padding-top: 32px; padding-bottom: 96px; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 36px; }
.work-head .script { font-size: 26px; font-weight: 400; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 32px; }
.filter { -webkit-appearance: none; appearance: none; border: 2px solid #E8D4C0; background: #FFF8F1; color: #6B564C; font-family: inherit; font-size: 15px; font-weight: 700; padding: 10px 20px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.filter:hover { border-color: #DB7C52; color: #3E2E28; }
.filter.is-active { background: #3E2E28; border-color: #3E2E28; color: #FFF8F1; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.gallery.is-masonry { grid-auto-rows: 2px; row-gap: 0; }
.gallery.is-masonry figure { margin-bottom: 22px; }
.gallery figure { margin: 0; display: block; position: relative; overflow: hidden; border-radius: 20px; background: #F3E3D3; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover { -webkit-transform: translateY(-5px); transform: translateY(-5px); box-shadow: 0 18px 36px rgba(62,46,40,0.18); }
  }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gallery button::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.lightbox img { pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,248,241,0.94); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; pointer-events: none; }
.gallery figcaption span { font-weight: 500; color: #A0836F; }

.gallery figure.is-hidden { display: none; }
.gallery figure.is-in { animation: ppTileIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ppTileIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* Books */
.books { background: #F5E6D3; overflow: hidden; }
.books .wrap { padding-top: 96px; padding-bottom: 104px; }
.books-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.books-head { display: flex; flex-direction: column; gap: 10px; }
.books-head .script { font-size: 28px; }
.books-intro { font-size: 18px; color: #6B564C; margin: 0; max-width: 60ch; line-height: 1.6; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); row-gap: 80px; }
.shelf-book { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.shelf-cover { position: relative; width: 100%; height: 390px; display: flex; align-items: flex-end; justify-content: center; }
.shelf-cover::after { content: ""; position: absolute; left: -28px; right: -28px; bottom: -22px; height: 22px; background: linear-gradient(#B7835F, #9A6748); box-shadow: 0 14px 18px -6px rgba(62,46,40,0.35); z-index: 0; }
.shelf-cover::before { content: ""; position: absolute; left: -28px; right: -28px; bottom: 0; height: 10px; background: #C99573; z-index: 0; }
.shelf-cover img { position: relative; z-index: 1; width: auto; height: auto; max-width: 100%; max-height: 370px; border-radius: 3px 10px 10px 3px; box-shadow: inset 6px 0 10px rgba(0,0,0,0.2), -4px 0 0 #3E2E28, 0 16px 24px rgba(62,46,40,0.28); -webkit-transform-origin: bottom center; transform-origin: bottom center; transition: transform .35s cubic-bezier(.2,.8,.3,1.2); }
.shelf-book:nth-child(odd) .shelf-cover img { -webkit-transform: rotate(-3deg); transform: rotate(-3deg); }
.shelf-book:nth-child(even) .shelf-cover img { -webkit-transform: rotate(2.5deg); transform: rotate(2.5deg); }
.lib-card { position: relative; margin-top: 46px; width: 100%; max-width: 270px; background: #FFFCF6; border-radius: 6px; padding: 14px 18px 16px; box-shadow: 0 10px 22px rgba(62,46,40,0.12); display: flex; flex-direction: column; gap: 8px; background-image: repeating-linear-gradient(transparent 0 27px, #F0E2D2 27px 28px); background-position: 0 50px; }
.lib-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: rgba(240,180,140,0.7); -webkit-transform: rotate(-2deg); transform: rotate(-2deg); }
.shelf-book:nth-child(odd) .lib-card { -webkit-transform: rotate(-1deg); transform: rotate(-1deg); }
.shelf-book:nth-child(even) .lib-card { -webkit-transform: rotate(1deg); transform: rotate(1deg); }
.lib-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid #DB7C52; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #A0836F; }
.lib-no { font-family: 'Caveat', cursive; font-size: 22px; letter-spacing: 0; text-transform: none; color: #DB7C52; }
.lib-card h3 { font-size: 17px; margin: 6px 0 0; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.book-author { font-size: 13px; color: #A0836F; font-weight: 600; }
.lib-card p { font-size: 14px; line-height: 28px; margin: 0; color: #6B564C; }

.publishers { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; margin-top: 8px; padding: 56px 24px 64px; background: #FBF4EC; border-radius: 32px; text-align: center; background-image: radial-gradient(#EBD5C0 1.4px, transparent 1.6px); background-size: 22px 22px; }
.publishers-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.publishers-head .script { font-size: 26px; }
.publishers-title { font-size: 34px; margin: 0; font-weight: 800; color: #3E2E28; line-height: 1.1; }
.pub-squiggle { width: 200px; height: 18px; margin-top: 6px; }
.pub-squiggle path { stroke-dasharray: 240; stroke-dashoffset: 0; }
.publisher-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 56px; }
.pub-card { position: relative; background: #FFFFFF; border-radius: 20px; padding: 22px 30px; box-shadow: 0 14px 30px rgba(62,46,40,0.12), 0 2px 0 rgba(62,46,40,0.04); transition: transform .35s cubic-bezier(.2,.8,.3,1.4), box-shadow .35s ease; }
.pub-card:nth-child(odd) { -webkit-transform: rotate(-3deg); transform: rotate(-3deg); }
.pub-card:nth-child(even) { -webkit-transform: rotate(2.5deg); transform: rotate(2.5deg); }
.pub-card.publisher-square { padding: 18px; }
.pub-card img { height: 120px; width: auto; }
.pub-card.publisher-square img { border-radius: 14px; }
.publishers.stores { margin-top: 0; }
.stores .publisher-logos { flex-wrap: nowrap; gap: 24px; max-width: 100%; }
.stores .pub-card { padding: 12px 16px; flex: 0 1 auto; min-width: 0; }
.stores .pub-card img, .stores .pub-card.store-wide img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.stores .pub-card.publisher-square { padding: 10px; }
.stores .pub-tape { width: 56px; height: 18px; margin-left: -28px; top: -9px; }
.pub-card.store-wide img { border-radius: 8px; height: 104px; }
.pub-tape { position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(240,180,140,0.75); -webkit-transform: rotate(-4deg); transform: rotate(-4deg); }
.pub-card:nth-child(even) .pub-tape { background: rgba(157,185,138,0.7); -webkit-transform: rotate(3deg); transform: rotate(3deg); }
.pub-spark { position: absolute; width: 24px; height: 24px; background: #F0B48C; -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); pointer-events: none; }
.pub-spark.ps1 { top: 28px; left: 9%; }
.pub-spark.ps2 { top: 44%; right: 7%; width: 32px; height: 32px; background: #DB7C52; }
.pub-spark.ps3 { bottom: 26px; left: 22%; width: 18px; height: 18px; background: #9DB98A; }
@media (hover: hover) and (pointer: fine) {
  .pub-card:hover { -webkit-transform: translateY(-10px) rotate(0deg) scale(1.05); transform: translateY(-10px) rotate(0deg) scale(1.05); box-shadow: 0 24px 44px rgba(62,46,40,0.18); }
}
@keyframes ppStamp { 0% { opacity: 0; transform: translateY(-60px) rotate(var(--r, 0deg)) scale(1.35); } 55% { opacity: 1; transform: translateY(6px) rotate(var(--r, 0deg)) scale(.96); } 75% { transform: translateY(-3px) rotate(var(--r, 0deg)) scale(1.02); } 100% { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes ppTape { from { opacity: 0; transform: rotate(-4deg) scaleX(0); } to { opacity: 1; transform: rotate(-4deg) scaleX(1); } }
@keyframes ppDraw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .pub-card:nth-child(odd) { --r: -3deg; }
  .pub-card:nth-child(even) { --r: 2.5deg; }
  .js .publishers:not(.is-visible) .pub-card,
  .js .publishers:not(.is-visible) .pub-spark,
  .js .publishers:not(.is-visible) .publishers-head { opacity: 0; }
  .js .publishers:not(.is-visible) .pub-squiggle path { stroke-dashoffset: 240; }
  .js .publishers.is-visible .publishers-head { animation: ppUp .7s cubic-bezier(.2,.8,.2,1) both; }
  .js .publishers.is-visible .pub-squiggle path { animation: ppDraw .9s .45s cubic-bezier(.6,0,.3,1) both; }
  .js .publishers.is-visible .pub-card { animation: ppStamp .8s cubic-bezier(.25,.9,.3,1.2) both; animation-delay: calc(.6s + var(--n, 0) * .18s); }
  .js .publishers.is-visible .pub-card .pub-tape { animation: ppTape .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.1s + var(--n, 0) * .18s); }
  .js .publishers.is-visible .pub-spark { animation: ppPop .6s cubic-bezier(.3,1.6,.5,1) both, ppTwinkle 3.4s ease-in-out infinite; }
  .js .publishers.is-visible .ps1 { animation-delay: 1.2s, 1.8s; }
  .js .publishers.is-visible .ps2 { animation-delay: 1.4s, 2.2s; }
  .js .publishers.is-visible .ps3 { animation-delay: 1.6s, 2.6s; }
}
@media (max-width: 720px) {
  .publishers { padding: 44px 16px 52px; border-radius: 24px; gap: 30px; }
  .publishers-title { font-size: 28px; }
  .publisher-logos { gap: 32px 28px; }
  .pub-card { padding: 16px 20px; }
  .pub-card img { height: 88px; }
  .pub-card.store-wide img { height: 72px; }
  .pub-card.store-wide { max-width: 100%; }
  .pub-spark.ps2 { right: 4%; top: 30%; }
}

/* About */
.about { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; width: 300px; height: 300px; }
.about-photo::before { content: ""; position: absolute; top: -16px; left: -16px; width: 100%; height: 100%; border-radius: 50%; background: #F4D8BC; }
.about-photo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy .script { font-size: 28px; }
.about-copy p { font-size: 18px; line-height: 1.7; margin: 0; max-width: 58ch; color: #6B564C; }
.award { display: flex; align-items: center; gap: 16px; background: #FFF8F1; border: 1px solid #EFDECB; border-radius: 18px; padding: 14px 20px; margin-top: 4px; align-self: flex-start; }
.award img { width: 72px; border-radius: 50%; flex-shrink: 0; }
.award div { display: flex; flex-direction: column; gap: 2px; }
.award strong { font-size: 20px; font-weight: 700; line-height: 1.2; }
.award span { color: #A0836F; font-weight: 600; font-size: 15px; }
.services { display: flex; flex-wrap: wrap; gap: 26px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 16px; }
.services li { display: flex; flex-direction: column; gap: 2px; }
.services strong { font-size: 30px; color: #DB7C52; font-weight: 700; }
.services span { color: #A0836F; font-weight: 600; }

/* Contact */
.contact { background: #3E2E28; }
.contact .wrap { padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.contact .script { font-size: 32px; color: #F0B48C; }
.contact h2 { font-size: 52px; margin: 0; font-weight: 800; color: #FFF8F1; text-wrap: pretty; }
.contact p { font-size: 18px; color: #D8BFAC; margin: 0; max-width: 52ch; line-height: 1.6; }
.contact .btn-peach { padding: 17px 38px; font-size: 19px; margin-top: 10px; }
.contact .btn-peach:hover { background: #E8916B; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 18px; font-weight: 600; font-size: 16px; }
.social a { color: #D8BFAC; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.social a:hover { color: #FFF8F1; }
.social .social-ig { gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; background: #FFF8F1; color: #3E2E28; text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,0.25); transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.social .social-ig:hover { color: #3E2E28; -webkit-transform: translateY(-3px); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.3); }
.ig-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #DD2A7B; background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.ig-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.ig-label { font-size: 16px; font-weight: 700; }
.ig-handle { font-size: 14px; font-weight: 600; color: #A0836F; }
.ig-arrow { flex-shrink: 0; color: #DB7C52; transition: transform .3s; }
.social-ig:hover .ig-arrow { -webkit-transform: translate(2px, -2px); transform: translate(2px, -2px); }
.footer-logo { margin-top: 40px; width: 130px; height: 78px; overflow: hidden; }
.footer-logo img { width: 212px; max-width: none; margin-left: -41px; margin-top: -57px; -webkit-filter: invert(1); filter: invert(1); mix-blend-mode: screen; }
.copyright { font-size: 14px; color: #A88C79; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: rgba(43,29,23,0.88); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; max-height: 82dvh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-caption { color: #FFF8F1; font-weight: 700; font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.lightbox-caption span { color: #C9A78E; font-weight: 500; font-size: 15px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #FFF8F1; font-size: 36px; line-height: 1; cursor: pointer; padding: 8px; }


.hero-main, .hero-cover, .nav-logo img, .footer-logo img, .award img, .shelf-cover img, .lightbox img { height: auto; }

/* Hero animation */
.hero-art { --mx: 0; --my: 0; }
.hero-circle { translate: calc(var(--mx) * -10px) calc(var(--my) * -10px); }
.hero-main { translate: calc(var(--mx) * 14px) calc(var(--my) * 10px); }
.hero-cover { translate: calc(var(--mx) * 26px) calc(var(--my) * 20px); z-index: 2; }
.hero-spark, .hero-dot { position: absolute; z-index: 3; pointer-events: none; translate: calc(var(--mx) * 34px) calc(var(--my) * 28px); }
.hero-spark { width: 26px; height: 26px; background: #F0B48C; -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hero-spark.s1 { top: -6px; left: 14%; }
.hero-spark.s2 { top: 30%; right: -14px; width: 34px; height: 34px; background: #DB7C52; }
.hero-spark.s3 { bottom: 8%; right: 18%; width: 20px; height: 20px; background: #9DB98A; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: #9DB98A; }
.hero-dot.d1 { top: 10%; right: 30%; }
.hero-dot.d2 { bottom: -2%; left: 38%; width: 9px; height: 9px; background: #DB7C52; }
.hero h1 .w { display: inline-block; }
.hero h1 .w-accent { color: #DB7C52; position: relative; }
.hero h1 .w-accent::after { content: ""; position: absolute; left: 2px; right: 6px; bottom: 2px; height: 8px; border-radius: 8px; background: #F4D8BC; z-index: -1; transform-origin: left; }

@keyframes ppWord { 0% { opacity: 0; transform: translateY(0.6em) rotate(6deg) scale(.8); } 60% { opacity: 1; transform: translateY(-0.08em) rotate(-2deg) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes ppWrite { from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); } to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes ppUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ppUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ppWiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
@keyframes ppCircleIn { 0% { transform: scale(0); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes ppBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes ppPageIn { 0% { opacity: 0; transform: perspective(1200px) rotateY(-70deg) rotate(-6deg) scale(.9); transform-origin: left center; } 65% { opacity: 1; transform: perspective(1200px) rotateY(6deg) rotate(3deg); } 100% { opacity: 1; transform: perspective(1200px) rotateY(0) rotate(2deg); } }
@keyframes ppCoverIn { 0% { opacity: 0; transform: translateY(120px) rotate(18deg) scale(.7); } 70% { opacity: 1; transform: translateY(-10px) rotate(-9deg); } 100% { opacity: 1; transform: translateY(0) rotate(-6deg); } }
@keyframes ppFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes ppTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }
@keyframes ppPop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes ppBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 { visibility: hidden; }
  .js .hero h1.is-split { visibility: visible; }
  .js .hero h1 .w { opacity: 0; animation: ppWord .7s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(.35s + var(--i) * .09s); }
  .js .hero h1 .w-accent { animation: ppWord .7s cubic-bezier(.2,.9,.3,1.3) both, ppWiggle 5s 3s ease-in-out infinite; animation-delay: calc(.35s + var(--i) * .09s), 3s; }
  .js .hero h1 .w-accent::after { animation: ppUnderline .6s 1.3s cubic-bezier(.6,0,.2,1) both; }
  .js .hero-copy .script { animation: ppWrite 1s .1s steps(28) both; }
  .js .hero p { animation: ppUp .8s 1.2s cubic-bezier(.2,.8,.2,1) both; }
  .js .hero-ctas { animation: ppUp .8s 1.4s cubic-bezier(.2,.8,.2,1) both; }
  .js .hero-circle { animation: ppCircleIn 1s .2s cubic-bezier(.3,1.4,.5,1) both, ppBreathe 7s 1.4s ease-in-out infinite; }
  .js .hero-main { animation: ppPageIn 1.3s .5s cubic-bezier(.25,.8,.3,1) both; }
  .js .hero-cover { animation: ppCoverIn 1s 1.1s cubic-bezier(.25,.9,.3,1.2) both, ppFloat 6s 2.1s ease-in-out infinite; }
  .js .hero-spark { animation: ppPop .6s cubic-bezier(.3,1.6,.5,1) both, ppTwinkle 3.2s ease-in-out infinite; }
  .js .hero-spark.s1 { animation-delay: 1.6s, 2.2s; }
  .js .hero-spark.s2 { animation-delay: 1.8s, 2.4s; }
  .js .hero-spark.s3 { animation-delay: 2s, 2.8s; }
  .js .hero-dot { animation: ppPop .5s cubic-bezier(.3,1.6,.5,1) both, ppBob 4s ease-in-out infinite; }
  .js .hero-dot.d1 { animation-delay: 1.9s, 2.4s; }
  .js .hero-dot.d2 { animation-delay: 2.1s, 2.6s; }
  .hero-circle, .hero-main, .hero-cover, .hero-spark, .hero-dot { transition: translate .6s cubic-bezier(.2,.8,.2,1); }
}


/* Logo animation */
@keyframes ppLogoIn { 0% { opacity: 0; transform: translateY(-30px) rotate(-14deg) scale(.6); } 60% { opacity: 1; transform: translateY(4px) rotate(5deg) scale(1.06); } 80% { transform: translateY(-2px) rotate(-2deg) scale(.98); } 100% { opacity: 1; transform: none; } }
@keyframes ppLogoSway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes ppLogoHop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-6px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } 80% { transform: rotate(-2deg); } }
.nav-logo { transform-origin: 50% 70%; }
@media (prefers-reduced-motion: no-preference) {
  .js .nav-logo { animation: ppLogoIn .9s .1s cubic-bezier(.3,1.4,.5,1) both, ppLogoSway 6s 2s ease-in-out infinite; }
  .nav-logo img { transform-origin: 50% 60%; }
  .nav-logo:hover img { animation: ppLogoHop .7s ease-in-out; }
}

/* Nav links animation */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; border-radius: 3px; background: #DB7C52; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: right center; transform-origin: right center; transition: transform .35s cubic-bezier(.6,0,.2,1); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-current::after { -webkit-transform: scaleX(1); transform: scaleX(1); -webkit-transform-origin: left center; transform-origin: left center; }
.nav-links a.is-current { color: #DB7C52; }
.nav-links .btn-peach { transition: transform .3s cubic-bezier(.3,1.6,.5,1), background-color .2s; }
@keyframes ppNavIn { 0% { opacity: 0; transform: translateY(-18px); } 60% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes ppRing { 0% { box-shadow: 0 0 0 0 rgba(219,124,82,0.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(219,124,82,0); } }
@keyframes ppNudge { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-5deg) scale(1.04); } 96% { transform: rotate(4deg) scale(1.04); } }
@media (prefers-reduced-motion: no-preference) {
  .js .nav-links > a { animation: ppNavIn .6s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(.35s + var(--n, 0) * .09s); }
  .js .nav-links > a.btn-peach { animation: ppNavIn .6s cubic-bezier(.3,1.4,.5,1) both, ppRing 2.4s 2s ease-out infinite, ppNudge 7s 3s ease-in-out infinite; animation-delay: calc(.35s + var(--n, 0) * .09s), 2s, 3s; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-links .btn-peach:hover { -webkit-transform: translateY(-2px) rotate(-3deg) scale(1.05); transform: translateY(-2px) rotate(-3deg) scale(1.05); }
}

@media (max-width: 720px) {
  .stores .publisher-logos { gap: 10px; }
  .stores .pub-card { padding: 6px 8px; border-radius: 12px; }
  .stores .pub-card.publisher-square { padding: 6px; }
  .stores .pub-card img, .stores .pub-card.store-wide img { height: 40px; }
  .stores .pub-tape { width: 34px; height: 12px; margin-left: -17px; top: -6px; }
}
@media (max-width: 380px) {
  .stores .publisher-logos { gap: 6px; }
  .stores .pub-card img, .stores .pub-card.store-wide img { height: 32px; }
}

/* Responsive */
@media (min-width: 961px) and (max-width: 1180px) {
  .hero { gap: 40px; padding-top: 56px; }
  .hero-circle { width: 330px; height: 330px; }
  .hero-cover { width: 170px; }
  .about { gap: 48px; }
}
@media (max-width: 960px) {
  .hero-art { width: 100%; max-width: 640px; margin: 0 auto 48px; min-height: 0; aspect-ratio: 5 / 4; }
  .hero-circle { width: 62%; height: auto; aspect-ratio: 1 / 1; right: 0; }
  .hero-cover { left: -12px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 44px; }
  .about { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; gap: 44px; justify-items: start; }
  .books-inner { grid-template-columns: 1fr; gap: 36px; }
  .books-head { padding-top: 0; }
  .hero h1 { font-size: 52px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 42px; }
  .section-title, .about-copy h2 { font-size: 32px; }
  .contact h2 { font-size: 36px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .btn-peach { padding: 9px 16px; font-size: 14px; }
  .nav-logo { width: 84px; height: 50px; }
  .nav-logo img { width: 138px; margin-left: -27px; margin-top: -37px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .filter { padding: 8px 16px; font-size: 14px; }
  .hero-cover { width: 150px; }
  .hero-spark.s2 { right: 0; }
  .shelf { grid-template-columns: 1fr; row-gap: 56px; }
  .shelf-cover { height: 320px; }
  .shelf-cover img { max-height: 300px; }
  .books .wrap { padding-top: 64px; padding-bottom: 72px; }
  .about-photo { width: 240px; height: 240px; margin-left: 16px; }
  .lightbox { padding: 20px; }
}
@media (max-width: 420px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .btn { padding: 13px 24px; font-size: 16px; }
  .btn-outline { padding: 11px 22px; }
}
@supports not (aspect-ratio: 1 / 1) {
  @media (max-width: 960px) {
    .hero-art { min-height: 520px; }
    .hero-circle { width: 380px; height: 380px; }
  }
  @media (max-width: 720px) {
    .hero-art { min-height: 82vw; }
    .hero-circle { width: 64vw; height: 64vw; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
