/* Kerbside Decals - Christmas theme ("Home for Christmas", chosen 2026-11-22).
   Only loaded while Admin > Settings > Christmas is on (lib/layout.php). Never on the admin or inside the designer.
   Night blue replaces black in the dark parts of every page, snow falls in them, real snow lies along their bottom edge.
   Every class starts xm- / xgift so nothing clashes with the site or the designer (.btn .chip .pill .sw .swatches .n .sr are theirs). */

/* ============================================================ night blue in the dark sections only (not :root, not [data-theme]) */
[data-xm] .hero,[data-xm] .phero,[data-xm] .kerbband,[data-xm] .finale,[data-xm] .vcard,[data-xm] .ft,[data-xm] .xgifts{
  --bg:#070D1C; --bg2:#0B1428; --surface:#0F1A31; --surface2:#15223D; --surface3:#1E2D4D;
  --panel:#0F1A31; --panel2:#15223D; --panel3:#1E2D4D;
  --text:#F3F6FB; --soft:#C9D3E6; --muted:#93A0BA;
  --line:rgba(190,210,255,.1); --line2:rgba(190,210,255,.18); --line3:rgba(190,210,255,.32);
  --red:#FF3B4B; --red2:#E3192C; --redt:#FF6A76; --glow:rgba(255,59,75,.45);
  --gold:#FFC983; color-scheme:dark; color:var(--text)}
[data-xm] .kerbband{background:#0A1326;border-color:rgba(190,210,255,.1)}
[data-xm] .ft{background:#070D1C}
[data-xm] .ft__cutline em{color:var(--gold)}
[data-xm] .sizes__glass{background:linear-gradient(180deg,#16233F,#0A1326)}
[data-xm] .split__card--gift{background:#0B1428}
[data-xm] .split__card--gift::after{background:linear-gradient(0deg,#0B1428 14%,rgba(11,20,40,0) 90%)}
[data-xm] .split__card--gift .split__bg img{opacity:.6}
[data-xm] .finale__bg img{object-position:70% 45%;opacity:.55}
[data-xm] .finale::before{background:radial-gradient(60% 70% at 50% 50%,rgba(7,13,28,.35),var(--bg) 88%)}
[data-xm] .phero .crumbs a:hover{color:#fff}
[data-xm] .vcard{background:radial-gradient(120% 120% at 100% 0%,rgba(255,59,75,.6),transparent 55%),linear-gradient(140deg,#1B2A4A,#070D1C)}
[data-xm] .vcard__to{color:var(--gold)}

/* ============================================================ the countdown bar */
.xm-bar{position:relative;z-index:51;height:46px;display:flex;align-items:center;overflow:hidden;background:#070D1C;color:#C9D3E6;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);font:600 14px/1 var(--body)}
.xm-bar__in{position:relative;display:flex;align-items:center;gap:28px;width:100%}
.xm-bar__msg{margin:0;display:flex;align-items:baseline;gap:12px;white-space:nowrap;min-width:0;overflow:hidden}
.xm-bar__msg b{font:400 16px/1 var(--display);letter-spacing:.05em;text-transform:uppercase;color:#FF5A67}
.xm-bar__msg--after,.xm-bar__lk-after{display:none}
.xm-bar.is-after .xm-bar__msg--before,.xm-bar.is-after .xm-clock,.xm-bar.is-after .xm-bar__lk-before{display:none}
.xm-bar.is-after .xm-bar__msg--after,.xm-bar.is-after .xm-bar__lk-after{display:flex}
.xm-clock{display:flex;align-items:center;gap:12px;margin-left:auto}
.xm-u{display:flex;align-items:baseline;gap:5px}
.xm-u b{font:400 21px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:.02em;color:#fff}
.xm-u i{font-style:normal;font-size:12px;font-weight:600;opacity:.75}
.xm-bar__link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;white-space:nowrap;color:#FFC983}
.xm-bar.is-after .xm-bar__link{margin-left:auto}
.xm-bar__link .ico{width:17px;height:17px;transition:transform .5s var(--ease)}
.xm-bar__link:hover .ico{transform:translateX(5px)}
.xm-bar__link:hover span{text-decoration:underline;text-underline-offset:4px}

/* ============================================================ snow + snow lying along the bottom of a dark section */
.xm-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
[data-xm] .phero>.wrap,[data-xm] .phero>.phero__in,[data-xm] .finale__in{position:relative;z-index:3}
[data-xm] .ft__sign,[data-xm] .ft__top,[data-xm] .ft__base{position:relative;z-index:1}

/* ============================================================ home: the snowy street hero */
.hero.xm-hero{display:block;min-height:0;padding:0;overflow:hidden;isolation:isolate}
.hero.xm-hero::before,.hero.xm-hero::after{display:none}
.xm-b{--xh:min(56.25vw,max(680px,calc(100svh - 124px)));height:var(--xh);background:#070D1C}
.xm-stage{position:absolute;left:50%;top:50%;width:max(100%,calc(var(--xh) * 1.7778));aspect-ratio:16/9;translate:-50% -50%;animation:xm-kb 30s ease-in-out infinite alternate;transform-origin:72% 46%}
@keyframes xm-kb{from{scale:1}to{scale:1.07}}
.xm-stage>picture,.xm-stage>picture img{display:block;width:100%;height:100%}
.xm-stage>picture img{object-fit:cover;translate:var(--mx,0) var(--my,0);transition:translate 1.2s cubic-bezier(.2,.7,.2,1)}
.hero__glass.xm-spot{position:absolute;overflow:visible;clip-path:none;pointer-events:none}
.xm-b__spot{left:56.6%;top:37.4%;width:29.6%;height:13.6%;translate:var(--mx,0) var(--my,0);transition:translate 1.2s cubic-bezier(.2,.7,.2,1)}
.xm-b__spot .decal{left:5%;right:auto;top:89%;transform-origin:0 50%;transform:translateY(-50%) scale(var(--k,.5));color:#F7F7F4}
.xm-b__shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,9,22,.92) 0%,rgba(5,9,22,.8) 26%,rgba(5,9,22,.35) 46%,rgba(5,9,22,0) 58%),linear-gradient(0deg,rgba(5,9,22,.55),rgba(5,9,22,0) 24%),linear-gradient(180deg,rgba(5,9,22,.45),rgba(5,9,22,0) 18%)}
.xm-b .xm-snow--back{z-index:2}.xm-b .xm-snow--front{z-index:4}
.xm-b__in{position:relative;z-index:3;height:100%;display:flex;align-items:center}
.xm-b__copy{max-width:560px;padding-bottom:40px}
.xm-b__eyebrow{margin:0 0 18px;font:700 13px/1 var(--body);letter-spacing:.28em;text-transform:uppercase;color:#FFC983}
.xm-b .xm-b__title{margin:0 0 22px;font-size:clamp(68px,7.4vw,124px);line-height:.86;color:#F6F8FC;text-shadow:0 6px 40px rgba(0,0,0,.45)}
.xm-b .hero__line--red{color:#FF3B4B;filter:none;text-shadow:0 0 34px rgba(255,59,75,.35)}
.xm-b__lead{color:#D5DDEC;max-width:470px}
.xm-b .hero__field{background:rgba(7,13,28,.6);border-color:rgba(255,255,255,.18)}
.xm-b .hero__facts{margin-top:26px}
.xm-b__style{margin:18px 0 0;font:500 14px/1.4 var(--body);color:rgba(213,221,236,.7)}
.xm-b__style b{color:#fff}

/* ============================================================ home: Christmas, sorted (three gift ideas) */
.xgifts{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(70% 90% at 85% 0%,rgba(255,59,75,.16),transparent 60%),#070D1C;padding:clamp(80px,9vw,130px) 0}
.xgifts .wrap{position:relative;z-index:3}
.xgifts__head{display:flex;flex-direction:column;gap:14px;margin:0 0 clamp(34px,4vw,54px)}
.xgifts__eyebrow{margin:0;font:700 13px/1 var(--body);letter-spacing:.28em;text-transform:uppercase;color:#FFC983}
.xgifts__title{margin:0;font:400 clamp(54px,7vw,112px)/.88 var(--display);text-transform:uppercase;color:#F6F8FC}
.xgifts__title span{color:#FF3B4B}
.xgifts__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,28px)}
.xgift{position:relative;display:flex;flex-direction:column;background:#0F1A31;color:#F3F6FB;text-decoration:none;
  clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);transition:transform .5s var(--ease),background-color .4s}
.xgift:hover{transform:translateY(-6px);background:#15223D}
.xgift__pic{display:block;aspect-ratio:16/10;overflow:hidden}
.xgift__pic img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.xgift:hover .xgift__pic img{transform:scale(1.07)}
.xgift__body{display:flex;flex-direction:column;gap:10px;padding:24px 26px 28px;flex:1}
.xgift__body b{font:400 30px/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.xgift__body>span{color:#C9D3E6;font-size:16px;line-height:1.5}
.xgift__body em{margin-top:auto;padding-top:8px;display:inline-flex;align-items:center;gap:8px;font:700 15px/1 var(--body);font-style:normal;color:#FFC983}
.xgift__body em .ico{width:17px;height:17px;transition:transform .5s var(--ease)}
.xgift:hover .xgift__body em .ico{transform:translateX(6px)}
.xgift__card{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:22px 24px;
  background:radial-gradient(120% 120% at 100% 0%,rgba(255,59,75,.62),transparent 55%),linear-gradient(140deg,#1B2A4A,#0A1326)}
.xgift__card .logo{transform-origin:0 0;scale:.86}
.xgift__amt{font:400 clamp(56px,5vw,80px)/.9 var(--display);color:#fff;margin-top:auto}
.xgift__to{font:600 14px/1.4 var(--body);color:#FFC983}

/* ============================================================ inner pages */
.xm-note{position:relative;background:#0F1A31;color:#C9D3E6;padding:18px 22px 18px 26px;box-shadow:inset 4px 0 0 #FF3B4B;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}
.xm-note strong{color:#fff}
.xm-note a{color:#FFC983}

/* ============================================================ smaller screens */
@media (max-width:1099px){
  .xm-b{height:auto;display:flex;flex-direction:column}
  .xm-b .xm-stage{position:relative;left:auto;top:auto;translate:none;flex:none;height:58svh;width:auto;aspect-ratio:16/9;margin-left:calc(50vw - 58svh * 1.7778 * .71)}
  .xm-b__shade{background:linear-gradient(0deg,#070D1C 0,rgba(7,13,28,0) 30%)}
  .xm-b__in{height:auto;padding-bottom:70px;margin-top:-40px}
  .xm-b .xm-b__title{font-size:clamp(52px,15vw,80px)}
  .xgifts__grid{grid-template-columns:1fr;max-width:560px}
}
@media (max-width:620px){
  .xm-bar{height:42px;font-size:13px}
  .xm-bar__in{gap:12px}
  .xm-long,.xm-bar__link span,.xm-u i{display:none}
  .xm-clock{gap:4px}
  .xm-u b{font-size:18px}
  .xm-u:not(:last-child)::after{content:":";font:400 16px/1 var(--display);opacity:.6;margin-left:2px}
  .xm-bar.is-after .xm-bar__msg--after span{display:none}
}
@media (prefers-reduced-motion:reduce){
  .xm-stage{animation:none}
}
[data-xm] .vcard>div{position:relative;z-index:1}

/* ============================================================ TOP TO BOTTOM (user, 2026-11-22: "I want the Christmas theme down the website")
   The whole page becomes the snowy night: night-blue colours on every section, snow falling over the page,
   real pine garland hung along section edges, real snow lying at the bottom of the dark sections, a bow on the gift step. */
html[data-xm]{
  --bg:#070D1C; --bg2:#0B1428; --surface:#0F1A31; --surface2:#15223D; --surface3:#1E2D4D;
  --panel:#0F1A31; --panel2:#15223D; --panel3:#1E2D4D;
  --text:#F3F6FB; --soft:#C9D3E6; --muted:#93A0BA;
  --line:rgba(190,210,255,.1); --line2:rgba(190,210,255,.18); --line3:rgba(190,210,255,.32);
  --red:#FF3B4B; --red2:#E3192C; --redt:#FF6A76; --glow:rgba(255,59,75,.45);
  --ok:#5EE08F; --bad:#FFB3BA; --gold:#FFC983;
  --shadow:0 30px 60px -30px rgba(0,0,0,.9);
  --hdr:rgba(7,13,28,.94);
  color-scheme:dark}
/* the light/dark switch has nothing to switch while it's Christmas night */
html[data-xm] .theme{display:none}
/* the designer keeps exactly its own colours */
html[data-xm][data-theme="light"] .kd-designer{
  --bg:#F2F3F5; --bg2:#E9EAEE; --surface:#FFFFFF; --surface2:#F7F7F9; --surface3:#E6E7EC;
  --panel:#FFFFFF; --panel2:#F7F7F9; --panel3:#E6E7EC;
  --text:#101116; --soft:#3A3C45; --muted:#5D5F6A;
  --line:rgba(16,17,22,.09); --line2:rgba(16,17,22,.17); --line3:rgba(16,17,22,.32);
  --red:#E3192C; --red2:#D01426; --redt:#C20F1F; --glow:rgba(227,25,44,.3);
  --ok:#137A3B; --bad:#B4121F; --shadow:0 26px 50px -30px rgba(16,17,22,.42); --hdr:rgba(255,255,255,.95);
  color-scheme:light;color:var(--text)}
html[data-xm][data-theme="dark"] .kd-designer{
  --bg:#0A0A0D; --bg2:#0F0F14; --surface:#15151C; --surface2:#1C1C25; --surface3:#272732;
  --panel:#15151C; --panel2:#1C1C25; --panel3:#272732;
  --text:#F4F4F6; --soft:#C9CAD2; --muted:#9C9DA8;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.16); --line3:rgba(255,255,255,.3);
  --red:#FF2E3F; --red2:#E3192C; --redt:#FF5A67; --glow:rgba(255,46,63,.45);
  --ok:#5EE08F; --bad:#FFB3BA; --shadow:0 30px 60px -30px rgba(0,0,0,.9); --hdr:rgba(10,10,13,.94);
  color-scheme:dark;color:var(--text)}

/* snow falling over the whole page (below the header, never over the designer) */
.xm-snowfall{position:fixed;inset:0;z-index:45;width:100%;height:100%;pointer-events:none}

/* real pine garland hung across a section's top edge */
.xm-garland{position:absolute;left:0;right:0;top:0;z-index:6;height:clamp(64px,6.6vw,104px);translate:0 -48%;pointer-events:none;
  background:url(img/xmas/garland.webp) 0 50%/auto 100% repeat-x;filter:drop-shadow(0 12px 12px rgba(0,0,0,.55));
  transform-origin:50% 0;animation:xm-sway 9s ease-in-out infinite alternate}
@keyframes xm-sway{from{transform:rotate(-.15deg)}to{transform:rotate(.15deg) translateY(2px)}}
[data-xm] .ft{overflow:visible}
[data-xm] .ft>.xm-garland{z-index:7}
[data-xm] .how,[data-xm] .vinyl,[data-xm] .sizes,[data-xm] .faqs,[data-xm] .wall,[data-xm] .ideas{position:relative}
/* sections that end in snow */
/* a red bow on the "Gift it" step */
.xm-bow{position:absolute;top:-30px;right:-16px;z-index:4;width:clamp(70px,6.4vw,92px);height:auto;rotate:12deg;pointer-events:none;filter:drop-shadow(0 8px 10px rgba(0,0,0,.5))}
@media (prefers-reduced-motion:reduce){.xm-garland{animation:none}}

/* the garland under the scrolling words hangs into the section, not over the words */
[data-xm] .sec.how>.xm-garland{translate:0 -10%}
[data-xm] .sec.how{padding-top:clamp(150px,13vw,190px)}
/* room under the snow before the next heading */
[data-xm] .sec.ideas{padding-top:clamp(40px,4vw,70px)!important}
[data-xm] .sec.split{padding-top:clamp(110px,10vw,150px)!important}

/* phones: a deeper bank so it reads as snow, not a blob */

/* ============================================================ real snow lying on the word "Christmas."
   img/xmas/snow-christmas.webp is a 3D-lit render of snow settled on the tops of these exact Anton letters (scratchpad snowword.py,
   letter positions measured in the browser). It is sized in em, so it sits exactly on the live text at every screen size. */
.xm-b .hero__line--red{position:relative}
.xm-snowword{position:absolute;left:-.16em;top:-.1817em;width:4.775em;max-width:none;height:auto;pointer-events:none;
  opacity:0;translate:0 -.05em;animation:xm-settle 1.1s cubic-bezier(.2,.8,.2,1) 1.25s forwards}
@keyframes xm-settle{to{opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce){.xm-snowword{animation:none;opacity:1;translate:none}}
.xm-b .hero__line--red{margin-top:.2em}
/* the closing section clips anything outside it, so its garland hangs fully inside the top edge */
[data-xm] .finale>.xm-garland{translate:0 0}
[data-xm] .finale{padding-top:clamp(150px,15vw,220px)}
