/* ==========================================================================
   Full-screen pre-launch announcement (js/announcement.js)
   The signup form reuses the .brevo-form styles from style.css.
   Safe to delete together with the script.
   ========================================================================== */

/* The site stays in place underneath but cannot be scrolled while the screen is up. */
html.has-announcement,
html.has-announcement body { overflow: hidden; }

.announcement {
  position: fixed;
  inset: 0;
  z-index: 200; /* above everything on the page, including the menu drawer */
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 32px 24px 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.announcement__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin: auto; /* centers vertically, scrolls when the screen is short */
  animation: announcement-in .9s var(--ease) both;
}

@keyframes announcement-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.announcement__logo { width: min(460px, 78vw); height: auto; }

.announcement__text {
  margin: clamp(28px, 5vh, 48px) 0 clamp(28px, 5vh, 44px);
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .announcement__text span { display: block; }
}

.announcement__signup { width: 100%; text-align: left; }
.announcement__label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.announcement__signup .brevo-form__success { color: var(--paper); text-align: center; }

.announcement__legal {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 24px;
}
.announcement__legal a {
  color: var(--paper);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
}
.announcement__legal a:hover { text-decoration-color: currentColor; }

.announcement :focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .announcement__inner { animation: none; }
}
