/* Custom styles to layer on top of Tailwind */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle entrance animations */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.fade-in-up:nth-of-type(2) { animation-delay: 0.4s; }
.fade-in-up:nth-of-type(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Italic display font styling */
.font-display em {
  font-style: italic;
  font-weight: 400;
}

/* Better focus states */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Smooth image loading */
img {
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* Masonry gallery refinements */
.columns-2,
.columns-3,
.columns-4 {
  column-gap: 1rem;
}

/* Prose styles for blog post body content */
.prose-blog p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: rgba(61, 57, 53, 0.85);
  font-size: 1.05rem;
}

.prose-blog h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #3D3935;
  line-height: 1.3;
}

.prose-blog h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #3D3935;
}

.prose-blog ul,
.prose-blog ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-blog ul li,
.prose-blog ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: rgba(61, 57, 53, 0.85);
}

.prose-blog ul li::marker {
  color: #C9A961;
}

.prose-blog blockquote {
  border-left: 3px solid #C9A961;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #3D3935;
}

.prose-blog a {
  color: #A8893F;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose-blog a:hover {
  color: #C9A961;
}

.prose-blog strong {
  color: #3D3935;
  font-weight: 600;
}
