@import "tailwindcss";
@plugin "@tailwindcss/typography";

:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --accent: #8b7355;
  --muted: #6b6b6b;
  --border: #e5e5e5;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-sans), system-ui, sans-serif;
  --font-serif: var(--font-serif), Georgia, serif;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Typography */
.font-serif {
  font-family: var(--font-serif), Georgia, "Times New Roman", serif;
}

.font-sans {
  font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Link styles */
a {
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.btn-primary:hover {
  background: transparent;
  color: var(--foreground);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--foreground);
  color: var(--background);
}

/* Prose styles for CMS content */
.prose {
  max-width: 65ch;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose h1 {
  font-size: 2.5rem;
}

.prose h2 {
  font-size: 1.875rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Image hover zoom effect */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Sold badge */
.badge-sold {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
