:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff3e1;
  background: #0a1622;
}

* { box-sizing: border-box; }
body { margin: 0; }
.scene {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-repeat: no-repeat;
}
.entry {
  justify-items: center;
  align-items: end;
  padding: clamp(1rem, 5vw, 3rem);
  padding-bottom: max(clamp(2rem, 10vh, 6rem), env(safe-area-inset-bottom));
  background-image: linear-gradient(180deg, #0a142514, #060e1e45), url("vilagitotorony.webp");
  background-position: 70% center;
}
.card {
  width: min(100%, 25rem);
  padding: clamp(1.3rem, 5vw, 2.45rem);
  background: #081b2beb;
  border: 1px solid #ca954b;
  border-radius: 1.15rem;
  box-shadow: 0 1rem 3.5rem #0007;
}
h1 { margin: 0; font: 400 clamp(2.6rem, 7vw, 4.65rem)/1.06 Georgia, serif; }
.card h1 { margin-bottom: 1.45rem; text-align: center; }
form { display: grid; gap: .55rem; }
label { font-weight: 600; }
input, button {
  font: inherit;
  min-height: 2.85rem;
  border-radius: .55rem;
  width: 100%;
}
input {
  background: #102638;
  border: 1px solid #d6a565;
  color: #fff3e1;
  padding: .55rem .8rem;
}
button {
  margin-top: .55rem;
  background: #a02431;
  border: 1px solid #c55560;
  color: #fffaf4;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #b72b39; }
:focus-visible { outline: 2px solid #ffe2a3; outline-offset: 3px; }
.error { margin: .15rem 0 0; color: #ffc0b8; }
.greeting {
  align-items: start;
  padding: max(16vh, env(safe-area-inset-top)) clamp(1.4rem, 9vw, 10rem) 2rem;
  background-image: linear-gradient(140deg, #0714209c, #0714201f 67%), url("/hatter");
  background-position: center;
}
.greeting h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7.6vw, 7.1rem);
  text-wrap: balance;
  text-shadow: 0 .1em .45em #000a;
}
@media (max-aspect-ratio: 4/5) {
  .entry { background-position: 81% center; }
  .greeting { background-position: 73% center; }
  .greeting h1 { max-width: 16ch; font-size: clamp(2.4rem, 11vw, 3.5rem); }
}
