:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --danger: #ef4444;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #f0f0f0;
    --muted: #9ca3af;
    --border: #333333;
    --accent: #6366f1;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px 16px 60px;
}
.container { max-width: 640px; margin: 0 auto; }
.hh-site-nav {
  display: flex;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 10px 4px;
  font-size: 14px;
}
.hh-site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
.hh-site-nav a:hover { color: var(--accent); }
.intro-card, .weather-card {
  background: var(--card-bg);
  border: 10px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
}
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0; }
.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
p { line-height: 1.6; color: var(--muted); margin: 0; }
.ghost-btn {
  cursor: pointer;
  border: none;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.ghost-btn:hover { border-color: var(--accent); }
.ghost-btn:disabled { opacity: 0.5; cursor: default; }
.weather-tabs { display: flex; gap: 6px; margin-top: 12px; }
.tab-btn {
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.weather-panel { margin-top: 12px; }
.input-row { display: flex; gap: 8px; }
.input-row input {
  flex: 1;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.location-results { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.location-result {
  cursor: pointer;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.location-result:hover { border-color: var(--accent); }
.weather-body { margin-top: 14px; }
.weather-placeholder, .weather-error { color: var(--muted); font-size: 13px; }
.weather-error { color: var(--danger); }
.weather-summary { display: flex; align-items: center; gap: 14px; }
.weather-icon { font-size: 36px; }
.weather-temp { font-size: 26px; font-weight: 700; color: var(--text); }
.weather-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.weather-location { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.weather-attribution { font-size: 10px; color: var(--muted); margin-top: 10px; }
