:root {
  --fg: #1c1c1c;
  --muted: #666;
  --bg: #fafafa;
  --accent: #2a6df4;
}

* { box-sizing: border-box; }

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

header, main, footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

header h1 a { color: inherit; text-decoration: none; }
.tagline { color: var(--muted); margin-top: 0; }

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

.category-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4 / 3;
  position: relative;
}

.category-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.category-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .6rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  display: flex; justify-content: space-between; align-items: baseline;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: 4px; }

a.back { color: var(--accent); text-decoration: none; }

footer { color: var(--muted); text-align: center; }
