@font-face{font-family:"Playfair";src:url(fonts/playfair-900.woff2) format("woff2");font-weight:900;font-display:swap}
@font-face{font-family:"Playfair";src:url(fonts/playfair-700.woff2) format("woff2");font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/inter.woff2) format("woff2");font-weight:400 700;font-display:swap}
:root{--bg:#FBF9F5;--ink:#1A1816;--orange:#FF4F00;--orange-d:#D93F00;--line:#EAE5DC;--muted:#6B645C;--card:#FFFFFF;--bar:84px;--serif:"Playfair",Georgia,"Times New Roman",serif;--sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html.locked,html.locked body{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--sans);overflow-x:hidden}
img{max-width:100%;display:block}
button{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 12px;border-radius:8px;z-index:50}
.skip:focus{left:8px}

.top{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:center;padding:14px 16px 0}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font:700 17px/1 var(--sans);letter-spacing:-.01em}
.brand b{font-weight:700;color:var(--orange)}
.brand-mark{width:18px;height:22px;border:2.5px solid var(--ink);border-radius:2px 4px 4px 2px;position:relative;background:#fff}
.brand-mark:after{content:"";position:absolute;left:3px;top:6px;width:8px;height:2.5px;background:var(--orange)}

/* ---------- Hero: exactly one screen, no scrolling needed ---------- */
.hero{min-height:560px;height:100vh;height:100svh;display:flex;flex-direction:column;align-items:center;padding:48px 18px calc(var(--bar) + 10px);text-align:center;position:relative}
.hero-copy{flex:0 0 auto}
h1{font:900 clamp(30px,8.6vw,56px)/1.04 var(--serif);letter-spacing:-.02em;margin:8px 0 8px}
h1 em{font-style:italic;font-weight:700;color:var(--orange)}
.lede{margin:0 auto;max-width:30ch;font-size:clamp(15px,4.1vw,19px);color:var(--muted)}
.lede b{color:var(--ink)}
.hero-art{flex:1 1 auto;min-height:280px;width:100%;max-width:520px;position:relative;margin:4px 0 0;container-type:size}
.hero-img{position:absolute;right:-2%;bottom:0;height:min(84cqh,96cqw);width:auto;max-width:none;aspect-ratio:1/1;object-fit:contain;z-index:1}
.hero-book{position:absolute;left:1%;top:0;z-index:3;height:min(76cqh,72cqw);width:auto;aspect-ratio:2/3;transform:rotate(-5deg);transform-origin:50% 100%;padding:13% 8% 11%;box-shadow:-5px 0 0 0 var(--ink) inset,0 2px 0 rgba(0,0,0,.06),14px 22px 30px -12px rgba(26,24,22,.55),0 0 0 1px rgba(26,24,22,.08)}.hero-book .book-title{font-size:20cqw;line-height:1;color:var(--ink)}.hero-book .book-rule{height:4px;width:40%}.hero-book .book-sub{font-size:6.6cqw;color:#4d4740}
.see-more{flex:0 0 auto;font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;padding:4px 10px}
.see-more:hover{color:var(--ink)}

/* ---------- The book cover (pure CSS, crisp titles) ---------- */
.book{container-type:inline-size;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;aspect-ratio:2/3;background:#fff;border:0;border-radius:3px 6px 6px 3px;padding:12% 7%;cursor:pointer;
  box-shadow:inset 7px 0 0 rgba(0,0,0,.06),inset 9px 0 6px -4px rgba(0,0,0,.12),0 1px 0 rgba(0,0,0,.05),0 12px 24px -8px rgba(26,24,22,.35),0 2px 6px rgba(26,24,22,.15)}
.book-title{font:900 1em/1.05 var(--serif);text-transform:uppercase;letter-spacing:0;font-size:12.5cqw;word-break:normal;overflow-wrap:normal;hyphens:manual}
.book-rule{display:block;width:34%;height:3px;background:var(--orange);margin:9% 0 7%}
.book-sub{font:600 .55em/1.2 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-size:5.6cqw}
.book-by{font:italic 700 .7em/1.2 var(--serif);margin-top:12%;color:var(--ink);font-size:8cqw;min-height:1em}

/* ---------- CTA bar, anchored to the bottom on every screen ---------- */
.cta-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(rgba(251,249,245,0),var(--bg) 30%)}
.cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:520px;margin:0 auto;min-height:58px;padding:0 24px;border:0;border-radius:999px;background:var(--orange);color:#fff;font:700 18px/1 var(--sans);cursor:pointer;box-shadow:0 10px 24px -8px rgba(255,79,0,.65);transition:transform .12s,background .12s}
.cta:hover{background:var(--orange-d)}
.cta:active{transform:scale(.98)}
.cta[disabled]{opacity:.7;cursor:progress}

/* ---------- Titles ---------- */
section h2{font:900 clamp(26px,7vw,40px)/1.1 var(--serif);letter-spacing:-.01em;margin:0 0 6px;text-align:center}
.section-lede{margin:0 auto 22px;text-align:center;color:var(--muted);max-width:34ch}
.titles{padding:36px 14px 20px;border-top:1px solid var(--line)}
.grid{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:980px}
.card{display:flex;flex-direction:column;width:100%;height:100%;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--card);cursor:pointer;text-align:left;overflow:hidden;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:0 14px 30px -14px rgba(26,24,22,.35)}
.card-art{position:relative;display:block;aspect-ratio:1/1;background:var(--tone,#FBF9F5);overflow:hidden}
.card-art img{width:100%;height:100%;object-fit:cover}
.card-art .book{position:absolute;right:-2%;bottom:5%;width:52%;transform:rotate(3deg);padding:10% 5% 9%}.card-art .book .book-title{font-size:17cqw;line-height:1}.card-art .book .book-sub{font-size:6.4cqw}
.card-foot{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px}
.card-title{font:700 15px/1.2 var(--sans)}
.card-go{font-size:13px;font-weight:700;color:var(--orange)}
.card-own .card-art{background:repeating-linear-gradient(-45deg,#FFF7F2 0 12px,#FFFFFF 12px 24px);border-bottom:2px dashed #F3B596;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8%}
.card-own .card-art .book{position:static;transform:rotate(-3deg);width:40%}
.book-blank .book-title{color:#BDB5AA}
.own-copy{display:none}
.grid li.own{grid-column:1/-1}
.grid li.own .card{flex-direction:row;align-items:stretch;border:2px solid var(--orange)}
.grid li.own .card-art{width:42%;aspect-ratio:auto;min-height:150px;border-bottom:0;border-right:2px dashed #F3B596}
.grid li.own .card-art .book{width:62%}
.grid li.own .card-foot{flex:1;justify-content:center;padding:14px}
.grid li.own .card-title{font:900 20px/1.15 var(--serif)}
.grid li.own .card-foot:before{content:"Any title. Any person.";order:2;font-size:13px;color:var(--muted);margin:2px 0 6px}
.grid li.own .card-go{order:3}

/* ---------- How ---------- */
.how{padding:34px 18px 18px}
.steps{list-style:none;margin:16px auto 0;padding:0;max-width:520px;display:grid;gap:14px}
.steps li{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.steps .n{flex:0 0 32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:700}
/* ---------- Testimonials ---------- */
.love{padding:30px 14px 10px;border-top:1px solid var(--line);margin-top:22px}
.tgrid{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:980px}
.tcard figure{margin:0;height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.tcard img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;background:var(--line)}
.tcard figcaption{padding:10px 12px 13px}
.stars{display:block;color:var(--orange);font-size:13px;letter-spacing:2px;line-height:1}
.tcard blockquote{margin:6px 0 4px;font:700 17px/1.2 var(--serif);font-style:italic;color:var(--ink)}
.tcard cite{font-style:normal;font-size:13px;color:var(--muted)}
.tcard cite::before{content:"– "}
@media (min-width:760px){.tgrid{grid-template-columns:repeat(4,1fr)}}
.foot{padding:18px 18px calc(var(--bar) + 26px);text-align:center;color:var(--muted);font-size:13px}

/* ---------- Sheet (signup form) ---------- */
.sheet{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-backdrop{position:absolute;inset:0;background:rgba(26,24,22,.5);opacity:0;transition:opacity .2s}
.sheet-panel{position:relative;width:100%;max-width:560px;height:94vh;height:94dvh;background:var(--bg);border-radius:22px 22px 0 0;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .25s cubic-bezier(.2,.8,.2,1);box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.sheet.open .sheet-backdrop{opacity:1}
.sheet.open .sheet-panel{transform:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;border-bottom:1px solid var(--line)}
.sheet-head h2{font-size:22px;margin:0;text-align:left}
.x{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:24px;line-height:1;cursor:pointer}
form{display:flex;flex-direction:column;flex:1;min-height:0}
form[hidden]{display:none}
.scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 16px 8px;overscroll-behavior:contain}
.preview{display:flex;justify-content:center;align-items:center;gap:0;margin:2px 0 14px}
.book-lg{width:118px;cursor:default;position:relative;z-index:2;transform:rotate(-3deg)}
.pages{display:flex;margin-left:-6px;filter:drop-shadow(0 8px 12px rgba(26,24,22,.2))}
.pages span{width:74px;height:104px;background:#fff;border:1px solid var(--line)}
.pages span:first-child{border-radius:6px 0 0 6px;background:linear-gradient(90deg,#fff 80%,#F1ECE4)}
.pages span:last-child{border-radius:0 6px 6px 0;background:linear-gradient(90deg,#F1ECE4,#fff 20%)}
.q{border:0;margin:0 0 16px;padding:0}
legend{font:700 15px/1.2 var(--sans);margin-bottom:8px;display:flex;align-items:center;gap:8px;padding:0}
.qn{width:22px;height:22px;border-radius:50%;background:var(--orange);color:#fff;font-size:12px;display:inline-grid;place-items:center}
input[type=text],input[type=email],textarea{width:100%;font:16px/1.35 var(--sans);color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:13px 14px;-webkit-appearance:none;appearance:none}
input[type=text]:focus,input[type=email]:focus,textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,79,0,.15)}
#title{font:900 18px/1.2 var(--serif)}
input.bad{border-color:#D92D20}
textarea{margin-top:8px;resize:vertical}
input[hidden],textarea[hidden]{display:none}
#dedication_text{margin-top:8px}
.help{margin:6px 2px 0;font-size:13px;color:var(--muted)}
.err{margin:6px 2px 0;font-size:14px;color:#D92D20;font-weight:600}
.err[hidden]{display:none}
.choice{display:grid;gap:8px}
.choice.two{grid-template-columns:1fr 1fr}
.opt{position:relative;display:block;cursor:pointer}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt>span{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px 12px 44px;position:relative;min-height:48px;justify-content:center}
.opt>span:before{content:"";position:absolute;left:14px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;border:2px solid #C9C1B6;background:#fff}
.opt input:checked+span{border-color:var(--orange);background:#FFF6F1}
.opt input:checked+span:before{border-color:var(--orange);box-shadow:inset 0 0 0 4px #fff;background:var(--orange)}
.opt input:focus-visible+span{outline:3px solid var(--orange);outline-offset:2px}
.opt small{font-size:13px;color:var(--muted)}
.opt.sm>span{padding-left:40px}
.peek{margin-top:8px;background:none;border:0;padding:6px 2px;color:var(--orange);font-weight:700;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.sugg{list-style:none;margin:4px 0 0;padding:12px 14px;background:#fff;border:1px dashed #E8C9B6;border-radius:12px;display:grid;gap:6px;font:700 15px/1.25 var(--serif)}
.sugg[hidden]{display:none}
.sugg li span{font:600 11px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--orange);margin-right:4px}
.sugg .sugg-note{font:italic 13px/1.3 var(--sans);color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.chip{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer}
.chip[aria-pressed=true]{border-color:var(--orange);background:#FFF6F1;color:var(--orange-d)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sheet-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}
.cta.wide{max-width:none}
.done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 26px calc(24px + env(safe-area-inset-bottom))}
.done[hidden]{display:none}
.done-emoji{font-size:56px;line-height:1}
.done h2{font-size:40px;margin:10px 0 6px;outline:none}
.done p{margin:0 0 8px;font-size:18px;max-width:28ch}
.done .cta{margin-top:18px}

@media (min-width:720px){
  .grid{grid-template-columns:repeat(3,1fr);gap:18px}
  .grid li.own{grid-column:auto}
  .grid li.own .card{flex-direction:column}
  .grid li.own .card-art{width:auto;aspect-ratio:1/1;border-right:0;border-bottom:2px dashed #F3B596}
  .grid li.own .card-art .book{width:42%}
  .hero{padding-top:64px}
  .sheet{align-items:center}
  .sheet-panel{height:auto;max-height:90vh;border-radius:22px}
}
@media (max-height:640px){
  h1{font-size:28px}
  .lede{font-size:14px}
  .hero{padding-top:40px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

#ch-opts[hidden]{display:none}
.ch-next{margin:4px 0 0;padding:14px 16px;background:#FFF6F1;border:1.5px dashed #E8C9B6;border-radius:12px;font-weight:700;font-size:15px;line-height:1.35}
.ch-next[hidden]{display:none}
