:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2f81f7;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  width: min(960px, 92vw);
  margin-inline: auto;
}

.site-header {
  padding: 3rem 0 2rem;
  background: radial-gradient(120% 120% at 50% 0%, #1f2a44 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}

#search,
#continent {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
}

#search {
  flex: 1 1 240px;
}

.count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.2rem;
}

.card .country {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.card .note {
  color: var(--muted);
  margin: 0.6rem 0 0.8rem;
  font-size: 0.95rem;
}

.card .added-by {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer code {
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
