:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --cloth-width: min(86vw, 1060px);
  --cloth-height: clamp(136px, 22vw, 270px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #000;
}

.page {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: 1fr auto;
}

.stage {
  min-height: 74svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 76px) clamp(18px, 5vw, 64px) clamp(10px, 2vw, 24px);
}

.cloth-wrap {
  width: var(--cloth-width);
  height: var(--cloth-height);
  display: grid;
  place-items: center;
  position: relative;
  filter: drop-shadow(0 12px 22px rgba(255, 255, 255, 0.08));
  animation: cloth-float 7s ease-in-out infinite;
}

.cloth {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.newsletter {
  width: min(92vw, 620px);
  margin: 0 auto;
  padding: 0 0 clamp(34px, 7vw, 72px);
  position: relative;
  z-index: 3;
  text-align: center;
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.signup input,
.signup button {
  min-height: 50px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 0;
  font: inherit;
}

.signup input {
  width: 100%;
  min-width: 0;
  padding: 0 15px;
  color: var(--ink);
  background: #000;
  outline: none;
}

.signup input:focus {
  border-color: rgba(243, 240, 232, 0.72);
}

.signup button {
  padding: 0 20px;
  color: #10110f;
  background: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.note {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: rgba(243, 240, 232, 0.66);
  font-size: 0.88rem;
  text-align: left;
}

@keyframes cloth-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 700px) {
  :root {
    --cloth-width: min(94vw, 620px);
    --cloth-height: clamp(104px, 28vw, 160px);
  }

  .stage {
    min-height: 66svh;
    padding-top: 24px;
  }

  .signup-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .signup button {
    width: 100%;
  }
}
