/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Color Palette: "Sunset on the Cliffs" */
    --clr-terracotta: #D87C51;
    --clr-slate-blue: #4A6FA5;
    --clr-sage-green: #9CB4A6;
    --clr-background: #FCF9F2;
    --clr-text-dark: #2C3E50;
    --clr-text-light: #F4EFEB;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-background);
    color: var(--clr-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    text-align: center;
    padding-top: 3rem;
    margin-bottom: 2rem;
}

.brand-name {
    font-size: 3.5rem;
    color: var(--clr-text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.top-nav a {
    text-decoration: none;
    color: var(--clr-text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: var(--clr-terracotta);
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.site-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography for Posts */
.content-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.content-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

/* =========================================
   POST GRID (HOMEPAGE)
   ========================================= */
.latest-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: var(--clr-slate-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    display: block;
    text-decoration: none;
    color: var(--clr-text-dark);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    background-color: #E2E2E2;
    /* Placeholder color before image loads */
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-slate-blue);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--clr-terracotta);
}

.post-card p {
    font-size: 0.95rem;
    color: #666;
    font-family: var(--font-body);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--clr-slate-blue);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--clr-terracotta);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }

    .top-nav {
        gap: 1.5rem;
        flex-direction: column;
        padding: 1rem 0;
    }

    .site-content {
        padding: 1rem;
    }

    .content-box {
        padding: 1.5rem;
    }
}