/* ============================================================
   Ensonova blog post styles
   Loaded after style.css on /blog/<slug>/ pages.
   ============================================================ */

/* --- Hero --- */
.post-hero {
    position: relative;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.post-hero__art {
    position: relative;
    max-width: 920px;
    margin: 0 auto 3rem;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: radial-gradient(ellipse at 30% 40%, rgba(215, 166, 74, 0.18), transparent 60%),
                radial-gradient(ellipse at 75% 70%, rgba(185, 123, 47, 0.14), transparent 65%),
                linear-gradient(135deg, #14110d 0%, #0a0a0b 100%);
    border: 1px solid rgba(215, 166, 74, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.post-hero__art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.post-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--about-gold-primary, #d7a64a);
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.post-hero__meta::before,
.post-hero__meta::after {
    content: "";
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--about-gold-primary, #d7a64a), transparent);
    display: inline-block;
}

.post-hero__title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 5.2vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 auto 1.25rem;
    max-width: 880px;
    color: #f5f1ea;
}

.post-hero__deck {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.5;
    color: rgba(245, 241, 234, 0.72);
    max-width: 640px;
    margin: 0 auto;
}

/* --- Article body --- */
.post-body {
    padding: 2rem 1.5rem 4rem;
}

.post-body__inner {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.78;
    color: rgba(245, 241, 234, 0.86);
}

.post-body__inner p {
    margin: 0 0 1.5rem;
}

/* Drop cap on the very first paragraph */
.post-body__inner > p:first-of-type::first-letter {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-weight: 500;
    font-size: 4.6rem;
    line-height: 0.9;
    float: left;
    margin: 0.45rem 0.75rem 0 0;
    color: var(--about-gold-primary, #d7a64a);
    background: linear-gradient(135deg, #d7a64a 0%, #b97b2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headings */
.post-body__inner h2 {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-weight: 500;
    font-size: clamp(1.55rem, 2.4vw, 1.95rem);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 3.25rem 0 1rem;
    color: #f5f1ea;
    position: relative;
    padding-top: 1.5rem;
}

.post-body__inner h2::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--about-gold-primary, #d7a64a), transparent);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.post-body__inner h3 {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-weight: 500;
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
    color: #f5f1ea;
}

/* Inline emphasis */
.post-body__inner a {
    color: var(--about-gold-primary, #d7a64a);
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 166, 74, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.post-body__inner a:hover {
    color: #f0c97a;
    border-bottom-color: currentColor;
}

.post-body__inner em {
    font-style: italic;
    color: rgba(245, 241, 234, 0.95);
}

.post-body__inner strong {
    font-weight: 500;
    color: #f5f1ea;
}

/* --- Pull quote --- */
.post-pullquote {
    margin: 3rem -1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(215, 166, 74, 0.22);
    border-bottom: 1px solid rgba(215, 166, 74, 0.22);
    position: relative;
}

.post-pullquote::before {
    content: "\201C";
    position: absolute;
    top: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--about-gold-primary, #d7a64a);
    background: var(--bg, #0a0a0b);
    padding: 0 0.75rem;
}

.post-pullquote p {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.45;
    color: rgba(245, 241, 234, 0.92);
    margin: 0;
}

/* --- Inline divider glyph --- */
.post-divider {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    opacity: 0.65;
}

.post-divider svg {
    width: 64px;
    height: 16px;
}

/* --- Inline figure / mid-post art --- */
.post-figure {
    margin: 3rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(215, 166, 74, 0.15);
    background: linear-gradient(135deg, #14110d 0%, #0a0a0b 100%);
    aspect-ratio: 16 / 9;
    position: relative;
}

.post-figure svg,
.post-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-figure__caption {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.85rem;
    color: rgba(245, 241, 234, 0.55);
    text-align: center;
    margin-top: 0.85rem;
    font-style: italic;
}

/* --- Footer (CTA back to app + blog) --- */
.post-outro {
    max-width: 720px;
    margin: 4rem auto 0;
    padding: 2.5rem 1.5rem 0;
    border-top: 1px solid rgba(215, 166, 74, 0.18);
    text-align: center;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.post-outro__cta {
    font-size: 1rem;
    color: rgba(245, 241, 234, 0.78);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-outro__cta a {
    color: var(--about-gold-primary, #d7a64a);
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 166, 74, 0.5);
}

.post-outro__back {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: rgba(245, 241, 234, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-outro__back:hover {
    color: var(--about-gold-primary, #d7a64a);
}

/* --- Mobile --- */
@media (max-width: 640px) {
    .post-hero {
        padding: 5rem 1rem 2rem;
    }
    .post-hero__art {
        aspect-ratio: 4 / 3;
        margin-bottom: 2rem;
    }
    .post-body {
        padding: 1rem 1.25rem 3rem;
    }
    .post-body__inner {
        font-size: 1.05rem;
        line-height: 1.72;
    }
    .post-body__inner > p:first-of-type::first-letter {
        font-size: 3.6rem;
    }
    .post-pullquote {
        margin: 2rem 0;
        padding: 2rem 1rem;
    }
}
