/* Waymark's design system, from "Homepage v3" (the design canvas "Waymark homepage redesign").
   Shared by the homepage and every flow screen. Page-specific layout stays with each page.
   Colors are sampled from the book One Bucket at a Time. */
@font-face{font-family:'Cooper Star';font-weight:300 900;font-display:swap;src:url(/v3/d55d4b6b3bc157f93173c715f94eff99.woff2) format('woff2')}
:root{
  --page:#F6F1E6;--page-2:#EFE8DA;--sheet:#FFFDF8;
  --graphite:#2D2A26;--g2:#55504A;--g3:#7B746A;--rule:rgba(45,42,38,.14);--dash:rgba(45,42,38,.25);--pencil-line:rgba(45,42,38,.55);
  --sky:#CAE5EF;--wheat:#FBC76F;--wheat-2:#F4DFAA;--ochre:#C68F4B;--chestnut:#A26A37;--chestnut-d:#87532B;
  --night:#1E2943;--night-2:#2A3656;--moon:#ECE8F4;
  --disp:'Cooper Star',Georgia,serif;--text:'Lora',Georgia,serif;--hand:'Reenie Beanie','Comic Sans MS',cursive;
  --paper:url(/v3/8826d289409abe8c8ad7f6d5fb27788d.png);
  --ease:cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background-color:var(--page);background-image:var(--paper);color:var(--graphite);font-family:var(--text);font-size:18px;line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2,h3{text-wrap:balance}
p,blockquote,li{text-wrap:pretty}
a{color:inherit}
img{display:block;max-width:100%}
button,input,textarea,select{font:inherit;color:inherit}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--chestnut-d);outline-offset:4px;border-radius:6px}
.disp{font-family:var(--disp);font-weight:500;letter-spacing:-.012em}
.hand{font-family:var(--hand);font-weight:400;letter-spacing:.01em}

/* the wordmark: WAYMARK with a little cairn after it */
.lg{display:inline-flex;line-height:0;color:var(--graphite)}
.lg svg{width:146px;height:auto}
.lg-stones{fill:var(--chestnut)}

/* a pencil frame drawn around a box (the .skf svg sits inside a positioned parent) */
.skf{position:absolute;left:-5px;top:-5px;width:calc(100% + 10px);height:calc(100% + 10px);color:var(--pencil-line);pointer-events:none;overflow:visible}

/* buttons, drawn by hand; the main one is colored in with wheat from the paintings */
.btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 28px;border:0;background:none;
  color:var(--graphite)!important;font-family:var(--text);font-size:16.5px;font-weight:600;letter-spacing:.005em;text-decoration:none;white-space:nowrap;cursor:pointer}
.btn::before{content:"";position:absolute;inset:1px;z-index:-1;background:var(--wheat-2) url(/v3/ecb97d275440057988b803a38069d669.webp) 50% 40%/300px auto;
  border-radius:20px 26px 18px 28px / 28px 18px 26px 20px;transition:transform .35s var(--ease),filter .25s ease}
.btn::after{content:"";position:absolute;inset:0;z-index:-1;border:1.6px solid rgba(45,42,38,.74);border-radius:26px 18px 30px 16px / 16px 30px 18px 26px;transform:rotate(-.7deg);transition:transform .35s var(--ease)}
.btn:hover::before{transform:rotate(.5deg);filter:saturate(1.3) brightness(.97)}
.btn:hover::after{transform:rotate(.6deg)}
.btn[disabled],.btn[aria-disabled="true"]{cursor:default;opacity:.55}
.btn[disabled]:hover::before,.btn[disabled]:hover::after{transform:none;filter:none}
.btn-s{min-height:44px;padding:0 20px;font-size:15px}
.btn-line::before{background:transparent}
.btn-line:hover::before{background:rgba(45,42,38,.05);filter:none}
.btn-light::after{border-color:rgba(255,253,248,.8)}
.btn-line-light::before{background:transparent}
.btn-line-light{color:#FFFDF8!important}
.btn-line-light:hover::before{background:rgba(255,253,248,.08);filter:none}
.btn-line-light::after{border-color:rgba(255,253,248,.62)}
/* a quiet text button: "Back", "Change", "Not now" */
.link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:var(--g2);font-size:16px;text-decoration:underline;
  text-decoration-color:rgba(45,42,38,.3);text-underline-offset:4px;cursor:pointer}
.link:hover{color:var(--graphite);text-decoration-color:var(--chestnut)}

/* prices: now, was, and a note */
.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0}
.price-now{font-size:28px;font-weight:600;color:var(--graphite);letter-spacing:-.01em}
.price-was{font-size:17px;color:var(--g3);text-decoration-thickness:1.5px;text-decoration-color:var(--chestnut)}
.price-note{margin:2px 0 0;font-size:14.5px;font-style:italic;color:var(--g2);line-height:1.3}

/* a sheet of white paper laid on the page */
.sheet{position:relative;background:#FFFDF8;background-image:var(--paper);box-shadow:0 26px 40px -30px rgba(40,30,20,.45),0 1px 0 rgba(45,42,38,.06)}

/* the dark, bedtime sections: brushed top and bottom edges, white pencil hatching */
.night{position:relative;background:var(--night);color:var(--moon);
  -webkit-mask:url(/v3/bf9a88b243f31e646a0ba72e90682bdf.webp) 0 0/1600px 70px repeat-x,linear-gradient(#000,#000) 0 68px/100% calc(100% - 136px) no-repeat,url(/v3/be166bfeadee86b12eb35b4354a56c6e.webp) 0 100%/1600px 70px repeat-x;
  mask:url(/v3/bf9a88b243f31e646a0ba72e90682bdf.webp) 0 0/1600px 70px repeat-x,linear-gradient(#000,#000) 0 68px/100% calc(100% - 136px) no-repeat,url(/v3/be166bfeadee86b12eb35b4354a56c6e.webp) 0 100%/1600px 70px repeat-x}
.night::before{content:"";position:absolute;left:calc(50% - 900px);top:calc(54% - 550px);width:1800px;height:1100px;background:url(/v3/560b2e5ac2890bf0394c5bff07de27cf.webp) 0 0/100% 100% no-repeat;pointer-events:none}

/* a highlighter stroke in wheat */
mark,.mark{background:linear-gradient(transparent 62%,rgba(251,199,111,.55) 62%,rgba(251,199,111,.55) 92%,transparent 92%);color:inherit;padding:0 1px}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* a page turning (turn.js): the leaf that lifts and comes down on the other side. the book reader and the homepage's sample books share it */
.leaf{position:absolute;top:0;bottom:0;width:50%;z-index:4;transform-style:preserve-3d;will-change:transform}
.leaf.fwd{left:50%;transform-origin:left center}
.leaf.bwd{left:0;transform-origin:right center}
.leaf .face{position:absolute;inset:0;border-radius:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.leaf .face.rev{transform:rotateY(180deg)}
.leaf .shade{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(90deg,rgba(40,28,10,.20),rgba(40,28,10,0) 70%);transform:translateZ(1px)}
.leaf.bwd .shade{background:linear-gradient(270deg,rgba(40,28,10,.20),rgba(40,28,10,0) 70%)}
