@font-face {
  font-family: Cormorant;
  src: url('/assets/serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #081a29;
  color: #f7eee9;
  font: 100%/1.5 Manrope, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
button, input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: #d8c5df; color: #102330; }

.water {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 61% -27%, #849cca7d 0, #526d9c48 29%, transparent 58%),
    radial-gradient(ellipse at 83% 94%, #44406337, transparent 46%),
    radial-gradient(ellipse at 30% 52%, #20334f 0, #162a43 34%, #0d1e33 68%, #080f1f 100%);
}
.water .bubble-field { opacity:.51; }

.entrance {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(2.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(3.2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
.window {
  --arch: 50% 50% 1rem 1rem / 9.4rem 9.4rem 1rem 1rem;
  position: relative;
  width: min(100%, 27.8rem);
  padding: 3.4rem clamp(1.6rem, 5.5vw, 3.65rem) 2.5rem;
  border: 1px solid transparent;
  border-radius: var(--arch);
  background:
    radial-gradient(ellipse at 45% -8%, #254556 0, #162f42 31%, #102839 59%, #0c2131 100%) padding-box,
    linear-gradient(132deg, #e6d4c8aa 0, #9bb3c585 18%, #6c8fa455 46%, #8b8ba36b 76%, #d0b6be88) border-box;
  box-shadow: 0 1.6rem 5.7rem #010a1745, inset 0 0 3rem #9ebdc108;
}
.window::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 5px;
  border: 1px solid #c3b9cb23;
  border-radius: 50% 50% .75rem .75rem / 9.1rem 9.1rem .75rem .75rem;
}
.blackheart-crown {
  position: absolute;
  left: 50%; top: 0;
  width: 3.2rem; height: auto;
  transform: translate(-50%, -47%);
  filter: drop-shadow(0 .12rem .12rem #05101b) drop-shadow(0 0 .55rem #d6c9e03d);
}
header { text-align: center; }
.entrance-brand {
  margin: 0 0 .3rem;
  color: #ede2e9;
  font-size: 1rem; line-height: 1.25; font-weight: 550; letter-spacing: .045em;
}
.membership {
  display: flex; align-items: center; justify-content: center; gap: .85rem;
  margin: 0 0 1.25rem;
  font-size: .875rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: #dfcfd9;
}
.membership::before, .membership::after {
  content: ''; width: 1.6rem; height: 1px;
  background: linear-gradient(90deg, transparent, #bfabbb91);
}
.membership::after { transform: rotate(180deg); }
h1 {
  margin: 0; color: #fbf1e9;
  font: 500 clamp(3.65rem, 6vw, 4.65rem)/.87 Cormorant, 'Iowan Old Style', Georgia, serif;
  letter-spacing: -.045em;
}
.atlantis-title {
  display: block;
  margin-top: .52rem;
  color: #eedfef;
  font: 400 clamp(3rem, 6vw, 4.45rem)/1 var(--display);
  font-synthesis: none;
  letter-spacing: .025em;
  white-space: nowrap;
}
form { margin: 2rem auto 0; }
label { display: block; margin-bottom: .5rem; color: #f0e8e9; font-size: 1rem; }
.login-message { margin: .8rem 0 0; color: #f0e8e9; font-size: .9rem; }
#visitor-name, .verify {
  display: block; width: 100%; min-height: 3.15rem;
  border-radius: .55rem;
}
#visitor-name-hint { margin-top:.7rem; }
:is(button,.access-actions a):focus-visible { outline: 2px solid #e9d1e5; outline-offset: 4px; }
.verify {
  margin-top: .8rem; padding: .7rem 1rem;
  border: 1px solid #f8e8ffbc; color: var(--button-ink);
  background: var(--button-petals);
  font-weight: 650; cursor: pointer;
  box-shadow: 0 2px 15px #05162436; transition: box-shadow .2s, filter .2s;
}
.verify:hover { filter: brightness(1.055); box-shadow: 0 0 1rem #e6cbe430; }
.access-window .entrance-brand { margin-bottom:.85rem; }
.access-message {
  margin-top:1.45rem; padding-top:1.15rem; border-top:1px solid #d7c4ce42; text-align:center;
}
.access-message h2 { margin:0 0 .35rem; font:600 clamp(1.55rem,4.8vw,1.85rem)/1.04 Cormorant, Georgia, serif; }
.access-message p { margin:0; color:#e4d8e1; font-size:.94rem; text-wrap:pretty; }
.access-actions { display:grid; grid-template-columns:minmax(0,.58fr) minmax(0,1fr); gap:.65rem; margin-top:1.2rem; }
.access-actions a {
  display:grid; place-items:center; min-height:3.15rem; margin:0; padding:.62rem .42rem;
  border-radius:.55rem; text-align:center; text-decoration:none; text-transform:uppercase;
  font-size:.8rem; font-weight:650; letter-spacing:.05em;
}
.access-back { border:1px solid #c1a9c070; color:#f3e6ee; background:#dcbde314; }
.access-back:hover { border-color:#e9cfe4; background:#dcbde324; }
.motion {
  position: fixed; z-index: 1;
  right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border-radius: 50%; border: 1px solid #cfdae437; background: #102638a1; color: #dddae4; cursor: pointer;
}
.motion:hover { border-color: #e8d3e97d; }
.motion-glyph { width: 10px; height: 12px; border-left: 2px solid; border-right: 2px solid; }
.motion.paused .motion-glyph { width: 0; height: 0; margin-left: 2px; border: 6px solid transparent; border-right: 0; border-left: 9px solid; }
@media (max-width: 420px) {
  .window { padding: 2.9rem 1.7rem 2.1rem; }
  .atlantis-title { letter-spacing: .035em; }
  form { margin-top: 1.8rem; }
}
@media (max-height: 640px) {
  .entrance { padding-block: 1.7rem 2rem; }
  .window { padding-top: 2.5rem; padding-bottom: 1.8rem; }
  h1 { font-size: 3.2rem; }
  .atlantis-title { font-size: 3.05rem; margin-top: .35rem; }
  .membership { margin-bottom: 1rem; }
  form { margin-top: 1.45rem; }
}
@media (max-width: 340px) {
  .window { padding-inline: 1.3rem; }
  .atlantis-title { font-size: 2.85rem; }
  .access-actions { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .verify { transition: none; }
}
