/* Signing paused, pending Hive Manifesto 2.0.
   Temporary. Delete this file, its <link>, the .mp-veil block in
   manifesto.html and js/manifesto-paused.js when signing reopens. */

.mp-veil {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;

  /* White and transparent, so the manifesto still reads underneath as the
     thing being rebuilt rather than a page that failed to load. */
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
}

/* Safari before 18 and Firefox before 103 ignore backdrop-filter. Without a
   fallback the page behind stays fully legible and the veil reads as a bug. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mp-veil { background: rgba(255, 251, 234, 0.94); }
}

.mp-window {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--welcome-line, #e8e7e2);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(21, 20, 17, 0.12), 0 2px 8px rgba(21, 20, 17, 0.04);
  padding: 32px 28px;
  text-align: center;
  animation: mp-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.mp-art {
  display: block;
  margin: 0 auto 20px;
}

.mp-art img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.mp-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--color-body, #38362e);
}

.mp-title {
  margin: 0 0 10px;
  font-family: var(--font-heading, "Figtree", sans-serif);
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.02em;
  color: var(--color-ink, #151411);
}

.mp-body {
  margin: 0 0 22px;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 15px;
  line-height: 23px;
  color: var(--color-body, #38362e);
}

.mp-body a {
  color: var(--color-ink, #151411);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-form { margin: 0; }

.mp-label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-heading, "Figtree", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink, #151411);
}

.mp-field {
  display: flex;
  gap: 8px;
}

.mp-input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--welcome-line, #e8e7e2);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 15px;
  color: var(--color-ink, #151411);
}

.mp-input::placeholder { color: #9a978c; }

.mp-input:focus-visible {
  outline: none;
  border-color: var(--color-btn-border, #b5971f);
  box-shadow: 0 0 0 3px rgba(255, 213, 43, 0.35);
}

.mp-input.is-invalid { border-color: #c2483a; }

.mp-submit {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--color-btn-border, #b5971f);
  border-radius: 14px;
  background: var(--color-yellow, #ffd52b);
  color: var(--color-btn-ink, #473c0c);
  font-family: var(--font-heading, "Figtree", sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.mp-submit:hover { filter: brightness(1.04); }
.mp-submit:active { transform: translateY(1px); }

.mp-submit[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
  filter: none;
}

.mp-error {
  margin: 10px 0 0;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 13px;
  line-height: 19px;
  color: #a5392c;
  text-align: left;
}

.mp-error[hidden] { display: none; }

.mp-follow {
  display: inline-block;
  font-family: var(--font-heading, "Figtree", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink, #151411);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-panel[hidden] { display: none; }

/* The only exit. Everything else on the page, nav included, is inert behind
   the veil, so without this the page is a dead end. */
.mp-home {
  display: inline-block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--welcome-line, #e8e7e2);
  width: 100%;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 14px;
  color: var(--color-body, #38362e);
  text-decoration: none;
  transition: color 160ms ease;
}

.mp-home::before {
  content: "\2190";
  margin-right: 6px;
}

.mp-home:hover { color: var(--color-ink, #151411); }

.mp-home:focus-visible {
  outline: 2px solid var(--color-btn-border, #b5971f);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 480px) {
  .mp-veil { padding: 16px; align-items: flex-start; }
  .mp-window { padding: 24px 20px; border-radius: 24px; }
  .mp-title { font-size: 21px; line-height: 27px; }

  /* Stacked, because a 46px field and a button side by side on a narrow
     screen leaves the input too small to read what you typed. */
  .mp-field { flex-direction: column; }
  .mp-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-window { animation: none; }
  .mp-submit { transition: none; }
}
