/* Responsive foundation: phone-first sizing, desktop enhancements only at the breakpoint. */
header {
  height: 48px;
  padding: 0 16px;
}

main {
  width: 100%;
  max-width: 960px;
  padding: 24px 16px 36px;
}

.hero-grid,
.hero-grid .question {
  display: block;
  max-width: none;
}

.hero-grid {
  margin-bottom: 32px;
}

.hero-grid .intro {
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-grid .intro h1 {
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.02;
  letter-spacing: -2.4px;
}

.question-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.question-heading h2 {
  font-size: 18px;
  white-space: normal;
}

.hero-grid .question > div:nth-of-type(2) select,
.hero-grid .question > div:nth-of-type(3) .number-input,
.hero-grid .question > div:nth-of-type(3) button {
  min-height: 44px;
}

.hero-grid .question > div:nth-of-type(2) select {
  width: 100%;
  max-width: none;
}

.hero-grid .question > div:nth-of-type(2),
.hero-grid .question > div:nth-of-type(3) {
  margin-bottom: 12px;
}

.hero-grid .question > div:nth-of-type(3) .question-row {
  gap: 8px;
}

.hero-grid .question > div:nth-of-type(3) .number-input {
  width: auto;
  flex: 1;
}

.hero-grid .question > div:nth-of-type(3) button {
  padding: 0 14px;
}

.place {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 16px 0;
}

.place-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (min-width: 800px) {
  main {
    padding: 48px 24px 56px;
  }

  .hero-grid {
    margin-bottom: 44px;
  }

  .hero-grid .intro {
    margin-bottom: 28px;
  }

  .hero-grid .intro h1 {
    font-size: 52px;
  }

  .hero-grid .question {
    display: grid;
    grid-template-columns: 220px minmax(0, 400px);
    max-width: 640px;
    gap: 0 18px;
  }

  .hero-grid .question > div:nth-of-type(2),
  .hero-grid .question > div:nth-of-type(3) {
    margin-bottom: 0;
  }

  .hero-grid .question > div:nth-of-type(2) select,
  .hero-grid .question > div:nth-of-type(3) .number-input,
  .hero-grid .question > div:nth-of-type(3) button {
    min-height: 38px;
    height: 38px;
  }

  .place {
    grid-template-columns: 150px minmax(280px, 1fr) 225px;
    gap: 14px;
  }

  .place-stats {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}
