:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #ffdaec, #ffd1a1 65%);
  color: #2d1e34;
}

.app {
  width: min(92vw, 680px);
  padding: 2rem;
  background: #fff8fb;
  border: 4px solid #ff8ac2;
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgb(45 30 52 / 18%);
}

h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.question-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

input {
  flex: 1 1 260px;
  padding: 0.8rem 0.9rem;
  border: 2px solid #ff8ac2;
  border-radius: 0.8rem;
  font-size: 1rem;
}

button {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.8rem;
  background: #ff3d90;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgb(255 61 144 / 35%);
}

.answer-card {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffeaf5;
  border: 2px dashed #ff8ac2;
}

.answer-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.answer-card p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
