:root {
    color-scheme: light;
    --bg: #fbfbfc;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --text: #111827;
    --muted: #667085;
    --border: #e5e7eb;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.blog-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(251, 251, 252, 0.92);
    backdrop-filter: blur(18px);
}

.blog-logo {
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.blog-nav nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.blog-nav nav a,
.back-link,
.read-link {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.blog-nav nav a:hover,
.back-link:hover,
.read-link:hover {
    color: var(--accent);
}

.blog-shell,
.article-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: end;
    padding: 96px 0 40px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-panel {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hero-panel span,
.post-card-meta,
.article-meta {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.hero-panel strong {
    font-size: 1.18rem;
    line-height: 1.45;
}

.hero-panel a {
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
}

.blog-tools {
    display: grid;
    gap: 16px;
    padding: 22px 0 34px;
    border-top: 1px solid var(--border);
}

.blog-tools p {
    margin: 0;
    color: var(--muted);
}

.blog-summary {
    max-width: 820px;
    margin: 0 0 34px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.blog-summary h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.blog-summary p {
    margin: 0;
    color: #374151;
}

code {
    padding: 0.1em 0.32em;
    border-radius: 5px;
    background: var(--surface-strong);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

.app-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.app-chip-list span {
    color: var(--muted);
    font-weight: 750;
}

.app-chip-list a,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 64px;
}

.post-card {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.post-card > :not(.post-card-media) {
    margin-right: 28px;
    margin-left: 28px;
}

.post-card-media {
    margin: 0 0 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-strong);
}

.post-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card h2 {
    margin: 18px 0 12px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}

.post-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    margin-bottom: 28px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-card-actions {
    display: inline-flex;
    flex-shrink: 0;
    gap: 14px;
    align-items: center;
}

.download-link {
    color: var(--accent);
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
}

.article-shell {
    max-width: 840px;
}

.article {
    padding: 72px 0;
}

.article h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.article-description {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 1.12rem;
}

.quick-answer {
    margin: 28px 0 0;
    padding: 22px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

.quick-answer h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.quick-answer p {
    margin: 0;
    color: #1f2937;
}

.quick-answer p + p {
    margin-top: 10px;
}

.article-hero-media {
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.article-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.download-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 30px 0 0;
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.download-cta span {
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.download-cta p {
    margin: 5px 0 0;
    color: #1f2937;
}

.download-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    flex-shrink: 0;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.article-body {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 36px 0 12px;
    line-height: 1.25;
}

.article-body h2 {
    font-size: 1.72rem;
}

.article-body h3 {
    font-size: 1.32rem;
}

.article-body p,
.article-body li {
    color: #374151;
    font-size: 1.04rem;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--surface-strong);
    color: #374151;
}

.article-body pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
}

.article-body a {
    color: var(--accent-strong);
    font-weight: 700;
}

.article-faq,
.related-posts {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.article-faq h2,
.related-posts h2 {
    margin: 0 0 18px;
    font-size: 1.52rem;
    line-height: 1.25;
}

.article-faq details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.article-faq details + details {
    margin-top: 10px;
}

.article-faq summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 800;
}

.article-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: #374151;
}

.related-post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.related-post-list a {
    display: grid;
    gap: 8px;
    min-height: 126px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-decoration: none;
}

.related-post-list span {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.related-post-list strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.35;
}

.blog-footer {
    border-top: 1px solid var(--border);
    padding: 28px 32px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 800px) {
    .blog-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }

    .blog-nav nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .blog-shell,
    .article-shell {
        width: min(100% - 28px, 1120px);
    }

    .blog-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 58px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-card-actions,
    .download-cta {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .download-cta a {
        width: 100%;
    }

    .related-post-list {
        grid-template-columns: 1fr;
    }
}
