/* cravepal.app, the page around the story scenes. CravePal Design Standards (design/adam-design-standards):
   a mint wall, the curved sage floor where pal appears big, colour only on objects, ink text, borderless see-through
   cards, pill buttons with a solid lip, paper speech bubbles. The app's fonts: Fredoka for headings, numbers and buttons
   (600) and pal's speech (500), Figtree for reading and labels. Only the CravePal wordmark keeps Bagel Fat One, as the logo does.
   The hero extends the app scale for the web. */

@font-face{font-family:"Bagel Fat One";src:url(fonts/bagel-fat-one.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Fredoka;src:url(fonts/fredoka.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:Figtree;src:url(fonts/figtree.woff2) format("woff2");font-weight:400 700;font-display:swap}

:root{
  --wall:#DCEFE2;--floor-top:#C8E6D2;--floor:#BFE0CB;--horizon:rgba(31,107,68,.14);--contact:rgba(21,77,49,.32);
  --ink:#1D2B24;--muted:#52615A;--link:#1F6B44;--paper:#FFFCF5;
  --card:rgba(255,255,255,.5);--card-shadow:0 6px 16px -10px rgba(23,87,58,.35);--divider:rgba(29,43,36,.08);
  --primary:#1F6B44;--primary-lip:#154D31;--secondary:rgba(255,255,255,.6);--secondary-lip:rgba(23,87,58,.18);
  --floating:0 4px 10px -6px rgba(23,87,58,.35);--bubble-shadow:drop-shadow(0 5px 6px rgba(23,87,58,.22));
  --gold:#F2BE4A;--coin-ring:#D3962C;--coin-mark:#6B4A12;--stand-in:#FF7A45;
  --display:Fredoka,ui-rounded,"SF Pro Rounded",system-ui,sans-serif;--text:Figtree,-apple-system,system-ui,sans-serif;
  --brand:"Bagel Fat One",ui-rounded,"SF Pro Rounded",system-ui,sans-serif;
  --gut:max(20px,4vw,calc((100vw - 1680px) / 2));
  color-scheme:light
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--wall);color:var(--ink);font:500 15px/1.45 var(--text);overflow-x:hidden}
img,svg{display:block;max-width:100%}
h1,h2,p,dl,dd{margin:0}
p{text-wrap:pretty}
h1,h2{text-wrap:balance}
a{color:inherit}
button{font:inherit;color:inherit}
::selection{background:#CDE8D6}
:focus-visible{outline:3px solid var(--primary);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:50;padding:12px 18px;border-radius:999px;background:var(--paper);box-shadow:var(--floating);font:600 16px/1.21 var(--display);text-decoration:none}
.skip:focus{top:12px}

/* type, the README's roles */
.section-label{font:700 13px/1.35 var(--text);letter-spacing:.26px}
.lede{font:400 16px/1.5 var(--text);max-width:34em}
.scene-note{font:500 13px/1.35 var(--text);color:var(--muted)}

/* Button: pills with a solid lip that press down 3px */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 28px;border:0;border-radius:999px;font:600 16px/1.21 var(--display);text-decoration:none;cursor:pointer;transition:transform 80ms ease-out,box-shadow 80ms ease-out}
.btn span{font-family:var(--text)}
.btn--primary{background:var(--primary);color:var(--paper);box-shadow:0 4px 0 var(--primary-lip)}
.btn--primary:active{transform:translateY(3px);box-shadow:0 1px 0 var(--primary-lip)}
.btn--secondary{background:var(--secondary);color:var(--ink);box-shadow:0 4px 0 var(--secondary-lip)}
.btn--secondary:active{transform:translateY(3px);box-shadow:0 1px 0 var(--secondary-lip)}

/* SpeechBubble: paper, radius 16, one soft shadow over bubble and tail, a small tail pointing at pal */
.bubble{position:relative;width:max-content;max-width:150px;padding:9px 13px;border-radius:16px;background:var(--paper);color:var(--ink);font:500 15px/1.25 var(--display);filter:var(--bubble-shadow)}
.bubble::after{content:"";position:absolute;left:22px;bottom:-8px;border:8px solid transparent;border-bottom:0;border-top:9px solid var(--paper)}

/* Card: the one surface */
.card{background:var(--card);border-radius:18px;box-shadow:var(--card-shadow)}

/* the curved sage floor pal stands on: a wide shallow arch with its 2px horizon line */
.floor{position:absolute;z-index:0;left:-40%;right:-40%;bottom:0;height:var(--floor-h,200px);border-top:2px solid var(--horizon);border-radius:50% 50% 0 0 / 70px 70px 0 0;background:linear-gradient(var(--floor-top),var(--floor) 150px);pointer-events:none}
.pal-button{display:block;padding:0;border:0;background:none;cursor:pointer;border-radius:24px}
.pal-button img{width:100%;height:auto}

/* masthead: the wordmark on the left, the coming soon chip on the right, the lamp hangs between them */
.masthead{position:absolute;z-index:6;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:22px var(--gut) 0}
.brand{display:block;width:150px;border-radius:8px}
.soon-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 13px 0 9px;border-radius:999px;background:var(--paper);box-shadow:var(--floating);font:600 16px/1.21 var(--display);white-space:nowrap}
.soon-chip svg{width:22px;height:22px}

