/*
 * Page-specific styles for the "Coming Soon" page (slug: coming-soon).
 */

body.page-coming-soon {
  background: #e7ded4;
  --mhc-page-coming-soon: 1;
}

/* Hide global header and footer */
body.page-coming-soon .site-header,
body.page-coming-soon footer,
body.page-coming-soon .site-footer {
  display: none;
}

/* Remove header spacing */
body.page-coming-soon .site-main {
  padding-top: 0;
}

/* Kill white backgrounds from theme wrappers */
body.page-coming-soon .site-main,
body.page-coming-soon .site-main.container,
body.page-coming-soon .wp-site-blocks,
body.page-coming-soon .wp-block-post-content,
body.page-coming-soon .wp-block-group {
  background-color: transparent !important;
}

/* -------------------------------------------------
   CROSS BACKGROUND (true viewport stage, no overflow)
   ------------------------------------------------- */

body.page-coming-soon .wp-block-group[style*="cross_background"] {
  position: relative;

  width: 100dvw;
  max-width: none !important;
  left: 50%;
  transform: translateX(-50%);

  background-size: clamp(1400px, 180vw, 2400px) !important;
  background-position: 50% 32% !important;
  background-repeat: no-repeat !important;

  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

/* Background wash */
body.page-coming-soon .wp-block-group[style*="cross_background"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e7ded4;
  opacity: 0.75;
  pointer-events: none;
}

/* -------------------------------------------------
   🔑 OPTICAL VERTICAL CENTERING (THIS IS THE CHANGE)
   ------------------------------------------------- */

body.page-coming-soon .wp-block-group[style*="cross_background"] > * {
  position: relative;
  z-index: 1;

  /* Optical adjustment so content sits centered over the cross */
  transform: translateY(6vh);
}

/* -------------------------------------------------
   TITLE
   ------------------------------------------------- */

body.page-coming-soon .ff-title {
  display: flex;
  justify-content: center;
  gap: 0.18em;

  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0 0 12px;

  text-align: center;
}

body.page-coming-soon .ff-title__strong {
  font-weight: 800;
  font-family: var(--wp--preset--font-family--system);
}

body.page-coming-soon .ff-title__light {
  font-weight: 300;
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------
   DATE + COMING SOON
   ------------------------------------------------- */

body.page-coming-soon .ff-date {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 52px);
  letter-spacing: 0.02em;

  margin: clamp(18px, 4.5vh, 56px) 0 12px;
  text-align: center;
}

body.page-coming-soon .ff-comingsoon {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 52px);
  letter-spacing: 0.035em;
  margin: 0;

  text-align: center;
}

/* -------------------------------------------------
   SILHOUETTE (scaled via transform earlier)
   ------------------------------------------------- */

body.page-coming-soon .ff-spacer {
  height: clamp(8px, 2vh, 16px) !important;
}

body.page-coming-soon figure.ff-silhouette > img {
  transform: scale(1.18) !important;
  transform-origin: center bottom;

  max-height: 58svh !important;

  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto !important;
  object-fit: contain;
}

/* -------------------------------------------------
   MOBILE
   ------------------------------------------------- */

@media (max-width: 480px) {
  body.page-coming-soon .ff-title {
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }

  body.page-coming-soon .ff-date {
    margin: clamp(14px, 4vh, 32px) 0 2px;
  }

  body.page-coming-soon .ff-spacer {
    height: clamp(6px, 1.6vh, 12px) !important;
  }

  body.page-coming-soon figure.ff-silhouette > img {
    transform: scale(1.14) !important;
    max-height: 52svh !important;
  }
}
