*::before,
*::after {
    box-sizing: border-box;
}

body.theme-custom {
    margin: 0;
    padding: 0;
    min-width: 0;
    background-color: #412e1b; 
    color: #1f130b;
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.6;
    display: flex;
    justify-content: center;
}

.blog-container {
    max-width: 1000px;
    width: min(100%, 1000px);
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    background: url('./images/background.png') no-repeat center top;
    background-size: cover;
    background-repeat: repeat;
    padding: clamp(1rem, 4vw, 4rem);
    display: flex;
    flex-direction: column; 
    gap: 2.5rem;
}

.blog-banner-header {
    width: 100%;
    text-align: center;
    background: none; 
    padding: 0;
    border: none;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 3rem);
}

.main-feed {
    flex: 2;
    min-width: 0;
}

.blog-sidebar {
    flex: 1;
    padding-left: 1.5rem;
    border-left: 1px dashed rgba(74, 46, 27, 0.25);
    min-width: 0;
    overflow-wrap: anywhere;
}

.blog-post {
    background-color: #fdfbf7; 
    padding: clamp(1.1rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    border: 1px solid rgba(74, 46, 27, 0.2);
    outline: 1px dashed rgba(74, 46, 27, 0.4); 
    outline-offset: -4px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    transform: rotate(-0.5deg);
}

.blog-post:nth-child(even) {
    transform: rotate(0.5deg);
}

.post-title-link {
    text-decoration: none;
    color: #4a2e1b; 
}

.blog-post h2 {
    font-family: 'Rye', serif; 
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #4a2e1b;
    overflow-wrap: anywhere;
}

.blog-post h2:hover {
    color: #a0643a; 
}

.post-meta {
    font-size: 0.95rem;
    font-style: italic;
    color: #74492b;
    border-bottom: 1px double rgba(74, 46, 27, 0.3); 
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.post-body {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    text-align: left; 
    text-justify: inter-word;
    color:#1f130b;
    min-width: 0;
    overflow-wrap: anywhere;
}

.post-body {
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    text-align: left;
    overflow-wrap: anywhere;
}

.post-body::first-letter {
    font-family: 'Rye', serif;
    font-size: 3.5rem;
    float: left;
    margin-right: 0.6rem;
    line-height: 0.85;
    color:#74492b; 
}

/*  About the Author Section */

.author-banner-img {
    width: 100%;
    max-width: 850px; 
    height: auto;
    border-radius: 1rem;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); 
}
   
img {
    display: block;
    border-radius: 1rem;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4); 
}

.post-body img,
.blog-post img,
.blog-banner-header img {
    display: block;
    max-width: 100%;
    height: auto;
}

.post-body video,
.post-body iframe {
    max-width: 100%;
}

.post-body pre,
.post-body table {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 700px) {
    .blog-container {
        min-height: 100vh;
        gap: 1.5rem;
    }

    .blog-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-sidebar {
        padding: 1.25rem 0 0;
        border-left: 0;
        border-top: 1px dashed rgba(74, 46, 27, 0.25);
    }

    .blog-post,
    .blog-post:nth-child(even) {
        transform: none;
    }
}

@media (max-width: 420px) {
    .blog-container {
        padding: 0.75rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .blog-post h2 {
        line-height: 1.15;
    }

    .post-body::first-letter {
        font-size: 2.8rem;
    }
}


