/* CAPARI KITCHEN — Editorial Botanical / V3.
   Intentional printed-paper decoration, not generated food imagery. */
.menu-leaf:has(.leaf-product) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse 50% 36% at 78% 17%,rgba(230,194,148,.29),transparent 92%),
    radial-gradient(ellipse 33% 24% at 7% 71%,rgba(208,155,117,.16),transparent 88%),
    repeating-linear-gradient(90deg, transparent 0,transparent 119px,rgba(164,110,76,.014) 120px,transparent 121px),
    #f3e8d6;
}
.menu-leaf:has(.leaf-product) .leaf-wrap {position:relative;isolation:isolate}
.menu-leaf .leaf-crumbs,.menu-leaf .leaf-product,.menu-leaf .leaf-related {position:relative;z-index:2}
.leaf-ambient {
  position:absolute;z-index:0;pointer-events:none;user-select:none;
  top:0;left:50%;transform:translateX(-50%);
  width:100vw;height:100%;overflow:hidden;isolation:isolate;
}
.leaf-ambient-fabric {
  position:absolute;z-index:0;right:-11%;top:0;
  width:min(62vw,920px);height:clamp(230px,34vw,470px);
  background:conic-gradient(#b55242 25%,#f6e7d2 0 50%,#b55242 0 75%,#f6e7d2 0) 0 0/46px 46px;
  opacity:.14;transform:rotate(-18deg);
  -webkit-mask-image:radial-gradient(ellipse at 59% 46%,black 5%,rgba(0,0,0,.8) 34%,transparent 78%);
  mask-image:radial-gradient(ellipse at 59% 46%,black 5%,rgba(0,0,0,.8) 34%,transparent 78%);
}
.leaf-ambient-rings {
  position:absolute;z-index:0;width:clamp(350px,40vw,700px);aspect-ratio:1;
  border-radius:50%;border:1px solid rgba(172,119,78,.18);
  left:calc(50% - 29vw);top:clamp(40px,11vw,145px);
  box-shadow:0 0 0 50px rgba(165,113,75,.025),0 0 0 124px rgba(165,113,75,.014);
}
.leaf-ambient-rings::after {
  content:'';position:absolute;inset:12%;border-radius:50%;
  border:1px solid rgba(172,119,78,.115);
}
.leaf-ambient-herb {
  position:absolute;z-index:0;display:block;
  width:clamp(165px,18vw,305px);height:auto;
  stroke:#8e9770;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;fill:none;
  opacity:.29;filter:drop-shadow(0 1px 0 rgba(255,255,255,.45));
}
.leaf-ambient-herb--left {left:-62px;top:570px;transform:rotate(-18deg)}
.leaf-ambient-herb--right {right:-59px;top:740px;transform:rotate(153deg);opacity:.22}
.leaf-ambient-type {
  position:absolute;z-index:0;bottom:20%;right:-4%;
  font:500 clamp(120px,24vw,460px)/.7 var(--tavola-serif,Georgia,serif);
  letter-spacing:-.11em;color:#a55442;opacity:.065;white-space:nowrap;
}
.leaf-ambient-colophon {
  position:absolute;top:485px;left:clamp(10px,2vw,34px);
  writing-mode:vertical-rl;transform:rotate(180deg);
  font:800 9px/1.3 var(--ui,Arial,sans-serif);
  letter-spacing:.38em;color:#a35b46;opacity:.47;
}
.leaf-ambient-seal {
  position:absolute;top:130px;right:clamp(18px,4vw,85px);
  width:104px;height:104px;border:1px solid rgba(165,77,54,.42);
  border-radius:50%;transform:rotate(14deg);
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;
  color:#a04c36;background:rgba(255,249,237,.24);
  font:800 8px/1 var(--ui,Arial,sans-serif);letter-spacing:.16em;
}
.leaf-ambient-seal b {font:400 21px/1 Georgia,serif}
.leaf-ambient-seal em {font-style:normal;font-size:7px}
.leaf-ambient-bottomcheck {
  position:absolute;left:-7%;bottom:0;width:52%;height:230px;
  background:conic-gradient(#ad5546 25%,#faf0de 0 50%,#ad5546 0 75%,#faf0de 0) 0 0/38px 38px;
  opacity:.085;transform:rotate(12deg);
  -webkit-mask-image:radial-gradient(ellipse at 40% 66%,black 0,transparent 78%);
  mask-image:radial-gradient(ellipse at 40% 66%,black 0,transparent 78%);
}
/* Foreground print finishes */
.leaf-product:not(.leaf-product--text) .leaf-photo-index {color:#8c4937}
.leaf-product:not(.leaf-product--text) .leaf-title::before {
  content:'';position:absolute;top:-40px;right:15px;
  font:400 clamp(24px,2.8vw,42px)/1 Georgia,serif;
  color:#b75843;opacity:.45;transform:rotate(22deg);
  pointer-events:none;
}
.leaf-product:not(.leaf-product--text) .leaf-title{position:relative}
.leaf-product:not(.leaf-product--text) > .leaf-photo {border:1px solid #d5bba0}
.leaf-product:not(.leaf-product--text) > .leaf-photo::after {height:11px;background:conic-gradient(#af5342 25%,#f2e7d3 0 50%,#af5342 0 75%,#f2e7d3 0) 0 0/18px 18px}
.leaf-related {border-top:2px solid #bf9c7a}
.leaf-related::before {
  content:'';position:absolute;right:0;top:32px;
  color:rgba(174,79,57,.23);font:400 34px/1 Georgia,serif;
  transform:rotate(16deg);
}
.leaf-related .leaf-section-head {padding-right:58px}
.leaf-related .leaf-card {box-shadow:0 5px 18px rgba(77,44,24,.045)}
.leaf-related .leaf-card:hover {box-shadow:0 22px 37px rgba(77,44,24,.16)}
@media(max-width:900px){
  .leaf-ambient-fabric{right:-23%;width:85vw;opacity:.095;top:95px}
  .leaf-ambient-herb--left{left:-83px;top:720px;width:220px;opacity:.18}
  .leaf-ambient-herb--right{right:-96px;top:1050px;width:200px;opacity:.15}
  .leaf-ambient-rings{left:-130px;top:245px;width:460px;opacity:.7}
  .leaf-ambient-type{right:-21%;bottom:15%;opacity:.05}
  .leaf-ambient-colophon{display:none}
  .leaf-ambient-seal{width:76px;height:76px;right:20px;top:145px;font-size:6px}
  .leaf-ambient-seal b{font-size:15px}
  .leaf-product:not(.leaf-product--text) .leaf-title::before{top:-14px;right:0;font-size:29px}
}
@media(max-width:520px){
  .menu-leaf:has(.leaf-product){background:
    radial-gradient(ellipse at 84% 10%,rgba(220,186,137,.27),transparent 44%),
    radial-gradient(ellipse at 0 82%,rgba(201,142,102,.15),transparent 48%),
    #f3e8d6}
  .leaf-ambient-fabric{width:110vw;right:-58%;top:120px;height:240px;opacity:.075;background-size:31px 31px}
  .leaf-ambient-rings{width:315px;left:-173px;top:305px;opacity:.34}
  .leaf-ambient-herb--left{left:-90px;top:850px;width:190px;opacity:.14}
  .leaf-ambient-herb--right{right:-112px;top:1240px;width:180px;opacity:.1}
  .leaf-ambient-seal{top:107px;right:13px;width:59px;height:59px;opacity:.48}
  .leaf-ambient-seal em{font-size:5px}
  .leaf-ambient-seal b{font-size:13px}
  .leaf-ambient-type{font-size:140px;right:-33%;bottom:13%;opacity:.045}
  .leaf-product:not(.leaf-product--text) .leaf-title::before{display:none}
  .leaf-related::before{font-size:25px;top:22px}
  .leaf-related .leaf-section-head{padding-right:30px}
}
@media(prefers-reduced-motion:reduce){
  .leaf-ambient-herb,.leaf-ambient-fabric{animation:none!important}
}
