/* The gate's own styles: the site's Night palette and type, nothing from the site itself. */
:root {
  --bg: #0d0e11;
  --fg: #ede7db;
  --muted: #a39d92;
  --accent: #e0a83e;
  --error: #ff8a63;
  --line: rgba(237, 231, 219, 0.18);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: grid;
  align-items: center;
}
.gate {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) var(--gutter);
  display: grid;
  gap: 22px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 220;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(64px, 14vw, 196px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.lede {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
}
.form {
  margin-top: clamp(12px, 3vh, 36px);
  max-width: 560px;
  display: grid;
  gap: 10px;
}
.label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field {
  display: flex;
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.field:focus-within {
  border-color: var(--fg);
}
.gate[data-tone='error'] .field {
  border-color: var(--error);
}
input {
  flex: 1;
  min-width: 0;
  font: 300 clamp(26px, 3.2vw, 38px) / 1.2 var(--font-display);
  letter-spacing: 0.04em;
  color: var(--fg);
  background: none;
  border: 0;
  padding: 10px 0 12px;
  outline: none;
}
input:disabled {
  color: var(--muted);
}
button {
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  border: 0;
  padding: 14px 0;
  cursor: pointer;
  transition: background-size 0.35s var(--ease-out), color 0.3s;
}
button:hover,
button:focus-visible {
  background-size: 100% 1px;
}
button:disabled {
  color: var(--muted);
  cursor: progress;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus-visible {
  outline: none;
}
.msg {
  min-height: 1.5em;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.gate[data-tone='error'] .msg,
.msg.is-error {
  color: var(--error);
}
.foot {
  margin: clamp(24px, 6vh, 72px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
}
.quiet {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}
a.quiet {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.3s;
}
a.quiet:hover,
a.quiet:focus-visible {
  background-size: 100% 1px;
  color: var(--fg);
}
@media (prefers-reduced-motion: no-preference) {
  .gate > * {
    animation: rise 0.9s var(--ease-out) both;
  }
  .gate > :nth-child(2) {
    animation-delay: 60ms;
  }
  .gate > :nth-child(3) {
    animation-delay: 120ms;
  }
  .gate > :nth-child(4) {
    animation-delay: 180ms;
  }
  .gate > :nth-child(5) {
    animation-delay: 240ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
  .gate[data-tone='error'] .field {
    animation: nudge 0.4s var(--ease-out);
  }
  @keyframes nudge {
    25% {
      transform: translateX(-6px);
    }
    60% {
      transform: translateX(4px);
    }
  }
}
