/* XO Crus — Custom Styles */

/* ============================================================
   Prose fine-tuning
   ============================================================ */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* ============================================================
   Drop cap — First paragraph of article
   ============================================================ */
.article-prose > p:first-of-type::first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.8rem;
  line-height: 0.8;
  font-weight: 700;
  color: #7c3aed;
  padding-right: 0.6rem;
  padding-top: 0.15rem;
}

/* ============================================================
   Blockquotes — Styled callout boxes
   ============================================================ */
.article-prose blockquote {
  position: relative;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  font-style: normal;
  border-left: none;
}
.article-prose blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #7c3aed, #f97316);
  border-radius: 1rem 0 0 1rem;
}
.article-prose blockquote p {
  color: #4c1d95;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0;
}
.article-prose blockquote strong {
  color: #6d28d9;
}

/* ============================================================
   Horizontal rules
   ============================================================ */
.article-prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4d4d8, transparent);
  margin: 3rem 0;
}

/* ============================================================
   Line clamp utilities
   ============================================================ */
.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; }

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

/* ============================================================
   Focus states
   ============================================================ */
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   Image hover zoom
   ============================================================ */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.img-zoom:hover img { transform: scale(1.05); }

/* ============================================================
   Gradient text utility
   ============================================================ */
.text-gradient { background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================================================
   Selection color
   ============================================================ */
::selection {
  background-color: #7c3aed;
  color: white;
}

/* ============================================================
   Print styles
   ============================================================ */
@media print {
  header, footer, nav, .no-print, #reading-progress { display: none !important; }
  .prose { max-width: 100%; }
}
