* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f4f4f4;
  color: #1f1f1f;
}

.app {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1 {
  margin: 0 0 24px;
  font-size: 2rem;
}

.intro {
  margin-bottom: 24px;
  color: #424242;
}

.intro p {
  margin: 0;
  line-height: 1.5;
}

.intro p + p {
  margin-top: 12px;
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.options {
  display: grid;
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea,
select,
button {
  font: inherit;
}

textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 320px;
}

select:disabled {
  background: #ebebeb;
  color: #6b6b6b;
}

button {
  justify-self: start;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #000;
}

button:disabled,
textarea:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.error {
  margin: 0;
  color: #b00020;
}

.results {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.status {
  margin: 0;
}

.result-group {
  display: grid;
  gap: 12px;
}

.result-group h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-caption {
  margin: 8px 0 0;
  color: #1f1f1f;
  font-size: 0.95rem;
}

.text-list {
  margin: 0;
  padding-left: 20px;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #424242;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
}

@media (min-width: 720px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
