/*
Theme Name: Billy Snooze Theme
Author: Billy
Description: A minimalist, analytical theme for the "Thinking Beyond Intuition" blog.
Version: 1.0
*/

/* === GLOBAL & TYPOGRAPHY === */
:root {
    --bg-color: #1a1a1a;
    --surface-color: #242424;
    --text-primary: #e1e1e1;
    --text-secondary: #9e9e9e;
    --accent-color: #4a90e2; /* A cool, clear blue */
    --border-color: #3a3a3a;

    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: white;
}

/* === HEADER & NAVIGATION === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

header .logo a {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}
header nav a:hover {
    color: var(--text-primary);
}
header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
header nav a:hover::after {
    transform: scaleX(1);
}

/* === MAIN CONTENT: INTRO & HEADINGS === */
main {
    padding: 0rem 0;
}

.intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(4rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.intro .subtitle {
    font-size: clamp(1rem, 2.5vw, 1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.posts-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* === POSTS GRID & CARDS === */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.post-card-link:hover {
    background-color: var(--surface-color);
}

.post-card {
    padding: 1.75rem;
    border: 1px solid transparent; /* Placeholder for hover state */
    transition: border-color 0.2s ease-in-out;
}

.post-card-link:hover .post-card {
    border-left: 1px solid var(--accent-color);
}

.post-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-card .post-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    .container {
        padding: 0 1rem;
    }
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    main {
        padding: 2.5rem 0;
    }
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}
.menu a:hover {
    color: var(--text-primary);
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.menu a:hover::after {
    transform: scaleX(1);
}

/* === SINGLE POST STYLING === */
.single-post-container {
    padding: 2rem 0;
}

.single-post-content {
    max-width: 700px; /* Optimal width for reading */
    margin: 0 auto;
}

.single-post-content .post-header {
    /* New Flexbox Rules to force vertical stacking */
    display: flex;
    flex-direction: column; /* This is the key: it stacks items vertically */
    align-items: center;   /* This centers the stacked items horizontally */

    /* Original styling */
    text-align: center;
	margin-top: 0rem;
	padding-top: 0rem;
    margin-bottom: 0rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.single-post-content .post-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 2.25rem);
    line-height: 1.5;
    color: #fff;
    margin-bottom: 2rem;
}

.single-post-content .post-meta {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem 0;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--accent-color);
    background-color: var(--surface-color);
    font-style: italic;
    color: var(--text-secondary);
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}