/* Small screens define the reading order, spacing and action hierarchy. */
html{scroll-padding-top:84px}
body{overflow-wrap:break-word}
button,a,input,select,textarea{touch-action:manipulation}
select,textarea{font:inherit;color:inherit}
svg{flex-shrink:0}
.mobile-nav-link,.mobile-product-bar,.mobile-swipe-hint{display:none}
.keepsakes-section{border-top:1px solid var(--line)}
.keepsakes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.keepsakes-grid article{border-top:1px solid var(--line);padding-top:24px}
.keepsakes-grid article>span{display:block;font-size:30px;color:#ab704c;margin-bottom:20px}
.keepsakes-grid h3{font-size:28px;margin-bottom:12px}
.keepsakes-grid p{font-size:15px;color:var(--muted);max-width:32ch}
.hero-demo-frame{transition:opacity .4s ease}






@media(max-width:850px){
 .container{padding-inline:24px}
 .header-inner{height:68px;gap:12px}
 .site-header .logo{width:148px}
 .header-actions{gap:6px}
 .header-cta{display:none}
 .projects-link,.menu-toggle{width:44px;min-width:44px;height:44px;display:flex;align-items:center;justify-content:center}
 .menu-toggle{flex-direction:column;gap:5px;padding:11px}
 .menu-toggle span{width:22px;margin:0}
 .site-header nav{top:100%;padding:14px 24px 20px;max-height:calc(100dvh - 68px);overflow-y:auto}
 .site-header nav.open{display:grid;gap:2px}
 .site-header nav>a{min-height:48px;display:flex;align-items:center;font-size:15px;padding:12px 4px}
 .site-header nav .mobile-nav-link{display:flex}
 .site-header nav .mobile-nav-cta{margin-top:10px;background:var(--coral);border-radius:14px;justify-content:center;font-weight:700}
 .section-space{padding-block:64px}
 .section-head{flex-direction:column;align-items:flex-start;gap:18px}
 .section-head>p{max-width:45ch;font-size:15px}
 .personal-section,.faq-section,.book-product{grid-template-columns:1fr}
 .personal-copy,.personal-copy>p,.faq-section>div>p{max-width:none}
 .keepsakes-grid{gap:20px}
 .keepsakes-grid h3{font-size:24px}
 .keepsakes-grid p{font-size:14px}
 .book-gallery{max-width:600px;width:100%;margin:auto}
 .book-copy{max-width:650px}
}
@media(max-width:600px){
 html{scroll-padding-top:82px}
 .container{padding-inline:20px}
 .header-inner{height:64px}
 .site-header .logo{width:140px}
 .site-header nav{padding-inline:20px}
 .site-header .header-actions{margin-left:auto}
 .btn,.btn.small{font-size:15px;min-height:52px;padding:14px 21px;border-radius:14px;line-height:1.45}
 .text-link{font-size:14px;min-height:44px}
 .eyebrow{font-size:10px!important;line-height:1.7;letter-spacing:.1em}
 .hero{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding-block:26px 34px;min-height:0;text-align:center}
 .hero-copy{display:contents}
 .hero .eyebrow{order:0;margin:0;justify-content:center;gap:7px}
 .hero h1{order:1;font-size:clamp(32px,8.8vw,39px);line-height:1.14;max-width:18ch;margin:0 auto;letter-spacing:-.025em;text-wrap:balance}
 .hero h1 em{white-space:normal}
 .hero-visual{order:2;width:100%;max-width:400px;padding:8px 6px 0;margin:0 auto;gap:0;height:auto}
 .cover-demo-label{display:none}
 .personalized-cover{transform:none;width:100%;aspect-ratio:10/7;box-shadow:3px 5px 0 #e7ddc9,5px 10px 20px #51416e15}
 .hero-caption{position:static;max-width:30ch;text-align:center;font-size:13px;line-height:1.6;margin:17px auto 0;padding:0;transform:none}
 .hero-copy>p{order:3;font-size:15px;line-height:1.65;max-width:34ch;margin:2px auto 0;color:#75667b}
 .hero-actions{order:4;display:block;width:100%;margin:2px 0 0}
 .hero-actions .btn{width:100%;max-width:400px;font-size:16px;min-height:54px}
 .hero-note{order:1;justify-content:center;align-items:center;gap:7px;margin:0 auto;max-width:100%;text-align:center}
 .hero-note>span{font-size:20px}
 .hero-note p{font-size:12px;line-height:1.6}



 .brand-ribbon>.container{gap:8px;justify-content:center;flex-wrap:wrap;padding-block:17px;font-size:13px;line-height:1.5;white-space:normal;text-align:center}
 .brand-ribbon i{font-size:8px}
 .section-space{padding-block:46px}
 .section-head{gap:16px;margin-bottom:20px;align-items:flex-start;text-align:left}
 .section-head .eyebrow{margin-bottom:12px}
 .section-head h2,.personal-copy h2,.faq-section h2{font-size:32px;line-height:1.16;text-wrap:balance;margin-top:0}
 .section-head>.catalog-all{display:none}
 .collection-explainer{font-size:14px;line-height:1.7;margin:0 0 17px}
 .mobile-swipe-hint{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:12px}
 .featured-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:82%;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0;padding:2px 2px 16px;scrollbar-width:thin;scrollbar-color:#b8a5bb transparent}
 .featured-grid .book-card{scroll-snap-align:start}
 .book-card .card-art{padding:22px 18px;aspect-ratio:1.3}
 .card-info{padding:18px}
 .book-card h3{font-size:23px;line-height:1.25;margin-bottom:12px}
 .card-more{font-size:14px;align-items:center;min-height:44px;padding-block:9px}
 .collection-bottom{gap:18px;margin-top:12px;align-items:stretch;text-align:left}
 .collection-bottom p{font-size:13px;line-height:1.7}
 .collection-bottom .btn{width:100%;font-size:15px}
 .personal-section{gap:24px}
 .personal-copy h2{margin:14px 0 18px}
 .personal-copy>p{font-size:15px;line-height:1.7;margin-top:12px}
 .personal-label{font-size:16px;margin-top:20px}
 .comparison-wrap{width:100%;max-width:390px;padding:16px;margin:auto}
 .photo-pair-picker{flex-wrap:nowrap;gap:8px;justify-content:center;margin-bottom:16px}
 .photo-pair-picker>button{flex:1;min-width:0;min-height:44px;padding:10px 7px;font-size:13px}
 .comparison-wrap>p{font-size:12px;line-height:1.6;margin-top:14px}
 .process-section .section-head>p{font-size:14px;line-height:1.7;padding:0}
 .process-grid{display:grid;grid-template-columns:1fr;gap:0;margin-top:26px}
 .process-grid article{display:grid;grid-template-columns:40px minmax(0,1fr);gap:6px 16px;padding:22px 0;border-top:1px solid var(--line)}
 .process-grid article>span{grid-row:1/3;font:italic 25px/1.2 Georgia,serif;margin:1px 0 0}
 .process-grid h3{font-size:24px;line-height:1.2;margin:0}
 .process-grid p{font-size:14px;line-height:1.7;margin:0}
 .keepsakes-grid{grid-template-columns:1fr;gap:0}
 .keepsakes-grid article{display:grid;grid-template-columns:32px minmax(0,1fr);gap:7px 14px;padding:24px 0}
 .keepsakes-grid article>span{grid-row:1/3;margin:0;font-size:26px;line-height:1.2}
 .keepsakes-grid h3{margin:0;font-size:24px}
 .keepsakes-grid p{margin:0;max-width:32ch;font-size:14px;line-height:1.7}
 .faq-section{gap:22px}
 .faq-section>div>p{font-size:14px;margin-top:15px;line-height:1.7}
 .faq-list summary{font-size:15px;line-height:1.55;min-height:44px;display:flex;align-items:center;padding-right:30px}
 .faq-list details{padding:14px 0}
 .faq-list details>p{font-size:14px;line-height:1.75;margin-top:12px}
 .faq-list summary:after{top:7px}
 .last-section{padding-bottom:40px}
 .last-cta{padding:38px 20px;border-radius:18px}
 .last-cta>span{font-size:28px;left:14px;top:12px}
 .last-cta h2{font-size:30px;line-height:1.2;margin:18px 0 24px;text-wrap:balance}
 .last-cta .btn{width:100%;font-size:15px}
 .last-projects{font-size:12px;line-height:1.7;margin-top:19px;padding-block:5px}
 .footer-top{align-items:center;text-align:center;gap:22px;padding:30px 0 23px}
 .footer-top .logo{margin:auto;width:145px}
 .footer-top nav{width:100%;display:flex;justify-content:center;gap:8px 22px;flex-wrap:wrap;font-size:13px}
 .footer-top nav>a,.footer-top nav>button{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px}
 .footer-bottom{align-items:center;text-align:center;font-size:11px;gap:8px;padding-block:20px 28px}
 .library-main .breadcrumbs{margin:22px 0}
 .library-heading h1{font-size:33px;line-height:1.18;text-wrap:balance}
 .library-heading>p{font-size:15px;line-height:1.7;margin-top:16px}
 .library-heading{margin-bottom:24px}
 .library-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .library-search{width:100%;min-height:52px;grid-column:auto;padding-inline:14px;border-radius:14px}
 .library-search input{font-size:16px;width:100%;min-width:0}
 .library-sort{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
 .library-sort>span{font-size:13px}
 .library-sort select{font-size:15px;min-height:44px;width:auto;max-width:70%;min-width:150px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:#fffdf8}
 .results-summary{margin:14px 0 20px;align-items:center}
 .results-summary p{font-size:12px}
 .library-grid,.related-grid{display:grid;grid-template-columns:1fr;gap:14px}
 .library-grid .book-card,.related-grid .book-card{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:stretch}
 .library-grid .card-art,.related-grid .card-art{aspect-ratio:auto;height:100%;min-height:155px;padding:16px 12px}
 .library-grid .card-info,.related-grid .card-info{padding:17px 14px;justify-content:center}
 .library-grid .book-card h3,.related-grid .book-card h3{font-size:22px;line-height:1.22;margin-bottom:10px}
 .library-grid .card-more,.related-grid .card-more{font-size:13px;gap:8px;margin-top:0}
 .pagination{flex-wrap:wrap;gap:6px}
 .pagination button{min-width:44px;min-height:44px}
 .breadcrumbs{font-size:12px;line-height:1.6;flex-wrap:wrap;gap:6px 9px;margin:22px 0}
 .book-product{gap:22px;padding-bottom:34px}
 .detail-cover{padding:22px;border-radius:15px}
 .edition-note{font-size:12px;line-height:1.65;margin:14px auto 0;padding:0}
 .book-copy{display:flex;flex-direction:column;min-width:0}
 .book-copy>.eyebrow{order:0;margin:0 0 12px}
 .book-copy h1{order:1;font-size:34px;line-height:1.16;margin:0 0 8px;text-wrap:balance}
 .book-copy .product-price{order:2;margin:13px 0 19px;padding:16px 0}
 .product-price>strong{font-size:28px}
 .product-price>span{font-size:12px;line-height:1.6}
 .book-synopsis{order:3}
 .book-synopsis p{font-size:15px;line-height:1.75}
 .book-benefits{order:4;font-size:13px;gap:10px;margin-top:20px}
 .book-product-actions{order:5;margin-top:20px;gap:4px}
 .book-product-actions .text-link{font-size:14px;justify-content:flex-start;width:fit-content}
 .product-demo-note{order:6;font-size:12px;line-height:1.7;margin-top:10px}
 .has-product-bar{padding-bottom:100px}
 .mobile-product-bar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:15px;align-items:center;position:fixed;z-index:35;inset:auto 0 0;background:#fffaf2f5;backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 25px #51416e08}
 .mobile-product-bar strong{font-size:17px;white-space:nowrap}
 .mobile-product-bar .btn{font-size:14px;min-height:52px;padding:12px 15px}
 .inline-sample{padding-top:32px;scroll-margin-top:82px}
 .sample-heading h2{font-size:30px;line-height:1.2}
 .personalization-notice{padding:16px;gap:10px;margin:20px 0;font-size:14px}
 .personalization-notice p{font-size:14px;line-height:1.7}
 .inline-reader-art{padding:5px}
 .inline-reader-controls{padding:12px;gap:12px}
 .inline-reader-controls>button{min-height:46px;min-width:46px;padding:10px;justify-content:center}
 .inline-reader-controls>button span{display:none}
 .inline-reader-controls>p{font-size:13px}
 .accessible-sample{padding:13px 16px}
 .accessible-sample summary{font-size:14px;min-height:44px;display:flex;align-items:center}
 .accessible-sample p{font-size:20px;line-height:1.75}
 .related-books .section-head{gap:12px}
 .related-books h2{font-size:28px}
 dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:18px}
 .dialog-top{padding:20px;gap:12px}
 .dialog-top h2{font-size:27px;line-height:1.2}
 .dialog-close{min-width:44px;min-height:44px}
 .dialog-prose{padding:22px 20px}
 .dialog-prose p{font-size:14px;line-height:1.75}
 /* The editor uses left-aligned fields and one reachable primary action. */
 .flow-wrap{width:calc(100% - 32px)}
 .flow-header>.flow-wrap{min-height:64px;gap:12px}
 .flow-brand img{width:140px}
 .flow-header .quiet-link{font-size:12px;min-height:44px;display:flex;align-items:center}
 .flow-main{padding-top:14px}
 .flow-steps{gap:4px;margin-bottom:20px;padding-bottom:0}
 .flow-steps button{min-height:58px;padding:6px 2px;gap:5px;min-width:0;border-radius:10px}
 .flow-steps button>span{width:25px;height:25px;font-size:11px}
 .flow-steps small{font-size:10px;line-height:1.25}
 .flow-page-heading{margin-bottom:22px;text-align:left}
 .flow-page-heading h1{font-size:31px;line-height:1.18;max-width:100%;text-wrap:balance}
 .flow-page-heading>p{font-size:14px;line-height:1.7;margin-top:12px}
 .book-context{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:10px;padding:12px;margin-bottom:22px;align-items:center}
 .book-context>img{width:58px;height:auto}
 .book-context strong{font-size:18px;line-height:1.2;margin:4px 0}
 .book-context>div{min-width:0}
 .book-context .quiet-link{display:flex;align-items:center;align-self:center;min-height:44px;font-size:12px;padding:0 3px}
 .book-context>div>span:last-child{font-size:10px;line-height:1.5}
 .flow-card{padding:20px 17px;border-radius:16px;min-width:0}
 .child-card legend,.pet-card legend{font:400 23px/1.25 Georgia,serif;max-width:100%;padding-inline:6px;margin-left:0}
 .field-help{font-size:13px;line-height:1.7}
 .flow-field>span,.field-heading>span{font-size:14px;line-height:1.5}
 .flow-field input,.flow-field select,.flow-field textarea{font-size:16px;line-height:1.5;min-height:52px;border-radius:11px;padding:13px 12px;width:100%;max-width:100%;min-width:0}
 .flow-field textarea{min-height:110px}
 .flow-field{margin-bottom:20px}
 .two-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .pet-card .two-fields{grid-template-columns:minmax(0,1fr);gap:0}
 .field-hint{font-size:11px;line-height:1.7}
 .photo-grid{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .photo-pick{padding:7px 3px;min-height:82px}
 .photo-pick>span:nth-child(2){font-size:11px;line-height:1.35}
 .photo-grid figure>button{width:36px;height:36px;top:3px;right:3px}
 .photo-consent{font-size:13px;line-height:1.7;gap:10px;margin-top:22px}
 .privacy-hint{font-size:12px;line-height:1.7}
 .flow-button{font-size:14px;min-height:52px;padding:13px 16px;gap:8px;line-height:1.4}
 .flowbar{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
 .flowbar-inner{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;width:100%}
 .flow-back{min-width:44px;min-height:52px;display:grid;place-items:center;padding:0;font-size:23px}
 .flow-back span{display:none}
 .flowbar .flow-button{min-width:0;width:100%;min-height:52px;max-width:none;font-size:14px;padding:13px 12px}
 .flowbar .flow-button svg{width:17px}
 .has-flowbar{padding-bottom:108px}
 .keyboard-open .flowbar{display:none}
 .card-heading{flex-wrap:wrap;gap:10px;align-items:flex-start}
 .card-heading h2{font-size:28px;overflow-wrap:anywhere}
 .character-empty,.generating-state{min-height:230px;aspect-ratio:auto;padding:24px 16px}
 .character-empty>svg{width:38px;height:38px;margin-bottom:18px}
 .character-empty strong,.generating-state strong{font-size:25px;line-height:1.3}
 .character-empty p,.generating-state p{font-size:13px;line-height:1.7}
 .cover-card h2,.story-invitation h2{font-size:28px;line-height:1.2}
 .story-invitation>p{font-size:14px;line-height:1.7}
 .flow-footer{flex-direction:column;align-items:center;text-align:center;gap:5px;padding-block:18px}
 .flow-footer .quiet-link{min-height:44px;font-size:12px}
 .flow-modal{padding:25px 18px}
 .flow-modal h2{font-size:28px;line-height:1.2;margin-right:45px}
 .flow-modal>p{font-size:14px;line-height:1.75}
 .modal-dismiss{width:44px;height:44px}
 .reading-paper{padding:22px 16px;min-height:260px}
 .reading-text{font-size:21px;line-height:1.75}
 .reading-controls{gap:12px}
 .reading-controls>.flow-button{min-width:48px;width:48px;min-height:48px}
 .project-toolbar{gap:10px}
 .project-card>div{padding:20px}
 .toast{font-size:13px;line-height:1.6;bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){
 .container{padding-inline:16px}
 .hero{gap:16px}
 .hero h1{font-size:32px}
 .hero-caption{font-size:12px}
 .hero-copy>p{font-size:14px}
 .brand-ribbon>.container{font-size:12px;gap:6px}
 .library-grid .book-card h3,.related-grid .book-card h3{font-size:20px}
 .library-grid .card-art,.related-grid .card-art{padding:14px 10px}
 .library-grid .card-info,.related-grid .card-info{padding:15px 12px}
 .mobile-product-bar{gap:10px;padding-inline:16px}
 .mobile-product-bar strong{font-size:16px}
 .mobile-product-bar .btn{font-size:13px;padding-inline:12px}
 .flow-page-heading h1{font-size:29px}
 .book-context{grid-template-columns:48px minmax(0,1fr) auto;gap:8px}
 .book-context>img{width:48px}
 .book-context strong{font-size:17px}
 .photo-pick>span:nth-child(2){font-size:10px}
}
@media(prefers-reduced-motion:reduce){.hero-demo-frame{transition:none}}

/* Horizontal drags reveal the character; vertical gestures remain page scrolling. */
#comparison{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;cursor:ew-resize}
#comparison img{pointer-events:none;-webkit-user-drag:none}
#comparison.comparison-touch-ready #comparison-range{pointer-events:none}
#comparison.is-dragging{cursor:grabbing}