/* hero: pal's kitchen, wider. Words on the left, pal on the floor on the right */
.hero{position:relative;overflow:hidden;min-height:max(640px,min(100svh,900px));padding:150px var(--gut) 0;--floor-h:30%}
.kitchen{position:absolute;inset:0;pointer-events:none}
.kitchen svg :is(path,rect,circle,ellipse,line){stroke-width:2.2px;vector-effect:non-scaling-stroke}
.k-lamp{position:absolute;z-index:1;top:0;left:66%;width:120px;margin-left:-60px}
.k-window{position:absolute;z-index:1;left:calc(66% - 350px);top:41%;width:164px}
.k-shelf{position:absolute;z-index:1;left:calc(66% + 205px);top:47%;width:184px}
.hero-copy{position:relative;z-index:3;max-width:480px;padding-top:6vh}
.hero-copy .section-label{color:var(--muted);margin-bottom:14px}
.hero h1{font:600 56px/1.1 var(--display);letter-spacing:-1.1px;margin-bottom:20px}
.hero h1 span{white-space:nowrap}
.hero .lede{margin-bottom:30px;text-wrap:pretty}
.hero-pal{position:absolute;z-index:2;left:66%;bottom:max(6%,26px);width:380px;margin-left:-190px}
.hero-pal .bubble{position:absolute;left:78%;bottom:84%;max-width:170px;white-space:nowrap}

/* the strip between the hero and the story */
.story-intro{position:relative;z-index:1;display:flex;justify-content:space-between;gap:16px;padding:22px var(--gut);background:var(--floor);font:700 13px/1.35 var(--text);letter-spacing:.26px}
.story-intro span{color:var(--muted)}

/* chapters outside the pinned scenes */
.chapter{position:relative;overflow:hidden;padding:40px var(--gut) 0}
.chapter-heading{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:16px}
.chapter-heading .section-label{display:flex;align-items:center;gap:10px}
.chapter-number{display:inline-grid;place-items:center;min-width:34px;height:26px;padding:0 10px;border-radius:999px;background:var(--secondary);box-shadow:var(--floating);font:600 13px/1 var(--display);letter-spacing:0}

/* 03: the Pause, with pal big on the floor */
.pause-chapter{--floor-h:150px}
.pause-layout{position:relative;z-index:2;display:grid;grid-template-columns:1fr minmax(320px,440px);align-items:end;gap:40px;padding:56px 0 46px}
.pause-word{font:600 56px/1.1 var(--display);letter-spacing:-1.1px;margin-bottom:18px}
.pause-copy .lede{margin-bottom:28px}
.pause-copy{align-self:center;padding-bottom:110px}
.pause-stage{position:relative;display:flex;flex-direction:column;align-items:center}
.pause-stage img{width:min(100%,380px);height:auto;margin-top:22px}
.bubble--story{max-width:264px;padding:12px 18px;text-align:center}
.bubble--story::after{left:50%;margin-left:-8px}
.bubble--story h2{font:500 19px/1.3 var(--display)}
.bubble--story span{display:block;margin-top:4px;font:500 13px/1.35 var(--text);color:var(--muted)}

