body:has(#landing:not([hidden])) {
  margin: 0;
  color: white;
  background: #27262c;
  font-family: "IRANSansXFaNum", Arial, sans-serif;
}

main:has(#landing:not([hidden])) {
  box-sizing: border-box;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem 1.5rem;
  position: relative;
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

main:has(#landing[hidden]) .backdrop { display: none; }

#landing, #landing ~ #status {
  width: clamp(18rem, 30.73vw, 33.2rem);
  max-width: 100%;
}

#landing h1 { margin: 0 0 clamp(3rem, 6vw, 6.5rem); }
#landing h1 img { display: block; width: 35%; }

#landing input, #landing button {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: clamp(1rem, 1.39vw, 1.5rem);
  color: white;
  border: 0;
  border-radius: 0;
}

#landing input {
  padding: .4em 0 .6em;
  background: transparent url('/art/underline.svg') left bottom / 100% 2px no-repeat;
}

#landing input::placeholder { color: #999; opacity: 1; }
#landing button {
  min-height: 44px;
  margin-top: clamp(1.75rem, 3.7vw, 4rem);
  padding: .6em;
  background: #4044ed;
  cursor: pointer;
}

#landing :focus-visible { outline: 2px solid #93dfff; outline-offset: 4px; }
#landing button:disabled { cursor: wait; }
#landing:not([hidden]) ~ #status { min-height: 1.5em; margin: .75rem 0 0; }

@media (max-aspect-ratio: 1/1) {
  .backdrop { height: auto; aspect-ratio: 1728 / 1117; bottom: auto; }
  .backdrop.lower { top: auto; bottom: 0; }
}
