/* Christmas at Squish: the maison in winter dress. Pine, berry and a little gold; still quiet.
   Loaded only during CONFIG.christmas.from–until (app.js) and always on /gift-card. */
:root {
  --xm-pine: #1f3a2f;
  --xm-pine-2: #2b4b3d;
  --xm-berry: #9b2f38;
  --xm-gold: #b8935a;
  --xm-gold-2: #d8bd8a;
  --xm-snow: #fffdf9;
}

/* ---------- Top bar: pine, with a gold thread ---------- */
.xmas .topbar { background: var(--xm-pine); color: var(--xm-snow); border-bottom: 1px solid var(--xm-gold); }
.xmas .topbar a { color: inherit; text-decoration: none; }
.xmas .topbar a:hover { color: var(--xm-gold-2); }
.xmas .topbar p::before, .xmas .topbar p::after { content: "\2726"; color: var(--xm-gold-2); margin: 0 .9em; font-size: .8em; }

.xm-sprig { display: block; width: 92px; color: var(--xm-pine-2); margin: 0 0 18px -6px; }
.xmas .lx-hero .lx-eyebrow a { color: var(--xm-berry); text-decoration: none; border-bottom: 1px solid rgba(155, 47, 56, .35); }
.xmas .lx-hero .lx-eyebrow a:hover { border-color: var(--xm-berry); }
@media (max-width: 900px) { .xm-sprig { margin-inline: auto; } }

/* the hero film gets a soft winter frame */
.xmas .lx-hero-film { box-shadow: inset 0 0 0 1px rgba(184, 147, 90, .35); }
.xmas .lx-hero h1 em, .xmas .lx h2 em { color: var(--xm-berry); }

/* ---------- Snow ---------- */
.xm-snow { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.xm-snow i {
  position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--xm-snow); box-shadow: 0 0 3px rgba(90, 70, 50, .28); opacity: .85;
  animation: xm-fall var(--d) linear infinite;
}
@keyframes xm-fall {
  0% { transform: translate3d(0, -2vh, 0); }
  50% { transform: translate3d(var(--w), 50vh, 0); }
  100% { transform: translate3d(0, 104vh, 0); opacity: .25; }
}

/* ---------- The Christmas Promise (home) ---------- */
.xm-promise { background: var(--xm-pine); color: var(--xm-snow); position: relative; overflow: hidden; }
.xm-promise::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(216, 189, 138, .35); pointer-events: none; }
.xm-split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.xm-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--xm-pine-2); }
.xm-media img { width: 100%; height: 100%; object-fit: cover; }
.xm-promise .lx-eyebrow { color: var(--xm-gold-2); }
.xm-promise h2 { color: var(--xm-snow); font-size: clamp(2.6rem, 4.6vw, 4.4rem); margin: 0 0 22px; }
.xmas .xm-promise h2 em, .xm-promise h2 em { color: var(--xm-gold-2); }
.xm-lead { max-width: 34em; line-height: 1.75; color: rgba(255, 253, 249, .82); margin: 0 0 34px; }
.xm-perks { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid rgba(216, 189, 138, .3); }
.xm-perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(216, 189, 138, .3); }
.xm-perks .lx-num { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--xm-gold-2); }
.xm-perks h3 { font-size: 1.45rem; margin: 0 0 4px; color: var(--xm-snow); }
.xm-perks p { margin: 0; color: rgba(255, 253, 249, .72); line-height: 1.6; }
.xm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-bottom: 26px; }
.xm-promise .btn-primary { background: var(--xm-snow); color: var(--xm-pine); }
.xm-promise .btn-primary:hover { background: var(--xm-gold-2); color: var(--xm-pine); }
.xm-promise .lx-link { color: var(--xm-snow); border-color: var(--xm-gold-2); }
.xm-terms { font-size: .78rem; line-height: 1.6; color: rgba(255, 253, 249, .6); max-width: 40em; margin: 0; }