/* 05: the money */
.money{--floor-h:140px;min-height:700px;display:flex;flex-direction:column}
.money .money-layout{flex:1}
.money-layout{position:relative;z-index:2;display:grid;grid-template-columns:1fr minmax(340px,560px);gap:48px;align-items:end;padding:56px 0 34px}
.money h2{font:600 56px/1.1 var(--display);letter-spacing:-1.1px;margin-bottom:26px}
.kept-amount{display:flex;align-items:baseline;gap:14px;margin-bottom:22px}
.kept-amount span{font:600 56px/1.21 var(--display);letter-spacing:-1.1px;font-variant-numeric:tabular-nums}
.kept-amount b{font:500 19px/1.25 var(--display)}
.money-copy{align-self:start;padding-bottom:0}
.money-art{display:grid;grid-template-columns:1fr 250px;align-items:end;gap:20px}
.example{padding:12px 14px 14px}
.example-head{font:700 13px/1.35 var(--text);letter-spacing:.26px;padding:2px 0 8px}
.example div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;border-top:1.5px solid var(--divider)}
.example dt{display:flex;align-items:center;gap:12px;font:600 16px/1.21 var(--display)}
.example dt svg{width:28px;height:28px;flex:none}
.example dd{font:600 16px/1.21 var(--display);font-variant-numeric:tabular-nums}
.example .example-total dt{padding-left:40px}
.example-note{padding-top:8px;border-top:1.5px solid var(--divider);font:500 13px/1.35 var(--text);color:var(--muted)}
.money-pal{position:relative;text-align:center}
.money-annotation{display:block;margin-top:6px;font:500 13px/1.35 var(--text);color:var(--muted)}

/* privacy */
.privacy-section{position:relative;padding:72px var(--gut)}
.privacy-section>.section-label{color:var(--muted);margin-bottom:16px}
.privacy-columns{display:grid;grid-template-columns:1fr minmax(320px,560px);gap:48px;align-items:start}
.privacy-columns h2{font:600 56px/1.1 var(--display);letter-spacing:-1.1px}
.privacy-copy{padding:20px 22px;display:grid;gap:14px}
.privacy-copy p{font:400 16px/1.5 var(--text)}
.privacy-copy p:first-child{display:flex;gap:12px;align-items:flex-start}
.privacy-copy p svg{width:24px;height:24px;flex:none;margin-top:1px}
.privacy-copy a{font:600 13px/1.35 var(--text);color:var(--link);text-decoration-thickness:1.5px;text-underline-offset:3px;justify-self:start;padding:10px 0}

