/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem; 
    color: #e2e8f0; 
}

/* Header Styles */
header {
    width: 100%;
    max-width: 56rem; /* max-w-3xl equivalent */
    background-color: #191b1f; /* Darker blue-gray */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for dark theme */
    padding: 1.5rem; /* p-6 */
    margin-bottom: 2rem; /* mb-8 */
    text-align: center;
}

header h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-extrabold */
    color: #f7fafc; /* Lighter text for main title */
    margin-bottom: 0.5rem; /* mb-2 */
}

header p {
    font-size: 1.125rem; /* text-lg */
    color: #cbd5e0; /* Slightly darker light gray */
}

header nav {
    margin-top: 1rem; /* mt-4 */
}

header nav a {
    color: #60a5fa; /* Light blue for links */
    text-decoration: none;
    font-size: 1rem; /* text-base */
    font-weight: 700; /* Made font bold */
}

header nav a:hover {
    text-decoration: underline;
    color: #2563eb; /* Darker blue on hover */
}

/* Main Content Area (Prose-like styling) */
main {
    width: 100%;
    max-width: 56rem; /* max-w-3xl equivalent */
    background-color: #191b1f; /* Darker blue-gray */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for dark theme */
    padding: 2rem; /* p-8 */
    margin-bottom: 2rem; /* Added margin to separate from sidebar */
}

main h2, main h3, main h4, main h5, main h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
    color: #f7fafc; /* Lighter text for headings */
}
main h2 { font-size: 1.875rem; } /* text-3xl */
main h3 { font-size: 1.5rem; }   /* text-2xl */

main p {
    margin-bottom: 1em;
    line-height: 1.75;
    color: #e2e8f0; /* Light gray text */
}
main ul, main ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
    color: #e2e8f0; /* Light gray text */
}
main li {
    margin-bottom: 0.5em;
}
main a {
    color: #60a5fa; /* Light blue for links */
    text-decoration: underline;
}
main a:hover {
    color: #2563eb; /* Darker blue on hover */
}

/* Sidebar Styles (now 'related-posts') */
.related-posts {
    width: 100%;
    max-width: 56rem;
    background-color: #191b1f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7fafc;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-list li {
    margin-bottom: 1rem;
}

.sidebar-post-list a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.sidebar-post-list a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.sidebar-post-date {
    font-size: 0.875rem;
    color: #a0aec0;
    display: block;
    margin-top: 0.25rem;
}

/* Footer Styles */
footer {
    margin-top: 3rem; /* mt-12 */
    text-align: center;
    color: #a0aec0; /* Medium gray */
    font-size: 0.875rem; /* text-sm */
}

/* Return to Top Link Styles */
.return-to-top-link {
    display: block; /* Make it a block element to take full width and center */
    text-align: center;
    margin-top: 2rem; /* Space above the link */
    margin-bottom: 1rem; /* Space below the link, before footer */
}

.return-to-top-link a {
    color: #60a5fa; /* Light blue link color */
    text-decoration: none; /* No underline by default */
    font-size: 1rem;
    font-weight: 700; /* Made font bold */
    transition: color 0.2s ease-in-out;
}

.return-to-top-link a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #2563eb; /* Darker blue on hover */
}

/* Responsive adjustments for smaller screens */
@media (min-width: 640px) { /* sm breakpoint */
    body {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    body {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
    main {
        padding: 2.5rem; /* lg:p-10, slightly larger for prose */
    }
}