*{box-sizing:border-box}
html{background:#aaa29a}
body{margin:0;min-height:100svh;color:#fff;font-family:Arial,sans-serif;display:grid;place-items:center;background:#aaa29a}
.home{position:relative;width:min(640px,max(360px,calc((100svh - 32px)/1.84)));max-width:100%;isolation:isolate}
.scene{position:relative;aspect-ratio:1/1.84;min-height:calc(100svh - 32px);overflow:hidden;background:#aaa29a url('/home-collage-tall-v2.webp') center bottom/100% auto no-repeat}
.artwork{position:absolute;top:0;left:0;width:100%;aspect-ratio:824/1909}
.collage{display:block;width:100%;height:auto;aspect-ratio:824/1909;object-fit:contain;mask-image:none;-webkit-mask-image:none}
.heading{position:absolute;z-index:3;inset:0 0 auto;display:flex;align-items:start;justify-content:space-between;padding:24px;gap:12px;text-shadow:0 2px 15px #27140e70}
.brand{color:inherit;text-decoration:none;display:inline-block;font-size:clamp(20px,4.4vw,26px);font-weight:800;letter-spacing:-1.2px;line-height:1}
.heading h1{font-size:clamp(16px,3.6vw,20px);margin:0;font-weight:500}
.heading p{margin:8px 0 0;font-size:12px}
.home .language-bar{position:absolute;top:82px;left:0;right:0;z-index:4;padding:0 16px}
.category{position:absolute;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;max-width:46%}
.pastry{left:19.5%;top:24%}.matcha{left:81%;top:24%}.coffee{left:27%;top:65.5%}.hot-drinks{left:73%;top:68%}
.home .pill{display:block;width:max-content;max-width:100%;min-height:48px;padding:13px 22px;border:1px solid #24211e;border-radius:99px;color:#fff;background:#24211e;font:600 clamp(16px,3.4vw,20px)/1.2 Arial,sans-serif;text-align:center;text-decoration:none;white-space:nowrap;box-shadow:0 6px 28px #20130d55;transition:background-color .16s ease,color .16s ease,transform .16s ease}
.home .coffee .pill{min-width:130px}.home .hot-drinks .pill{min-width:150px;font-size:clamp(13px,2.7vw,17px);white-space:normal}
.home .pill:hover{background:#3b3530;border-color:#3b3530}.home .pill:active{color:#24211e;background:#f3ece0;border-color:#fff;transform:scale(.97)}
.pill:focus-visible,.brand:focus-visible{outline:3px solid #fff;outline-offset:5px}
.location{position:absolute;z-index:2;left:0;right:0;bottom:14px;margin:0;padding:8px 16px;color:#fff;font-size:12px;line-height:1.4;text-align:center;text-shadow:0 1px 5px #000}
.basket-home{text-decoration:none;font:700 15px/1.3 Arial,sans-serif;z-index:10}.basket-home[hidden]{display:none}
body:has(.basket-home:not([hidden])) .location{visibility:hidden}
@media(max-width:699px){
 body{display:block}
 .home{width:100%}
 .scene{aspect-ratio:auto;height:max(100svh,calc(180vw + 72px + env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)));min-height:0}
 .artwork{top:calc(max(0px,160px - 39.4vw) + env(safe-area-inset-top,0px))}
 .heading{padding:24px 20px;padding-top:max(24px,env(safe-area-inset-top,0px))}
 .home .language-bar{top:max(96px,calc(env(safe-area-inset-top,0px) + 82px))}
 .location{bottom:calc(14px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:380px){.home .pill{padding:11px 17px}.home .coffee .pill{min-width:115px}.home .hot-drinks .pill{min-width:136px;padding:11px 10px}.heading{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){.home .pill{transition:none}}

.home-footer{position:absolute;z-index:2;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center;gap:6px}
.home-footer .location{position:static;padding:8px 0;flex:0 1 auto}
.instagram-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;color:#fff;border-radius:50%;filter:drop-shadow(0 1px 3px #0008);transition:background-color .16s ease;text-decoration:none}
.instagram-link:hover,.instagram-link:active{background:#ffffff20}
.instagram-link:focus-visible{outline:2px solid #fff;outline-offset:2px}
body:has(.basket-home:not([hidden])) .home-footer{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
body:has(.basket-home:not([hidden])) .home-footer .location{display:none}
@media(prefers-reduced-motion:reduce){.instagram-link{transition:none}}

.home .home-order{position:absolute;z-index:4;top:58%;left:50%;transform:translate(-50%,-50%);min-width:140px;min-height:42px;padding:10px 22px;font-size:16px}.home .home-order:active{transform:translate(-50%,-50%) scale(.97)}.heading{align-items:center}.heading .instagram-link{width:44px;height:44px;flex-basis:44px}.heading .instagram-link svg{width:30px;height:30px}.home-footer{flex-direction:column;gap:4px}

/* Contacts stay above the floating navigation on every cart state. */
.home-footer,body:has(.basket-home:not([hidden])) .home-footer{bottom:calc(94px + env(safe-area-inset-bottom,0px));gap:3px}.home-footer .location,body:has(.basket-home:not([hidden])) .home-footer .location{display:block;visibility:visible;padding:2px 0}.home-contacts{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;font-size:12px;line-height:1.4;color:#fff;text-shadow:0 1px 5px #000}.home-contacts a{padding:5px 0;color:inherit;text-decoration:none;font-weight:600;white-space:nowrap}.home-contacts a:hover{text-decoration:underline}.home-contacts a:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:3px}.home-contacts>span{opacity:.65}

.home-contacts a[href="https://t.me/coffeefriends_1"]{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px}.home-contacts svg{display:block}
