:root {
  --fg: #222;
  --bg: #fdfdfd;
  --accent: #2563eb;
  --muted: #666;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e5e5e5;
    --bg: #121212;
    --accent: #60a5fa;
    --muted: #999;
  }
}

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--muted);
  margin-bottom: 2rem;
}

nav a {
  margin-left: 1rem;
}

a {
  color: var(--accent);
}

footer {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.gallery figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
