/* Normal document flow. Motion is brief and never driven by scrolling. */
html{scroll-behavior:auto;scroll-padding-top:102px}
.site-header,.site-header.is-fixed{position:fixed;height:82px;background:var(--butter);color:var(--ink);box-shadow:0 1px 0 #35171e15;animation:none!important;transition:none}
.site-header .cart-count{background:var(--tomato);color:var(--butter)}
body .site-header :focus-visible{outline-color:var(--leaf)}
.hero{background:var(--coral);height:min(100svh,1050px);min-height:680px;padding:82px var(--gutter) 0;display:block;isolation:isolate}
.hero-meta{margin-top:32px;color:var(--ink)}
.hero-copy p,.hero-bottom{color:var(--ink)}
.hero-title{z-index:4;font-size:clamp(96px,12.2vw,190px);margin-top:30px;-webkit-text-stroke:1px var(--ink);text-shadow:0 2px 0 var(--ink)}
.hero-plate{position:absolute;z-index:1;top:7%;right:max(-3%,-2.5svh);left:auto;width:min(73vw,96svh);max-width:1100px;margin:0;will-change:auto;transform:rotate(-11deg)!important}
.hero-plate img,.js-ready .title-line>span,.hero-seal svg{animation:none;filter:none;opacity:1;transform:none}
.hero-seal{top:15%;right:45%;left:auto;transform:rotate(-13deg)}
/* Let the scroll rotation catch up briefly after the last scroll event. */
@media(prefers-reduced-motion:no-preference){
  .hero-plate,.hero-seal{transition:rotate 180ms cubic-bezier(.18,.68,.35,1)}
}
.hero-seal .hero-seal-burst{position:absolute;inset:-22%;width:144%;height:144%;fill:none;stroke:var(--butter);stroke-width:2;opacity:0;pointer-events:none}
.hero-copy{margin-top:26px}
.hero-bottom{bottom:22px}
.story{padding-top:78px;padding-bottom:78px}
.story .ritual-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px;margin-top:55px;padding-top:35px;border-top:1px solid #35171e28}
.story .ritual-steps li{opacity:1;transform:none;transition:none;display:block}
.story .step-count{display:none}
.story .ritual-steps h3{font-size:clamp(27px,2.9vw,44px)}
.story .ritual-steps p{font-size:16px;line-height:1.6;margin-top:14px;max-width:320px}
.menu-section{position:relative}
.menu-tools{backdrop-filter:none;background:#fbe7d2}
.evening,.evening>img{transform:none!important;will-change:auto}
.evening>img{height:100%;top:0;filter:none}
dialog[open]{animation:none!important}
.motion-paused .hero-plate{transform:rotate(-11deg)!important}
.motion-paused *, .motion-paused *::before,.motion-paused *::after{transition:none!important}
@media(min-width:901px) and (max-height:820px){
  .hero-meta{margin-top:22px}
  .hero-title{font-size:min(11.3vw,20vh);margin-top:20px}
  .hero-copy{font-size:16px;margin-top:20px}
  .hero-copy .button{margin-top:18px;min-height:52px}
  .hero-seal{width:105px;height:105px}
  .hero-seal>span{top:34px;left:23px;font-size:21px}
}
@media(max-width:900px){
  html{scroll-padding-top:92px}
  .site-header,.site-header.is-fixed{height:72px}
  .hero{height:min(100svh,1024px);min-height:650px;padding:72px var(--gutter) 0}
  .hero-meta{margin-top:28px;font-size:10px}
  .hero-title{font-size:17.6vw;line-height:.98;margin-top:23px}
  .hero-plate{left:50%;right:auto;top:clamp(174px,23svh,220px);width:min(101vw,55svh);max-width:none;margin-left:calc(min(101vw,55svh) / -2)}
  .hero-seal{top:31%;left:var(--gutter);right:auto;width:88px;height:88px}
  .hero-seal>span{top:29px;left:20px;font-size:18px}
  .hero-seal .hero-seal-burst{display:none}
  .hero-copy{position:absolute;left:var(--gutter);right:var(--gutter);bottom:76px;margin:0;width:auto;max-width:none;text-align:center}
  .hero-copy p{font-size:16px;line-height:1.5}
  .hero-copy .button{min-height:52px;margin-top:18px}
  .hero-bottom{position:absolute;bottom:22px;left:var(--gutter);right:var(--gutter);margin:0}
  .hero-bottom>span{display:none}
  .hero-bottom{justify-content:center}
  .menu-tools{top:72px}
  .story{padding-top:55px;padding-bottom:55px}
  .story .ritual-steps{gap:28px;margin-top:35px;padding-top:30px}
  .story .ritual-steps h3{font-size:27px}
  .story .ritual-steps p{font-size:15px}
  dialog::backdrop{backdrop-filter:none;background:#250c15a3}
  .product-card button img{transition:none}
}
@media(min-width:761px) and (max-width:900px) and (orientation:portrait){
  .hero-title{font-size:12.5vw;line-height:1.02}
  .hero-title .title-line:nth-child(2){text-align:right}
  .hero-plate{top:23%;width:min(77vw,55svh);margin-left:calc(min(77vw,55svh) / -2)}
  .hero-copy{bottom:95px}
  .hero-copy p{font-size:18px}
  .hero-seal{top:36%;left:18%;width:100px;height:100px}
  .hero-seal>span{top:33px;left:23px;font-size:21px}
}
@media(max-width:760px){
  .story .ritual-steps{grid-template-columns:1fr;gap:26px}
  .story .ritual-steps h3{font-size:29px}
  .story .ritual-steps p{margin-top:9px;max-width:380px}
}
@media(max-width:760px) and (max-height:740px){
  .hero-meta{margin-top:24px}
  .hero-title{font-size:16vw;margin-top:18px}
  .hero-plate{top:170px;width:min(101vw,51svh);margin-left:calc(min(101vw,51svh) / -2)}
  .hero-seal{top:35%;width:76px;height:76px}
  .hero-seal>span{top:25px;left:17px;font-size:16px}
  .hero-copy{bottom:64px}
  .hero-copy p{font-size:15px}
  .hero-copy .button{min-height:48px;margin-top:13px}
}
@media(max-width:900px) and (orientation:landscape){
  .hero{height:600px;min-height:600px}
  .hero-title{font-size:min(11vw,96px);margin-top:28px;width:55%}
  .hero-title .title-line:nth-child(2){text-align:left}
  .hero-plate{top:110px;width:53vw;left:auto;right:-2%;margin:0}
  .hero-copy{bottom:80px;right:auto;max-width:49%;text-align:left;align-items:flex-start}
  .hero-seal{top:100px;left:58%;width:80px;height:80px}
  .hero-seal>span{top:26px;left:18px;font-size:17px}
}
@media(hover:none),(pointer:coarse){
  .button:hover,.product-card button:hover img,.product-card button:hover .product-open{transform:none}
}
@media(prefers-reduced-motion:reduce){.hero-plate{transform:rotate(-11deg)!important}}

@media(max-width:900px) and (prefers-reduced-motion:no-preference){
  .hero-mobile-entering .hero-title .title-line>span{
    animation:hero-mobile-word 580ms cubic-bezier(.22,.8,.24,1) backwards;
  }
  .hero-mobile-entering .hero-title .title-line:nth-child(2)>span{animation-delay:105ms}
  .hero-mobile-entering.hero-plate-ready .hero-plate img{
    animation:hero-mobile-plate 760ms cubic-bezier(.23,.68,.25,1) 90ms backwards;
  }
  .hero-mobile-entering .hero-seal{
    animation:hero-mobile-stamp 390ms ease-out 510ms backwards;
  }
}
@keyframes hero-mobile-word{
  from{transform:translateY(108%) rotate(3deg);opacity:.3}
  to{transform:none;opacity:1}
}
@keyframes hero-mobile-plate{
  0%{transform:translate3d(32px,64px,0) rotate(21deg) scale(.78);opacity:.15}
  74%{transform:translate3d(0,-4px,0) rotate(-2deg) scale(1.025);opacity:1}
  100%{transform:translate3d(0,0,0) rotate(0deg) scale(1);opacity:1}
}
@keyframes hero-mobile-stamp{
  0%{transform:rotate(10deg) scale(1.32);opacity:0}
  58%{transform:rotate(-18deg) scale(.94);opacity:1}
  100%{transform:rotate(-13deg) scale(1);opacity:1}
}

/* The transparent hit target follows the round plate. */
.plate-spin {
  position:absolute;
  inset:4%;
  z-index:2;
  border-radius:50%;
  background:transparent;
  touch-action:manipulation;
  cursor:pointer;
}
.plate-spin:focus-visible {
  outline:3px solid var(--butter);
  outline-offset:4px;
}
.plate-burst {
  position:absolute;
  inset:4%;
  z-index:1;
  opacity:0;
  pointer-events:none;
  border-radius:50%;
  border:2px dashed #ffdd9e;
}
.plate-burst i {
  position:absolute;
  width:clamp(9px,1.3vw,18px);
  aspect-ratio:1;
  background:var(--butter);
  clip-path:polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
}
.plate-burst i:nth-child(1){top:8%;left:12%}
.plate-burst i:nth-child(2){top:-5%;left:55%;background:#ffdd9e}
.plate-burst i:nth-child(3){top:22%;right:0}
.plate-burst i:nth-child(4){bottom:20%;right:1%;background:#ffdd9e}
.plate-burst i:nth-child(5){bottom:0;left:53%}
.plate-burst i:nth-child(6){bottom:27%;left:-4%;background:#ffdd9e}

@media(prefers-reduced-motion:reduce){
  .plate-spin{display:none}
}

/* Show the whole rim of the plated menu photographs at both dialog sizes. */
.product-dialog-photo img:is([src$="/bliny.webp"], [src$="/syrniki.webp"], [src$="/peppers.webp"]) {
  object-fit: contain;
  object-position: center;
}
@media (max-width: 760px) {
  .product-dialog-photo:has(img:is([src$="/bliny.webp"], [src$="/syrniki.webp"], [src$="/peppers.webp"])) {
    height: auto;
    aspect-ratio: 1;
  }
}
