:root {
  color-scheme: light;
  --cream: #faf7f0;
  --forest: #263f32;
  --sage: 113, 131, 107;
  --tint-opacity: .13;
  --overlay-delay: 2s;
  --form-position: 56svh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--forest);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { min-height: max(100svh, 480px); position: relative; isolation: isolate; }
.scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: var(--cream); }
.artwork { position: absolute; inset: 0; }
.background, .overlay { position: absolute; inset: 0; display: block; }
.background::after { content: ""; position: absolute; inset: 0; background: rgba(var(--sage), var(--tint-opacity)); }
.coffee, .overlay img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.overlay { pointer-events: none; }
.signup-position {
  width: min(100%, 488px);
  margin-inline: auto;
  padding: max(var(--form-position), calc(100vw * .735 + 24px), 280px) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.controls { display: flex; gap: 8px; width: 100%; }
input, button { font: inherit; color: inherit; }
#email, button {
  height: 52px;
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: 0 0 0 1px rgba(38,63,50,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#email { width: 0; min-width: 0; flex: 1; padding: 0 24px; font-size: 16px; font-weight: 300; }
#email::placeholder { color: rgba(255,255,255,.7); opacity: 1; }
button { width: 52px; flex: 0 0 52px; display: grid; place-items: center; cursor: pointer; transition: background .18s ease; }
button:hover { background: rgba(255,255,255,.1); }
button:active { background: rgba(255,255,255,.15); }
:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 3px; }
#email[aria-invalid="true"] { border-color: #7d362b; }
button:disabled { cursor: wait; opacity: .55; }
.message { margin: 12px 0 0; min-height: 4.5em; line-height: 1.5; font-size: .875rem; max-width: 100%; }
.message:not(:empty) { display: block; background: rgba(250,247,240,.9); padding: 10px 12px; border-radius: 6px; }
.message[data-state="error"] { color: #702e24; }
.message[data-state="test"] { font-weight: 600; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-script { font-size: .875rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .overlay { animation: overlay-arrive 0s step-end both; animation-delay: var(--overlay-delay); }
  @keyframes overlay-arrive { from { opacity: 0; } to { opacity: 1; } }
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  #email, button { background: rgba(255,255,255,.12); }
}
@media (min-width: 900px) {
  .page { min-height: max(100svh, 560px); }
  .artwork { left: 10vw; right: auto; width: min(58vw, calc(max(100svh, 560px) * .563)); }
  .background { mask-image: linear-gradient(to right, transparent, #000 12%, #000 85%, transparent); }
  .coffee, .overlay img { object-fit: contain; object-position: center bottom; }
  .signup-position { width: min(40vw, 500px); margin: 0 7vw 0 auto; padding: max(var(--form-position), 300px) 0 48px; }
}
@media (min-width: 600px) and (max-height: 550px) {
  .page { min-height: 480px; }
  .artwork { left: 6vw; right: auto; width: min(45vw, 270px); }
  .background { mask-image: linear-gradient(to right, transparent, #000 12%, #000 85%, transparent); }
  .coffee, .overlay img { object-fit: contain; object-position: center top; }
  .signup-position { width: 44%; margin: 0 5% 0 auto; padding: 270px 0 40px; }
}
