:root {
  --bg: #121212;
  --panel: #1f1f1f;
  --panel-alt: #252525;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --accent: #ff6f61;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #2f2d4a 0%, #121212 55%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 111, 97, 0.12), transparent 25%),
    radial-gradient(circle at left, rgba(91, 121, 255, 0.1), transparent 20%);
  pointer-events: none;
}

.site-header {
  padding: 2rem 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.title-group h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  letter-spacing: -0.05em;
}

.title-group p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.artist-filters {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.artist-filters::-webkit-scrollbar {
  height: 8px;
}

.artist-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.filter-button.active {
  background: rgba(255, 111, 97, 0.18);
  border-color: rgba(255, 111, 97, 0.48);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.item-detail {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 1rem;
}

.item-detail .card {
  gap: 1.25rem;
}

.gallery-intro {
  margin-bottom: 1.5rem;
}

.gallery-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
}

.gallery-intro p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.24);
}

.card img,
.card .image-placeholder {
  width: 100%;
  display: block;
}

.artwork-image {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.item-images {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 1rem;
}

.card-meta {
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}

.card-meta h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  padding: 1rem 1.5rem 2rem;
}

@media (max-width: 640px) {
  .site-header,
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
