@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f2ed;
  color: #1a1a1a;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: "Cormorant Garamond", serif;
}

.bg-paper {
  background-color: #f5f2ed;
}

.bg-ink {
  background-color: #1a1a1a;
}

.bg-gold {
  background-color: #c5a059;
}

.text-paper {
  color: #f5f2ed;
}

.text-ink {
  color: #1a1a1a;
}

.text-gold {
  color: #c5a059;
}

.border-paper {
  border-color: #f5f2ed;
}

.border-ink {
  border-color: #1a1a1a;
}

.border-gold {
  border-color: #c5a059;
}

.hover\:bg-paper:hover {
  background-color: #f5f2ed;
}

.hover\:bg-ink:hover {
  background-color: #1a1a1a;
}

.hover\:bg-gold:hover {
  background-color: #c5a059;
}

.hover\:text-paper:hover {
  color: #f5f2ed;
}

.hover\:text-ink:hover {
  color: #1a1a1a;
}

.hover\:text-gold:hover {
  color: #c5a059;
}

.selection\:bg-gold\/30::selection {
  background-color: rgba(197, 160, 89, 0.3);
}

.placeholder\:text-ink\/30::placeholder {
  color: rgba(26, 26, 26, 0.3);
}

.shadow-ink\/5 {
  --tw-shadow-color: rgba(26, 26, 26, 0.05);
}

.ink\/10 {
  border-color: rgba(26, 26, 26, 0.1);
}

.ink\/5 {
  background-color: rgba(26, 26, 26, 0.05);
}

.paper\/60 {
  color: rgba(245, 242, 237, 0.6);
}

.paper\/20 {
  border-color: rgba(245, 242, 237, 0.2);
}

.paper\/80 {
  background-color: rgba(245, 242, 237, 0.8);
}

.text-ink\/60 {
  color: rgba(26, 26, 26, 0.6);
}

.text-ink\/50 {
  color: rgba(26, 26, 26, 0.5);
}

.text-ink\/40 {
  color: rgba(26, 26, 26, 0.4);
}

.text-ink\/30 {
  color: rgba(26, 26, 26, 0.3);
}

/* Animation classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
}

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

/* Focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Backdrop blur support */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Radial gradient support */
.bg-\[radial-gradient\(circle_at_center\2c _var\(--tw-gradient-stops\)\)\] {
  background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

.from-gold {
  --tw-gradient-from: #c5a059;
}

.via-transparent {
  --tw-gradient-to: transparent;
}

.to-transparent {
  --tw-gradient-to: transparent;
}

/* URL background */
.bg-\[url\('https:\/\/images\.unsplash\.com\/photo-1497366216548-37526070297c\?auto=format\&fit=crop\&q=80\&w=1000'\)\] {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1000');
}