/* reserve dialog */
.xm-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 14px 16px; background: #eef2ec; border-left: 2px solid var(--xm-pine); font-size: .86rem; line-height: 1.55; color: var(--ink); }
.xm-note .ico { flex: none; width: 18px; height: 18px; color: var(--xm-berry); margin-top: 1px; }
.xm-card-btn { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; background: transparent; color: var(--xm-pine); box-shadow: inset 0 0 0 1px var(--xm-pine); text-decoration: none; }
.xm-card-btn:hover { background: var(--xm-pine); color: var(--xm-snow); }

/* ---------- Gift card page ---------- */
.gc-intro { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(36px, 5vw, 60px); }
.gc-intro h1 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .96; margin: 0 0 24px; }
.gc-intro h1 em { color: var(--xm-berry); }
.gc-intro .lx-lead { margin-inline: auto; }
.gc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); align-items: start; }
.gc-form { display: grid; gap: 22px; }
.gc-form textarea { resize: vertical; min-height: 84px; font: inherit; }
.gc-friends { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.gc-friends legend { font: var(--lx-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.gc-friends label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, background .3s; }
.gc-friends label:has(input:checked) { border-color: var(--xm-pine); background: #f1f4ef; }
.gc-friends input { accent-color: var(--xm-pine); }
.gc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.gc-hint { font-size: .8rem; color: var(--ink-3); margin: 0; line-height: 1.6; }
.gc-stage { position: sticky; top: 110px; display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); background: radial-gradient(80% 80% at 50% 30%, #eef2ec, #e2e8df); }

.gc-card {
  width: min(100%, 420px); aspect-ratio: 5 / 7; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 9% 10% 7%; background: var(--xm-snow); color: var(--xm-pine);
  box-shadow: 0 40px 70px -40px rgba(31, 58, 47, .55); outline: 1px solid rgba(184, 147, 90, .55); outline-offset: -14px;
}
.gc-sprig { width: 34%; color: var(--xm-pine-2); margin-bottom: 6%; }
.gc-kicker { font: var(--lx-caps); letter-spacing: .26em; text-transform: uppercase; color: var(--xm-gold); margin: 0 0 4px; }
.gc-to { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 4.4vw, 2.6rem); line-height: 1.05; margin: 0 0 6%; overflow-wrap: anywhere; }
.gc-art { width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 0 6%; box-shadow: 0 0 0 1px rgba(184, 147, 90, .5), 0 0 0 6px var(--xm-snow), 0 0 0 7px rgba(184, 147, 90, .35); }
.gc-art img { width: 100%; height: 100%; object-fit: cover; }
.gc-line { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2; margin: 0 0 4px; }
.gc-date { font: var(--lx-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--xm-berry); margin: 0 0 5%; }
.gc-msg { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; line-height: 1.45; color: #3e5a4d; margin: 0 0 4%; max-width: 22em; overflow-wrap: anywhere; }
.gc-from { font-family: var(--f-display); font-size: 1.05rem; margin: auto 0 0; overflow-wrap: anywhere; }
.gc-brand { font: var(--lx-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--xm-gold); margin: 4% 0 0; font-size: .58rem; }

@media (max-width: 900px) {
  .xm-split { grid-template-columns: 1fr; }
  .xm-media { aspect-ratio: 4 / 3; }
  .xm-promise::before { inset: 6px; }
  .gc-layout { grid-template-columns: 1fr; }
  .gc-stage { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .xm-snow { display: none; } }

/* ---------- Print: just the card, 5 x 7 in on one A4 page ---------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  body > *:not(main), .xm-snow, .gc-intro, .gc-form { display: none !important; }
  main.gc { padding: 0 !important; margin: 0 !important; }
  .gc-layout { display: block; padding: 40mm 0 0; margin: 0; max-width: none; }
  .gc-stage { position: static; display: block; background: none; padding: 0; }
  .gc-card {
    margin: 0 auto; width: 127mm; height: 178mm; aspect-ratio: auto; box-shadow: none; break-inside: avoid;
    outline: .3mm solid #b8935a; outline-offset: -5mm; border: .2mm dashed #ccc;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .gc-to { font-size: 30pt; } .gc-line { font-size: 17pt; } .gc-msg { font-size: 12pt; } .gc-from { font-size: 12pt; }
}
