:root {
  --bg:      #0f0f0f;
  --surface: #1a1a1a;
  --border:  #2a2a2a;
  --text:    #e8e8e8;
  --muted:   #888;
  --accent:  #c8f04a;
  --radius:  10px;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  min-height: 100vh;
  line-height: 1.5;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Header ── */
header { text-align: center; }

header h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.tagline {
  margin-top: 0.4rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
}

/* ── City picker ── */
.city-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.city-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.city-btn:hover { border-color: var(--accent); color: var(--text); }

.city-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: bold;
}

/* ── Season display ── */
.season-display {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.season-display.loading { opacity: 0.4; }

.season-number {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: monospace;
}

.season-name {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.season-desc {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.temp-info {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
}

.temp-info .hot  { color: #f87171; }
.temp-info .cold { color: #60a5fa; }
.temp-info .norm { color: var(--muted); }

/* ── All seasons list ── */
.all-seasons h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: normal;
  font-family: monospace;
}

.season-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  counter-reset: season-counter;
}

.season-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
  counter-increment: season-counter;
}

.season-list li::before {
  content: counter(season-counter, decimal-leading-zero);
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--border);
  flex-shrink: 0;
  width: 1.8em;
}

.season-list li.current {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.season-list li.current::before { color: var(--accent); }

/* ── Footer ── */
footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Error ── */
.error-msg {
  text-align: center;
  color: #f87171;
  font-size: 0.9rem;
  padding: 2rem;
}

@media (max-width: 480px) {
  .page { padding: 2rem 1rem 3rem; gap: 2rem; }
  .season-display { padding: 1.75rem 1.25rem; }
}
