/*
 * HI-L — Main Stylesheet
 * Complements TailwindCSS CDN loaded in head.html
 */

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

/* ===== Typography — Prose ===== */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.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: 3px solid;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-style: normal;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.prose th {
  font-weight: 600;
  background: #f9fafb;
}

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

/* ===== Hero ===== */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 15, 35, 0.85) 0%,
    rgba(30, 30, 70, 0.7) 40%,
    rgba(79, 70, 229, 0.4) 100%
  );
}

/* ===== Cards ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
  transition: transform 0.5s ease;
}

.card-hover:hover .card-img {
  transform: scale(1.05);
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Section Divider ===== */
.section-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
}

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

/* ===== Transitions ===== */
a,
button {
  transition: color 0.2s ease, background-color 0.2s ease;
}

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