@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;300;400&family=Lora:ital,wght@0,400;0,600;1,400&family=Open+Sans:ital,wght@0,300;0,400;1,300&display=swap');

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

:root {
    --gold: #c9a96e;
    --dark: #333;
    --mid: #666;
    --light: #999;
    --border: #e5e5e5;
    --bg-gray: #ebebeb;
    --white: #fff;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── Top Bar ─────────────────────────────── */
.top-bar {
    background: #2d2d2d;
    color: #aaa;
    padding: 7px 20px;
    font-size: 12px;
}

/* ─── Navigation ──────────────────────────── */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 22px 16px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    transition: color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--gold);
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 1001;
    list-style: none;
}

.nav-menu > li:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 11px 18px;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--mid);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, padding-left 0.15s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    color: var(--gold);
    padding-left: 24px;
}

/* Nav right: social + search */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-social {
    display: flex;
    gap: 14px;
}

.nav-social a {
    color: var(--dark);
    font-size: 13px;
    transition: color 0.2s;
}

.nav-social a:hover {
    color: var(--gold);
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.search-form input {
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: var(--light);
    padding: 4px 6px;
    width: 150px;
    background: transparent;
}

.search-form input::placeholder {
    color: var(--light);
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light);
    padding: 4px;
    font-size: 13px;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 14px 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: all 0.2s;
}

/* ─── Site Header / Title ─────────────────── */
.site-header {
    text-align: center;
    padding: 58px 20px 50px;
    background: var(--white);
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: clamp(44px, 7.5vw, 90px);
    letter-spacing: 0.18em;
    color: var(--dark);
    text-transform: uppercase;
    font-variant: small-caps;
    line-height: 1;
}

/* ─── Featured Post Section ───────────────── */
.featured-section {
    background: var(--bg-gray);
    padding: 90px 20px 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.post-card {
    background: var(--white);
    padding: 55px 65px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.07);
}

.post-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

.post-categories a {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.post-categories a:hover {
    text-decoration: underline;
}

.post-card .post-title {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 21px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 8px;
}

.post-card .post-date {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 12px;
    color: var(--light);
    margin-bottom: 30px;
}

.btn-read-more {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid var(--dark);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark);
    transition: background 0.2s, color 0.2s;
}

.btn-read-more:hover {
    background: var(--dark);
    color: var(--white);
}

/* ─── Posts Grid Section ──────────────────── */
.posts-section {
    padding: 70px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 40px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px 40px;
}

.grid-card .grid-card-img-placeholder {
    width: 100%;
    height: 195px;
    background: var(--bg-gray);
    margin-bottom: 18px;
    display: block;
}

.grid-card .post-categories {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.grid-card .post-title {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 7px;
}

.grid-card .post-title a {
    color: inherit;
    transition: color 0.2s;
}

.grid-card .post-title a:hover {
    color: var(--gold);
}

.grid-card .post-date {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 12px;
    color: var(--light);
}

/* ─── Footer ──────────────────────────────── */
footer {
    background: #2d2d2d;
    color: #777;
    text-align: center;
    padding: 28px 20px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ─── Post Featured Image ─────────────────── */
.post-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin-bottom: 50px;
}

.grid-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    margin-bottom: 18px;
}

/* ─── Individual Post Page ────────────────── */
.post-page {
    max-width: 750px;
    margin: 60px auto 0;
    padding: 0 30px 90px;
}

.post-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.post-page-header .post-categories {
    margin-bottom: 18px;
}

.post-page-header h1 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 34px;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 14px;
}

.post-page-header .post-date {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--light);
}

.post-body {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.post-body p {
    margin-bottom: 1.4em;
}

.post-body h2 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--dark);
    margin: 2em 0 0.8em;
}

.post-body a {
    color: var(--gold);
    text-decoration: underline;
}

.post-body blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 22px;
    margin: 1.5em 0;
    color: var(--mid);
    font-style: italic;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags .tags-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light);
    margin-right: 4px;
}

.post-tags a {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    transition: background 0.2s, color 0.2s;
}

.post-tags a:hover {
    background: var(--gold);
    color: white;
}

/* Related posts */
.related-posts {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.related-card .related-title {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.related-card .related-title:hover {
    color: var(--gold);
}

.related-card .related-date {
    font-size: 11px;
    font-style: italic;
    color: var(--light);
}

/* Post nav: prev / next */
.post-nav {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-nav a {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.post-nav a:hover {
    color: var(--gold);
}

/* ─── Pagination ─────────────────────────── */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.paginacion a,
.paginacion span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    color: var(--dark);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.paginacion a:hover,
.paginacion .current {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        padding: 0 16px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 8px 0 14px;
        border-top: 1px solid var(--border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 12px 8px;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        border-left: 2px solid var(--gold);
        margin-left: 12px;
        min-width: unset;
    }

    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .post-card {
        padding: 40px 30px;
    }

    .posts-section {
        padding: 50px 20px 60px;
    }

    .post-page {
        margin-top: 40px;
        padding: 0 20px 60px;
    }

    .post-page-header h1 {
        font-size: 26px;
    }

    .post-body {
        font-size: 15px;
    }

    .post-nav {
        flex-direction: column;
        gap: 12px;
    }
}
