:root {
    --bg-paper: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #1a3a2f;
    --text-body: #343a40;
    --text-muted: #6c757d;
    --headline-bg: #eef3f1;
    --accent-color: #8c6239;
    --border-color: #dee2e6;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-paper); color: var(--text-body); line-height: 1.8; font-size: 1.1rem; }
h1, h2, h3, h4 { font-family: 'Lora', serif; color: var(--text-main); margin-top: 2em; margin-bottom: 1em; line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; border-bottom: 2px solid var(--headline-bg); padding-bottom: 0.3em; }
h3 { font-size: 1.6rem; }
p, ul, ol, table { margin-bottom: 1.5rem; }
a { color: var(--accent-color); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
strong { color: var(--text-main); font-weight: 600; }
img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.scroll-progress-bar-container { position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: transparent; z-index: 1001; }
.scroll-progress-bar { height: 5px; background: var(--accent-color); width: 0%; will-change: width; }

.page-header { background: var(--text-main); color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.page-header .logo-title { margin: 0; font-size: 24px; color: white; font-family: 'Lora', serif; text-decoration: none; border-bottom: none; }
nav { display: flex; gap: 25px; }
nav a { color: white; text-decoration: none; font-size: 16px; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
nav a:hover { border-color: var(--accent-color); text-decoration: none; }
#hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001; }
#hamburger-btn .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: all 0.3s ease-in-out; }

.blog-post-container { max-width: 800px; margin: 40px auto; padding: 40px 60px; background: var(--card-bg); box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-radius: 8px; border-top: 5px solid var(--text-main); }
.blog-post-container h1:first-of-type { margin-top: 0; }

figure { margin: 2.5em 0; text-align: center; }
figcaption { color: var(--text-muted); font-size: 0.9em; margin-top: 10px; font-style: italic; }

blockquote { margin: 2em 0; padding: 1.5em 2em; background: var(--headline-bg); border-left: 5px solid var(--accent-color); font-style: italic; font-family: 'Lora', serif; font-size: 1.2rem; position: relative; }
blockquote p { margin: 0; }
blockquote::before { font-family: 'Lora', serif; content: "“"; position: absolute; left: 0.3em; top: 0; font-size: 4em; color: rgba(0,0,0,0.08); }

.faq-section { margin-top: 3em; padding-top: 2em; border-top: 2px solid var(--headline-bg); }
.faq-section details { border-bottom: 1px solid var(--border-color); padding: 1.5em 0; }
.faq-section summary { font-weight: 600; color: var(--text-main); font-size: 1.2rem; cursor: pointer; list-style: none; position: relative; padding-right: 2em; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { padding: 1em 0 0 0; margin-bottom: 0; }

.related-posts-section { padding-top: 2em; margin-top: 3em; border-top: 2px solid var(--headline-bg); }
.related-posts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.related-post-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text-body); border: 1px solid var(--border-color); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.related-post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.related-post-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--border-color); }
.related-post-card-content { padding: 15px; }
.related-post-card-content h4 { margin: 0 0 10px 0; font-size: 1.1rem; line-height: 1.4; color: var(--text-main); }
.related-post-card-content p { font-size: 0.9rem; margin: 0; line-height: 1.5; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .blog-post-container { padding: 25px 20px; margin: 20px 10px; }
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--text-main); flex-direction: column; padding: 0; gap: 0; }
    nav.active { display: flex; }
    nav a { text-align: center; padding: 15px 0; border-bottom: 1px solid #4a6a5f; }
    #hamburger-btn { display: block; }
    #hamburger-btn.active .bar:nth-child(2) { opacity: 0; }
    #hamburger-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #hamburger-btn.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}