/**
 * Zige t Puces — Custom Styles
 * TailwindCSS is loaded via CDN in head.html
 * This file provides supplementary styles only
 */

/* =============================================
   Base & Resets
   ============================================= */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   Focus & Accessibility
   ============================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* =============================================
   Image utilities
   ============================================= */

.img-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   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;
}

/* =============================================
   Prose overrides for article content
   ============================================= */

.prose {
  max-width: 72ch;
}

.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;
}

.prose blockquote {
  border-left-width: 3px;
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
}

.prose img {
  border-radius: 0.75rem;
}

/* =============================================
   Fade-in animation
   ============================================= */

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

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

/* =============================================
   Print styles
   ============================================= */

@media print {
  header,
  footer,
  nav,
  .no-print {
    display: none !important;
  }

  .prose {
    max-width: 100%;
  }

  body {
    background: white;
    color: black;
  }
}
