/* =====================================================================
   ARTICLE — single post
   ===================================================================== */

/* ── Sticky meta bar ──────────────────────────────────────────────── */
.ki-art-meta-bar {
    position: sticky;
    top: 56px;
    z-index: 50;
    background: rgba(23, 19, 31, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-line);
}
.ki-art-meta-bar-inner {
    display: flex;
    align-items: center;
    gap: 0 16px;
    padding: 10px 0;
}
.ki-art-back-btn {
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--hv-glow);
    text-decoration: none;
    border: 1px solid rgba(198, 162, 245, 0.4);
    padding: 5px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ki-art-back-btn:hover { background: rgba(198, 162, 245, 0.12); border-color: var(--hv-glow); color: #fff; }
.ki-art-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(198, 162, 245, 0.5); flex-shrink: 0; }
.ki-art-meta-text { font-family: var(--sans); font-size: 13px; color: var(--text-on-dark-soft); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.ki-art-hero {
    position: relative;
    width: 100%;
    min-height: clamp(440px, 72vh, 680px);
    background-size: cover;
    background-position: center 30%;
    background-color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: 100px;
    margin-top: 56px;
}
.ki-art-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(23, 19, 31, 0.30) 0%,
        rgba(23, 19, 31, 0.55) 38%,
        rgba(23, 19, 31, 0.92) 78%,
        rgba(23, 19, 31, 0.98) 100%
    );
}
.ki-art-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 90% at 12% 100%, rgba(107, 47, 214, 0.34) 0%, transparent 55%);
}
.ki-art-hero-inner { position: relative; z-index: 2; padding: 0 0 64px; }
.ki-art-hero-title {
    font-family: var(--display);
    font-size: clamp(2rem, 1.4rem + 3.2vw, 3.4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 22px;
    max-width: 20ch;
    text-shadow: 0 2px 28px rgba(10, 6, 18, 0.55);
}
.ki-art-hero-lead {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem);
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60ch;
    text-shadow: 0 1px 14px rgba(10, 6, 18, 0.55);
}
.ki-art-hero-lead p { margin: 0; }
.ki-art-hero-lead strong, .ki-art-hero-lead b { font-weight: 600; color: #fff; }
.ki-art-scroll-hint {
    position: absolute;
    left: 50%; bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(198, 162, 245, 0.7));
}
.ki-art-scroll-hint::after {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 5px; height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--hv-glow);
    animation: ki-art-drop 2.4s var(--ease) infinite;
}
@keyframes ki-art-drop {
    0%   { transform: translateY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(36px); opacity: 0; }
}

/* ── Body layout ──────────────────────────────────────────────────── */
.ki-art-body-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 0 76px;
}
.ki-art-body {
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.82;
    color: var(--text);
}
.ki-art-body h1, .ki-art-body h2, .ki-art-body h3, .ki-art-body h4 {
    font-family: var(--display);
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 2rem;
    clear: both;
}
.ki-art-body p { margin-bottom: 1.3rem; }
.ki-art-body a {
    color: var(--hv-deep);
    border-bottom: 1px solid rgba(107, 47, 214, 0.32);
    text-decoration: none;
}
.ki-art-body a:hover { color: var(--hv); border-color: var(--hv); }
.ki-art-body ul, .ki-art-body ol { padding-left: 1.4rem; }
.ki-art-body li { margin-bottom: 0.4rem; }
.ki-art-body blockquote {
    border-left: 2px solid var(--hv);
    margin: 2rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    font-style: italic;
    color: var(--text-soft);
    clear: both;
}

/* ── Inline floated images ────────────────────────────────────────── */
.ki-art-fig {
    margin: 6px 0 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    position: relative;
}
.ki-art-fig--right { float: right; margin-left: 26px; margin-bottom: 18px; width: 44%; }
.ki-art-fig--left  { float: left;  margin-right: 26px; margin-bottom: 18px; width: 44%; }
.ki-art-fig img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.ki-art-fig:hover img { transform: scale(1.03); }
.ki-art-body-end { clear: both; }

/* ── Author card ──────────────────────────────────────────────────── */
.ki-art-author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    box-shadow: var(--shadow-1);
    margin-bottom: 36px;
}
.ki-art-author-avatar {
    width: 66px; height: 66px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 4px rgba(107, 47, 214, 0.08);
    flex-shrink: 0;
}
.ki-art-author-name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.ki-art-author-bio { font-family: var(--sans); font-size: 0.88rem; line-height: 1.6; color: var(--text-soft); }
.ki-art-footer { padding-top: 16px; border-top: 1px solid var(--line); }
.ki-art-back-link {
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--hv-deep);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.ki-art-back-link:hover { border-color: var(--hv); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ki-art-hero { margin-top: 56px; }
    .ki-art-hero-inner { padding-bottom: 46px; }
    .ki-art-body-wrap { padding: 40px 0 54px; }
    .ki-art-body { font-size: 1.09rem; }
    .ki-art-author-card { flex-direction: column; gap: 14px; padding: 20px; }
    .ki-art-fig--right, .ki-art-fig--left { float: none; width: 100%; margin: 0 0 22px; }
}
