* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #121014;
  color: #fff;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Segoe UI", Meiryo, sans-serif;
  line-height: 1.7;
}

/* The art stays fully visible: the logo and both faces are the page's hero. */
.art {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  aspect-ratio: 1;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .55) 22%, #000 48%);
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .55) 22%, #000 48%);
}

main {
  position: relative;
  width: min(440px, 100%);
  margin-left: clamp(24px, 7vw, 120px);
  padding: 32px 0;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

p { margin: 0; color: #cfcbd2; word-break: keep-all; overflow-wrap: anywhere; }

form {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

form[hidden] { display: none; }

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #5c5660;
  border-radius: 8px;
  background: #1f1b22;
  color: #fff;
  font: inherit;
}

input::placeholder { color: #9b95a0; }

button {
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #d30032;
  color: #fff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

button:hover { background: #ec0a40; }
button:disabled { opacity: .6; cursor: wait; }

:is(input, button, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#status { margin-top: 12px; min-height: 1.7em; color: #fff; }

nav {
  display: flex;
  gap: 8px;
  margin: 20px 0 0 -10px;
}

nav a { display: block; padding: 10px; opacity: .75; }
nav a:hover { opacity: 1; }
nav img { display: block; width: 72px; height: 72px; }

/* Narrow screens: art on top, fading into the form below it. */
@media (max-width: 860px), (max-aspect-ratio: 5/4) {
  body { display: block; }

  .art {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
  }

  main {
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 16px 32px;
  }

  h1 { font-size: 26px; }
}
