@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #1a1a2e;
    --text-muted: #6c757d;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e9ecef;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --max-width: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background: var(--text);
    color: white;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1.3rem; font-weight: 700; color: white; text-decoration: none; letter-spacing: -0.5px; }
.site-nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; margin-left: 20px; transition: color 0.2s; }
.site-nav a:hover { color: white; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Main */
main { padding: 40px 0 60px; min-height: 60vh; }

/* Post list (homepage) */
.post-list { list-style: none; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; }
.post-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.post-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.post-title a:hover { color: var(--accent); }
.post-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.post-meta .category { background: var(--bg-secondary); padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; }
.post-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* Single post */
article h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
article .post-meta { margin-bottom: 30px; }
article .featured-image { width: 100%; max-height: 450px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; }
article h3 { margin-top: 35px; margin-bottom: 15px; font-size: 1.2rem; color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--border); }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 16px 0; padding-left: 24px; }
article li { margin-bottom: 8px; }
article img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
article blockquote { border-left: 4px solid var(--accent); padding: 15px 20px; margin: 20px 0; background: var(--bg-secondary); border-radius: 0 8px 8px 0; }
article details { margin: 10px 0; padding: 12px 16px; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--border); }
article summary { font-weight: 600; cursor: pointer; color: var(--text); }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.tag-list a { background: var(--bg-secondary); color: var(--text-muted); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; text-decoration: none; transition: all 0.2s; }
.tag-list a:hover { background: var(--accent); color: white; }

/* Footer */
.site-footer { background: var(--bg-secondary); padding: 30px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
.site-footer a { color: var(--text-muted); text-decoration: none; margin: 0 10px; }
.site-footer a:hover { color: var(--accent); }

/* Category page */
.category-title { font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }

/* Responsive */
@media (max-width: 640px) {
    .site-header .container { flex-direction: column; gap: 10px; }
    .site-nav a { margin-left: 12px; }
    article h1 { font-size: 1.4rem; }
}