/* footer: pal stands on the floor at the bottom of the page */
.footer{position:relative;overflow:hidden;padding:64px var(--gut) 0;--floor-h:150px}
.footer-top{position:relative;z-index:2;display:grid;grid-template-columns:1fr minmax(280px,420px);gap:40px;align-items:end}
.footer-title{font:600 56px/1.1 var(--display);letter-spacing:-1.1px}
.footer-cta{display:grid;gap:8px;justify-items:start}
.footer-launch{font:600 16px/1.21 var(--display)}
.footer-cta .btn{margin-top:16px}
.footer-pal{position:relative;z-index:2;width:200px;margin:30px auto 0}
.footer-pal img{width:100%;height:auto}
.footer .floor{top:88%;bottom:auto;height:1000px;left:-100vw;right:-100vw;z-index:-2}
.footer-pal::after{content:"";position:absolute;left:12%;right:12%;bottom:2px;height:20px;border-radius:50%;background:radial-gradient(closest-side,var(--contact),transparent);z-index:-1}
.footer-wordmark{position:relative;z-index:2;padding:24px 0 28px;border-bottom:1.5px solid var(--divider)}
.footer-base{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;padding:26px 0 30px;font:500 13px/1.35 var(--text)}
.footer-base a{min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px}
.secret{min-height:44px;padding:0;border:0;background:none;font:500 13px/1.35 var(--text);color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* the Pause demo: a small pop-up card over the page, pal on his own bit of floor */
.pause-dialog{width:min(400px,calc(100vw - 32px));max-width:none;max-height:calc(100svh - 32px);margin:auto;padding:14px 20px 18px;border:0;border-radius:28px;background:var(--wall);color:var(--ink);box-shadow:0 24px 60px rgba(29,43,36,.3);overflow:auto;overflow-x:hidden}
.pause-dialog::backdrop{background:rgba(29,43,36,.45)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-top .section-label{color:var(--muted);font-size:11px}
.close-dialog{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--secondary);box-shadow:var(--floating);color:var(--ink);cursor:pointer}
.close-dialog svg{width:20px;height:20px}
.dialog-content{display:flex;flex-direction:column-reverse;gap:14px;margin-top:4px;text-align:center}
.dialog-content .section-label{color:var(--muted)}
.dialog-content h2{min-height:2.3em;font:600 32px/1.15 var(--display);letter-spacing:-.3px;margin:8px 0 10px}
.dialog-content h2:focus{outline:none}
.dialog-content p:not(.section-label){min-height:4.5em;margin:0 auto;font:400 15px/1.5 var(--text);max-width:24em}
.demo-actions{display:grid;gap:10px;margin-top:16px}
.dialog-pal{position:relative;height:170px;margin:0 -20px}
.dialog-pal::before{content:"";position:absolute;left:0;right:0;bottom:-14px;height:52px;border-top:2px solid var(--horizon);border-radius:50% 50% 0 0 / 26px 26px 0 0;background:linear-gradient(var(--floor-top),var(--floor))}
.dialog-pal img{position:absolute;inset:0 0 6px;width:100%;height:calc(100% - 6px);object-fit:contain;object-position:center bottom}
.dialog-pal:has(img[src*="idle"])::after{content:"";position:absolute;left:50%;bottom:2px;width:120px;height:16px;margin-left:-60px;border-radius:50%;background:radial-gradient(closest-side,var(--contact),transparent)}   /* the one pose drawn without its own contact shadow */
.demo-note{margin:14px 0 0;text-align:center;font:500 12px/1.4 var(--text);color:var(--muted)}
@media (max-height:700px){.dialog-pal{height:120px}}
@media (max-height:600px){.pause-dialog{padding:10px 16px 12px}.dialog-pal{height:96px}.dialog-content{gap:8px}.dialog-content h2{font-size:28px;margin:4px 0 6px}.dialog-content p:not(.section-label){font-size:14px}.demo-actions{margin-top:10px;gap:8px}.demo-note{margin-top:8px;font-size:11px}.dialog-pal::before{bottom:-4px}}   /* the smallest phones: the whole card fits without scrolling */
@media (prefers-reduced-motion:no-preference){
  .pause-dialog[open]{animation:pause-pop .34s cubic-bezier(.2,1.25,.4,1) both}
  .pause-dialog[open]::backdrop{animation:pause-fade .2s ease both}
}
@keyframes pause-pop{from{opacity:0;transform:translateY(14px) scale(.92)}}
@keyframes pause-fade{from{opacity:0}}

/* easter eggs: a shower of pals or of gold coins (falling, never floating) */
.effects{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden}
.effect-pal,.effect-coin{position:absolute;top:-90px;animation:fall var(--duration,2.4s) cubic-bezier(.45,0,.75,1) var(--delay,0s) forwards}
.effect-pal{width:76px;height:auto}
.effect-coin{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--gold);border:2px solid var(--ink);box-shadow:inset 0 0 0 3px var(--coin-ring);font:600 16px/1 var(--display);color:var(--coin-mark)}
@keyframes fall{to{transform:translateY(calc(100vh + 120px)) rotate(var(--turn,120deg))}}

