/* Post Detail Page */
.article-wrap {
    background: #fffdfa;
    border: 1px solid #eadfd4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(68, 45, 24, 0.08);
}

.article-header {
    padding: 44px 44px 28px;
}

.article-header h1 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #2f241d;
}

.article-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #66564a;
}

.article-cover {
    width: 100%;
    background: #eadfd4;
    border-top: 1px solid #eadfd4;
    border-bottom: 1px solid #eadfd4;
}

.article-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-content {
    padding: 42px 44px 50px;
    color: #3f342c;
    font-size: 17px;
    line-height: 2;
}

.article-content h2 {
    margin: 42px 0 16px;
    font-size: 30px;
    line-height: 1.35;
    color: #2f241d;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    margin: 36px 0 14px;
    font-size: 24px;
    line-height: 1.4;
    color: #2f241d;
}

.article-content h4 {
    margin: 30px 0 12px;
    font-size: 20px;
    line-height: 1.4;
    color: #2f241d;
}

.article-content p {
    margin: 0 0 22px;
}

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

.article-content li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 34px 0;
    padding: 22px 24px;
    border-left: 4px solid #9a6a45;
    border-radius: 14px;
    background: #f8f1ea;
    color: #4d3f34;
}

.article-content blockquote p {
    margin: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    color: #8b7a6b;
    font-size: 14px;
    font-style: normal;
}

.article-content figure {
    margin: 34px 0;
}

.article-content figure img {
    width: 100%;
    border-radius: 18px;
}

.article-content figcaption {
    margin-top: 10px;
    color: #8b7a6b;
    font-size: 14px;
    text-align: center;
}

.article-content hr {
    margin: 38px 0;
    border: none;
    border-top: 1px solid #eadfd4;
}

/* Editor.js Image Class Output */
.article-content figure.with-border img {
    border: 1px solid #e0d1c3;
}

.article-content figure.with-background {
    padding: 22px;
    border-radius: 20px;
    background: #f6ede4;
}

.article-content figure.is-stretched {
    margin-left: -20px;
    margin-right: -20px;
}

.article-content a {
    color: #8d6242;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #6f4a32;
}

/* Related Posts */
.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-thumb {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #ead8c6, #c5a78a);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 34%),
        linear-gradient(135deg, #9a6a45, #d3b091);
}

.post-thumb-placeholder span {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255,255,255,.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 900px) {
    .article-header {
        padding: 32px 26px 24px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-content {
        padding: 32px 26px 42px;
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 26px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-wrap {
        border-radius: 18px;
    }

    .article-header,
    .article-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .article-header p {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 23px;
    }

    .article-content h3 {
        font-size: 21px;
    }

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