:root {
  --background: 42 100% 96%;
  --foreground: 25 80% 15%;
  --card: 0 0% 100%;
  --card-foreground: 25 80% 15%;
  --border: 42 30% 85%;
  --primary: 35 100% 55%;
  --primary-foreground: 0 0% 100%;
  --muted: 42 30% 92%;
  --muted-foreground: 25 40% 40%;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

/* Cheems neo-brutalist utilities */
.cheems-shadow {
  box-shadow: 4px 4px hsl(var(--foreground));
}

/* Press / neo-brutalist button interaction */
button.cheems-shadow:hover,
a.bg-primary.cheems-shadow:hover,
a.bg-foreground.cheems-shadow:hover {
  box-shadow: none;
}

.cheems-border {
  border: 3px solid hsl(var(--foreground));
}

.cheems-border-y {
  border-top: 3px solid hsl(var(--foreground));
  border-bottom: 3px solid hsl(var(--foreground));
}

/* Marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

/* Scroll reveal (framer-motion-like) */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(40px);
}

.reveal-right {
  transform: translateX(-40px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-600 {
  transition-delay: 0.6s;
}

/* Gallery card */
.gallery-card {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 3px solid hsl(var(--foreground));
  box-shadow: 4px 4px hsl(var(--foreground));
  background: hsl(var(--card));
  transform: translateY(0) rotate(0);
  transition: all 0.5s ease;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .gallery-card {
    margin-bottom: 1.5rem;
  }
}

.gallery-card:hover {
  transform: translateY(-0.5rem) rotate(2deg);
}

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

.gallery-card .overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.gallery-card:hover .overlay {
  background: hsl(var(--primary) / 0.2);
}

/* Toast */
.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  max-width: 22rem;
  padding: 1rem 1.25rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 3px solid hsl(var(--foreground));
  box-shadow: 4px 4px hsl(var(--foreground));
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.toast p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.toast.error {
  border-color: #ef4444;
}

/* Opacity helpers Tailwind CDN may miss with custom colors */
.text-foreground\/60 {
  color: hsl(var(--foreground) / 0.6);
}

.text-foreground\/70 {
  color: hsl(var(--foreground) / 0.7);
}

.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}

.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}

.bg-primary\/20 {
  background-color: hsl(var(--primary) / 0.2);
}

.bg-primary\/40 {
  background-color: hsl(var(--primary) / 0.4);
}

.bg-background\/10 {
  background-color: hsl(var(--background) / 0.1);
}

.bg-background\/20 {
  background-color: hsl(var(--background) / 0.2);
}

.border-background\/20 {
  border-color: hsl(var(--background) / 0.2);
}

.text-background\/40 {
  color: hsl(var(--background) / 0.4);
}

.text-background\/60 {
  color: hsl(var(--background) / 0.6);
}

.text-background\/90 {
  color: hsl(var(--background) / 0.9);
}

.bg-foreground\/10 {
  background-color: hsl(var(--foreground) / 0.1);
}

.bg-orange-400\/40 {
  background-color: rgb(251 146 60 / 0.4);
}

.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}

.hover\:bg-primary:hover {
  background-color: hsl(var(--primary));
}

.hover\:text-primary-foreground:hover {
  color: hsl(var(--primary-foreground));
}

.hover\:border-background:hover {
  border-color: hsl(var(--background));
}

.hover\:bg-background\/20:hover {
  background-color: hsl(var(--background) / 0.2);
}

.selection\:bg-primary::selection {
  background-color: hsl(var(--primary));
}

.selection\:text-white::selection {
  color: #fff;
}
