:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  background: #76dbe2;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body { margin: 0; }

.invite-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 56px 24px;
  background: url("/assets/sunova-liquid.png") center / cover no-repeat;
}

.invite-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(10 24 44 / 12%);
}

.invitation {
  display: flex;
  width: min(100%, 440px);
  flex-direction: column;
  align-items: center;
  padding-bottom: 4vh;
}

.brand {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

h1 {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.35px;
  text-align: center;
  text-shadow: 0 1px 12px rgb(0 29 56 / 45%);
}

.invite-field {
  display: flex;
  align-items: center;
  width: min(100%, 372px);
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: rgb(16 29 39 / 88%);
  transition: border-color 160ms ease;
}

.invite-field:focus-within {
  border-color: #c5f8f6;
  outline: 2px solid #c5f8f6;
  outline-offset: 3px;
}

input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.1px;
}

input::placeholder { color: #c1cdd3; opacity: 1; }

button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  padding: 0 21px;
  background: #62636b url("/assets/sunova-liquid.png") center / 140px 140px;
  background-blend-mode: multiply;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
  -webkit-text-fill-color: #fff;
}

button:disabled { cursor: default; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  h1 { font-size: 20px; margin-bottom: 28px; }
  .invitation { padding-bottom: 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  .invite-field { transition: none; }
}
