:root {
  --bg: #f6f0e6;
  --card: #fffaf2;
  --ink: #211a15;
  --muted: #6b5d51;
  --accent: #bf4f2f;
  --line: #dac8b6;
  --shadow: 0 12px 40px rgba(33, 26, 21, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(120deg, #f7f1e8, #f2e7d8);
  position: relative;
  overflow-x: hidden;
}

.music-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.85);
}

.music-toggle.is-on {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-color: rgba(255, 255, 255, 0.95);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.slideshow-section {
  width: 100vw;
  height: 100vh;
  background: #f0e8dd;
  position: relative;
  display: grid;
  place-items: center;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f0e8dd;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 480ms ease;
}

.catalog-section {
  width: min(1120px, 92vw);
  margin: 44px auto 52px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

#catalogCount {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(33, 26, 21, 0.07);
  animation: slideUp 420ms ease both;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 9px 10px 12px;
}

.card-id {
  font-weight: 700;
  font-size: 0.93rem;
  color: #402c1f;
}

.site-footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: 4px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 740px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card img {
    height: 150px;
  }
}
