/* First-visit newsletter popup — Midnight Boudoir */
.gloria-nl {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.gloria-nl.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gloria-nl__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gloria-nl__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(920px, 100%);
  max-height: min(92vh, 640px);
  background: var(--color-ivory, #faf6f3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(10, 6, 12, 0.45), 0 0 0 1px rgba(201, 169, 110, 0.35);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gloria-nl.is-open .gloria-nl__card {
  transform: translateY(0) scale(1);
}
.gloria-nl__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #1a0f1c;
}
.gloria-nl__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.gloria-nl.is-open .gloria-nl__visual img {
  transform: scale(1);
}
.gloria-nl__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(26, 15, 28, 0.55) 100%);
  pointer-events: none;
}
.gloria-nl__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 110, 0.14), transparent 55%),
    var(--color-ivory, #faf6f3);
}
.gloria-nl__kicker {
  font-family: var(--font-body, Georgia, serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-champagne, #c9a96e);
  margin-bottom: 0.65rem;
}
.gloria-nl__title {
  font-family: var(--font-heading, Georgia, serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.18;
  color: var(--color-warm-black, #2a1f2b);
  margin: 0 0 0.75rem;
  font-style: italic;
}
.gloria-nl__rule {
  width: 48px;
  height: 2px;
  background: var(--color-champagne, #c9a96e);
  margin: 0 0 1rem;
  border: 0;
}
.gloria-nl__copy {
  font-size: 1rem;
  color: var(--color-gray-700, #374151);
  margin: 0 0 1.15rem;
  max-width: 34ch;
}
.gloria-nl__hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-gray-500, #6b7280);
  margin: 0;
}
.gloria-nl__amazon {
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--color-gray-400, #9ca3af);
  margin: 1.15rem 0 0;
  max-width: 42ch;
}
.gloria-nl__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.gloria-nl__row {
  display: flex;
  gap: 0.5rem;
}
.gloria-nl__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(201, 169, 110, 0.55);
  border-radius: 10px;
  background: #fff;
  color: var(--color-warm-black, #2a1f2b);
}
.gloria-nl__input:focus {
  outline: none;
  border-color: var(--color-champagne, #c9a96e);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.22);
}
.gloria-nl__submit {
  white-space: nowrap;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(135deg, #8f1c48, #b02459);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gloria-nl__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(143, 28, 72, 0.28);
}
.gloria-nl__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.gloria-nl__fine {
  font-size: 0.78rem;
  color: var(--color-gray-500, #6b7280);
  margin: 0.15rem 0 0;
}
.gloria-nl__fine a {
  color: inherit;
  text-decoration: underline;
}
.gloria-nl__msg {
  min-height: 1.25em;
  font-size: 0.88rem;
  color: #8f1c48;
}
.gloria-nl__msg.is-ok {
  color: #166534;
}
.gloria-nl__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #2a1f2b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.gloria-nl__close:hover {
  background: #fff;
}
.gloria-nl__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.footer-nl {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-nl:hover {
  color: var(--color-champagne, #c9a96e);
}
body.gloria-nl-lock {
  overflow: hidden;
}
@media (max-width: 760px) {
  .gloria-nl {
    padding: 0.65rem;
    align-items: flex-end;
  }
  .gloria-nl__card {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow: auto;
  }
  .gloria-nl__visual {
    min-height: 210px;
    max-height: 240px;
  }
  .gloria-nl__row {
    flex-direction: column;
  }
  .gloria-nl__copy {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gloria-nl,
  .gloria-nl__card,
  .gloria-nl__visual img {
    transition: none;
  }
}

.gloria-nl__thanks[hidden],
[data-nl-signup][hidden] {
  display: none !important;
}
.gloria-nl.is-thanks .gloria-nl__visual img {
  transform: scale(1);
}
.subscribe-page {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
}
.subscribe-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.subscribe-page__visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(45, 27, 46, 0.16);
  background: #1a0f1c;
}
.subscribe-page__visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}
.subscribe-page__panel {
  padding: 0.25rem 0;
}
.subscribe-page .gloria-nl__copy,
.subscribe-page .gloria-nl__amazon {
  max-width: 42ch;
}
@media (max-width: 760px) {
  .subscribe-page__grid {
    grid-template-columns: 1fr;
  }
  .subscribe-page__visual img {
    min-height: 240px;
    max-height: 280px;
  }
}
