:root {
  color: #2d2926;
  background: #fff8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 225, 194, 0.9) 0, transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(217, 238, 228, 0.9) 0, transparent 30%),
    #fff8f0;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1rem;
}

.welcome-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 7vw, 4.75rem);
  border: 1px solid rgba(116, 79, 51, 0.14);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1.5rem 4rem rgba(103, 71, 44, 0.12);
  text-align: center;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: #a7472c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #3d3029;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.intro {
  max-width: 31rem;
  margin: 1.5rem auto 2.25rem;
  color: #65584f;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.65;
}

.greeting-form {
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.55rem;
  color: #3d3029;
  font-size: 0.9rem;
  font-weight: 700;
}

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

input,
button {
  min-height: 3.2rem;
  border-radius: 0.8rem;
  font: inherit;
}

input {
  min-width: 0;
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #b9a79a;
  color: #2d2926;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #75685f;
}

input:hover {
  border-color: #8f7c70;
}

input:focus {
  border-color: #2d8170;
  box-shadow: 0 0 0 1px #2d8170;
  outline: none;
}

button {
  padding: 0.8rem 1.15rem;
  border: 0;
  color: #fff;
  background: #a7472c;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  background: #87351f;
  box-shadow: 0 0.45rem 1rem rgba(135, 53, 31, 0.2);
}

button:active {
  background: #712b1a;
  box-shadow: none;
  transform: translateY(1px);
}

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

.greeting-message {
  min-height: 1.6em;
  margin: 1.75rem 0 0;
  color: #246b5d;
  font-weight: 700;
  line-height: 1.5;
}

.footer-note {
  margin: 1.5rem 0 0;
  color: #6e6056;
  font-size: 0.85rem;
}

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

  .welcome-card {
    border-radius: 1.35rem;
  }

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

  button {
    width: 100%;
  }
}

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