/* Font Face */
@font-face {
    font-family: 'Italiana';
    src: url('../assets/Fonts/italiana-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('../assets/Fonts/sora-regular.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../assets/Fonts/jost-regular.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../assets/Fonts/jost-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Brand Colors*/
:root {
    --Onyx: #262A2E;
    --Mist: #ABBFB8;
    --Matcha: #B9CBAF;
    --Oat: #F1EADA;
    --Eucalyptus: #3E5034;
    --Pine: #40534C;
    --Cedar: #693F0D;
    --Espresso: #251E0E;
    --Ash: #E3E4E1;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

body {
    padding: 90px 0 0 0;
    background-color: var(--Oat);
    color: var(--Onyx);
}

a {
    color: var(--Ash);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--Oat);
    border-bottom: 2px solid var(--Cedar);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0 0.05rem 0 0;
}

.nav-links a {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: var(--Onyx);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--Cedar);
}

.nav-logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: var(--Pine);
    color: var(--Matcha);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 400;
}

ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
section {
    padding: 20px;
}
h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
}
h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}
h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
}

/* Post Cards */
.post-card {
    width: 375px;
    height: 520px;
    background-color: var(--Pine);
    color: var(--Matcha);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.post-card img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    padding: 2rem 1rem;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--Eucalyptus);
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-credit img {
    height: 100px;
    width: auto;
    margin-top: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 3px;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--Eucalyptus);
    border-radius: 2px;
    transition: all 0.3s ease;
} 

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        padding-right: 0;
    }



    .hamburger {
        display: flex;
        margin-right: 0.25rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--Cedar);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 0;
    }

    .nav-links.nav-active {
        max-height: 300px; /* Adjust based on number of links */
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links a {
        color: var(--Oat);
    }

    .nav-logo img {
        height: 50px;  /* Or whatever size you want - smaller for mobile */
        width: auto;
    }

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