:root {
  /* defaults overridden by [data-theme] */
  --ink: #12202e;
  --paper: #f3efe6;
  --panel: #fffdf8;
  --accent: #c45c26;
  --accent-deep: #9a3f12;
  --forest: #1f5b4d;
  --muted: #5b6572;
  --line: rgba(18, 32, 46, 0.12);
  --hero-overlay: linear-gradient(120deg, rgba(18, 32, 46, 0.78), rgba(31, 91, 77, 0.55));
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius: 0.35rem;
  --shadow: 0 10px 30px rgba(18, 32, 46, 0.08);
}

/* Motion presets */
@keyframes cbb-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cbb-drift {
  0% { background-position: 50% 40%; }
  50% { background-position: 52% 46%; }
  100% { background-position: 50% 40%; }
}
@keyframes cbb-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cbb-glow-pulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
}
@keyframes cbb-spark {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

body[data-motion="fade"] .hero-inner,
body[data-motion="fade"] .page-hero .shell,
body[data-motion="fade"] .section .shell > h2 {
  animation: cbb-fade-up 700ms ease both;
}

body[data-motion="lift"] .category-link,
body[data-motion="lift"] .list-link,
body[data-motion="lift"] .btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
body[data-motion="lift"] .category-link:hover,
body[data-motion="lift"] .list-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

body[data-motion="drift"] .hero,
body[data-motion="drift"] .page-hero {
  animation: cbb-drift 16s ease-in-out infinite;
  background-size: cover;
}

body[data-motion="slide"] .category-link {
  animation: cbb-slide-in 560ms ease both;
}
body[data-motion="slide"] .category-link:nth-child(2) { animation-delay: 40ms; }
body[data-motion="slide"] .category-link:nth-child(3) { animation-delay: 80ms; }
body[data-motion="slide"] .category-link:nth-child(4) { animation-delay: 120ms; }
body[data-motion="slide"] .category-link:nth-child(5) { animation-delay: 160ms; }

body[data-motion="glow"] .btn-primary,
body[data-motion="glow"] .brand img {
  animation: cbb-glow-pulse 2.8s ease-in-out infinite;
}

body[data-motion="spark"] .hero,
body[data-motion="spark"] .btn-primary {
  animation: cbb-spark 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body[data-motion] * {
    animation: none !important;
    transition: none !important;
  }
}
