/* IceBurial.com — Custom Site Styles
   Complements Tailwind utility classes with a few
   refinements Tailwind alone doesn't cover cleanly. */

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Soft gradient hero backdrop */
.hero-gradient {
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(74, 184, 224, 0.20), transparent 60%),
    radial-gradient(50% 60% at 90% 20%, rgba(11, 61, 92, 0.15), transparent 55%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 60%);
}

/* Fade/slide-up entrance animation, triggered by adding .is-visible via IntersectionObserver in main.js */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle icy shimmer for accent underlines */
.underline-accent {
  position: relative;
}
.underline-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ab8e0, #0b3d5c);
}

/* Prose refinements for long-form article content */
.article-prose h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  color: #0b3d5c;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}
.article-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #17546e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}
.article-prose p {
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.25rem;
}
.article-prose ul, .article-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-prose li {
  line-height: 1.8;
  color: #334155;
  margin-bottom: 0.4rem;
}
.article-prose a {
  color: #157da3;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-prose blockquote {
  border-left: 3px solid #4ab8e0;
  padding-left: 1.25rem;
  font-style: italic;
  color: #17546e;
  margin: 1.5rem 0;
}

/* Skeleton shimmer for lazy-loaded images */
img.lazy-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.lazy-fade.loaded {
  opacity: 1;
}

::selection {
  background: #bce6f7;
  color: #0b3d5c;
}
