/* Vazimut Theme — Professional Writer & Author */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
    --color-primary: #8b4513;
    --color-primary-dark: #6b3410;
    --color-bg: #fdfaf6;
    --color-bg-card: #fff;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-border: #e8e0d8;
    --color-border-light: #f0ebe5;
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-sans);
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.35; color: #1a1a1a; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1.3em; font-size: 1.0625rem; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-branding { display: flex; flex-direction: column; }
.site-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.site-logo:hover { color: var(--color-primary); }
.site-tagline { font-size: 0.85rem; color: var(--color-text-light); font-style: italic; }

/* Navigation */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle-icon { display: block; width: 22px; height: 2px; background: var(--color-text); position: relative; border-radius: 2px; }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; display: block; width: 22px; height: 2px; background: var(--color-text); position: absolute; left: 0; border-radius: 2px; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.nav-menu { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-menu .menu-item a { font-size: 0.9rem; font-weight: 600; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.5px; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.nav-menu .menu-item a:hover, .nav-menu .menu-item.current a { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.layout-content { min-width: 0; }
.layout-sidebar { position: sticky; top: 90px; }

/* Hero */
.hero { padding: 3.5rem 0 2.5rem; text-align: center; border-bottom: 1px solid var(--color-border); margin-bottom: 3rem; }
.hero-title { font-size: 2.8rem; margin-bottom: 0.8rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--color-text-light); max-width: 640px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Section */
.section { margin-bottom: 2rem; }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-primary); display: inline-block; }

/* Post Cards */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--color-bg-card); border: 1px solid var(--color-border-light); border-radius: var(--radius); transition: all 0.2s; box-shadow: var(--shadow-sm); }
.post-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card-content { padding: 1.5rem; }
.post-card-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; }
.post-card-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.post-card-title a { color: #1a1a1a; }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-excerpt { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.5; }
.post-card-link { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.5px; }

/* Blog List */
.posts-list { display: flex; flex-direction: column; gap: 2rem; }
.post-list-item { background: var(--color-bg-card); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 1.75rem; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.post-list-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.post-list-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.post-list-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.post-list-title a { color: #1a1a1a; }
.post-list-title a:hover { color: var(--color-primary); }
.post-list-excerpt { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 0.75rem; line-height: 1.6; }
.read-more { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.5px; }

/* Page Header */
.page-header { margin-bottom: 2rem; }
.page-header-line { width: 60px; height: 3px; background: var(--color-primary); margin: 1rem auto 0; border-radius: 2px; }
.page-title { font-size: 2.2rem; margin-bottom: 0.3em; }
.page-meta { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0.5rem; text-align: center; }
.page-categories { margin-left: 0.75rem; }
.category-tag { display: inline-block; background: var(--color-border-light); color: var(--color-primary-dark); padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-right: 0.4rem; }

/* Article Content */
.page-content { color: #2a2a2a; }
.page-content p { margin-bottom: 0.85em; line-height: 1.85; font-size: 1.05rem; }
.page-content h2 { font-size: 1.5rem; margin: 2em 0 0.5em; padding-top: 0.5em; border-top: 1px solid var(--color-border); text-align: center; letter-spacing: 0.03em; color: #1a1a1a; }
.page-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0.2em; }
.page-content h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; color: #333; }
.page-content blockquote { border-left: 3px solid var(--color-primary); padding: 1rem 1.5rem; margin: 1.5em 0; background: #faf7f2; font-style: italic; color: #5a5a5a; border-radius: 0 4px 4px 0; }
.page-content blockquote p { margin-bottom: 0.3em; }
.page-content hr { border: none; text-align: center; margin: 2em 0; height: 1.5em; position: relative; }
.page-content hr::after { content: "\2042"; font-size: 1.3rem; color: #bbb; position: absolute; top: -0.2em; left: 50%; transform: translateX(-50%); }
.page-content em { font-style: italic; color: #7a6a5e; }
.page-content strong { font-weight: 700; }
.page-content a { border-bottom: 1px dotted var(--color-primary); }
.page-content a:hover { border-bottom-style: solid; }
.page-content ul, .page-content ol { margin: 1em 0 1.5em 2em; }
.page-content li { margin-bottom: 0.3em; line-height: 1.7; }

/* Page Footer */
.page-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.share-label { font-size: 0.85rem; color: var(--color-text-light); }
.share-link { display: inline-block; padding: 0.35rem 0.85rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.3px; }
.share-link.fb { background: #1877f2; }
.share-link.vk { background: #0077ff; }
.share-link.tg { background: #0088cc; }
.share-link:hover { opacity: 0.85; color: #fff; }

/* Sidebar */
.sidebar-widget { background: var(--color-bg-card); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-border); color: #1a1a1a; }
.author-card { text-align: center; }
.avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; }
.author-bio { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.5; margin-bottom: 1rem; }
.widget-posts { list-style: none; }
.widget-post-item { padding: 0.6rem 0; border-bottom: 1px solid var(--color-border-light); }
.widget-post-item:last-child { border-bottom: none; }
.widget-post-link { display: flex; flex-direction: column; }
.widget-post-title { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.widget-post-link:hover .widget-post-title { color: var(--color-primary); }
.widget-post-date { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.widget-categories { list-style: none; }
.widget-categories li { margin-bottom: 0.35rem; }
.widget-categories li a { font-size: 0.9rem; color: var(--color-text); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); padding: 2.5rem 0 2rem; margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
.footer-info p { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--color-text-light); }
.footer-links a:hover { color: var(--color-primary); }
.footer-social .social-link { font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); }

/* Responsive */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .layout-sidebar { position: static; order: 2; margin-top: 2rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    h1 { font-size: 1.8rem; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .menu-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
    .nav-menu.active { display: flex; }
    .nav-menu .menu-item a { padding: 0.6rem 1.5rem; display: block; border-bottom: none; }
    .site-logo { font-size: 1.2rem; }
    .hero { padding: 2rem 0; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .page-content p { font-size: 1rem; }
}

/* Author photo in sidebar */
.author-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

/* Hide the old text placeholder */
.author-card .avatar-placeholder {
    display: none;
}
