/* The order flow: /order (start.html) (who, what kind, details, a gift's payment) and /s/<story> (story.html) (the call, the people,
   the book, buying it, changing it, printing it). It uses the site's palette and type from /brand.css
   (book paper, graphite, wheat, chestnut, night; Cooper Star headlines, Lora text) but keeps the shapes plain
   and calm: this is a checkout. One clear action per screen, a header that always says where you are.
   Load /brand.css first, then this file. The class names are the ones the pages' scripts draw. */
:root{
  /* the flow's older names, kept as aliases so every page (and the team's paint page) reads the same palette */
  --pencil:var(--graphite);--pencil-soft:var(--g2);--line:rgba(45,42,38,.14);
  --gold:var(--wheat);--gold-deep:var(--ochre);--gold-tint:#FBF1DA;--evening:var(--night);
  --leaf:#FFFDF8;--edge:#DDD5C8;--table:var(--page-2);
  --card:#FFFDF9;--line-2:rgba(45,42,38,.22);--focus:0 0 0 3px rgba(251,199,111,.55);
  --r-btn:12px;--r-card:16px;--r-in:10px;
  color-scheme:light;
}
body{font-size:17px;line-height:1.6}
p{margin:0}
h1{font-family:var(--disp);font-weight:500;letter-spacing:-.015em;font-size:clamp(1.85rem,4.2vw,2.45rem);line-height:1.12;margin:0;color:var(--graphite)}
h2{font-family:var(--text);font-weight:600;font-size:1.15rem;line-height:1.3;margin:0}
h1:focus{outline:none}
.soft{color:var(--g2)}
.note{font-size:.93rem;line-height:1.5;color:var(--g2)}
.eyebrow,.hint{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--g3);margin-bottom:-.6rem}
.lede{font-size:1.05rem;color:var(--g2)}
.gut{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- the header: the homepage's sticky bar (a strip of the same paper with a brushed bottom edge),
   the wordmark on the left and the steps on the right: the step you're on by name, the others by number ---- */
.site-header{position:sticky;top:0;z-index:20;filter:drop-shadow(0 1px 0 rgba(45,42,38,.14)) drop-shadow(0 12px 14px rgba(40,30,20,.07))}
.site-header::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(100% + 41px);z-index:-1;background-color:var(--page);background-image:var(--paper);pointer-events:none;
  -webkit-mask:linear-gradient(#000,#000) 0 0/100% calc(100% - 62px) no-repeat,url(/v3/be166bfeadee86b12eb35b4354a56c6e.webp) -500px 100%/1600px 64px repeat-x;
  mask:linear-gradient(#000,#000) 0 0/100% calc(100% - 62px) no-repeat,url(/v3/be166bfeadee86b12eb35b4354a56c6e.webp) -500px 100%/1600px 64px repeat-x}
.hd-in{max-width:1240px;margin:0 auto;height:68px;padding-top:5px;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.home{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--graphite)}
.home .lg svg{width:146px}
.stepper{min-width:0;display:flex;justify-content:flex-end}
.stepper ol{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:.45rem;min-width:0}
.stepper li{display:flex;align-items:center;gap:.45rem;min-width:0;font-size:.9rem;line-height:1.2;color:var(--g3);white-space:nowrap}
.stepper li+li::before{content:"";width:14px;height:1px;background:var(--line-2);flex:none}
.stepper .dot{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:600;border:1px solid var(--line-2);color:var(--g3);background:rgba(255,253,249,.7)}
.stepper .dot svg{width:12px;height:12px}
.stepper li.done .dot{background:var(--graphite);border-color:var(--graphite);color:#FFFDF8}
.stepper li.now{color:var(--graphite);font-weight:600}
.stepper li.now .dot{background:var(--wheat);border-color:var(--graphite);color:var(--graphite)}
.stepper li:not(.now) .lbl{display:none}
.stepper button{all:unset;cursor:pointer;display:flex;align-items:center;gap:.45rem;border-radius:50%}
.stepper button:hover .dot{border-color:var(--graphite)}
.stepper button:focus-visible{outline:2px solid var(--chestnut-d);outline-offset:3px}
.stepper .mob{display:none}
@media(max-width:720px){
  .hd-in{height:60px;gap:1rem}
  .home .lg svg{width:116px}
  .stepper ol{display:none}
  .stepper .mob{display:grid;gap:5px;width:100%;max-width:200px;justify-items:end;font-size:.8rem;color:var(--g2);line-height:1.2;text-align:right}
  .stepper .mob b{color:var(--graphite);font-weight:600}
  .stepper .bars{display:grid;grid-auto-flow:column;gap:3px;width:100%}
  .stepper .bars i{height:3px;border-radius:2px;background:var(--line-2)}
  .stepper .bars i.done{background:var(--graphite)}
  .stepper .bars i.now{background:var(--wheat)}
}

/* ---- the footer: help is always one call away ---- */
.site-footer{border-top:1px solid var(--line);margin-top:2rem;padding-block:1.6rem 2rem}
body.reading .site-footer{margin-top:0}
.ft-in{max-width:1240px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem 2rem;font-size:.92rem;line-height:1.5;color:var(--g2)}
.ft-help b{color:var(--graphite);font-weight:600}
.ft-help a,.ft-in a{color:var(--graphite);text-decoration:underline;text-decoration-color:rgba(45,42,38,.3);text-underline-offset:3px;white-space:nowrap}
.ft-help a:hover{text-decoration-color:var(--chestnut)}
.ft-small{font-size:.82rem;color:var(--g3)}
@media(max-width:720px){.ft-in{flex-direction:column;align-items:flex-start}.ft-help a{padding-block:.7rem}}

/* ---- the page: one column, or a column and a summary beside it ---- */
.shell{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;align-items:start}
.shell.has-aside{grid-template-columns:minmax(0,1fr) 320px;gap:clamp(2rem,6vw,5rem)}
main{max-width:600px;width:100%;margin:0 auto;padding-block:clamp(1.8rem,5vw,3.2rem) 4.5rem;display:grid;gap:1.4rem;align-content:start}
.has-aside main{margin:0}
@media(max-width:900px){.shell.has-aside{grid-template-columns:minmax(0,1fr)}.has-aside main{margin:0 auto;padding-bottom:1rem}.aside{max-width:600px;width:100%;margin:0 auto 4rem}}

/* the order summary beside the first screens */
.aside{padding-top:clamp(1.8rem,5vw,3.2rem)}
.summary{position:sticky;top:92px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:1.4rem;display:grid;gap:1.1rem;box-shadow:0 18px 40px -32px rgba(40,30,20,.5)}
.sum-top{display:grid;grid-template-columns:64px 1fr;gap:1rem;align-items:center}
.sum-top img{width:64px;aspect-ratio:7/10;object-fit:cover;border-radius:2px;box-shadow:0 8px 14px -8px rgba(38,35,32,.55),0 0 0 1px var(--line)}
.sum-t{font-weight:600;line-height:1.25}
.sum-s{font-size:.9rem;color:var(--g2);line-height:1.35}
.summary .price-now{font-size:1.5rem}
.summary .price-was{font-size:1rem}
.summary .price-note{font-size:.85rem}
.checks{list-style:none;margin:0;padding:1rem 0 0;border-top:1px solid var(--line);display:grid;gap:.6rem;font-size:.92rem;line-height:1.4;color:var(--g2)}
.checks li{display:grid;grid-template-columns:18px 1fr;gap:.6rem;align-items:start}
.checks svg{width:16px;height:16px;margin-top:2px;color:var(--chestnut)}
.sum-foot{font-size:.82rem;color:var(--g3);line-height:1.5;margin-top:.35rem;padding-top:.9rem;border-top:1px solid var(--line)}

/* ---- buttons: plain shapes. graphite is the one main action; outlined is the other; a text link is the quiet one ---- */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:50px;padding:0 1.5rem;border:1px solid var(--graphite);border-radius:var(--r-btn);
  background:var(--graphite);color:#FFFDF8!important;font-family:var(--text);font-size:1rem;font-weight:600;letter-spacing:.005em;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color .15s ease,box-shadow .15s ease,transform .15s ease}
.btn::before,.btn::after{content:none}
@media(hover:hover){.btn:hover{background:#45403A}}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:none;box-shadow:var(--focus)}
.btn.big{width:100%;min-height:54px;font-size:1.03rem}
.btn.ghost{background:transparent;color:var(--graphite)!important;border-color:var(--line-2)}
@media(hover:hover){.btn.ghost:hover{background:rgba(45,42,38,.05);border-color:var(--graphite)}}
.btn:disabled,.btn[disabled]{cursor:default;opacity:.45}
.btn:disabled:hover{background:var(--graphite)}
.btn.ghost:disabled:hover{background:transparent}
a.btn{text-decoration:none}
.back{display:inline-flex;align-items:center;gap:.35rem;font-family:var(--text);font-size:.95rem;background:none;border:0;padding:0;min-height:40px;color:var(--g2);text-decoration:none;cursor:pointer;justify-self:start}
.back:hover{color:var(--graphite);text-decoration:underline;text-underline-offset:4px}
.back.prev::before{content:"";width:7px;height:7px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:.15rem}
.row{display:flex;flex-wrap:wrap;gap:.8rem 1.4rem;align-items:center}

/* ---- a choice you tap: a plain card with a mark on the right ---- */
.pick{display:grid;gap:.75rem}
.opt{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;text-align:left;font:inherit;color:var(--graphite);
  background:var(--card);border:1px solid var(--line-2);border-radius:var(--r-card);padding:1rem 1.1rem;cursor:pointer;min-height:72px;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.opt::after{content:"";width:8px;height:8px;border-right:1.6px solid var(--g3);border-top:1.6px solid var(--g3);transform:rotate(45deg);margin-right:.3rem}
@media(hover:hover){.opt:hover{border-color:var(--graphite);box-shadow:0 10px 24px -18px rgba(40,30,20,.6)}.opt:hover::after{border-color:var(--graphite)}}
.opt:active{background:var(--gold-tint)}
.opt:focus-visible{outline:none;box-shadow:var(--focus);border-color:var(--graphite)}
.opt.plain{grid-template-columns:1fr auto}
.opt img{width:52px;aspect-ratio:3/4;object-fit:cover;border-radius:3px;display:block;background:var(--gold-tint);box-shadow:0 0 0 1px var(--line)}
.opt b{display:block;font-weight:600;font-size:1.05rem;line-height:1.3}
.opt span span{display:block;font-size:.92rem;line-height:1.45;color:var(--g2);margin-top:.15rem}

/* one screen to the next: the new one eases in */
#app.swap>*{animation:rise .24s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}
.site-header{view-transition-name:bar}
@media (prefers-reduced-motion:reduce){#app.swap>*{animation:none}@view-transition{navigation:none}}

/* ---- the form ---- */
form{display:grid;gap:1.1rem}
.field{display:grid;gap:.4rem;min-width:0}
.field label,.legend{font-size:.9rem;font-weight:600;color:var(--graphite)}
.field label .opt-l{font-weight:400;color:var(--g3)}
input,textarea{font:inherit;font-size:1rem;padding:.7rem .9rem;border:1px solid var(--line-2);border-radius:var(--r-in);background:#FFFEFB;color:var(--graphite);width:100%;min-width:0;min-height:50px;transition:border-color .15s ease,box-shadow .15s ease}
input::placeholder,textarea::placeholder{color:#A59E94}
input:focus,textarea:focus{border-color:var(--graphite);outline:none;box-shadow:var(--focus)}
textarea{resize:vertical;min-height:96px;line-height:1.5}
.kid{display:grid;grid-template-columns:1fr 4.6rem auto;gap:.5rem}
.draw{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line-2);border-radius:var(--r-in);overflow:hidden;background:#FFFEFB}
.draw button{font:inherit;font-size:.92rem;min-height:48px;padding:0 .8rem;background:transparent;color:var(--g2);border:0;cursor:pointer}
.draw button+button{border-left:1px solid var(--line-2)}
.draw button[aria-pressed="true"]{background:var(--graphite);color:#FFFDF8;font-weight:600}
.draw button:focus-visible{outline:none;box-shadow:inset var(--focus)}
.kids{display:grid;gap:.55rem}
.add{display:inline-flex;align-items:center;gap:.4rem;font:inherit;font-size:.95rem;font-weight:600;background:none;border:0;padding:.2rem 0;min-height:40px;color:var(--graphite);cursor:pointer;justify-self:start}
.add::before{content:"+";font-size:1.15rem;line-height:1;color:var(--chestnut)}
.add:hover{text-decoration:underline;text-underline-offset:4px}
.err{font-size:.95rem;font-weight:600;background:#FBEBDD;border:1px solid #E8C7A8;border-radius:var(--r-in);padding:.65rem .9rem;color:#6B3A16}

/* ---- cards: the code, the message to copy, the receipt, a slip of options ---- */
.card,.receipt,.slip{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:0 18px 40px -32px rgba(40,30,20,.5)}
.card{padding:1.3rem;display:grid;gap:.85rem}
.code{text-align:center;padding:1.4rem 1rem 1.5rem;display:grid;gap:.25rem;justify-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card)}
.code .num{font-family:var(--disp);font-weight:500;font-size:clamp(2.4rem,9vw,3.2rem);line-height:1.1;letter-spacing:.14em;margin-right:-.14em}
.code .tel{font-weight:600;font-size:1.2rem}
.code .soft{font-size:.9rem}
.msg{background:var(--gold-tint);border-radius:var(--r-in);padding:.9rem 1rem;user-select:all;overflow-wrap:anywhere}
.amt{font-family:var(--disp);font-weight:500;font-size:2.6rem;line-height:1}
.rows{list-style:none;margin:0;padding:0}
.rows li{border:1px solid var(--line);border-radius:var(--r-in);padding:.7rem .9rem;margin-top:.5rem;color:var(--g2)}
main h2{margin-top:.4rem}
.or{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:center;color:var(--g3);font-size:.85rem;text-transform:uppercase;letter-spacing:.08em}
.or::before,.or::after{content:"";border-top:1px solid var(--line)}

/* what comes after this step: one quiet line of words, not a box or a button */
.ahead{display:block;font-size:.92rem;line-height:1.55;color:var(--g3);margin:0}
.ahead .st{display:none}
.ahead b{color:var(--g2);font-weight:600}

/* ---- the call: rylen is three stones. they light one after another while rylen talks and rest, wheat, while rylen listens ---- */
.live{display:grid;gap:1.2rem;justify-items:center;text-align:center;padding-block:.5rem}
.rylen{width:120px}
.rylen svg{display:block;width:100%;height:auto;overflow:visible}
.rylen ellipse{fill:var(--card);stroke:var(--graphite);stroke-width:2.4;transition:fill .5s}
.rylen.listening ellipse{fill:var(--wheat)}
.who{font-family:var(--disp);font-weight:500;font-size:1.5rem;line-height:1.15}
@media (prefers-reduced-motion:no-preference){
  .rylen.speaking ellipse{animation:talk 1.5s ease-in-out infinite}
  .rylen.speaking ellipse:nth-child(2){animation-delay:.25s}
  .rylen.speaking ellipse:nth-child(3){animation-delay:.5s}
  @keyframes talk{0%,100%{fill:var(--card)}45%{fill:var(--wheat)}}
}
@media (prefers-reduced-motion:reduce){.rylen.speaking ellipse{fill:var(--wheat)}}
.make{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.make li{display:grid;grid-template-columns:44px 1fr;gap:1rem;align-items:center;color:var(--g2);transition:color .4s}
.make li.on{color:var(--graphite)}
.make svg{height:40px;width:auto;justify-self:center;overflow:visible}
.make ellipse{fill:var(--card);stroke:var(--graphite);stroke-width:3;stroke-dasharray:5 5;transition:fill .4s}
.make li.on ellipse{fill:var(--wheat);stroke-dasharray:none}

/* ---- the book, to read: it sits on the table, it has paper, a spine and page edges, and a page turns over ---- */
body{transition:background-color .5s ease}
body.reading{background-color:var(--page-2)}
main.wide{max-width:1180px;padding-block:clamp(1.6rem,3.5vw,2.6rem) 3rem;gap:1.2rem}
.bookwrap{display:grid;gap:1rem;justify-items:center}
.book{container-type:inline-size;aspect-ratio:14/10;width:min(100%,calc((100svh - 290px) * 1.4));min-width:min(100%,560px);justify-self:center;display:grid;grid-template-columns:1fr 1fr;position:relative;background:none;box-shadow:none;border-radius:0;overflow:visible;--t:1.95cqw;cursor:pointer}
.book.front{transform:translateX(-25%)}
.book.rear{transform:translateX(25%)}
.book.one{aspect-ratio:7/10;grid-template-columns:1fr;--t:4.5cqw;width:min(100%,430px,calc((100svh - 290px) * .7));min-width:min(100%,280px)}
.pg{min-width:0;min-height:0;position:relative;overflow:hidden;background:var(--leaf)}
.pg.blank{background:#f5f3ef}
.book .pg{background:var(--leaf);z-index:1}
.book .pg.L{grid-column:1;border-radius:3px 0 0 3px}
.book .pg.R{grid-column:2;border-radius:0 3px 3px 0}
.book.one .pg{border-radius:3px}
.book .pg.card{cursor:default;border:0;border-radius:3px;box-shadow:none;background:var(--leaf)}
.plate{position:absolute;inset:0;z-index:0;border-radius:3px;background:var(--leaf);
  box-shadow:0 0 0 1px rgba(70,52,24,.10), 3px 2px 0 -1px var(--leaf), 4px 3px 0 -1px var(--edge), -3px 2px 0 -1px var(--leaf), -4px 3px 0 -1px var(--edge),
    0 2px 3px rgba(70,52,24,.16), 0 22px 34px -14px rgba(70,52,24,.30), 0 46px 80px -34px rgba(70,52,24,.38)}
.book.front .plate{left:50%;box-shadow:0 0 0 1px rgba(70,52,24,.10), 3px 2px 0 -1px var(--leaf), 4px 3px 0 -1px var(--edge), 6px 4px 0 -2px var(--leaf), 7px 5px 0 -2px var(--edge),
    0 2px 3px rgba(70,52,24,.16), 0 22px 34px -14px rgba(70,52,24,.30), 0 46px 80px -34px rgba(70,52,24,.38)}
.book.rear .plate{right:50%;box-shadow:0 0 0 1px rgba(70,52,24,.10), -3px 2px 0 -1px var(--leaf), -4px 3px 0 -1px var(--edge), -6px 4px 0 -2px var(--leaf), -7px 5px 0 -2px var(--edge),
    0 2px 3px rgba(70,52,24,.16), 0 22px 34px -14px rgba(70,52,24,.30), 0 46px 80px -34px rgba(70,52,24,.38)}
.book.open::after{content:"";position:absolute;z-index:2;top:0;bottom:0;left:50%;width:7cqw;transform:translateX(-50%);pointer-events:none;
  background:linear-gradient(90deg,rgba(60,44,20,0) 0,rgba(60,44,20,.05) 34%,rgba(60,44,20,.17) 49.6%,rgba(255,255,255,.22) 50.4%,rgba(60,44,20,.07) 58%,rgba(60,44,20,0) 100%)}
.book.front::after,.book.rear::after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:2.6cqw;pointer-events:none}
.book.front::after{left:50%;background:linear-gradient(90deg,rgba(40,28,10,.26) 0,rgba(255,255,255,.20) 34%,rgba(40,28,10,.10) 62%,rgba(40,28,10,0) 100%)}
.book.rear::after{right:50%;background:linear-gradient(270deg,rgba(40,28,10,.26) 0,rgba(255,255,255,.20) 34%,rgba(40,28,10,.10) 62%,rgba(40,28,10,0) 100%)}
.book .ghost{position:absolute;top:0;bottom:0;width:50%;z-index:3}
.book .pg.ghost{grid-column:auto}
.book .ghost.L{left:0}
.book .ghost.R{left:50%}
.waitin{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:.7rem;text-align:center;font-style:italic;color:var(--g2);font-size:max(.85rem,calc(var(--t) * .9))}
.pg img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none;pointer-events:none}

/* the back cover's words, placed and sized as the printed back carries them (print/make_book.py: BACK_TOP, back_words), over its sky
   lightened toward paper (lift_sky). sizes are the print's points on a 7 in wide page; --pt is one point at the page's width here */
.bk{position:absolute;inset:0;container-type:inline-size;--pt:calc(100cqw / 504);color:var(--graphite);text-align:center;white-space:nowrap;pointer-events:none;user-select:none;transition:opacity .5s ease;
  background:linear-gradient(color-mix(in srgb,var(--sheet) 55%,transparent),color-mix(in srgb,var(--sheet) 49.5%,transparent) 28%,color-mix(in srgb,var(--sheet) 22%,transparent) 50%,transparent 66%)}
.pg img:not(.in)+.bk{opacity:0}
.pg img.now+.bk{transition:none}
.bk-in{position:absolute;left:0;right:0;top:calc(84.24 * var(--pt))}
.bk svg{display:block;width:calc(126 * var(--pt));height:auto;margin:0 auto}
.bk .lg-stones{fill:currentColor}
.bk-1{margin-top:calc(25.5 * var(--pt));font-style:italic;font-size:calc(20.25 * var(--pt));line-height:1.3}
.bk-2{margin-top:calc(6 * var(--pt));font-size:calc(13.5 * var(--pt));line-height:1.4}
.bk-rule{display:block;width:calc(27 * var(--pt));height:max(1px,calc(.75 * var(--pt)));margin:calc(17.625 * var(--pt)) auto 0;background:currentColor;opacity:.45}
.bk-url{margin-top:calc(13.125 * var(--pt));padding-left:calc(2.25 * var(--pt));font-size:calc(9.4 * var(--pt));line-height:1.3;letter-spacing:calc(2.25 * var(--pt));text-transform:uppercase}

/* the words: centered on the page, no page number */
.ptext{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;text-wrap:balance;gap:1em;padding:10% 13%;font-size:var(--t);line-height:1.7;overflow:auto}
.ptext p{max-width:100%}
.ptext .big{font-family:var(--disp);font-size:2.4em;line-height:1}
.ptext .ttl{font-weight:600;font-size:2.15em;line-height:1.14;letter-spacing:.005em}
.ptext .sub{font-style:italic;font-size:1.05em;color:var(--g2)}
.ptext.ded{font-style:italic}
.ptext .tiny{font-size:.62em;color:var(--g2);line-height:1.5}
.ptext .hd{font-style:italic;font-size:1.35em;line-height:1.15;color:var(--g2);margin-bottom:.2em}
.ptext ul{list-style:none;margin:0;padding:0;display:grid;gap:.7em}
.ptext .pn{display:none}
.ptext.small{font-size:calc(var(--t) * .84);justify-content:center}
.imprint{position:absolute;left:0;right:0;bottom:7%;display:grid;justify-items:center;gap:.25em;font-size:calc(var(--t) * .62);line-height:1.5;color:var(--g2);text-align:center}
.imprint svg{width:2.6em;height:auto;margin-bottom:.5em;overflow:visible}
.imprint ellipse{fill:none;stroke:var(--g2);stroke-width:3}

/* the last page: the offer, or what happens next */
.offer{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:.9rem;text-align:center;padding:8%}
.offer .big{font-family:var(--disp);font-weight:500;font-size:clamp(1.6rem,4.2vw,2.3rem);line-height:1.08}
.offer p{max-width:24rem}
.offer .btn{width:auto}
.offer .price{justify-content:center}

.pg img,.castpic{opacity:0;transition:opacity .5s ease}
.pg img.in,.castpic.in{opacity:1}
.pg img.now,.castpic.now{transition:none}

/* one bar over the book: where you are, and the one thing to do next */
.infobar{width:min(100%,980px);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem 1.2rem;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:.7rem .75rem .7rem 1.1rem;box-shadow:0 14px 30px -28px rgba(40,30,20,.6)}
.infobar .status{flex:1 1 260px;font-size:.95rem;line-height:1.45;color:var(--g2)}
.infobar .status b{color:var(--graphite);font-weight:600}
.infobar #action:empty{display:none}
.infobar .btn{min-height:44px;padding:0 1.15rem;font-size:.95rem}

/* under the book: the arrows and where you are, then a row of the pictures to jump to */
.turn{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;width:min(100%,520px)}
.where{text-align:center;font-size:.9rem;color:var(--g2)}
.arrow{width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid var(--line-2);background:var(--card);color:var(--graphite);cursor:pointer;transition:border-color .15s,background-color .15s}
.arrow.go{background:var(--graphite);border-color:var(--graphite);color:#FFFDF8}
.arrow svg{width:18px;height:18px;display:block}
.arrow:disabled{opacity:.3;cursor:default}
@media(hover:hover){.arrow:not(:disabled):hover{border-color:var(--graphite)}.arrow.go:not(:disabled):hover{background:#45403A}}
.arrow:focus-visible{outline:none;box-shadow:var(--focus)}
.flipx{transform:scaleX(-1)}
.strip{display:flex;gap:.5rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:.4rem .3rem .6rem;scrollbar-width:thin;max-width:min(100%,980px);justify-content:safe center}
.strip::-webkit-scrollbar{height:6px}.strip::-webkit-scrollbar-thumb{background:rgba(45,42,38,.2);border-radius:3px}
.th{flex:none;scroll-snap-align:center;display:grid;justify-items:center;gap:.35rem;padding:0;border:0;background:none;cursor:pointer;color:var(--g3);font:inherit;font-size:.75rem;line-height:1}
.th .tp{display:block;width:40px;height:54px;border-radius:3px;overflow:hidden;background:var(--gold-tint);box-shadow:0 0 0 1px rgba(70,52,24,.16);transition:box-shadow .15s,transform .15s}
.th img{display:block;width:100%;height:100%;object-fit:cover}
.th[aria-current="true"]{color:var(--graphite);font-weight:600}
.th[aria-current="true"] .tp{box-shadow:0 0 0 2px var(--page-2),0 0 0 3.5px var(--graphite)}
@media(hover:hover){.th:hover .tp{transform:translateY(-2px)}.th:hover{color:var(--graphite)}}
.th:focus-visible{outline:none}.th:focus-visible .tp{box-shadow:var(--focus)}
@media(max-width:720px){.th .tp{width:34px;height:46px}}

body.reading .status{font-family:var(--text)}
.under{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between;align-items:baseline;font-size:.95rem;color:var(--g2)}
.fixbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem 1.5rem}
.fixbar p{color:var(--g2);max-width:34rem}

/* after the book is bought: the words can be typed on right where they sit, and a picture carries a tag to change it */
.ptext>div{display:grid;gap:inherit;justify-items:center;max-width:100%}
.book .pg.typed{cursor:default}
.ed{outline:1.5px dashed transparent;outline-offset:.45em;border-radius:.2em;cursor:text;transition:background-color .15s,box-shadow .15s,outline-color .15s;min-width:3em;-webkit-user-select:text;user-select:text}
.ed.multi{width:100%}
@media(hover:hover){.ed:hover{outline-color:rgba(38,35,32,.38)}}
.ed:focus{outline-color:transparent;background:var(--gold-tint);box-shadow:0 0 0 .5em var(--gold-tint)}
.ed.unsaved{outline-color:var(--ochre);background:var(--gold-tint);box-shadow:0 0 0 .5em var(--gold-tint)}
.ed:empty::before{content:"who it\2019s from";color:var(--g2);opacity:.7}
.ptext ul .ed{display:block}
.pencilnote{position:absolute;left:0;right:0;bottom:2.6%;display:flex;justify-content:center;align-items:center;gap:.4em;font-size:max(.78rem,calc(var(--t) * .7));line-height:1;color:var(--g3);pointer-events:none;transition:opacity .2s}
.pencilnote svg{width:1em;height:1em;flex:none}
.pg:focus-within .pencilnote,.pg:has(.unsaved) .pencilnote{opacity:0}
.pg.typed .ptext{justify-content:safe center}
.tag{position:absolute;left:4%;bottom:3.5%;z-index:2;display:inline-flex;align-items:center;gap:.45em;font:inherit;font-size:.85rem;font-weight:600;line-height:1;color:var(--graphite);
  background:rgba(255,253,249,.94);border:1px solid var(--line-2);border-radius:999px;padding:.55rem .9rem;min-height:40px;cursor:pointer;box-shadow:0 8px 18px -12px rgba(40,30,20,.7);transition:background-color .15s,border-color .15s}
.tag svg{width:1.05em;height:1.05em;flex:none}
@media(hover:hover){.tag:hover{background:#FFFDF8;border-color:var(--graphite)}}
.tag:focus-visible{outline:none;box-shadow:var(--focus)}
#desk{width:100%;display:grid;justify-items:center}
#desk:empty{display:none}
.slip{width:min(100%,560px);padding:1.15rem 1.25rem 1.25rem;display:grid;gap:.75rem}
.slipt,.slip .field label.slipt{font-family:var(--text);font-weight:600;font-size:1.05rem;line-height:1.3;color:var(--graphite)}
.slip .field{gap:.5rem}
.slip textarea{min-height:92px}
.slip .btn{width:auto}
.said{border-left:3px solid var(--wheat);padding-left:.9rem}
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.7rem 1.4rem;width:100%}
.foot .btn{width:auto}
.redo{position:absolute;left:3%;top:2.5%;font:inherit;font-weight:600;font-size:.85rem;line-height:1;background:var(--card);color:var(--graphite);border:1px solid var(--line-2);border-radius:999px;padding:.5rem .85rem;min-height:40px;cursor:pointer}
.words{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;resize:none;background:#fff;color:var(--graphite);font-family:var(--text);font-size:max(16px,var(--t));line-height:1.6;padding:9% 10%;min-height:0;box-shadow:inset 0 0 0 2px var(--wheat)}
.words:focus{outline:none;box-shadow:inset 0 0 0 3px var(--graphite);border-color:transparent}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:420px}
.pair figure{margin:0;display:grid;gap:.4rem;text-align:center;font-style:italic;color:var(--g2);font-size:.95rem}
.pair img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px var(--line)}

/* what happens next, as a short numbered list */
.next{display:grid;gap:.9rem;list-style:none;margin:0;padding:0;counter-reset:nx}
.next li{display:grid;grid-template-columns:30px 1fr;gap:.9rem;align-items:start;counter-increment:nx}
.next li::before{content:counter(nx);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:600;background:var(--card);border:1px solid var(--line-2);color:var(--graphite)}
.next svg{display:none}
.steps{margin:1.2rem 0 .4rem}.steps li{align-items:center}.steps li.done::before{content:"\2713";background:var(--gold);border-color:var(--gold);color:var(--graphite)}.steps li.now span{font-weight:600}.steps li.done span{color:var(--graphite)}
/* right after the story is told: a thank-you in handwriting, a pencil trail whose marks tick off, the book's title set in type,
   then the people, who start as a pencil sketch and paint in */
.tale-hi{font-family:var(--hand);font-weight:400;font-size:clamp(2.1rem,6.2vw,2.8rem);line-height:1.08;letter-spacing:.01em;margin:0;color:var(--graphite);text-align:center}
.tale-sub{margin:-.4rem 0 0;text-align:center}
.tale{position:relative;margin:.6rem 0 0;height:150px}
.tale>svg{position:absolute;inset:0 0 auto;width:100%;height:110px;overflow:visible;clip-path:inset(0 100% 0 0);transition:clip-path 2.4s cubic-bezier(.4,0,.2,1)}
.tale.drawn>svg{clip-path:inset(-10px)}
.tale>svg path{fill:none;stroke:var(--pencil-line);stroke-width:2.2;stroke-linecap:round;stroke-dasharray:4 7;vector-effect:non-scaling-stroke}
.tale-mk{position:absolute;top:72px;transform:translate(-50%,-10px);display:grid;justify-items:center;gap:.45rem;width:8.5rem}
.tale-mk.first{transform:translate(-10px,-10px);justify-items:start}.tale-mk.last{transform:translate(calc(-100% + 10px),-10px);justify-items:end}
.tale-mk .dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--graphite);background:var(--sheet);color:var(--graphite);display:grid;place-items:center;transition:background .35s,border-color .35s}
.tale-mk .dot svg{display:block;width:12px;height:12px;opacity:0;transition:opacity .3s}
.tale-mk .lb{font-family:var(--hand);font-size:1.45rem;line-height:1;color:var(--g3);text-align:center;white-space:nowrap;transition:color .35s}
.tale-mk.now .dot{border-color:var(--ochre);animation:taleBeat 1.6s ease-in-out infinite}
.tale-mk.now .lb,.tale-mk.done .lb{color:var(--graphite)}
.tale-mk.done .dot{background:var(--gold);border-color:var(--gold-deep)}.tale-mk.done .dot svg{opacity:1}
@keyframes taleBeat{50%{transform:scale(1.18);box-shadow:0 0 0 6px rgba(251,199,111,.35)}}
.tale-title{text-align:center;padding:1.6rem 1rem 1.4rem;border-radius:var(--r-card);background:var(--sheet);border:1px solid var(--line)}
.tale-title .k{font-family:var(--hand);font-size:1.5rem;color:var(--g2);margin:0}
.tale-title .t{font-family:var(--disp);font-weight:500;font-size:clamp(2.2rem,8vw,3.2rem);line-height:1.05;margin:.25rem 0 .1rem;opacity:0;filter:blur(6px);letter-spacing:.06em;animation:taleType 1.2s var(--ease) 1.6s forwards;overflow-wrap:anywhere}
.tale-title .by{font-style:italic;color:var(--g2);margin:0}
@keyframes taleType{to{opacity:1;filter:none;letter-spacing:-.01em}}
.kicker{font-family:var(--hand);font-size:1.5rem;line-height:1.2;color:var(--g2);margin:0 0 -.9rem}
.kicker b{font-family:var(--disp);font-weight:500;font-size:1.15rem;color:var(--graphite);letter-spacing:-.01em;margin-right:.35rem}
.tale-in{opacity:0;transform:translateY(8px);animation:taleIn .6s var(--ease) forwards;animation-delay:var(--at,0s)}
@keyframes taleIn{to{opacity:1;transform:none}}
.pw{display:inline-block;clip-path:inset(-.2em 100% -.3em 0);animation:talePen var(--dur,.3s) linear var(--at,0s) forwards}   /* one word of handwriting, written left to right */
@keyframes talePen{to{clip-path:inset(-.2em -.2em -.3em 0)}}
.tale-out{animation:taleOut .5s ease forwards}
@keyframes taleOut{to{opacity:0;transform:translateY(-10px)}}
.lineup .fig .sketch{display:none}   /* only while the people paint in; the page then drops "unveil" and they are as always */
.lineup.unveil .fig{position:relative}
.lineup.unveil .fig .sketch{display:block}
.lineup.unveil .fig .sketch{position:absolute;inset:0;filter:grayscale(1) contrast(1.35) brightness(1.12);animation:taleSketch .7s ease var(--at,0s) both,taleUnsketch 1.5s cubic-bezier(.5,0,.3,1) calc(var(--at,0s) + .75s) forwards}   /* the sketch gives way exactly where the color arrives */
.lineup.unveil .fig .paint{position:relative;clip-path:inset(0 100% 0 0);animation:talePaint 1.5s cubic-bezier(.5,0,.3,1) calc(var(--at,0s) + .75s) forwards}
@keyframes taleSketch{from{opacity:0}to{opacity:.75}}
@keyframes taleUnsketch{from{clip-path:inset(0)}to{clip-path:inset(0 0 0 100%)}}
@keyframes talePaint{to{clip-path:inset(0)}}
@media (max-width:480px){.tale-mk{width:6.2rem}.tale-mk .lb{font-size:1.25rem;white-space:normal;line-height:.95}}
@media (prefers-reduced-motion:reduce){
  .tale>svg{transition:none}.tale-mk.now .dot{animation:none}
  .tale-in,.pw,.tale-title .t{animation:taleFade .4s ease forwards;clip-path:none;transform:none;filter:none;letter-spacing:-.01em}
  .tale-out{animation:taleFade .3s ease reverse forwards}
  .lineup.unveil .fig .sketch{display:none}
  .lineup.unveil .fig .paint{clip-path:none;animation:none}
  @keyframes taleFade{from{opacity:0}to{opacity:1}}
}
/* after "that's us": the book opens for the first time. One physical book: the page block in the right half, and
   the cover hinged at the spine, its front the painted cover and its back the title page. The cover turns over and
   lands in the left half as the left page, so nothing shows before it lands, while the book glides from closed and
   centred to open and centred on the same curve. Then the dedication writes itself in and the reader takes over,
   laid out the same, so the hand-over does not move anything. A phone shows one page: the cover swings away. */
.ob{--t:1.95cqw;container-type:inline-size;position:relative;aspect-ratio:14/10;width:min(100%,calc((100svh - 290px) * 1.4));min-width:min(100%,560px);justify-self:center}
.ob-move{position:absolute;inset:0;transform:translateX(-25%)}
.ob-block,.ob-cover{position:absolute;top:0;bottom:0;left:50%;width:50%}
.ob-block{background:var(--leaf);border-radius:0 3px 3px 0;
  box-shadow:0 0 0 1px rgba(70,52,24,.10),3px 2px 0 -1px var(--leaf),4px 3px 0 -1px var(--edge),6px 4px 0 -2px var(--leaf),7px 5px 0 -2px var(--edge),
    0 2px 3px rgba(70,52,24,.16),0 22px 34px -14px rgba(70,52,24,.30),0 46px 80px -34px rgba(70,52,24,.38)}
.ob-block .pg,.ob-back .pg{position:absolute;inset:0;background:none}
.ob-dim{position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(90deg,rgba(40,28,10,.42),rgba(40,28,10,.22) 55%,rgba(40,28,10,.12))}
.ob-warm{position:absolute;inset:0;pointer-events:none;opacity:0;border-radius:inherit;
  background:radial-gradient(ellipse 60% 70% at 0% 50%,rgba(251,199,111,.38),rgba(251,199,111,.12) 50%,rgba(251,199,111,0) 75%)}
.ob-cover{transform-origin:0 50%;transform-style:preserve-3d;z-index:3}
.ob-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.ob-front{border-radius:0 3px 3px 0;background:var(--leaf)}
.ob-front img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ob-front .sketch{filter:grayscale(1) contrast(1.35) brightness(1.12);opacity:0;transition:opacity .7s ease}
.ob-front .paint{clip-path:inset(0 100% 0 0);transition:clip-path 1.6s cubic-bezier(.5,0,.3,1)}
.ob.sk .ob-front .sketch{opacity:.85}
.ob.col .ob-front .paint{clip-path:inset(0)}
.ob-back{transform:rotateY(180deg);background:var(--leaf);border-radius:3px 0 0 3px}
.ob-sheen{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(90deg,rgba(40,28,10,.28),rgba(255,255,255,.18) 60%,rgba(40,28,10,0))}
.ob-edge{position:absolute;top:0;bottom:0;left:0;width:50%;border-radius:3px 0 0 3px;opacity:0;pointer-events:none;
  box-shadow:0 0 0 1px rgba(70,52,24,.10),-3px 2px 0 -1px var(--leaf),-4px 3px 0 -1px var(--edge),0 2px 3px rgba(70,52,24,.16),0 22px 34px -14px rgba(70,52,24,.30)}
.ob-gutter{position:absolute;z-index:4;top:0;bottom:0;left:50%;width:7cqw;transform:translateX(-50%);pointer-events:none;opacity:0;
  background:linear-gradient(90deg,rgba(60,44,20,0) 0,rgba(60,44,20,.05) 34%,rgba(60,44,20,.17) 49.6%,rgba(255,255,255,.22) 50.4%,rgba(60,44,20,.07) 58%,rgba(60,44,20,0) 100%)}
.ob-fleck{position:absolute;z-index:5;left:50%;width:var(--s);height:var(--s);border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,#FFF8E2 0,#FBC76F 38%,rgba(198,143,75,.55) 60%,rgba(198,143,75,0) 74%);box-shadow:0 0 calc(var(--s) * 1.2) calc(var(--s) * .25) rgba(251,199,111,.45)}
/* a cover still painting: the field and the stones from the back of every Waymark book, the title small in its sky */
.ob-stand{position:absolute;inset:0;background:url(/img/cover-standin.jpg) center/cover no-repeat}
.ob-stand .ob-words{position:absolute;left:0;right:0;top:14%;display:grid;justify-items:center;gap:.35em;padding:0 12%;text-align:center}
.ob-stand .ob-t{font-family:var(--disp);font-weight:600;font-size:calc(var(--t) * 3.1);line-height:1.05;letter-spacing:-.005em;color:var(--graphite);text-wrap:balance}
.ob-stand .ob-b{font-family:var(--hand);font-size:calc(var(--t) * 2.1);line-height:1;color:var(--g2)}
.ob-stand .ob-note{position:absolute;left:0;right:0;bottom:6%;text-align:center;font-family:var(--hand);font-size:calc(var(--t) * 1.8);color:rgba(45,42,38,.8);text-shadow:0 0 .35em rgba(255,248,226,.95),0 0 .8em rgba(255,248,226,.8)}
.ob-stand::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);background-size:250% 100%;animation:obShine 2.6s linear infinite}
@keyframes obShine{from{background-position:100% 0}to{background-position:-50% 0}}
.ob.one{aspect-ratio:7/10;width:min(100%,430px,calc((100svh - 290px) * .7));min-width:min(100%,280px);--t:4.5cqw}
.ob.one .ob-move{transform:none}
.ob.one .ob-block,.ob.one .ob-cover{left:0;width:100%}
.ob.one .ob-block{border-radius:3px}
.ob.one .ob-gutter,.ob.one .ob-edge{display:none}
.ob.one .ob-fleck{left:2%}
.ob.one .ob-stand .ob-t{font-size:calc(var(--t) * 2.9)}
.ob-w{display:inline-block;clip-path:inset(-.2em 100% -.3em 0);animation:talePen var(--dur,.3s) linear var(--at,0s) forwards;animation-play-state:paused}
.ob-writing .ob-w{animation-play-state:running}
.ob-hold{visibility:hidden}
@media (prefers-reduced-motion:reduce){.ob-stand::after{animation:none}}

/* paying, and after. the payment page is a stand-in for now, and says so */
.receipt{padding:1.25rem 1.3rem 1.1rem;display:grid;gap:1rem}
.rtop{display:grid;grid-template-columns:72px 1fr;gap:1rem;align-items:center}
.rtop img{display:block;width:72px;aspect-ratio:7/10;object-fit:cover;border-radius:2px;box-shadow:0 10px 16px -9px rgba(38,35,32,.55),0 0 0 1px var(--line);opacity:1}
.rt{font-weight:600;font-size:1.15rem;line-height:1.25;text-wrap:balance}
.receipt dl{margin:0;display:grid}
.receipt dl div{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.6rem 0;border-top:1px solid var(--line)}
.receipt dt{color:var(--g2)}
.receipt dd{margin:0;font-weight:600;white-space:nowrap}
.receipt dd s{font-weight:400;color:var(--g3);text-decoration-color:var(--chestnut);margin-right:.4rem}
.standin{border:1px dashed var(--line-2);border-radius:var(--r-in);padding:.75rem 1rem;display:grid;gap:.1rem;text-align:center;font-size:.9rem}
.standin .slipt{font-size:.95rem}
@media(min-width:760px){body.mine .book:not(.one){width:min(100%,calc((100svh - 300px) * 1.4))}}

/* the people, one card each: everyone stands on the same ground at the height they have on the drawing,
   with the name the book uses for them underneath. a name can be tapped and spelled right. */
.lineup{list-style:none;margin:0;padding:1.2rem .6rem;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;--gap:.35rem;gap:1.4rem var(--gap);--lh:168px;--per:4;transition:opacity .3s;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card)}
.lineup.dim{opacity:.35}
.lineup li{display:grid;justify-items:center;gap:.5rem;flex:0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));max-width:7.5rem;min-width:0}
.lineup.tags{gap:.5rem .6rem;margin-top:.2rem}
.lineup.tags li{flex:0 0 auto}
.lineup .fig{height:calc(var(--lh) * var(--h));display:block}
/* feet on one line, whatever is written under them: every card in a row gives its drawing the room of the tallest
   drawing in that row (--row, set by the page), feet at its foot, and the cards line up by their tops. a name on two
   lines grows the card downward. (December 2: a long name lifted one man above the others.) someone with no drawing
   keeps the room empty, so the names stay on one line too */
.lineup:not(.tags){align-items:flex-start}
.lineup:not(.tags) li{grid-template-rows:calc(var(--lh) * var(--row,1));align-content:start}
.lineup:not(.tags) li>.fig{align-self:end}
.lineup:not(.tags) li:not(:has(.fig))::before{content:"";height:calc(var(--lh) * var(--row,1))}
.lineup .fig img{display:block;height:100%;width:auto;max-width:none;mix-blend-mode:multiply}
.lineup.many{--lh:140px}
.nametag,.nameinput{font-family:var(--text);font-size:.95rem;font-weight:600;line-height:1.2;color:var(--graphite);text-align:center;background:none;border:0;border-bottom:1px solid transparent;border-radius:0;padding:.2rem .3rem;margin:0;min-height:34px;max-width:100%;overflow-wrap:anywhere}
button.nametag{cursor:pointer;border-bottom:1px dashed var(--g3)}
@media(hover:hover){button.nametag:hover{background:var(--gold-tint);border-bottom-color:var(--graphite)}}
button.nametag:focus-visible,.nameinput:focus-visible{outline:none;box-shadow:var(--focus)}
span.nametag{display:grid;align-content:center}
.lookwhen{display:block;min-height:2.2em;margin-bottom:-.35rem;font-family:var(--hand);font-size:1.2rem;line-height:1;color:var(--g2);text-align:center;margin-top:-.25rem;overflow-wrap:anywhere}   /* handwritten: "as a baby", "at three" */
.nametag.none{color:var(--g2);font-weight:400;font-style:italic;font-size:.9rem;min-height:34px;display:grid;align-content:center}
.nameinput{width:6.6rem;background:#FFFEFB;border:1px solid var(--graphite);border-radius:6px;font-size:max(.95rem,16px)}
.fixnote{display:flex;justify-content:center;align-items:center;gap:.45em;font-size:.88rem;line-height:1.3;color:var(--g2);margin-top:-.4rem}
.fixnote svg{width:1em;height:1em;flex:none}
@media(min-width:760px){.lineup{--lh:200px;--gap:.5rem}.lineup.many{--lh:170px}}
/* every version of a picture, side by side. the one that goes in the book is outlined */
.takes{display:flex;flex-wrap:wrap;gap:.8rem}
.take{font:inherit;color:var(--g2);background:none;border:0;padding:0;cursor:pointer;display:grid;gap:.35rem;justify-items:center;width:88px}
.take img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px var(--line);opacity:1}
.take span{font-size:.78rem;line-height:1.2}
.take[aria-pressed="true"]{color:var(--graphite);font-weight:600}
.take[aria-pressed="true"] img{box-shadow:0 0 0 2px var(--card),0 0 0 3.5px var(--graphite)}
.take:focus-visible{outline:none}.take:focus-visible img{box-shadow:var(--focus)}

/* a gift: the giver's note at the top of the storyteller's page, and the message the giver copies to text */
.giftnote{margin:0;border-left:3px solid var(--wheat);padding:.15rem 0 .15rem 1rem;display:grid;gap:.3rem}
.giftnote p{font-style:italic;font-size:1.1rem;line-height:1.5;overflow-wrap:anywhere}
.giftnote footer{color:var(--g2);font-size:.92rem}
.copy{gap:1rem}
.copy p{overflow-wrap:anywhere}
a.tel{color:inherit;text-decoration:none}

@media(max-width:480px){
  body{font-size:16px}
  main{gap:1.2rem}
  .btn{width:100%}
  .kid{grid-template-columns:1fr 3.8rem auto}.kid input{padding-left:.7rem;padding-right:.5rem}.draw button{padding:0 .6rem}
  .slip .btn,.offer .btn,.infobar .btn{width:100%}
  .infobar #action{flex:1 1 100%}
  .infobar{padding:.8rem}
}
@media (prefers-reduced-motion:reduce){.pg img,.castpic,body,.ed,.tag,.pencilnote,.lineup{transition:none}}

/* ---- phones: the order summary folds to one bar above the questions; bigger targets; one-line step name ---- */
.sum-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style:none;cursor:pointer;font-weight:600;min-height:44px}
.sum-bar::-webkit-details-marker{display:none}
.sum-bar span{display:inline-flex;align-items:center;gap:.55rem}
.sum-bar span::after{content:"";width:7px;height:7px;border-right:1.5px solid var(--g2);border-bottom:1.5px solid var(--g2);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.summary[open] .sum-bar span::after{transform:rotate(-135deg) translateY(-1px)}
.sum-bar:focus-visible{outline:none;box-shadow:var(--focus);border-radius:6px}
@media(min-width:901px){.sum-bar{display:none}}
@media(max-width:900px){
  .shell.has-aside{display:flex;flex-direction:column;gap:0}
  .aside{order:-1;padding-top:1rem;margin:0 auto}
  .has-aside main{padding-top:1.4rem}
  .summary{position:static;padding:.55rem 1rem;gap:.9rem}
  .summary[open]{padding-bottom:1.1rem}
}
.back{min-height:44px}
.stepper .mob>span:first-child{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.stepper .mob .of{color:var(--g3);font-weight:400;margin-left:.15rem}
@media(max-width:480px){
  .kid{grid-template-columns:1fr 4.4rem}
  .kid .draw{grid-column:1/-1}
  .kids{gap:1rem}
}
.summary:not([open]){gap:0;padding-top:.45rem;padding-bottom:.45rem}

/* the footer sits at the bottom of the window even when a screen is short */
body:has(> .site-footer){min-height:100svh;display:flex;flex-direction:column}
body:has(> .site-footer) > .site-footer{margin-top:auto}

/* ---- waiting: a slim moving line, in line with the words (centred only over a picture) ---- */
.loadline{position:relative;width:148px;height:3px;border-radius:3px;background:rgba(45,42,38,.12);overflow:hidden}
.loadline span{position:absolute;top:0;bottom:0;left:0;width:38%;border-radius:inherit;background:var(--graphite);animation:waitRun 1.25s cubic-bezier(.45,0,.35,1) infinite}
@keyframes waitRun{from{transform:translateX(-100%)}to{transform:translateX(265%)}}
.live:has(> .loadline){justify-items:start;text-align:left;padding-block:1.1rem .5rem}
.waitin .loadline{width:96px;background:rgba(45,42,38,.16)}
@media (prefers-reduced-motion:reduce){.loadline span{animation:waitBreathe 1.8s ease-in-out infinite;width:100%;transform:none}@keyframes waitBreathe{50%{opacity:.35}}}
