/* MORTUMUS — Blog styles */
/* ─ tharkia: #0a0a0a  ─  phyron: #8b2020  ─  phonos: #d4c4a8  ─ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #a89b8a;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    padding: 60px 24px;
    max-width: 740px;
    margin: 0 auto;
}

/* ─── Navigation ─── */
.back { display: inline-block; margin-bottom: 32px; font-size: 0.85rem; color: #555; text-decoration: none; }
.back:hover { color: #888; }

/* ─── Blog Index ─── */
.blog-heading { color: #d4c4a8; font-size: 1.5rem; margin-bottom: 32px; }

.blog-list { list-style: none; }

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 24px 0;
    border-bottom: 1px solid #1a1714;
    transition: opacity 0.2s ease;
}

.blog-card:first-child { padding-top: 0; }
.blog-card:last-child { border-bottom: none; }
.blog-card:hover { opacity: 0.8; }

.blog-card-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-card-thumb {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.blog-card-body { flex: 1; min-width: 0; }

.blog-card-title {
    color: #d4c4a8;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 6px;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #8a8070;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    color: #555;
    font-size: 0.9rem;
    padding: 40px 0;
}

/* ─── Blog Post ─── */
.post-header { margin-bottom: 40px; }

.post-title {
    color: #d4c4a8;
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-date {
    font-size: 0.8rem;
    color: #665e53;
}

/* Article content */
.post-content h2 {
    color: #c4b9a7;
    font-size: 1.2rem;
    margin: 36px 0 14px;
}

.post-content h3 {
    color: #b8ad9c;
    font-size: 1.05rem;
    margin: 28px 0 10px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content a { color: #8b2020; text-decoration: none; }
.post-content a:hover { color: #a02828; }

.post-content ul, .post-content ol {
    margin: 0 0 16px 24px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content blockquote {
    border-left: 3px solid #2a2520;
    padding: 8px 16px;
    margin: 16px 0;
    color: #8a8070;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}

.post-content strong { color: #c4b9a7; }
.post-content em { color: #a89b8a; }

.post-content code {
    background: #141210;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #c4b9a7;
}

.post-content pre {
    background: #141210;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* YouTube embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 24px 0;
    border-radius: 4px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Blog CTA ─── */
.blog-cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #1a1714;
    text-align: center;
}

.blog-cta-label {
    font-size: 0.85rem;
    color: #665e53;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.signup {
    text-align: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;
}

.signup-form {
    display: flex;
    gap: 0;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #2a2520;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: #d4c4a8;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.signup-form input[type="email"]::placeholder {
    color: #444;
}

.signup-form input[type="email"]:focus {
    border-color: #4a3528;
}

.signup-form button {
    padding: 8px 16px;
    background: #8b2020;
    color: #e8ddd0;
    border: 1px solid #8b2020;
    border-radius: 0 3px 3px 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.signup-form button:hover {
    background: #a02828;
    border-color: #c03030;
}

.signup-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-msg {
    font-size: 0.8rem;
    margin-top: 10px;
    min-height: 1.2em;
}

.signup-msg.success { color: #6a9955; }
.signup-msg.error { color: #b33a3a; }

.blog-cta-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.85rem;
}

.blog-cta-links a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.blog-cta-links a:hover { color: #888; }

.blog-cta-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─── Footer ─── */
.blog-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #1a1714;
    text-align: center;
    font-size: 0.75rem;
    color: #3a3632;
}

.blog-footer a {
    color: #555;
    text-decoration: none;
}

.blog-footer a:hover { color: #888; }

/* ─── Cookie banner ─── */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #141210;
    border-top: 1px solid #2a2520;
    padding: 14px 24px;
    font-size: 0.8rem;
    color: #8a8070;
}

.cookie-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner a { color: #a89b8a; text-decoration: underline; }

.cookie-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cookie-btn-accept {
    background: #8b2020;
    color: #e8ddd0;
    border: 1px solid #a02828;
}

.cookie-btn-decline {
    background: transparent;
    color: #665e53;
    border: 1px solid #333;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    body { padding: 40px 16px; }

    .post-title { font-size: 1.3rem; }

    .blog-card-inner {
        flex-direction: column;
        gap: 12px;
    }

    .blog-card-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
