/*
 * EuropeTraditions.eu — Custom Stylesheet
 * Complements TailwindCSS CDN loaded in head.html
 */

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

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

/* ── Smooth transitions ── */
a,
button {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

img {
  transition: transform 0.5s ease;
}

/* ── 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 fine-tuning ── */
.prose > *:first-child {
  margin-top: 0;
}

.prose h2 + h3 {
  margin-top: 1rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Selection color ── */
::selection {
  background-color: #fef3c7;
  color: #78350f;
}

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

  .prose {
    max-width: 100%;
  }

  body {
    background: white;
  }
}
