/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prose styles for Markdown content */
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Playfair Display', serif;
}

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

.prose a {
    color: #4e7640;
    text-decoration: none;
    transition: color 0.2s;
}

.prose a:hover {
    text-decoration: underline;
}

/* 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 transitions */
a, button {
    transition: color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* Lightbox animation */
#lightbox {
    transition: opacity 0.2s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    transition: transform 0.2s ease;
}

/* Gallery filter active state */
.gallery-filter.active {
    background-color: #4e7640;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f9f4;
}

::-webkit-scrollbar-thumb {
    background: #aec9a1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #86ac74;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* ── Hutsul ornaments ── */
.ornament-divider {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    opacity: 0.7;
}

.ornament-divider svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.ornament-border {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    opacity: 0.55;
}

.ornament-border svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.ornament-rosette {
    position: absolute;
    opacity: 0.45;
    pointer-events: none;
}

.ornament-rosette svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .ornament-rosette svg {
        width: 40px;
        height: 40px;
    }
}

/* Footer ornament: lighter on dark bg */
.footer-ornament {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0;
    opacity: 0.35;
}

.footer-ornament svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* Selection color */
::selection {
    background-color: #d1e1c9;
    color: #2c4027;
}
