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

body {
  background: #111;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

main {
  width: 100%;
  max-width: 560px;
}

/* Location picker */
#location-picker {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.loc-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.loc-btn:hover {
  color: #888;
}

.loc-btn.active {
  color: #aaa;
}

/* Current conditions */
#current {
  text-align: center;
  margin-bottom: 2.5rem;
}

#temp {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

#symbol-label {
  font-size: 1rem;
  font-weight: 300;
  color: #aaa;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

#details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.detail {
  text-align: center;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 300;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-top: 0.2rem;
}

/* Forecast strip */
#forecast {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  margin: 0 auto;
  border-top: 1px solid #222;
  padding-top: 1.5rem;
}

.fc-item {
  text-align: center;
}

.fc-time {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.06em;
}

.fc-icon {
  font-size: 1.5rem;
  margin: 0.3rem 0;
  line-height: 1;
}

.fc-temp {
  font-size: 1rem;
  font-weight: 300;
  color: #ccc;
}

/* Error / loading */
#status {
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  font-weight: 300;
}
