* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
  line-height: 1.5;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.status {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}

.status[data-state="loading"],
.status[data-state="message"] {
  color: #666;
  padding: 40px;
}

.status[data-state="error"] {
  color: #c62828;
  padding: 20px;
  background: #ffebee;
  border-radius: 8px;
}

.weather-list {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.weather-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-card .date {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.weather-card .city {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.weather-card .country {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 4px;
}

.weather-card .weather {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.weather-card .temps {
  display: flex;
  gap: 20px;
  font-size: 1.1rem;
}

.weather-card .high {
  color: #d32f2f;
}

.weather-card .low {
  color: #1976d2;
}

.weather-card .unavailable {
  color: #6b6b6b;
  font-style: italic;
}

@media (min-width: 600px) {
  .weather-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
  }

  body {
    padding: 30px;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (min-width: 900px) {
  .weather-list {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}
