*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

@font-face {
  font-family: "Advercase";
  src: url("/fonts/AdvercaseFont-Demo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  width: 100%;
  background: #000;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: transparent;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.05) saturate(0.85);
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 24px;
  gap: 3vh;
}

.brand {
  text-align: center;
}

.headline {
  display: inline-block;
  pointer-events: none;
  line-height: 0;
  max-width: 100%;
}

.headline svg,
.headline canvas {
  display: block !important;
  /* Crop only the obvious empty padding Penflow reserves above/below glyphs */
  /* (Penflow canvas height = size * 1.7, glyphs occupy ~60-65% centered) */
  margin: -6% 0 -6% !important;
  max-width: 100% !important;
  height: auto !important;
}

.manifesto {
  width: 100%;
  font-family: "Advercase", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: #fff;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.signup {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.manifesto p + p {
  margin-top: 1.1em;
}

.cta,
.email,
.done {
  width: 100%;
  height: 56px;
  line-height: 54px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  vertical-align: middle;
}

.cta,
.done {
  font-size: 13px;
}

.email {
  font-size: 16px;
  outline: none;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: none;
}

.cta {
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.cta:hover,
.cta:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.email::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}

.email.invalid { border-color: #ff3b30; }

.done { cursor: default; }

@media (max-width: 480px) {
  .content {
    padding: 6vh 20px 3vh;
    gap: 4vh;
  }
  .manifesto {
    font-size: 14px;
    line-height: 1.55;
  }
}
