.christmas-popup-shell {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: clamp(26px, 4vw, 64px);
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.christmas-popup-shell.is-open,
.christmas-popup-shell.is-closing { visibility: visible; }
.christmas-popup-shell.is-open { pointer-events: auto; }

.christmas-popup-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(18 15 13 / 70%);
  opacity: 0;
  cursor: default;
  transition: opacity 320ms ease;
}

.christmas-popup-dialog {
  position: relative;
  display: grid;
  width: min(1100px, calc(100vw - clamp(52px, 8vw, 128px)));
  max-height: calc(100vh - clamp(52px, 8vw, 128px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  background: #f4f2ed;
  color: #302722;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.christmas-popup-shell.is-open .christmas-popup-overlay { opacity: 1; }
.christmas-popup-shell.is-open .christmas-popup-dialog { opacity: 1; transform: translateY(0); }

.christmas-popup-media { min-height: 570px; margin: 0; overflow: hidden; }
.christmas-popup-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

.christmas-popup-content {
  display: flex;
  min-width: 0;
  padding: clamp(70px, 6vw, 96px) clamp(50px, 5vw, 76px) clamp(54px, 5vw, 74px);
  flex-direction: column;
  justify-content: center;
}

.christmas-popup-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #302722;
  cursor: pointer;
}

.christmas-popup-close::before,
.christmas-popup-close::after {
  position: absolute;
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}
.christmas-popup-close::before { transform: rotate(45deg); }
.christmas-popup-close::after { transform: rotate(-45deg); }
.christmas-popup-close:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

.christmas-popup-kicker {
  margin: 0 0 clamp(28px, 3vw, 42px);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
}

.christmas-popup-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .98;
}
.christmas-popup-title em { font-weight: 400; }

.christmas-popup-description {
  max-width: 390px;
  margin: clamp(28px, 3vw, 40px) 0 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
}

.christmas-popup-link {
  display: inline-flex;
  width: min(100%, 360px);
  margin-top: clamp(38px, 4vw, 54px);
  padding: 0 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  text-decoration: none;
}
.christmas-popup-link span:last-child { font-size: 19px; line-height: 1; transition: transform 200ms ease; }
.christmas-popup-link:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .christmas-popup-link:hover span:last-child { transform: translateX(4px); }
}

body.has-christmas-popup-open { overflow: hidden; }

@media (max-width: 760px) {
  .christmas-popup-shell { padding: 18px; }
  .christmas-popup-dialog {
    width: 100%;
    max-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
  }
  .christmas-popup-media { min-height: 0; height: clamp(210px, 34vh, 300px); }
  .christmas-popup-media img { object-position: 50% 47%; }
  .christmas-popup-content { padding: 38px 27px 34px; }
  .christmas-popup-close { top: 10px; right: 10px; width: 42px; height: 42px; background: rgb(244 242 237 / 88%); }
  .christmas-popup-close::before,
  .christmas-popup-close::after { width: 25px; }
  .christmas-popup-kicker { margin-bottom: 21px; font-size: 10px; }
  .christmas-popup-title { font-size: clamp(40px, 12vw, 52px); }
  .christmas-popup-description { margin-top: 22px; font-size: 16px; }
  .christmas-popup-link { width: 100%; margin-top: 30px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-popup-overlay,
  .christmas-popup-dialog,
  .christmas-popup-link span:last-child { transition: none; }
  .christmas-popup-dialog { transform: none; }
  .christmas-popup-link:hover span:last-child { transform: none; }
}
