/* Importing the font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* 1. THE GLOBAL RESET */
/* This '*' selector targets every single element on the page */
* {
    font-family: 'Playfair Display', serif !important;
}

body {
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #33302e;
    
    /* Subtle Paper Texture Pattern */
    background-color: #f4f1ee;
    background-image: radial-gradient(#d1ccc0 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

header {
    text-align: center;
    border-bottom: 1px solid #d1ccc0;
    padding-bottom: 40px;
    margin-bottom: 50px;
}

header h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

header .tagline {
    color: #7a736a;
    font-style: italic;
    font-size: 1.2em;
}

nav a {
    color: #8c7851;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1.5px;
    margin: 0 15px;
}

/* 2. POST STYLING */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid rgba(209, 204, 192, 0.5);
    /* This ensures any text inside the LI also matches */
    color: #33302e; 
}

.post-list a {
    font-size: 1.6em;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.post-list .date {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a39c94;
}

/* 3. ENSURING POST CONTENT IS UNIFORM */
/* This targets paragraphs or general text inside your posts */
p, li, div, span {
    font-family: 'Playfair Display', serif;
}

footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #d1ccc0;
    font-size: 0.9em;
    color: #7a736a;
}
/* 1. CENTERING AND RESIZING IMAGES */
img {
    display: block;      /* Allows for centering with margin auto */
    margin: 20px auto;   /* Centers horizontally and adds space top/bottom */
    max-width: 80%;      /* Makes the image slightly smaller (adjustable) */
    height: auto;        /* Maintains the correct aspect ratio */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Soft professional shadow */
    border: 1px solid #d1ccc0;
}

/* 2. MAKING POST HEADINGS LARGER */
/* This targets standard headings (h2, h3) inside your posts */
.post-list h2, .post-list h3 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.post-list h2 {
    font-size: 2.2em; /* Significantly larger main headings */
    border-bottom: 1px solid rgba(140, 120, 81, 0.3); /* Subtle accent line */
    padding-bottom: 10px;
}

.post-list h3 {
    font-size: 1.8em; /* Slightly smaller sub-headings */
}

/* 3. ENSURING FIGURE CAPTIONS STAY CENTERED */
figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #7a736a;
    font-style: italic;
}
/* RE-ENABLING THE HOVER EFFECT */
.post-list li {
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.post-list li:hover {
    transform: translateY(-8px) !important; /* Lifts the card up */
    background-color: #ffffff !important;   /* Makes it pop against the pattern */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; /* Adds depth */
    border-color: #8c7851 !important;       /* Changes border to that gold/brass color */
}

/* Ensure the link inside the post also reacts */
.post-list li:hover a {
    color: #8c7851 !important;
}
/* Update your existing img rule */
img {
    display: block;
    margin: 20px auto;   /* Keeps images centered */
    width: 100%;         /* Forces images to fill their container width-wise */
    max-width: 600px;    /* Sets a standard maximum width for all images */
    height: 400px;       /* Sets a fixed height to ensure uniformity */
    object-fit: cover;   /* Crops the image to fill the 600x400 area without stretching */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #d1ccc0;
}

/* Ensure the specific Harvey AI div doesn't override these styles */
.post-image {
    text-align: center;
    width: 100%;
}
