:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #171a1f;
  background: #fbfcfe;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fbfcfe;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #fbfcfe;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 3rem 1.5rem;
}

.hero {
  width: min(100%, 40rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #657083;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #11151b;
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.intro {
  max-width: 31rem;
  margin: 1.5rem auto 0;
  color: #667080;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.greeting-form {
  max-width: 30rem;
  margin: 3rem auto 0;
  text-align: left;
}

.greeting-form label {
  display: block;
  margin-bottom: 0.6rem;
  color: #303844;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

.form-row {
  display: flex;
  gap: 0.65rem;
}

input,
button {
  min-height: 3rem;
  border-radius: 0.6rem;
  font: inherit;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cbd2dc;
  padding: 0.7rem 0.9rem;
  color: #171a1f;
  background: #fff;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #8993a1;
}

input[aria-invalid="true"] {
  border-color: #b42318;
}

button {
  border: 1px solid #2459c4;
  padding: 0.7rem 1.1rem;
  color: #fff;
  background: #2459c4;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 160ms ease, transform 160ms ease;
}

button:hover {
  background: #19479f;
}

button:active {
  transform: translateY(1px);
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #a9c7ff;
  outline-offset: 3px;
}

input:focus-visible {
  border-color: #2459c4;
}

.form-message {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: #b42318;
  font-size: 0.875rem;
  line-height: 1.5;
}

.success-note {
  margin: 2.5rem 0 0;
  color: #667080;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 30rem) {
  .page-shell {
    padding: 2.25rem 1rem;
  }

  .hero {
    width: 100%;
  }

  .intro {
    margin-top: 1.25rem;
  }

  .greeting-form {
    margin-top: 2.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
