:root {
    --bg: #fef9f0;
    --card-bg: #ffffff;
    --text: #3e3a35;
    --accent: #b48c6c;
    --hover: #9c6e4e;
    --border: #e8e0d5;
    --beige-light: #f5ede3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1400px) {
    .container { max-width: 1300px; }
}
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    letter-spacing: -0.3px;
}
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; }
nav a:hover { color: var(--accent); }
.search-form { display: flex; gap: 0.25rem; }
.search-form input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 40px;
    background: var(--bg);
}
.hero {
    background: var(--beige-light);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
}
.hero h1 { font-size: 2.5rem; color: var(--accent); }
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
@media (min-width: 992px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
.post-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-5px); }
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card-content { padding: 1.2rem; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.post-card .meta { font-size: 0.85rem; color: #8b7b6e; margin-bottom: 0.75rem; }
.tags span {
    background: var(--beige-light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}
.read-more { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 500; text-decoration: none; }
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 3rem 0; }
.post-detail { max-width: 800px; margin: 2rem auto; }
.post-content { font-size: 1.1rem; margin: 2rem 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.comment, .reply {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}
.reply { margin-left: 2rem; background: var(--beige-light); }
.reply-btn { background: none; border: none; color: var(--accent); cursor: pointer; margin-top: 0.5rem; }
.comment-form textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
}
footer {
    background: var(--beige-light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}
@media (max-width: 768px) {
    header .container { flex-direction: column; text-align: center; }
    .posts-grid { grid-template-columns: 1fr; }
}