/* This teaser keeps its night palette in either system theme. */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --surface: #111115;
  --fg: #f2f1f5;
  --muted: #aaa8b5;
  --accent: #00c8ff;
  --on-accent: #05212b;
  --focus: #7fdfff;
  --warn: #ffb4a8;
  --control-line: #777582;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scrollbar-color: var(--control-line) var(--bg);
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  font: var(--text-body)/var(--leading) var(--font-body);
  isolation: isolate;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.atmosphere {
  position: absolute;
  inset: 0 0 auto;
  min-height: 100svh;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 52%, #004d62 0, transparent 42%),
    radial-gradient(ellipse at 95% 100%, #382057 0, transparent 46%),
    radial-gradient(ellipse at 75% 110%, #662516 0, transparent 36%), var(--bg);
}
canvas {
  mask-image: linear-gradient(to right, transparent 37%, #000 62%);
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}
canvas.ready {
  opacity: 1;
}
header,
footer {
  padding: var(--space-6) clamp(24px, 5vw, 80px);
}
header {
  display: flex;
  align-items: center;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
.brand {
  display: inline-flex;
  min-height: var(--target);
  align-items: center;
}
.brand img {
  width: 128px;
  height: 44px;
  object-fit: contain;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-8) clamp(24px, 8vw, 128px);
}
.invitation {
  width: min(100%, 590px);
}
h1 {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.75rem, 7.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.intro {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 0 var(--space-7);
}
form {
  max-width: 520px;
  min-height: 156px;
}
label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.form-row {
  display: flex;
  gap: var(--space-3);
}
input.input {
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: var(--space-4);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  caret-color: var(--accent);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
button.btn {
  flex-shrink: 0;
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  border: 0;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 var(--text-body)/1.5 var(--font-body);
  cursor: pointer;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast) var(--ease-out);
}
button:hover {
  background: #7fdfff;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: wait;
  background: #84d8ee;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
#feedback {
  min-height: 3.2em;
  margin: var(--space-4) 0 0;
  color: var(--fg);
  max-width: 42ch;
}
#feedback[role='alert'] {
  color: var(--warn);
}
.honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  color: var(--muted);
  font-size: var(--text-small);
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
footer a:hover {
  color: var(--fg);
}
.noscript {
  color: var(--warn);
}
@media (max-width: 600px) {
  header,
  footer {
    padding: var(--space-5);
  }
  main {
    padding: 260px var(--space-5) var(--space-5);
    align-items: flex-end;
  }
  h1 {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }
  .intro {
    font-size: 1rem;
    margin-bottom: var(--space-6);
  }
  canvas {
    mask-image: linear-gradient(
      to bottom,
      transparent 48px,
      #000 120px,
      #000 370px,
      transparent 516px
    );
  }
  form {
    min-height: 224px;
  }
  .form-row {
    flex-direction: column;
  }
  button.btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.btn {
    transition: none;
  }
}
