/* blog.css */

/* Background overrides for blog */
.blog-body {
    background-color: #fcfbf9; /* off-white cream */
    color: #2b2b2b; /* dark charcoal */
}

/* Nav keeps its dark background from main site — text stays white */
.blog-body .main-nav {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-body .nav-links a,
.blog-body .nav-logo a {
    color: #ffffff;
}
.blog-body .nav-links a:hover,
.blog-body .nav-links a.active {
    color: rgba(255,255,255,0.7);
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 40px;
}

.blog-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.blog-sidebar {
    text-align: center;
    /* sticky only on desktop — on mobile it stacks above the feed in normal flow */
}

@media (min-width: 769px) {
    .blog-sidebar {
        position: sticky;
        top: 100px;
    }
}

.author-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px; /* Rectangular frame, very slight rounding */
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.author-bio {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

/* Feed */
.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Article */
.blog-post {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 60px;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    font-variant-ligatures: common-ligatures;
}

.post-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 2px;
}

.post-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2b2b2b;
}

/* Drop cap for the first paragraph of content */
.post-content p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.8rem;
    float: left;
    margin-top: -0.05em;
    margin-right: 0.08em;
    line-height: 0.85;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 1.5em;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.6;
}

/* Post title link — no underline on the feed */
.post-title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-title-link:hover {
    opacity: 0.65;
}

/* Excerpt — brief teaser of post body */
.post-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.65;
    color: #4a4a4a;
    margin-top: 14px;
    margin-bottom: 6px;
    /* no drop-cap on excerpts */
}
