:root {
    --ink: #111009;
    --parch: #f6f1e8;
    --warm: #ede4d3;
    --card: #faf7f2;
    --terra: #b85828;
    --forest: #243d2f;
    --gold: #c8a84a;
    --mid: #7a6e5f;
    --border: rgba(184, 88, 40, .13);
    --r: 18px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--parch);
    color: var(--ink)
}


.hero {
    background: var(--forest);
    color: #fff;
    padding: 72px 40px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(184, 88, 40, .15), transparent 70%)
}

.hero-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 18px
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 12px
}

.hero h1 em {
    font-style: italic;
    color: rgba(200, 168, 74, .9)
}

.hero p {
    font-size: .9rem;
    opacity: .65;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7
}

/* CATEGORIES */
.cats-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: sticky;
    top: 64px;
    z-index: 90
}

.cat-btn {
    padding: 6px 15px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: .79rem;
    font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s
}

.cat-btn:hover {
    border-color: var(--terra);
    color: var(--terra)
}

.cat-btn.on {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff
}

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 40px 80px
}

/* FEATURED POST */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(17, 16, 9, .07)
}

.fp-photo {
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    position: relative
}

.fp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.featured-post:hover .fp-photo img {
    transform: scale(1.04)
}

.fp-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--terra);
    color: #fff;
    font-size: .67rem;
    font-weight: 600
}

.fp-body {
    padding: 36px 36px 36px 0
}

.fp-cat {
    font-size: .68rem;
    color: var(--terra);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px
}

.fp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 12px
}

.fp-excerpt {
    font-size: .85rem;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 16px
}

.fp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .74rem;
    color: var(--mid);
    margin-bottom: 18px
}

.fp-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terra), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff
}

.fp-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.fp-tag {
    padding: 3px 9px;
    background: var(--warm);
    border-radius: 100px;
    font-size: .68rem;
    color: var(--mid)
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--terra);
    color: #fff;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
    transition: background .18s
}

.btn-read:hover {
    background: var(--forest)
}

/* POSTS GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 48px
}

.post-card {
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all .22s
}

.post-card:hover {
    box-shadow: 0 8px 36px rgba(17, 16, 9, .1);
    transform: translateY(-3px);
    border-color: rgba(184, 88, 40, .28)
}

.pc-photo {
    height: 190px;
    overflow: hidden;
    position: relative
}

.pc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.post-card:hover .pc-photo img {
    transform: scale(1.06)
}

.pc-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(17, 16, 9, .7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .64rem;
    font-weight: 500
}

.pc-body {
    padding: 16px
}

.pc-cat {
    font-size: .63rem;
    color: var(--terra);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 5px
}

.pc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 6px
}

.pc-excerpt {
    font-size: .78rem;
    color: var(--mid);
    line-height: 1.5;
    margin-bottom: 12px
}

.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.pc-meta {
    font-size: .7rem;
    color: var(--mid)
}

.pc-read {
    font-size: .74rem;
    color: var(--terra);
    font-weight: 500;
    text-decoration: none
}

.pc-read:hover {
    text-decoration: underline
}

/* SIDEBAR LAYOUT */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start
}

.sidebar {
    position: sticky;
    top: 96px
}

.sb-card {
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 16px
}

.sb-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--terra);
    margin-bottom: 14px
}

.sb-dest {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--warm);
    cursor: pointer;
    transition: all .17s
}

.sb-dest:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.sb-dest:hover {
    color: var(--terra)
}

.sb-dest-photo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0
}

.sb-dest-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.sb-dest-name {
    font-size: .84rem;
    font-weight: 500
}

.sb-dest-count {
    font-size: .7rem;
    color: var(--mid);
    margin-top: 1px
}

.sb-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--parch);
    font-size: .76rem;
    color: var(--mid);
    cursor: pointer;
    margin: 0 4px 6px 0;
    transition: all .17s
}

.sb-tag:hover {
    border-color: var(--terra);
    color: var(--terra)
}

.nl-mini {
    background: var(--forest);
    border-radius: var(--r);
    padding: 18px;
    color: #fff
}

.nl-mini h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px
}

.nl-mini p {
    font-size: .76rem;
    opacity: .65;
    margin-bottom: 14px;
    line-height: 1.6
}

.nl-mini input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    border: none;
    background: rgba(255, 255, 255, .12);
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    color: #fff;
    outline: none;
    margin-bottom: 8px
}

.nl-mini input::placeholder {
    color: rgba(255, 255, 255, .4)
}

.nl-mini button {
    width: 100%;
    padding: 9px;
    border-radius: 9px;
    background: var(--terra);
    color: #fff;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px
}

.pg-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: .83rem;
    cursor: pointer;
    transition: all .17s;
    display: flex;
    align-items: center;
    justify-content: center
}

.pg-btn.on {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff
}

.pg-btn:hover:not(.on) {
    border-color: var(--terra);
    color: var(--terra)
}

footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .5);
    padding: 32px 40px;
    text-align: center;
    font-size: .78rem
}

footer a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    margin: 0 10px
}

footer a:hover {
    color: var(--terra)
}

@media(max-width:900px) {
    .featured-post {
        grid-template-columns: 1fr
    }

    .fp-photo {
        min-height: 220px
    }

    .fp-body {
        padding: 20px
    }

    .content-with-sidebar {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: none
    }

    .posts-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:580px) {
    nav {
        padding: 0 20px
    }

    .nav-links {
        display: none
    }

    .wrap {
        padding: 28px 16px 60px
    }

    .cats-bar {
        padding: 12px 16px
    }

    .posts-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 52px 20px
    }
}