/* Christmas decoration — minimal, added on top of the normal site (same idea as the old Halloween theme).
   To turn it off: remove the <link ... christmas.css> line in index.html and in each collection page
   (the-noir, the-swan, the-romance, the-premiere), or delete this file. Nothing else in the site depends on it. */

/* Thin greeting strip above the header, with a string of little lights along its bottom edge */
body::before {
  content: "Merry Christmas & Happy New Year จาก NattInvites";
  display: block; padding: 7px 16px 14px;
  background:
    radial-gradient(circle at 12px 100%, #e8604f 0 3px, transparent 3.6px) 0 100% / 48px 9px repeat-x,
    radial-gradient(circle at 36px 100%, #f0c35a 0 3px, transparent 3.6px) 0 100% / 48px 9px repeat-x,
    #24402f;
  color: #f4ead6;
  font: 500 0.82rem/1.4 var(--font); text-align: center; letter-spacing: 0.01em;
  animation: xm-lights 2.4s ease-in-out infinite;
}
@keyframes xm-lights { 50% { filter: brightness(1.18) saturate(1.1); } }

/* Gentle snowfall: a few small crisp flakes + a few big blurry ones (depth). Kept light so content stays readable:
   the middle of the screen is faded out and mobile gets fewer/fainter flakes. */
html::after, html::before {
  content: ""; position: fixed; inset: -24px; z-index: 40; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 14%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, #000 86%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 14%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, #000 86%, #000 100%);
}
/* small, sharp, far away */
html::after {
  opacity: 0.8;
  background-image:
    radial-gradient(circle at 83px 71px, #b3cbdc 0 2.4px, transparent 3px),
    radial-gradient(circle at 301px 149px, #c9dce9 0 2px, transparent 2.6px),
    radial-gradient(circle at 197px 331px, #b3cbdc 0 3.2px, transparent 3.8px);
  background-size: 521px 467px, 389px 613px, 701px 433px;
  animation: xm-snow-s 34s linear infinite, xm-sway 9s ease-in-out infinite alternate;
}
/* big, soft, close */
html::before {
  opacity: 0.8; filter: blur(3.5px);
  background-image:
    radial-gradient(circle at 211px 160px, #d7e5f0 0 13px, transparent 14px),
    radial-gradient(circle at 640px 520px, #c3d8e8 0 9px, transparent 10px),
    radial-gradient(circle at 420px 80px, #dbe8f2 0 17px, transparent 18px);
  background-size: 897px 761px, 1103px 953px, 1291px 1087px;
  animation: xm-snow-b 20s linear infinite, xm-sway 11s ease-in-out infinite alternate-reverse;
}
@keyframes xm-snow-s { to { background-position: 0 467px, 0 613px, 0 433px; } }
@keyframes xm-snow-b { to { background-position: 0 761px, 0 953px, 0 1087px; } }
@keyframes xm-sway { from { transform: translateX(-14px); } to { transform: translateX(14px); } }

/* Little tree after the hero kicker */
.hero .kicker::after, .col-hero .kicker::after {
  content: ""; display: inline-block; width: 1.05em; height: 1.15em; margin-left: 0.4em; vertical-align: -0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cpath fill='%23d9a441' d='M16 0l1.9 4.4 4.6.4-3.5 3 1.1 4.6L16 10l-4.1 2.4 1.1-4.600-3.5-3 4.600-.4z' transform='translate(0 0) scale(.62) translate(9.8 0)'/%3E%3Cpath fill='%23305a42' d='M16 6l8 9h-4l7 8h-5l6 8H4l6-8H5l7-8H8z'/%3E%3Crect x='14' y='31' width='4' height='5' fill='%236b4a35'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Soft snowflakes drifting around the headline */
.hero, .col-hero { position: relative; }
.hero::before, .hero::after, .col-hero::before, .col-hero::after {
  content: ""; position: absolute; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%2399b6c9' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M16 3v26M5 9.5l22 13M27 9.5L5 22.500M16 7l-3-3M16 7l3-3M16 25l-3 3M16 25l3 3'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9; animation: xm-float 6s ease-in-out infinite;
}
.hero::before, .col-hero::before { top: clamp(40px, 7vw, 84px); left: max(6%, calc(50% - 470px)); width: 34px; height: 34px; }
.hero::after, .col-hero::after { top: clamp(100px, 13vw, 170px); right: max(7%, calc(50% - 460px)); width: 24px; height: 24px; animation-delay: 1.8s; }
.hero .hero-text { position: relative; }
.hero .hero-text::after {
  content: ""; position: absolute; top: 52%; right: max(4%, calc(50% - 420px)); width: 18px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23b8453a' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M16 3v26M5 9.5l22 13M27 9.5L5 22.500'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55; animation: xm-float 7s ease-in-out infinite 0.9s;
}
@keyframes xm-float { 50% { transform: translateY(10px) rotate(14deg); } }

/* A little gold star above each section heading */
.section .head::before { content: "✦"; display: block; margin-bottom: 4px; color: #d9a441; font-size: 1rem; line-height: 1; text-align: center; }

/* Festive accents on small badges */
.plan-flag, .badge-new { background: #b8453a !important; }

/* Footer greeting */
.site-footer::before {
  content: "สุขสันต์วันคริสต์มาสและปีใหม่ ขอให้ทุกวันเป็นวันที่ดี"; display: block; margin: 0 auto 18px; padding: 0 16px;
  color: #24402f; font-weight: 500; text-align: center;
}

/* Footer: a thin red-and-green line */
.site-footer { border-top: 3px solid #24402f; box-shadow: inset 0 3px 0 #b8453a; }

@media (max-width: 760px) {
  html::after { opacity: 0.55; }
  html::before { opacity: 0.4; }
  .hero::before, .col-hero::before { left: 4%; width: 26px; height: 26px; }
  .hero::after, .col-hero::after { right: 5%; width: 20px; height: 20px; }
  .hero .hero-text::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html::after, html::before { display: none; }
  .hero::before, .hero::after, .col-hero::before, .col-hero::after, .hero .hero-text::after { animation: none; }
}
