*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --muted: #777;
  --accent: #2d2d2d;
  --border: #e0e0e0;
  --sold-bg: #f5f5f5;
  --radius: 4px;
  --gap: 1.25rem;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
nav .site-name { font-size: 1.2rem; letter-spacing: 0.05em; text-decoration: none; color: var(--fg); }
nav .nav-links { display: flex; gap: 2rem; list-style: none; }
nav .nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-family: system-ui, sans-serif; }
nav .nav-links a:hover { color: var(--fg); }

/* Page layout */
.page { max-width: 1100px; margin: 0 auto; padding: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline.active { border-color: var(--fg); }

/* Controls bar */
.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.controls .label { font-size: 0.8rem; color: var(--muted); font-family: system-ui, sans-serif; margin-right: 0.25rem; }

/* Gallery masonry */
.gallery {
  columns: 3;
  column-gap: var(--gap);
}
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.gallery-item .item-meta {
  padding: 0.5rem 0 0.25rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}
.gallery-item .item-name { font-weight: 600; color: var(--fg); }
.gallery-item .item-price { color: var(--muted); }
.gallery-item .item-sold { color: var(--muted); font-style: italic; }

/* Sold overlay */
.gallery-item.sold img { opacity: 0.6; }

/* Banner */
.banner {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}
.banner.error { background: #fce4ec; border-color: #f48fb1; color: #c62828; }
