/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #000000;
    --link-color: #555555;
    --link-hover: #000000;
    --border-color: #eeeeee;
    --meta-color: #999999;
    
    --font-body: 'Karla', sans-serif;
    --font-heading: 'Rubik', sans-serif;
    
    --sidebar-width: 260px;
    --container-max-width: 900px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--link-hover);
}

/* Layout */
.layout-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 60px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    height: fit-content;
    max-height: calc(100vh - 120px); /* Subtract top/bottom padding */
    overflow-y: auto; /* Allow scrolling */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.sidebar::-webkit-scrollbar { 
    display: none; /* Hide scrollbar Chrome/Safari */ 
}

.sidebar-header {
    margin-bottom: 40px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-img {
    margin-bottom: 20px;
}

.site-logo {
    width: 100%;
    height: auto;
    max-width: 180px; /* Adjusting for a balanced look in the sidebar */
    display: block;
}

.motto {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.nav-group {
    margin-bottom: 35px;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 8px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 700; /* Bold links like Mojiken */
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-list a:hover {
    color: #000;
    text-decoration: underline;
}

.disabled-link {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: default;
}

.contact-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.contact-email {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

/* Main Feed */
.feed {
    flex-grow: 1;
    max-width: 600px;
}

.post {
    margin-bottom: 80px;
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-title a {
    color: #000;
}

.post-body {
    font-size: 15px;
    color: #444;
}

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

.post-body strong {
    color: #000;
    font-weight: 700;
}

.media-container {
    width: 100%;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.post-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem !important;
    font-weight: 500;
}

blockquote.question {
    background: #f9f9f9;
    border-left: 3px solid #000;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-link {
    display: inline-block;
    border: 2px solid #000;
    color: #000;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-link:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* Meta Data */
.post-meta {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--meta-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-meta .tags {
    color: #ccc;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.page-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: #000;
}

.site-footer {
    margin-top: 60px;
    font-size: 11px;
    color: #ccc;
}

/* Mobile */
@media (max-width: 800px) {
    .layout-container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-list li {
        margin-bottom: 0;
    }
    
    .contact-text, .motto {
        max-width: 100%;
    }
}
