@font-face {
  font-family: "EB Garamond";
  src: url("/assets/waitlist/eb-garamond-latin.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Telex;
  src: url("/assets/waitlist/telex-latin.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f3;
  --ink: #111;
  --muted: rgba(51, 51, 51, 0.6);
  background: var(--paper);
  color: var(--ink);
  font-family: Telex, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 32px 24px; }
.waitlist { width: 420px; max-width: 100%; text-align: center; }
.artwork { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
h1 { font-family: "EB Garamond", Georgia, serif; font-size: 44px; font-weight: 700; line-height: 1.1; margin: 8px -12px; }
form { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 4px 8px; }
input, button { font: 400 16px/1.1 Telex, sans-serif; border-radius: 0; min-width: 0; height: 48px; }
input { width: 100%; padding: 0 12px; border: 1px solid #333; color: var(--ink); background: transparent; }
input::placeholder { color: var(--muted); opacity: 1; }
button { cursor: pointer; background: #000; color: #fff; border: 1px solid #000; padding: 0 4px; }
button:hover { background: #333; }
input:focus-visible, button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.note { grid-column: 1; margin: 0; font-size: 12px; line-height: 1.1; color: var(--muted); }
.error { grid-column: 1 / -1; margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: #a32222; }
.email-suggestion { grid-column: 1 / -1; min-width: 0; text-align: left; font-size: 14px; line-height: 1.4; }
.email-suggestion:not(:has(p:not([hidden]))) { display: none; }
.email-suggestion p { margin: 4px 0 8px; overflow-wrap: anywhere; }
.email-suggestion button { display: inline; height: auto; max-width: 100%; border: 0; padding: 4px 0; background: transparent; color: var(--ink); font: inherit; text-decoration: underline; overflow-wrap: anywhere; text-align: left; }
.email-suggestion button:hover { color: #555; }
.success h1 { margin: 0 -16px; font-size: 48px; }
.confirmation { margin: 26px -16px 0; font: 700 18px/1.1 "EB Garamond", Georgia, serif; color: rgba(17, 17, 17, 0.9); }
.visually-hidden, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .waitlist { width: 300px; }
  h1 { font-size: 32px; margin: 8px -12px; }
  form { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .note { margin-top: -8px; }
  .success h1 { font-size: 36px; }
  .confirmation { margin-top: 18px; }
}

@media (max-width: 350px) {
  h1 { font-size: 28px; margin-left: 0; margin-right: 0; }
  .success h1 { font-size: 30px; margin-left: 0; margin-right: 0; }
  .confirmation { margin-left: 0; margin-right: 0; }
}