:root {
  color-scheme: light dark;
  --muted: #6b6b6b;
  --line: #d8d8d8;
  --tile: #eeeeea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --muted: #a0a0a0;
    --line: #3a3a3a;
    --tile: #262624;
  }
}

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 0 1rem 3rem;
  font: 1rem/1.5 system-ui, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

header .site {
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

h1 {
  margin: 2rem 0 0.5rem;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
}

.breakdown {
  padding: 0;
  list-style: none;
}

.breakdown .count {
  display: inline-block;
  min-width: 2.5em;
  text-align: right;
  margin-right: 0.5em;
  font-variant-numeric: tabular-nums;
}

.months {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

.months [rel="next"] {
  margin-left: auto;
}

.sightings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

/* Every thumbnail is square, at most 256 px across, and shown at the same
   size, so the page doesn't move as they load. */
.sightings img,
.sightings .no-image {
  display: block;
  width: 100%;
  max-width: 256px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--tile);
}

.sightings p {
  margin: 0.25rem 0 0;
}

.sightings time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.about img {
  max-width: 100%;
  height: auto;
}
