/* Christmas page: one deliberate look (cranberry night, gold lights, cream paper),
   the same in light and dark mode. Shared components re-read these tokens. */
body.xmas {
  --paper: #6B1119;
  --paper-2: #5A0E15;
  --card: #FFF8EE;
  --ink: #FFF3E4;
  --ink-soft: #F0D6C2;
  --hair: rgba(255, 243, 228, .2);
  --rose: #E2574C;
  --gold: #F2C14E;
  --pine: #24452D;
  --pine-2: #1C3824;
  --cocoa: #3A1A1A;
  --on-ink: #6B1119;
  --soft-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
  background: var(--paper); color: var(--ink);
}
.xmas .brand img { filter: invert(1) sepia(.15); }
.xmas .foot-logo { filter: invert(1) sepia(.15); }
.xmas .site-foot { background: #3E0A10; color: #FFF3E4; }
.xmas .gold { color: var(--gold); }
.xmas .eyebrow { color: var(--gold); font-size: 1.45rem; }
.xmas .eyebrow.ink { color: #A8323A; }

.btn-gold { background: var(--gold); color: var(--cocoa); border-color: var(--cocoa); box-shadow: 3px 3px 0 var(--cocoa); }
.btn-gold:hover { box-shadow: 5px 5px 0 var(--cocoa); }
.btn-cream-line { background: transparent; color: #FFF3E4; border-color: #FFF3E4; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.btn-cran { background: #6B1119; color: #FFF3E4; border-color: var(--cocoa); box-shadow: 3px 3px 0 var(--gold); }
.btn-cran:hover { box-shadow: 5px 5px 0 var(--gold); }

/* Hero */
.x-hero { position: relative; overflow: hidden; padding-block: clamp(70px, 9vw, 110px) clamp(56px, 8vw, 96px);
  background: radial-gradient(120% 90% at 75% 40%, #861A23 0%, #6B1119 55%, #520C13 100%); }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 60px; }
.bulbs { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 auto 0; height: 60px; }
.bulbs li { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 12px 3px var(--c); transform: translateX(-50%); }
.bulbs li::before { content: ""; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; border-radius: 2px; background: #2A0A0E; }
@media (prefers-reduced-motion: no-preference) {
  .bulbs li { animation: twinkle 2.6s ease-in-out infinite; }
  .bulbs li:nth-child(3n) { animation-delay: .9s; }
  .bulbs li:nth-child(3n+1) { animation-delay: 1.7s; }
}
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; box-shadow: 0 0 4px 1px var(--c); } }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.x-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.x-copy { display: grid; gap: 20px; min-width: 0; }
.x-copy .lede { color: var(--ink-soft); }

.x-stage { position: relative; aspect-ratio: 1 / .95; max-width: 100%; }
.x-cover { position: absolute; border-radius: 8px; box-shadow: var(--soft-shadow); }
.c-back-l { width: 46%; left: 4%; top: 6%; transform: rotate(-10deg); }
.c-back-r { width: 46%; right: 2%; top: 4%; transform: rotate(9deg); }
.c-front { width: 58%; left: 21%; top: 18%; transform: rotate(-1.5deg); z-index: 2; }
.sticker { position: absolute; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); z-index: 3; }
.st-tree { width: 24%; left: -4%; bottom: 0; }
.st-santa { width: 25%; right: -3%; top: 34%; }
.st-gift { width: 22%; left: 16%; bottom: -6%; }
.st-globe { width: 21%; right: 12%; bottom: -5%; }
@media (prefers-reduced-motion: no-preference) {
  .x-stage .sticker { animation: bob 5s ease-in-out infinite; }
  .st-santa { animation-delay: -1.2s !important; }
  .st-gift { animation-delay: -2.4s !important; }
  .st-globe { animation-delay: -3.6s !important; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Free pages: cream stationery on cranberry */
.x-free { padding-block: clamp(56px, 8vw, 100px); background: var(--paper-2); }
.x-free-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--card); color: var(--cocoa); border-radius: 24px; padding-block: clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); background-image: radial-gradient(rgba(107,17,25,.06) 1px, transparent 1px); background-size: 14px 14px; }
.x-free-card > * { min-width: 0; }
.pinboard { position: relative; aspect-ratio: 1 / .9; }
.sheet { position: absolute; margin: 0; width: 52%; background: #fff; padding: 8px; box-shadow: 0 12px 24px -12px rgba(58,26,26,.45); }
.sheet img { width: 100%; }
.sheet::before { content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(226,87,76,.75) 0 8px, rgba(255,243,228,.8) 8px 16px); opacity: .9; }
.sh1 { left: 0; top: 6%; transform: rotate(-6deg); }
.sh2 { right: 0; top: 0; transform: rotate(5deg); }
.sh3 { left: 24%; top: 38%; transform: rotate(-1deg); z-index: 2; }
.pinboard .st-bells { width: 24%; right: 0; bottom: -2%; }
.x-form { display: grid; gap: 14px; }
.x-form h2 { color: var(--cocoa); }
.x-form > p { color: #6A4A44; }
.x-form .field-row input { background: #fff; color: var(--cocoa); border-color: var(--cocoa); }
.x-form .field-row input::placeholder { color: #8A6C64; }
.x-form .field-row input:focus, .x-form .field-row input[aria-invalid="true"] { box-shadow: 0 0 0 4px rgba(226,87,76,.35); }
.x-form .check { color: #6A4A44; }
.x-form .check input { accent-color: #6B1119; }
.x-form .msg { color: #A8323A; }
.x-form .done { background: #E7F0DF; border-color: var(--cocoa); color: var(--cocoa); }

/* Countdown feature */
.x-countdown { background: var(--pine); padding-block: clamp(56px, 8vw, 100px);
  background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.x-count-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.count-img { width: 100%; border-radius: 18px; box-shadow: var(--soft-shadow); transform: rotate(-1.5deg); }
.x-count-copy { display: grid; gap: 16px; min-width: 0; }
.x-count-copy p { color: var(--ink-soft); }
.x-count-copy strong { color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "✦"; color: var(--gold); }
.x-count-copy .btn { justify-self: start; margin-top: 6px; }

/* Shelf */
.x-shelf { padding-block: clamp(64px, 9vw, 110px); }
.x-head { display: grid; gap: 6px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 44px); }
.shelf a { display: grid; gap: 10px; text-decoration: none; }
.shelf-cover { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--soft-shadow); transition: transform .25s ease; }
.shelf-cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf a:hover .shelf-cover { transform: translateY(-6px) rotate(-.8deg); }
.shelf-t { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; margin-top: 6px; }
.shelf-d { color: var(--ink-soft); font-size: .98rem; }
.shelf-cta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Cozy night */
.x-night { padding-block: clamp(56px, 8vw, 100px); background: var(--paper-2); border-top: 1px solid var(--hair); }
.night { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: n; }
.night li { display: grid; gap: 8px; justify-items: center; text-align: center; counter-increment: n; }
.night img { height: 110px; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); margin-bottom: 6px; }
.night h3::before { content: counter(n) ". "; color: var(--gold); }
.night p { color: var(--ink-soft); font-size: .95rem; max-width: 22ch; }

/* Responsive */
@media (max-width: 900px) {
  .night { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 860px) {
  .x-hero-grid, .x-free-card, .x-count-grid { grid-template-columns: minmax(0, 1fr); }
  .x-stage { max-width: 470px; width: 100%; justify-self: center; }
  .pinboard { max-width: 460px; width: 100%; justify-self: center; }
  .count-img { max-width: 440px; justify-self: center; }
  .shelf { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .xmas .nav a[href="#shelf"] { display: none; }
}
