.article-page {
    background: #fff;
    padding-top: var(--header-h);
    padding-bottom: 80px;
}

.article-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

.article-hero {
    padding: 70px 0 38px;
    background: #fff;
}
.article-meta-top {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
}
.article-meta-top a { color: var(--accent); }
.article-meta-top a:hover { color: var(--accent-light); }

.article-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.8px;
    color: var(--ink);
    margin-bottom: 18px;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0;
}

.article-cover {
    max-width: 760px;
    margin: 30px auto 42px;
    padding: 0 28px;
}
.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    margin: 0 auto;
}

.article-body-wrap {
    background: #fff;
}

.article-content {
    font-size: 1.18rem;
    line-height: 1.8;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
}
.article-content > * { margin-bottom: 1.4em; }
.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-top: 1.6em;
    margin-bottom: .6em;
    line-height: 1.25;
    letter-spacing: -.3px;
}
.article-content h1 { font-size: 2.1rem; }
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content p { font-size: 1.18rem; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent-light); }
.article-content strong { color: var(--ink); }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 22px;
    margin-left: 0;
    color: var(--ink-soft);
    font-style: italic;
    font-size: 1.2rem;
}
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin-bottom: .5em; }
.article-content img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 620px) !important;
    max-height: 640px;
    margin: 36px auto !important;
    float: none !important;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.article-content p:has(> img),
.article-content p:has(> img:only-child) {
    text-align: center;
}
.article-content figure {
    margin: 36px auto;
    text-align: center;
}
.article-content figure img { margin: 0 auto; }
.article-content figcaption {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--muted);
    font-style: italic;
}
.article-content pre {
    background: var(--bg-soft);
    padding: 18px;
    overflow-x: auto;
    border-left: 3px solid var(--primary);
    font-size: .95rem;
}
.article-content code {
    background: var(--bg-soft);
    padding: 2px 6px;
    font-size: .92em;
}
.article-content hr {
    border: 0; border-top: 1px solid var(--line);
    margin: 36px auto;
}

.article-tags {
    margin: 50px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.article-tags-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--muted); font-weight: 700; margin-right: 8px;
}
.tag-pill {
    padding: 6px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
    transition: all .2s ease;
}
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.article-share {
    margin: 40px 0 0;
    padding: 32px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
}
.article-share h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.share-buttons {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.share-btn.copied {
    background: var(--success); color: #fff; border-color: var(--success);
}
.share-btn i { font-size: 15px; }

.article-related {
    margin: 60px 0 0;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}
.article-related h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 22px;
    letter-spacing: -.3px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.related-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    transition: all .25s ease;
}
.related-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.related-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-soft);
}
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 16px 18px 18px; }
.related-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}
.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.35;
    letter-spacing: -.2px;
}

@media (max-width: 900px) {
    .article-cover { padding: 0 22px; margin: 24px auto 32px; }
    .article-cover img { max-height: 380px; }
}
@media (max-width: 720px) {
    .article-page { padding-bottom: 60px; }
    .article-hero { padding: 40px 0 20px; }
    .article-narrow { padding: 0 20px; }
    .article-meta-top { font-size: 11px; letter-spacing: .6px; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
    .article-page h1 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.4px; }
    .article-subtitle { font-size: 1.05rem; line-height: 1.45; }
    .article-cover { padding: 0 18px; margin: 18px auto 26px; }
    .article-cover img { max-height: 280px; }
    .article-content { font-size: 1.02rem; line-height: 1.75; }
    .article-content p { font-size: 1.02rem; }
    .article-content h1 { font-size: 1.6rem; }
    .article-content h2 { font-size: 1.35rem; }
    .article-content h3 { font-size: 1.15rem; }
    .article-content blockquote { font-size: 1.05rem; padding: 4px 0 4px 16px; }
    .article-content img { max-width: 100%; max-height: 460px; margin: 22px auto; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
    .article-tags { margin-top: 36px; padding-top: 22px; }
    .article-share { padding: 20px; margin-top: 30px; }
    .article-share h3 { font-size: 11px; letter-spacing: 1.5px; }
    .share-buttons { gap: 8px; }
    .share-btn { padding: 9px 12px; font-size: 12px; flex: 1 1 calc(50% - 4px); justify-content: center; }
    .article-related { margin-top: 44px; padding-top: 28px; }
    .article-related h3 { font-size: 1.2rem; }
    .related-grid { grid-template-columns: 1fr; gap: 14px; }
    .related-card { flex-direction: row; align-items: stretch; }
    .related-cover { width: 110px; flex-shrink: 0; aspect-ratio: 1 / 1; }
    .related-body { padding: 12px 14px; }
    .related-card h4 { font-size: .95rem; }
    .related-meta { font-size: 10px; letter-spacing: 1px; margin-bottom: 6px; }
}
@media (max-width: 420px) {
    .article-page h1 { font-size: 1.5rem; }
    .article-share { padding: 16px; }
    .share-btn { flex: 1 1 100%; }
    .related-cover { width: 90px; }
}
