:root {
  color-scheme: light dark;
  --background: #f4f6f8;
  --surface: #fff;
  --text: #152820;
  --border: #d7dfdb;
  --accent: #055938;
  --button-text: #fff;
  font:
    1rem/1.6 system-ui,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101820;
    --surface: #18252b;
    --text: #e8f2ed;
    --border: #35474a;
    --accent: #a4e7c2;
    --button-text: #102b1d;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

header,
main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
}

header,
nav,
.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

header {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.brand {
  gap: 0.5rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

h1 {
  margin: 0.65em 0 0.35em;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

p,
.sources {
  max-width: 62ch;
}

.action,
.cities a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.55rem;
  font-weight: 650;
}

.action {
  display: inline-block;
  margin-block: 0.5rem 1rem;
  color: var(--button-text);
  background: var(--accent);
}

.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.cities a {
  border: 1px solid var(--border);
  background: var(--surface);
}

.sources li + li {
  margin-top: 0.5rem;
}
