*,
*::before,
*::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #1A110D;
    overflow-x: hidden
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: #fff
}

::-webkit-scrollbar-thumb {
    background: #CC9C8D;
    border-radius: 3px
}

::selection {
    background: #6A3B33;
    color: #fff
}

/* Nav */
.nav-link {
    position: relative
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6A3B33;
    transition: width .3s ease
}

.nav-link:hover::after {
    width: 100%
}

/* Photo placeholder */
.ph {
    background: #F0DDD6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    position: relative
}

.ph-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(106, 59, 51, 0.25);
    text-align: center;
    padding: 0 12px
}

.ph-icon {
    color: rgba(106, 59, 51, 0.15)
}

/* Reveal */
.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease
}

.rv.vis {
    opacity: 1;
    transform: translateY(0)
}

.rv-d1 {
    transition-delay: .1s
}

.rv-d2 {
    transition-delay: .2s
}

.rv-d3 {
    transition-delay: .3s
}

/* Blog cards */
.blog-card {
    transition: transform .3s ease, box-shadow .3s ease
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(106, 59, 51, 0.12)
}

.blog-card:hover .blog-img {
    transform: scale(1.05)
}

.blog-img {
    transition: transform .5s cubic-bezier(.25, 0, .25, 1)
}

/* Category pills */
.cat-pill {
    transition: all .2s ease
}

.cat-pill:hover {
    background: #6A3B33;
    color: #fff
}

.cat-pill.active {
    background: #6A3B33;
    color: #fff
}

/* Featured gradient overlay */
.featured-overlay {
    background: linear-gradient(to top, rgba(26, 17, 13, 0.85) 0%, rgba(26, 17, 13, 0.4) 50%, transparent 100%)
}

/* Read more link */
.read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform .3s ease
}

.read-more:hover::after {
    transform: scaleX(0);
    transform-origin: right
}

/* Search input */
input[type="search"]::-webkit-search-cancel-button {
    display: none
}

/* Excerpt line clamp */
.excerpt-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    max-height: calc(1.7em * 3);
}

.featured-excerpt-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.75;
    max-height: calc(1.75em * 4);
}

/* Title line clamp */
.title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-search-highlight {
    background: rgba(204, 156, 141, 0.25);
    padding: 0 1px;
    border-radius: 2px;
    color: #6A3B33;
}

/* Animations */
@keyframes fadeInBlog {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-fade-in {
    animation: fadeInBlog 0.6s cubic-bezier(.25, 0, .25, 1) forwards;
}

@keyframes fadeInFeatured {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.featured-fade-in {
    animation: fadeInFeatured 0.8s cubic-bezier(.25, 0, .25, 1) forwards;
}

/* Skeletons */
@keyframes skelShine {
    to {
        background-position: 200% 0;
    }
}

.skel {
    background: linear-gradient(90deg, #F5EFEA 25%, #FDFAF8 50%, #F5EFEA 75%);
    background-size: 200% 100%;
    animation: skelShine 1.5s infinite linear;
    border-radius: 4px;
}

.skel-img {
    height: 100%;
    width: 100%;
}

.skel-pill {
    height: 24px;
    width: 60px;
    border-radius: 20px;
}

.skel-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.skel-heading {
    height: 28px;
    margin-bottom: 12px;
}

.skel-heading-lg {
    height: 44px;
    margin-bottom: 15px;
}

.skel-line {
    height: 14px;
    margin-bottom: 10px;
}

.skel-line.w-half {
    width: 50%;
}

.skel-line.w-3-4 {
    width: 75%;
}

.skel-line.w-1-3 {
    width: 33%;
}

.search-summary {
    font-size: 13px;
    color: #8A756B;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-summary.visible {
    opacity: 1;
}

.search-summary strong {
    color: #6A3B33;
    font-weight: 600;
}

/* Search result slide animation */
@keyframes blogSearchSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-search-result {
    animation: blogSearchSlideIn 0.45s ease forwards;
    opacity: 0;
}

.blog-search-result:nth-child(1) {
    animation-delay: 0.05s;
}

.blog-search-result:nth-child(2) {
    animation-delay: 0.12s;
}

.blog-search-result:nth-child(3) {
    animation-delay: 0.19s;
}

.blog-search-result:nth-child(4) {
    animation-delay: 0.26s;
}

.blog-search-result:nth-child(5) {
    animation-delay: 0.33s;
}

.blog-search-result:nth-child(6) {
    animation-delay: 0.40s;
}