/* =========================================================================
   THERMAL OIL HEATER — Custom Styles
   Palette #5 Cyan/Rose | Font #6 Oswald + Raleway
   ========================================================================= */

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

/* --- Prose (article content) --- */
.prose {
  max-width: 68ch;
}
.prose h2 { margin-top: 2.25rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.125rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left-width: 3px;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
}

/* --- Line clamp --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Fade-up animation (triggered by IntersectionObserver) --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Focus accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* --- Scroll indicator bounce --- */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce {
  animation: bounce 1.8s infinite;
}

/* --- Selection color --- */
::selection {
  background-color: rgba(8, 145, 178, 0.15);
  color: inherit;
}

/* --- Print --- */
@media print {
  header, footer, nav, .fade-up { display: none !important; }
  .prose { max-width: 100%; }
}
