:root {
    --bg-color: #ffffff;
    --text-color: #242424;
    --text-muted: #6b6b6b;
    --accent-color: #1a8917;
    /* Medium green */
    --border-color: #f2f2f2;
    --font-serif: "Noto Serif KR", Georgia, serif;
    --font-sans: "Inter", "Outfit", system-ui, -apple-system, sans-serif;
    --container-width: 720px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.navbar,
.btn-print,
.category-tag,
.author-name,
.meta-details,
.footer {
    font-family: var(--font-sans);
}

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

/* Header & Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.btn-print {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-print:hover {
    background-color: #156d12;
}

/* Article Layout */
.article-container {
    padding: 60px 0;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.post-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-family: var(--font-sans);
    font-weight: 300;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.meta-details {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dot {
    margin: 0 5px;
}

/* Typography & Content Sections */
.section {
    margin-bottom: 60px;
}

.category-tag {
    display: inline-block;
    background: #f2f2f2;
    color: #444;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-block {
    margin-bottom: 50px;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-block p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #333;
}

.main-figure {
    margin: 30px 0;
}

.main-figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.main-figure figcaption {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.value-box {
    background-color: #fafafa;
    border-left: 3px solid var(--accent-color);
    padding: 24px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.value-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.value-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-style: italic;
}

.key-quote {
    font-size: 1.6rem;
    font-style: italic;
    border-left: 3px solid var(--text-color);
    padding-left: 30px;
    margin: 40px 0;
    color: #1a1a1a;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* Print Styles - Optimized to look like screen */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        /* Chrome, Safari, Edge */
        print-color-adjust: exact !important;
        /* Firefox */
    }

    body {
        background-color: white !important;
        color: var(--text-color) !important;
    }

    .navbar,
    .btn-print,
    .footer {
        display: none !important;
    }

    .article-container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    /* Remove page-breaks that split topics */
    .section,
    .content-block,
    .value-box,
    figure,
    blockquote {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Style titles to stand out in print */
    .post-title {
        font-size: 28pt;
        margin-top: 0;
        color: black !important;
    }

    .category-tag {
        background-color: #f2f2f2 !important;
        color: #444 !important;
        border: 1px solid #ddd;
    }

    .value-box {
        background-color: #fafafa !important;
        border-left: 5px solid var(--accent-color) !important;
        -webkit-print-color-adjust: exact;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    @page {
        margin: 1.5cm;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }
}