* {
  box-sizing: border-box;
}

:root {
  --background: #f4f5f7;
  --card: #ffffff;
  --text: #16181d;
  --muted: #727781;
  --border: #e7e8eb;
  --soft: #f7f8fa;
  --accent: #111318;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(1000px, 92%);
  margin: auto;
  padding: 55px 0 60px;
}

.hero {
  text-align: center;
  margin-bottom: 35px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 70px);
  letter-spacing: -4px;
}

.hero p {
  color: var(--muted);
  margin: 12px 0 0;
}

.location-panel {
  position: relative;
  margin-bottom: 16px;
}

.search {
  display: flex;
  gap: 10px;
}

.search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  background: white;
  outline: none;
}

.search input:focus {
  border-color: #9ca3af;
}

.search button {
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  padding: 0 24px;
  font-weight: 600;
}

.location-button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 13px;
  margin-top: 10px;
  font-weight: 600;
}

.search-results {
  display: none;
  position: absolute;
  z-index: 10;
  left: 0;
  right: 85px;
  top: 58px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.search-result {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: white;
  text-align: left;
  padding: 14px 16px;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: var(--soft);
}

.search-result strong {
  display: block;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
}

.setting label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.setting select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  padding: 12px;
}

.error {
  display: none;
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.weather {
  display: none;
}

.current-card,
.outfit-card,
.hourly-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
  margin-bottom: 15px;
}

.location-name {
  font-size: 25px;
  font-weight: 750;
}

.current-time {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.current-main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}

.current-icon {
  font-size: 70px;
}

.temperature {
  font-size: clamp(55px, 9vw, 78px);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -5px;
}

.description {
  color: var(--muted);
  margin-top: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.metric {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.metric strong {
  font-size: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.small-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: -1px;
}

.comfort-badge {
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.outfit-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  min-height: 130px;
}

.outfit-icon {
  font-size: 30px;
  margin-bottom: 15px;
}

.outfit-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.outfit-value {
  font-weight: 700;
  line-height: 1.3;
}

.reason-box {
  background: var(--soft);
  border-radius: 16px;
  padding: 18px;
  margin-top: 15px;
}

.reason-title {
  font-weight: 700;
  margin-bottom: 7px;
}

.reason-box p {
  margin: 0;
  color: #555b65;
  line-height: 1.6;
}

.alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.alert {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: #555b65;
  font-size: 13px;
}

.hourly {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.hour {
  flex: 0 0 92px;
  background: var(--soft);
  border-radius: 15px;
  text-align: center;
  padding: 14px 9px;
}

.hour.now {
  background: #111318;
  color: white;
}

.hour-time {
  font-size: 12px;
  margin-bottom: 10px;
}

.hour-icon {
  font-size: 25px;
  margin-bottom: 7px;
}

.hour-temperature {
  font-weight: 700;
}

.hour-detail {
  font-size: 10px;
  margin-top: 5px;
  opacity: .68;
}

.hour-rain {
  font-size: 11px;
  margin-top: 7px;
  opacity: .65;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 25px;
}

@media (max-width: 750px) {
  .app {
    padding-top: 30px;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .outfit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .search {
    flex-direction: column;
  }

  .search button {
    height: 48px;
  }

  .search-results {
    right: 0;
    top: 110px;
  }

  .settings {
    grid-template-columns: 1fr;
  }

  .current-card,
  .outfit-card,
  .hourly-card {
    padding: 20px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .current-icon {
    font-size: 52px;
  }

  .outfit-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* INFO */

.info-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
  margin-bottom: 15px;
}

.info-intro {
  color: var(--muted);
  line-height: 1.6;
  margin: -5px 0 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-group {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.info-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: var(--soft);
}

.info-symbol {
  font-size: 28px;
}

.info-group-header h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.info-group-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 17px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.info-row strong {
  font-weight: 650;
}

.info-row span {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 650px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}