/* phones and narrow tablets */
@media (max-width:760px){
  :root{--gut:20px}
  .masthead{padding-top:16px}
  .brand{width:124px}
  .soon-chip .soon-wide{display:none}
  .hero{min-height:0;padding:0;--floor-h:120px}
  .kitchen{position:relative;height:440px}
  .k-lamp{left:50%;width:96px;margin-left:-48px}
  .k-window{left:16px;top:142px;width:104px}
  .k-shelf{left:auto;right:12px;top:214px;width:112px}
  .hero-pal{left:50%;bottom:auto;width:196px;margin-left:-98px;position:absolute;top:238px}
  .hero-pal .bubble{left:62%;bottom:94%;max-width:150px}
  .hero .floor{bottom:auto;top:330px;height:140px}
  .hero-copy{max-width:none;margin-top:0;padding:30px 20px 40px;border-radius:28px 28px 0 0;background:var(--wall);box-shadow:0 -6px 16px -12px rgba(23,87,58,.35)}
  .hero h1{font-size:30px;letter-spacing:-.3px;line-height:1.21;margin-bottom:12px}
  .hero .lede{margin-bottom:24px}
  .hero .btn{width:100%}
  .story-intro{flex-direction:column;gap:2px}
  .chapter{padding-top:28px}
  .chapter-heading .scene-note{display:none}
  .pause-layout,.money-layout,.privacy-columns,.footer-top{grid-template-columns:1fr;gap:28px}
  .pause-layout{padding:28px 0 30px}
  .pause-word,.money h2,.privacy-columns h2,.footer-title{font-size:30px;letter-spacing:-.3px;line-height:1.21}
  .pause-copy{padding-bottom:0}
  .pause-copy .btn,.footer-cta .btn{width:100%}
  .footer-cta{justify-items:stretch}
  .pause-stage img{width:250px}
  .money{min-height:0}
  .money-layout{padding:28px 0 40px}
  .money-copy{padding-bottom:0}
  .kept-amount span{font-size:56px}
  .money-art{grid-template-columns:1fr;justify-items:stretch}
  .money-pal{width:190px;margin:10px auto 0}
  .privacy-section{padding:48px var(--gut)}
  .footer{padding-top:48px}
  .footer-pal{width:160px}
  .footer-base{justify-content:flex-start}
}
@media (min-width:761px) and (max-width:1100px){
  .soon-wide{display:none}
  .hero{--floor-h:26%}
  .k-lamp,.hero-pal{left:72%}
  .k-window{left:calc(72% - 290px);width:140px}
  .k-shelf{left:auto;right:12px;width:150px;top:46%}
  .hero-pal{width:280px;margin-left:-140px}
  .hero-copy{max-width:400px}
  .pause-layout,.money-layout{grid-template-columns:1fr}
  .money-art{grid-template-columns:1fr 200px}
  .privacy-columns,.footer-top{grid-template-columns:1fr}
}
@media (min-width:761px) and (max-height:768px){
  .hero{padding-top:120px}
  .hero-pal{width:280px;margin-left:-140px}
  .k-window{top:26%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
  .effects{display:none}
}

/* Round 2: a single kitchen composition, with a grounded pal and a clear next step. */
.brand,.dialog-mark,.footer-wordmark{width:auto;font:400 30px/1.2 var(--brand);letter-spacing:-.6px;text-decoration:none;white-space:nowrap}
.brand{display:flex;align-items:center;min-height:44px}
.dialog-mark{font-size:22px}
.footer-wordmark{font-size:56px;line-height:1.2}
.example dd{font-size:19px;white-space:nowrap}
.hero{min-height:740px;height:min(838px,calc(100svh - 62px));padding:0 var(--gut);--floor-h:24%}
.hero-copy{position:absolute;left:var(--gut);top:24%;width:48%;max-width:590px;padding:0;background:none;box-shadow:none}
.hero-copy .section-label{margin-bottom:20px}
.hero h1{font-size:clamp(56px,6.3vw,90px);font-weight:600;line-height:1.03;letter-spacing:-1.5px;margin-bottom:24px;text-wrap:initial}
.hero h1 span{display:block}
.hero .lede{max-width:400px;margin:0}
.hero-actions{position:absolute;z-index:3;left:var(--gut);bottom:18%;display:grid;gap:16px;justify-items:start}
.hero-launch{font:700 13px/1.35 var(--text)}
.hero-pal{left:auto;right:var(--gut);bottom:52px;width:min(40vw,640px,64svh);margin:0;top:auto}
.hero-pal .pal-button{transform-origin:50% 94%}
.hero-pal .bubble{z-index:2;left:60%;right:auto;bottom:86%;max-width:200px;white-space:normal}   /* at his top right, tail on his head */
.hero-pal .bubble::after{left:16px;right:auto}
.k-lamp{left:66%;width:106px;margin-left:-53px;top:0}
.k-window{left:55%;top:24%;width:132px}
.k-shelf{left:auto;right:var(--gut);top:21%;width:144px}
.story-intro{min-height:62px;align-items:center}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .hero-pal .pal-button img{transform-origin:50% 94%;transition:transform 150ms ease-out}
  .hero-pal .pal-button:is(:hover,:focus-visible) img{transform:skewX(var(--pal-lean,1.5deg)) scaleY(.985)}
}
@media (min-width:761px) and (max-height:768px){
  .hero{min-height:640px;height:calc(100svh - 62px)}
  .hero-copy{top:22%}
  .hero h1{font-size:clamp(56px,6vw,80px);margin-bottom:18px}
  .hero-actions{bottom:17%}
  .hero-pal{width:min(40vw,460px,58svh);bottom:48px}
  .k-window{top:21%;width:116px}
  .k-shelf{top:21%;width:126px}
  .k-lamp{width:88px;margin-left:-44px}
}
@media (min-width:761px) and (max-width:1100px){
  .hero-copy{width:47%;top:23%}
  .hero h1{font-size:56px}
  .hero-pal{right:20px;width:42vw}
  .k-window{left:54%;width:110px}
  .k-shelf{right:20px;width:118px}
}
@media (max-width:760px){
  .brand{font-size:28px}
  .soon-chip{font-size:13px;padding:0 10px;gap:4px}
  .soon-chip svg{width:18px;height:18px}
  .hero{display:flex;flex-direction:column;align-items:center;min-height:650px;height:calc(100svh - 62px);padding:86px 20px 24px;gap:14px}
  .kitchen{position:absolute;inset:0;height:auto}
  .hero-copy{position:relative;inset:auto;width:100%;max-width:420px;margin:0;padding:0;text-align:center;border-radius:0}
  .hero-copy .section-label{margin-bottom:12px;font-size:13px}
  .hero h1{font-size:clamp(38px,11.6vw,56px);line-height:1.04;letter-spacing:-.7px;margin-bottom:14px}
  .hero .lede{max-width:310px;margin:auto;font-size:15px;line-height:1.45}
  .hero-pal{position:relative;inset:auto;width:min(74vw,34svh,300px);margin:auto 0 0;flex:none}
  .hero-pal .bubble{font-size:13px;max-width:180px;padding:8px 11px}
  .hero .floor{top:auto;bottom:0;height:31%}
  .hero-actions{position:relative;inset:auto;flex:none;width:100%;max-width:360px;justify-items:center;gap:12px;margin-top:0}
  .hero .btn{width:100%}
  .k-lamp{left:50%;width:58px;margin-left:-29px;top:-75px}
  .k-window{left:12px;top:42%;width:76px}
  .k-shelf{left:auto;right:10px;top:37%;width:82px}
  .story-intro{padding:14px 20px;gap:3px;align-items:flex-start}
  .footer-wordmark{font-size:40px}
}
@media (max-width:760px) and (max-height:700px){
  .hero{min-height:506px;padding-top:66px;padding-bottom:16px;gap:8px}
  .hero-copy .section-label{margin-bottom:8px}
  .hero h1{font-size:38px;margin-bottom:10px}
  .hero .lede{font-size:15px;max-width:300px}
  .hero-pal{width:176px;margin-top:auto}
  .hero-pal .bubble{max-width:136px}
  .hero-actions{gap:8px}
  .hero-launch{font-size:13px}
  .k-window{top:47%;width:64px;left:12px}
  .k-shelf{display:none}
.hero .floor{height:30%}
}

