/* MLYN — the Christmas season (src/data/season.js). Loaded on every page while
   XMAS_SEASON.on, and always on /christmas. Seasonal pieces carry .xs-only and
   show only under <html data-season="xmas">, which the inline script in
   Base.astro's <head> sets by date, so out of season they cost nothing on
   screen. The ornaments (stickers, snow, garland, star, cross-stitch band) live
   here so every page draws them the same way. */
:root{--xm-cream:#FBF0DD;--xm-sun:#FFD7A8;--xm-pine:#B5241E;--xm-night:#A81F1A;--xm-night2:#B5241E;}
html:not([data-season="xmas"]) .xs-only{display:none !important;}
html[data-season="xmas"] .xs-hide{display:none !important;}

/* ── Stickers (XmasDoodle.astro) ─────────────────────────────────────── */
.xd{display:inline-grid;place-items:center;width:92px;height:92px;border-radius:50%;background:var(--xm-cream);color:var(--mlyn);
  box-shadow:0 0 0 4px #fff,0 14px 26px -12px rgba(0,0,0,.45);}
.xd svg{width:92%;height:92%;}

/* ── Snow: two dot layers drifting down at different speeds ────────────── */
.xm-snow{position:absolute;inset:-200px 0 0;pointer-events:none;opacity:.55;
  background-image:radial-gradient(2.2px 2.2px at 18px 26px,#fff 60%,transparent 62%),radial-gradient(1.6px 1.6px at 92px 140px,#fff 60%,transparent 62%),
    radial-gradient(2.6px 2.6px at 160px 60px,#fff 60%,transparent 62%),radial-gradient(1.4px 1.4px at 130px 190px,#fff 60%,transparent 62%);
  background-size:200px 200px;animation:xmSnow 22s linear infinite;}
.xm-snow.b{opacity:.3;background-size:320px 320px;animation-duration:38s;}
@keyframes xmSnow{to{transform:translateY(200px);}}

/* ── Folk night ornaments (XmasFolk.astro) ────────────────────────────── */
.xf-band{background:var(--xm-cream);padding:14px 0;line-height:0;border-top:3px solid var(--mlyn);border-bottom:3px solid var(--mlyn);}
.xf-band svg{display:block;}
.xf-garland{position:absolute;left:0;right:0;top:0;height:74px;z-index:2;pointer-events:none;}
.xf-wire{position:absolute;inset:0;width:100%;height:calc(60px * var(--sag,1));overflow:visible;}
.xf-bulb{position:absolute;width:11px;height:22px;margin-left:-5.5px;transform:rotate(var(--rot,0deg));transform-origin:50% 0;}
.xf-bulb::before{content:'';position:absolute;left:3px;top:0;width:5px;height:6px;border-radius:1px 1px 2px 2px;background:#2B1C14;}
.xf-bulb b{position:absolute;left:0;top:5px;width:11px;height:16px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;
  background:radial-gradient(circle at 38% 30%,#fff 0 18%,var(--c1) 45%,var(--c2) 100%);
  box-shadow:0 0 5px 1px var(--g1),0 0 14px 3px var(--g2);}
.xf-bulb.warm{--c1:#FFF4D6;--c2:#FFD98A;--g1:rgba(255,240,200,.85);--g2:rgba(255,226,160,.28);}
.xf-bulb.gold{--c1:#FFE3A0;--c2:#F6B544;--g1:rgba(255,214,130,.85);--g2:rgba(255,196,90,.28);}
/* Programmes (data-mode, cycled by the script in XmasFolk.astro): slow, never a flash. */
.xf-garland[data-mode="twinkle"] .xf-bulb b{animation:xfTw 3.2s ease-in-out infinite;animation-delay:calc(var(--i) * -0.73s);}
.xf-garland[data-mode="breathe"] .xf-bulb b{animation:xfBreathe 4s ease-in-out infinite;}
@keyframes xfTw{0%,100%{opacity:1;}50%{opacity:.72;}}
@keyframes xfBreathe{0%,100%{opacity:.78;}50%{opacity:1;}}
/* A phone holds half the bulbs on a shallower curve, or they touch and the wire turns to spikes. */
@media (max-width:639px){
  .xf-garland{--sag:.55;height:56px;}
  .xf-bulb:nth-of-type(even){display:none;}
}
.xf-star{position:absolute;pointer-events:none;filter:drop-shadow(0 0 18px rgba(251,240,221,.5));}
.xf-star svg{width:100%;height:auto;display:block;overflow:visible;}
/* Carried, not spun: the star sways on its pole, the rays turn slowly while
   the centre stays upright, the ribbons flutter. */
.xf-sway{transform-origin:60px 188px;animation:xfSway 5s ease-in-out infinite;}
.xf-rays{transform-origin:60px 60px;animation:xfTurn 60s linear infinite;}
.xf-ribbons{transform-origin:60px 84px;animation:xfFlutter 2.6s ease-in-out infinite;}
@keyframes xfTurn{to{transform:rotate(360deg);}}
@keyframes xfSway{0%,100%{transform:rotate(-3deg);}50%{transform:rotate(3deg);}}
@keyframes xfFlutter{0%,100%{transform:rotate(4deg) skewX(2deg);}50%{transform:rotate(-5deg) skewX(-3deg);}}
@media (prefers-reduced-motion:reduce){.xf-bulb b,.xf-sway,.xf-rays,.xf-ribbons{animation:none !important;}}

/* Sticker motion (shared). */
.xd-twinkle{animation:xmTwinkle 3.2s ease-in-out infinite;}
.xd-swing{animation:xmSwing 4s ease-in-out infinite;}
.xd-spin svg{animation:xmSpin 16s linear infinite;}
.xd-float{animation:xmFloat 5s ease-in-out infinite;}
@keyframes xmTwinkle{0%,100%{transform:rotate(-8deg) scale(1);}50%{transform:rotate(6deg) scale(1.08);}}
@keyframes xmSwing{0%,100%{transform:rotate(-7deg);}50%{transform:rotate(7deg);}}
@keyframes xmSpin{to{transform:rotate(360deg);}}
@keyframes xmFloat{0%,100%{transform:translateY(0) rotate(-6deg);}50%{transform:translateY(-10px) rotate(-2deg);}}

/* ── Site-wide season ─────────────────────────────────────────────────── */
/* The garland hangs from the bottom edge of the sticky header. */
.hdr-garland{position:absolute;left:0;right:0;top:100%;height:56px;z-index:-1;}
/* It belongs to the top of the page: once you scroll it must not hang over the food. */
.hdr-garland{transition:opacity .15s ease;}
.hdr.scrolled .hdr-garland{opacity:0;}
/* Header link to /christmas. */
.hdr-xmas{display:inline-flex;align-items:center;gap:6px;color:var(--mlyn) !important;font-weight:800 !important;}
.hdr-xmas svg{width:16px;height:16px;flex:0 0 auto;}
/* The offer bar turns into the holiday bar: night green, a little snow. */
.offerbar-xmas{position:relative;overflow:hidden;background:var(--xm-night2) !important;}
.offerbar-xmas .xm-snow{opacity:.5;}
.offerbar-xmas .offerbar-in{position:relative;}
/* Cross-stitch band above the footer. */
/* Shop: the holiday banner at the top of /order. */
.xs-shop{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin:0 0 22px;padding:16px 18px;border-radius:20px;
  background:linear-gradient(120deg,var(--xm-night),var(--xm-night2));color:var(--xm-cream);text-decoration:none;}
.xs-shop .xm-snow{opacity:.4;}
.xs-shop .xf-star{position:relative;width:46px;filter:drop-shadow(0 0 10px rgba(251,240,221,.5));}
.xs-shop b{display:block;font-family:var(--bristol);text-transform:uppercase;font-size:22px;color:#FBF0DD;line-height:1;}
.xs-shop span{display:block;margin-top:4px;font-size:14px;opacity:.9;}
.xs-shop i{font-style:normal;font-weight:800;white-space:nowrap;background:var(--mlyn);color:#fff;padding:10px 16px;border-radius:999px;position:relative;}
@media (max-width:560px){.xs-shop{grid-template-columns:auto 1fr;}.xs-shop i{grid-column:1/-1;justify-self:start;}}
@media (prefers-reduced-motion:reduce){.xm-snow,.xd-twinkle,.xd-swing,.xd-spin svg,.xd-float{animation:none;}}

/* Snow over the red catering hero while the season is on. */
html[data-season="xmas"] .fk-hero{position:relative;}
html[data-season="xmas"] .fk-hero::after{content:'';position:absolute;inset:-200px 0 0;pointer-events:none;z-index:3;opacity:.5;
  background-image:radial-gradient(2.2px 2.2px at 18px 26px,#fff 60%,transparent 62%),radial-gradient(1.6px 1.6px at 92px 140px,#fff 60%,transparent 62%),
    radial-gradient(2.6px 2.6px at 160px 60px,#fff 60%,transparent 62%),radial-gradient(1.4px 1.4px at 130px 190px,#fff 60%,transparent 62%);
  background-size:200px 200px;animation:xmSnow 22s linear infinite;}
@keyframes xmSnow{to{transform:translateY(200px);}}
@media (prefers-reduced-motion:reduce){html[data-season="xmas"] .fk-hero::after{animation:none;}}

/* ── Winter windows (XmasFrost.astro) ─────────────────────────────────── */
.xp-flake{position:absolute;z-index:1;width:84px;pointer-events:none;filter:drop-shadow(0 5px 6px rgba(0,0,0,.35));animation:xpHang 7s ease-in-out infinite;}
.xp-flake svg{display:block;width:100%;height:auto;}
@keyframes xpHang{0%,100%{transform:rotate(var(--r,0deg));}50%{transform:rotate(calc(var(--r,0deg) + 9deg));}}
.xp-frost{position:absolute;z-index:0;width:min(52vw,340px);aspect-ratio:1;opacity:.5;pointer-events:none;}
.xp-frost svg{display:block;width:100%;height:100%;}
.xp-frost.tl{top:0;left:0;} .xp-frost.tr{top:0;right:0;} .xp-frost.bl{bottom:0;left:0;} .xp-frost.br{bottom:0;right:0;}
/* Frost on glass is hazier at the very corner. */
.xp-frost::before{content:'';position:absolute;width:75%;height:75%;background:radial-gradient(circle at var(--fx) var(--fy),rgba(255,255,255,.42),rgba(255,255,255,.1) 45%,transparent 72%);}
.xp-frost.tl::before{top:0;left:0;--fx:0%;--fy:0%;} .xp-frost.tr::before{top:0;right:0;--fx:100%;--fy:0%;}
.xp-frost.bl::before{bottom:0;left:0;--fx:0%;--fy:100%;} .xp-frost.br::before{bottom:0;right:0;--fx:100%;--fy:100%;}
@media (prefers-reduced-motion:reduce){.xp-flake{animation:none;transform:rotate(var(--r,0deg));}}

/* ── Home hero in the season: the same poster, on a winter night ──────── */
html[data-season="xmas"] .fp-hero{background:linear-gradient(180deg,var(--xm-night) 0%,var(--xm-night2) 55%,#B5241E 100%);}
html[data-season="xmas"] .fp-hero .fp-script{color:#FBF0DD;}
html[data-season="xmas"] .fp-sticker{box-shadow:0 0 0 3px var(--xm-night2),0 0 0 5px var(--xm-cream),0 16px 30px -12px rgba(0,0,0,.5);}
html[data-season="xmas"] .fp-st.b,html[data-season="xmas"] .fp-st.c{display:none;}
.fp-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 55% 55% at 72% 45%,rgba(251,240,221,.24),transparent 70%);}
.fp-hero .xm-snow{z-index:2;}
.fp-hero-in{z-index:1;}
.fp-xmas{justify-self:start;display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 10px;border-radius:999px;border:1.5px solid rgba(251,240,221,.7);
  background:rgba(14,34,25,.55);color:var(--xm-cream);font-weight:800;font-size:14px;text-decoration:none;}
.fp-xmas svg{width:18px;height:18px;}
.fp-xmas b{color:#FBF0DD;}
.fp-xmas:hover{background:rgba(251,240,221,.18);}
.fp-hero .xp-flake.flk-a{--r:-12deg;top:290px;right:auto;left:-14px;width:56px;}
.fp-hero .xp-flake.flk-b{--r:14deg;bottom:210px;left:-10px;width:70px;}
.fp-hero .xp-flake.flk-c{display:none;}
@media (min-width:860px){
  html[data-season="xmas"] .fp-hero-in{grid-template-areas:"xmas shot" "h1 shot" "under shot";}
  .fp-xmas{grid-area:xmas;align-self:end;}
  .fp-hero .xp-flake.flk-a{top:auto;bottom:36px;right:auto;left:47%;width:110px;}
  .fp-hero .xp-flake.flk-b{bottom:56px;left:5%;width:96px;}
  .fp-hero .xp-flake.flk-c{display:block;--r:8deg;top:40%;right:3%;width:104px;}
}
/* /christmas: paper snowflakes on the night hero and the close. */
.xm-hero .xp-flake.flk-a{--r:-10deg;top:178px;left:auto;right:-6px;width:54px;}
.xm-hero .xp-flake.flk-b{display:none;}
.xm-end .xp-flake.flk-a{--r:12deg;top:110px;left:8%;width:80px;}
.xm-end .xp-flake.flk-b{--r:-8deg;bottom:40px;right:8%;width:70px;}
@media (min-width:860px){.xm-hero .xp-flake.flk-a{top:auto;right:auto;bottom:130px;left:9%;width:90px;}.xm-hero .xp-flake.flk-b{display:block;--r:16deg;top:120px;left:24px;width:70px;}}

/* ── More winter (Oct 2026 pass) ──────────────────────────────────────── */
/* A third, finer and quicker snow layer. */
.xm-snow.c{opacity:.4;background-size:120px 120px;animation-duration:14s;
  background-image:radial-gradient(1.3px 1.3px at 10px 20px,#fff 60%,transparent 62%),radial-gradient(1.1px 1.1px at 70px 90px,#fff 60%,transparent 62%),radial-gradient(1.5px 1.5px at 100px 40px,#fff 60%,transparent 62%);}
/* Red paper snowflakes (red vytynanky) on cream: quieter, behind the content. */
.xp-flake.red{z-index:0;opacity:.85;filter:drop-shadow(0 3px 4px rgba(120,30,20,.25));}
.xm-step,.xm-how{position:relative;overflow:hidden;}
.xm-step .wrap,.xm-how .wrap{position:relative;z-index:1;}
.flk-r1{--r:-14deg;top:40px;right:-18px;width:70px;}
.flk-r2{display:none;}
.flk-r3{--r:10deg;top:20px;left:-20px;width:64px;}
.flk-r4{--r:-8deg;top:30px;right:-14px;width:60px;}
@media (min-width:860px){
  .flk-r1{top:56px;right:7%;width:96px;}
  .flk-r2{display:block;--r:12deg;bottom:30px;left:5%;width:76px;}
  .flk-r3{top:30px;left:6%;width:84px;}
  .flk-r4{top:40px;right:9%;width:80px;}
}
/* The footer's order banner on a winter night. */
html[data-season="xmas"] .foot-cta{background:linear-gradient(180deg,var(--xm-night2),var(--xm-night));padding:96px 0 76px;}
html[data-season="xmas"] .foot-cta::before{background:radial-gradient(circle,rgba(251,240,221,.18),transparent 70%);}
html[data-season="xmas"] .foot-cta h2{color:var(--xm-cream);}
html[data-season="xmas"] .foot-cta p{color:rgba(251,240,221,.88);}
.foot-cta .xp-flake.flk-a{--r:-10deg;top:70px;left:4%;width:64px;}
.foot-cta .xp-flake.flk-b{--r:14deg;bottom:22px;right:5%;width:58px;}
.foot-cta .xp-flake.flk-c{display:none;}
@media (min-width:860px){
  .foot-cta .xp-flake.flk-a{left:12%;width:92px;}
  .foot-cta .xp-flake.flk-b{right:14%;width:80px;}
  .foot-cta .xp-flake.flk-c{display:block;--r:6deg;top:46%;right:4%;width:60px;}
}
/* Banner (XmasBanner.astro): one small paper flake at the end. */
.xs-shop .xs-bn-flake{--r:-12deg;top:-14px;right:132px;width:44px;opacity:.95;}
@media (max-width:560px){.xs-shop .xs-bn-flake{right:8px;top:-12px;width:38px;}}
.menu-sect .xs-shop{margin-bottom:28px;}

/* ── Night panels (XmasDeco.astro): About / blog headings, blog order block ── */
html[data-season="xmas"] .xs-panel{position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,var(--xm-night) 0%,var(--xm-night2) 60%,#B5241E 100%);
  border-radius:24px;padding:74px 22px 44px !important;color:var(--xm-cream);text-align:center;}
html[data-season="xmas"] .xs-panel::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 60% 70% at 50% 40%,rgba(251,240,221,.22),transparent 70%);}
html[data-season="xmas"] .xs-panel > :not(.xm-snow):not(.xf-garland):not(.xp-frost):not(.xp-flake){position:relative;z-index:2;}
html[data-season="xmas"] .xs-panel h1,html[data-season="xmas"] .xs-panel h2,html[data-season="xmas"] .xs-panel .display{color:var(--xm-cream) !important;}
html[data-season="xmas"] .xs-panel .kicker{color:#FBF0DD !important;justify-content:center;}
html[data-season="xmas"] .xs-panel p{color:rgba(251,240,221,.9) !important;margin-left:auto;margin-right:auto;}
.xs-panel .xp-frost{width:min(40vw,240px);}
.xs-panel .xp-flake.flk-p1{--r:-12deg;top:58px;left:4%;width:54px;}
.xs-panel .xp-flake.flk-p2{--r:14deg;bottom:18px;right:4%;width:48px;}
@media (min-width:860px){
  html[data-season="xmas"] .xs-panel{padding:92px 60px 56px !important;}
  .xs-panel .xp-flake.flk-p1{left:6%;width:80px;}
  .xs-panel .xp-flake.flk-p2{right:6%;width:68px;}
}
/* The blog's order block keeps its red button. */
html[data-season="xmas"] .article-cta.xs-panel{border:0;}
/* Panels span the content width, so the ornaments sit clear of the text. */
html[data-season="xmas"] .xs-panel{max-width:1120px !important;width:auto;margin-left:auto !important;margin-right:auto !important;}
html[data-season="xmas"] .blog-hero.xs-panel{margin:0 16px 36px !important;}
@media (min-width:1152px){html[data-season="xmas"] .blog-hero.xs-panel{margin:0 auto 36px !important;}}
html[data-season="xmas"] .xs-panel > p,html[data-season="xmas"] .xs-panel > h1,html[data-season="xmas"] .xs-panel > h2{max-width:640px;}
.xs-panel .xp-flake.flk-p1{top:auto;bottom:22px;left:3%;}
.xs-panel .xp-flake.flk-p2{bottom:auto;top:62px;right:3%;}
@media (max-width:640px){.xs-panel .xp-flake.flk-p1,.xs-panel .xp-flake.flk-p2{width:38px;}}
html[data-season="xmas"] .xs-panel > h1,html[data-season="xmas"] .xs-panel > h2{margin-left:auto !important;margin-right:auto !important;text-align:center;}
