:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --card: #171a21;
  --border: #2a2e37;
  --text: #e6e8ec;
  --muted: #9aa1ac;
  --accent: #6ea8fe;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  padding: 24px;
}

.wrap {
  width: 100%;
  max-width: 480px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
}

p.sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.9rem;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input {
  flex: 1;
  padding: 10px 12px;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  padding: 10px 16px;
  background: var(--accent);
  color: #0f1115;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  opacity: 0.9;
}

button.secondary {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 20px;
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0 0 16px;
  min-height: 1em;
}

.result {
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}

.result.show {
  display: block;
}

.weather-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.temp {
  font-size: 2.2rem;
  font-weight: 700;
}

.place {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-row {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.outfit-list {
  display: grid;
  gap: 10px;
}

.outfit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  background: #0f1115;
}

.outfit-item .icon {
  font-size: 1.2rem;
  line-height: 1;
}

.loading {
  color: var(--muted);
  font-size: 0.85rem;
  display: none;
}

.loading.show {
  display: block;
}
