/* --- VARIABLES --- */
:root {
    --backgroundlight: #bda071; /* Site background */
    --backgrounddark: #290F0F;  /* Nav bar and primary text */
    --text-color: #290F0F;
    --white: #ffffff;
}

/* --- GLOBAL STYLES --- */
body {
    background-color: var(--backgroundlight);
    color: var(--text-color);
    /* Set Outfit as the global font for everything */
    font-family: 'Outfit', sans-serif; 
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* All headings now use Outfit for a clean, quirky look */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--backgrounddark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
}

/* --- THE NAV BAR --- */
header#site-header {
    background-color: var(--backgrounddark);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.brand a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

nav#header {
    margin-left: auto; 
    margin-right: 2.5rem;
}

nav#header ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav#header ul li a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* THE CONTACT BUBBLE */
.contact-button {
    background-color: var(--white);
    color: var(--backgrounddark) !important;
    font-family: 'Outfit', sans-serif;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.contact-button:hover {
    transform: scale(1.05);
}

/* ==============================
   REUSABLE CARD & GRID STYLES
   ============================== */

#recentpostlistdiv ul, #postlistdiv ul, .card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px; 
    padding: 0;
    list-style: none;
    margin: 1.5rem 0;
}

/* Cards now grow/shrink based on text only */
#recentpostlistdiv li, #postlistdiv li, .card-list li {
    background: rgba(255, 255, 255, 0.4); 
    padding: 18px; 
    border-radius: 12px;
    border: 2px solid transparent; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    position: relative;
    line-height: 1.3;
}

/* Home & Archive specific height for consistency */
#recentpostlistdiv li, #postlistdiv li { 
    justify-content: center;
    min-height: 60px; 
}

/* Removes fixed height causing gaps on About page */
.card-list li {
    min-height: 0; 
}

#recentpostlistdiv li:hover, #postlistdiv li:hover, .card-list li:hover {
    background: white;
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 2px solid var(--backgrounddark);
    cursor: pointer;
}

/* ==============================
   VIBE FIX: LINK & META STYLING
   ============================== */

/* Post titles inside bubbles */
#recentpostlistdiv li a, #recentpostlistdiv li a:visited,
#postlistdiv li a, #postlistdiv li a:visited {
    color: var(--backgrounddark) !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

/* Card Titles and Metadata */
.card-list li h3 {
    margin: 0 0 4px 0; 
    font-family: 'Outfit', sans-serif;
}

.card-list li .meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px; 
    opacity: 0.8;
}

.card-list li .card-action a {
    font-family: 'Outfit', sans-serif;
    color: var(--backgrounddark) !important;
    font-weight: 700;
    text-decoration: underline !important;
    font-size: 0.9rem;
}

/* BREADCRUMBS */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 1rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

.breadcrumb li a {
    color: var(--backgrounddark) !important;
    text-decoration: underline !important;
    font-family: 'Outfit', sans-serif;
}

/* --- SPACING & LAYOUT --- */
#container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 5%;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    border: none;
    margin: 1.5rem 0;
}

/* --- MOBILE HAMBURGER --- */
.menu-trigger {
    display: none; 
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-trigger span {
    width: 25px;
    height: 3px;
    background: white;
}

@media (max-width: 800px) {
    .menu-trigger { display: flex; }
    .header-cta { display: none; }
    nav#header { display: none; }
    nav#header.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--backgrounddark);
        padding: 20px;
    }
    nav#header ul { flex-direction: column; }
}