/* Let each floor return to the next section's mint wall. */
.floor{background:linear-gradient(var(--floor-top),var(--floor) 45%,var(--wall))}
.story-intro{background:var(--wall)}
.kitchen svg :is(path,rect,circle,ellipse,line){stroke-width:3px}
.k-lamp{left:calc(55% + 245px)}   /* hangs just right of the window, never over it */
@media (min-width:761px) and (max-width:1100px){.k-lamp{left:calc(54% + 213px)}}
@media (min-width:761px) and (max-width:1100px){.hero-pal .bubble{left:52%;max-width:160px}.hero-pal .bubble::after{left:38px}}   /* pal sits near the right edge here: keep the bubble on screen, tail still on his head */
@media (min-width:761px) and (max-width:900px){.k-lamp{display:none}}   /* no room between the window and the shelf, as on phones */
@media (max-width:760px){
  .k-lamp{display:none}
  .k-shelf{top:42%}
}
@media (max-width:520px){
  .k-shelf{display:none}
}
@media (max-width:760px) and (max-height:700px){
  .k-window{top:49%}
}
@media (prefers-reduced-motion:no-preference){
  .js .night:not(.cook){margin-bottom:-90svh}
  .pause-chapter{position:relative;z-index:13;background:var(--wall)}
}

/* The print campaign's signature, drawn in the kitchen's ink and paper. */
.hero h1 .home-word{position:relative;display:inline-block;color:var(--paper);-webkit-text-stroke:2.5px var(--ink);paint-order:stroke fill}
.home-word svg{position:absolute;left:0;bottom:-.14em;width:100%;height:.25em;overflow:visible;fill:none;stroke:var(--ink);stroke-width:3.5;stroke-linecap:round}
.hero h1{margin-bottom:34px}
.hero-pal .bubble--hero{font:500 16px/1.35 var(--display);transform:rotate(-4deg);border-radius:48% 44% 46% 42% / 42% 48% 44% 46%;padding:12px 17px}
.pal-aside{position:absolute;right:94%;top:48%;width:176px;font:600 15px/1.5 "Segoe Print","Bradley Hand",cursive;transform:rotate(-7deg);color:var(--ink)}
.pal-aside svg{width:80px;height:51px;margin:2px 0 0 68px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chapter-number{font-variant-numeric:tabular-nums;letter-spacing:.04em}
.example{transform:rotate(-2deg);margin:6px;transform-origin:50% 80%}
.example-head{letter-spacing:.08em;text-transform:uppercase}
@media (max-width:1200px){.pal-aside{display:none}}
@media (max-width:760px){
  .hero h1{margin-bottom:24px}
  .hero h1 .home-word{-webkit-text-stroke:1.8px var(--ink)}
  .hero-pal .bubble--hero{font-size:13px;padding:9px 13px}
  .example{transform:rotate(-1deg)}
}
@media (max-width:760px) and (max-height:700px){
  .hero h1{margin-bottom:20px}
  .hero-pal .bubble--hero{max-width:136px}
}
@media (max-width:340px){.hero-pal .bubble,.hero-pal .bubble--hero{left:54%;bottom:85%;font-size:12px;max-width:none;white-space:nowrap;padding:6px 9px}.hero-pal .bubble::after{left:22px}}   /* the smallest phones: one short line where it fits, clear of the intro text */


/* BEGIN footer refresh — scoped to #privacy and #footer only. */
#privacy{padding-top:80px;padding-bottom:56px;overflow:hidden;isolation:isolate}
#privacy .privacy-columns{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(32px,6vw,100px);align-items:center}
#privacy .privacy-story{min-width:0}
#privacy .privacy-copy{max-width:560px;justify-self:end;padding:28px;gap:18px}
#privacy .privacy-vignette{position:relative;width:100%;max-width:620px;aspect-ratio:600 / 370;margin-top:32px}
#privacy .ending-floor{position:absolute;z-index:-1;left:-100vw;right:-100vw;top:83%;height:1000px;border-top:2px solid var(--horizon);border-radius:50% 50% 0 0 / 70px 70px 0 0;background:linear-gradient(var(--floor-top),var(--wall) 110px)}
#privacy .privacy-drawing{width:100%;height:100%;overflow:visible}
#privacy .privacy-shackle{transform-origin:181px 76px}
#privacy .privacy-token text{font:600 15px var(--text);fill:var(--ink)}
#privacy .privacy-aside{position:absolute;right:0;top:17%;padding:12px 20px;background:var(--paper);border-radius:48% 44% 46% 42%;box-shadow:var(--floating);font:500 16px/1.4 var(--display);transform:rotate(5deg)}
#privacy .privacy-aside::after{content:"";position:absolute;left:12%;top:95%;transform:rotate(28deg);border:8px solid transparent;border-top:12px solid var(--paper);border-bottom:0}
#footer{padding-top:64px;isolation:isolate}
#footer .footer-top{align-items:center;gap:40px}
#footer .footer-cta{max-width:420px}
#footer .footer-kitchen{position:relative;margin:20px calc(-1 * var(--gut)) 0;padding:0 var(--gut)}
#footer .footer-scene{position:relative;width:min(100%,760px);aspect-ratio:720 / 340;margin:auto}
#footer .footer-drawing{width:100%;height:100%;overflow:visible}
#footer .ending-floor{position:absolute;z-index:-1;left:0;right:0;top:82%;height:1200px;border-top:2px solid var(--horizon);border-radius:50% 50% 0 0 / 12px 12px 0 0;background:linear-gradient(var(--floor-top),var(--floor) 300px)}
#footer .footer-pal-line{position:absolute;z-index:1;left:34%;top:5%;padding:12px 20px;border-radius:48% 44% 46% 42%;background:var(--paper);box-shadow:var(--floating);font:500 16px/1.4 var(--display);transform:rotate(-5deg)}
#footer .footer-pal-line::after{content:"";position:absolute;left:8%;top:96%;transform:rotate(32deg);border:8px solid transparent;border-top:12px solid var(--paper);border-bottom:0}
#footer .footer-lid{transform-origin:430px 158px}
#footer .footer-timer-hand{transform-origin:599px 251px}
#footer .footer-timer{transform-origin:599px 302px}
#footer .footer-wordmark{padding-top:8px}
#footer .footer-base{column-gap:20px}
#footer .footer-base [data-copy-email]{overflow-wrap:anywhere}
#footer .footer-cta .btn{max-width:100%;text-align:center;padding:12px 28px;overflow-wrap:anywhere}
@media(min-width:1900px){
  #privacy .privacy-vignette{max-width:680px}
  #footer .footer-scene{width:820px}
}
@media(max-width:1100px){
  #privacy .privacy-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
  #privacy .privacy-columns h2,#footer .footer-title{font-size:44px}
  #privacy .privacy-copy{padding:22px}
  #privacy .privacy-aside{font-size:13px;padding:9px 13px}
  #footer .footer-top{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:760px){
  #privacy{padding-top:48px;padding-bottom:40px}
  #privacy .privacy-columns{grid-template-columns:1fr;gap:24px}
  #privacy .privacy-columns h2,#footer .footer-title{font-size:clamp(30px,8.5vw,44px);line-height:1.12;letter-spacing:-.5px}
  #privacy .privacy-vignette{max-width:480px;margin:26px auto 0}
  #privacy .privacy-copy{justify-self:stretch;max-width:none;padding:22px;gap:16px}
  #privacy .privacy-aside{top:9%;font-size:13px}
  #privacy .privacy-token text{font-size:16px}
  #footer{padding-top:40px}
  #footer .footer-top{grid-template-columns:1fr;gap:24px}
  #footer .footer-cta{max-width:none}
  #footer .footer-cta .btn{width:100%;margin-top:12px}
  #footer .footer-kitchen{margin-top:32px;padding:0 8px}
  #footer .footer-pal-line{top:-8%;left:34%;font-size:13px;padding:9px 13px}
  #footer .footer-wordmark{padding-top:20px;padding-bottom:20px}
  #footer .footer-base{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding-top:16px;padding-bottom:20px}
  #footer .footer-base .secret{justify-self:end}
  #footer .footer-base a:last-child{justify-self:end}
}
@media(prefers-reduced-motion:reduce){
  #privacy .privacy-token,#privacy .privacy-shackle,#footer .footer-lid,#footer .footer-steam path,#footer .footer-timer,#footer .footer-timer-hand{transform:none!important;opacity:1!important}
  #footer .footer-cta .btn{transition:none}
}
/* END footer refresh */

/* How CravePal works: three plain steps right after the hero, so a first-time visitor knows what it is */
.how{position:relative;padding:72px var(--gut) 64px}
.how>.section-label{color:var(--muted)}
.how h2{font:600 56px/1.1 var(--display);letter-spacing:-1.1px;margin:12px 0 32px}
.how-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.how-step{padding:22px 24px 26px}
.how-art{position:relative;height:124px;margin:0 -8px 6px;display:flex;align-items:flex-end;justify-content:center}
.how-art::before{content:"";position:absolute;left:0;right:0;bottom:0;height:30px;border-top:2px solid var(--horizon);border-radius:50% 50% 14px 14px / 18px 18px 14px 14px;background:linear-gradient(var(--floor-top),var(--floor))}   /* pal stands on a bit of floor, never in mid-air */
.how-art img,.how-art svg{position:relative;height:104px;width:auto;margin-bottom:6px}
.how-art svg{height:88px;margin-bottom:10px}
.how-num{margin:12px 0 0}
.how-step h3{font:600 24px/1.2 var(--display);letter-spacing:-.2px;margin:10px 0 8px}
.how-step p:not(.how-num){font:500 15px/1.5 var(--text);margin:0}
@media (max-width:900px){.how-steps{grid-template-columns:1fr;max-width:520px}.how h2{font-size:40px}}
@media (max-width:760px){.how{padding:48px var(--gut) 40px}.how h2{font-size:30px;letter-spacing:-.3px;line-height:1.21;margin-bottom:22px}.how-steps{gap:16px}}
@media (prefers-reduced-motion:no-preference){
  .js .how-step{opacity:0;transform:translateY(26px)}
  .js .how.is-in .how-step{opacity:1;transform:none;transition:opacity .5s ease,transform .7s cubic-bezier(.2,.9,.25,1.1)}
  .js .how.is-in .how-step:nth-child(2){transition-delay:.18s}
  .js .how.is-in .how-step:nth-child(3){transition-delay:.36s}
}
