:root {
  color-scheme: dark;
  --cream: #f6ead9;
  --muted: #b8c1d1;
  font-family: "Nunito", ui-rounded, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--cream);
  background: #121726;
}
* { box-sizing: border-box; }
body { margin: 0; }
p, h1 { margin: 0; }
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 28%, #b0887b13, transparent 28%),
    radial-gradient(ellipse at 7% 58%, #51405e30, transparent 43%),
    radial-gradient(ellipse at 95% 70%, #31456844, transparent 40%),
    linear-gradient(155deg, #121726 2%, #1c2438 62%, #151b2b);
}
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  text-align: center;
}
main { display: grid; justify-items: center; width: 100%; }
.emblem {
  width: 116px;
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
}
.emblem::before, .emblem::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22%;
  pointer-events: none;
  opacity: .24;
  animation: rim-glow 8.4s ease-in-out infinite;
}
.emblem::before {
  background: radial-gradient(ellipse 25% 22% at 25% 26%, #f3b9caa6, #f8c9c731 47%, transparent);
}
.emblem::after {
  background: radial-gradient(ellipse 26% 24% at 75% 74%, #f6dfbdd6, #f4c6b842 45%, transparent);
  animation-duration: 10.7s;
  animation-delay: -5s;
}
.emblem img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@keyframes rim-glow {
  0%, 34%, 88%, 100% { opacity: .18; }
  61% { opacity: .68; }
}
h1 {
  margin-top: clamp(18px, 3vh, 28px);
  font-size: clamp(1.58rem, 7.55vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.044em;
  text-wrap: balance;
}
h1 span { display: block; }
.intro {
  max-width: 33ch;
  margin-top: clamp(10px, 1.6vh, 18px);
  font-size: clamp(1rem, 1.45vw, 1.1875rem);
  line-height: 1.5;
  color: var(--muted);
}
form {
  width: min(100%, 520px);
  margin-top: clamp(20px, 3.7vh, 38px);
  padding: clamp(18px, 3.1vw, 26px);
  border: 1px solid rgba(246, 234, 217, .14);
  border-radius: 20px;
  background: rgba(25, 33, 52, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 #fff5e707, 0 14px 38px #090e1a3d;
}
#prompt { font-size: 1rem; font-weight: 700; line-height: 1.45; }
#prompt span { color: #d3c6c1; font-weight: 600; }
.fields { display: grid; gap: 10px; margin-top: 16px; }
.email-field { display: flex; align-items: center; position: relative; min-width: 0; }
.email-field svg { position: absolute; left: 15px; width: 18px; color: #99a4b7; pointer-events: none; }
input[type=email], button {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font: inherit;
}
input[type=email] {
  padding: 10px 12px 10px 43px;
  border: 1px solid #8e9aaf44;
  background: #101625bf;
  color: var(--cream);
  font-size: 1rem;
}
input::placeholder { color: #aab3c3; opacity: 1; }
button {
  border: 1px solid #fff0d9;
  padding: 10px 22px;
  background: var(--cream);
  color: #151a28;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid #eac9ad;
  outline-offset: 3px;
}
@media (hover: hover) {
  button:enabled:hover { transform: translateY(-1px); background: #fff3e3; box-shadow: 0 4px 16px #f6ead919; }
  nav a:hover { color: var(--cream); transform: translateY(-2px); }
}
button:enabled:active { transform: translateY(1px); }
button:disabled { opacity: .72; cursor: default; }
form[aria-busy=true] button { cursor: progress; }
#feedback { font-size: .93rem; line-height: 1.5; color: #e5dbd0; }
#feedback:not(:empty) { margin-top: 14px; }
#feedback[data-state=error] { color: #ffd0d9; }
footer { margin-top: clamp(20px, 4vh, 44px); }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, #dcc6ac4a);
}
.divider::after { transform: rotate(180deg); }
.divider i { width: 7px; height: 7px; background: #e0c6ab; clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); }
nav { display: flex; justify-content: center; gap: clamp(2px, .5vw, 7px); margin-top: 9px; }
nav a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #a7b1c4;
  transition: color .2s, transform .2s;
}
nav svg { display: block; width: 21px; height: 21px; }
footer p { margin-top: 3px; font-size: .84rem; color: #a0aabd; }
@media (min-width: 640px) {
  .emblem { width: 144px; }
  nav svg { width: 22px; height: 22px; }
  h1 { font-size: clamp(2.85rem, 4.6vw, 4.25rem); }
  .intro { max-width: none; }
  .fields { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 639px) and (max-height: 690px) {
  .page { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .intro { max-width: 39ch; }
  h1 { margin-top: 16px; }
  form { margin-top: 16px; padding: 15px; }
  .fields { margin-top: 12px; }
  footer { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
