/*
 * Izetta Auto — Custom CSS
 * TailwindCSS loaded via CDN in head.html
 * This file handles overrides and custom styles only
 */

/* --------------------------------
   Typography — Prose content
   -------------------------------- */
.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.75rem;
  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-left: 1.25rem;
  margin: 2rem 0;
  font-style: italic;
}

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

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

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

/* Smooth transitions on interactive elements */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Image placeholders while loading */
img {
  background-color: #f3f4f6;
}

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

  .prose {
    max-width: 100%;
  }

  body {
    background: white;
  }
}
