/*
Theme Name: Quartz Lite
Author: Alexander (Netkela)
Description: Минималистичная тема для заметок. Шрифт Inter, фиксированный сайдбар.
Version: 1.0
*/

/* Подключаем шрифт Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-sidebar: #f7f7f7; /* Светло-серый фон сайдбара */
    --text-main: #111;
    --text-meta: #666;
    --accent: #000; /* Цвет ссылок */
    --spacing: 40px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px; /* Крупный, читабельный текст */
    background: #fff;
}

/* Сетка страницы */
.site-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr; /* Сайдбар 280px, остальное - контент */
    min-height: 100vh;
}

/* Сайдбар */
.sidebar {
    background: var(--bg-sidebar);
    padding: var(--spacing);
    position: sticky; /* Липкий сайдбар */
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
}

.site-title a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 24px;
    display: block;
    margin-bottom: var(--spacing);
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li { margin-bottom: 12px; }
.main-menu a {
    text-decoration: none;
    color: var(--text-meta);
    font-weight: 500;
    transition: color 0.2s;
}
.main-menu a:hover { color: #000; }

/* Основной контент */
.content-area {
    padding: 60px 10%; /* Отступы для комфортного чтения */
    max-width: 900px; /* Ограничиваем ширину строки */
}

/* Посты */
.post { margin-bottom: 80px; }

.post-header { margin-bottom: 20px; }

.post-meta {
    font-size: 14px;
    color: var(--text-meta);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 32px;
    line-height: 1.2;
}

.post-title a {
    text-decoration: none;
    color: #000;
}
.post-title a:hover { text-decoration: underline; }

/* Контент поста */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.entry-content p { margin-bottom: 1.5em; }

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .site-wrapper { grid-template-columns: 1fr; }
    .sidebar {
        position: relative;
        height: auto;
        padding: 20px;
        border-bottom: 1px solid #eee;
    }
    .content-area { padding: 30px 20px; }
    .post-title { font-size: 26px; }
}