/* Individual blog post styles */

.blog-post {
    background-color: var(--lowlight-color);
    color: var(--highlight-color);
    padding: 2em 3em;
    min-height: 70vh;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 3em;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 2em;
    color: var(--highlight-color);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 1em;
}

.post-header h1 {
    font-size: min(10vw, 60px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0.5em 0;
    font-family: "Instrument Serif";
    font-style: italic;
    letter-spacing: 1px;
}

.post-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 1.5em;
    opacity: 0.9;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin: 2em 0 1em;
    font-family: "Instrument Serif";
    font-style: italic;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.5em 0 0.75em;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1em 0;
}

.post-content ul,
.post-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1em 0;
    padding-left: 2em;
}

.post-content li {
    margin: 0.5em 0;
}

.post-content a {
    color: var(--highlight-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.post-content a:hover {
    opacity: 0.8;
}

.post-cta {
    max-width: 800px;
    margin: 4em auto 2em;
}

.post-cta .CTAMsg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-cta h3 {
    cursor: pointer;
    text-align: center;
    font-family: 'instrument serif';
    font-size: 3.5em;
    font-weight: normal;
    font-style: italic;
    color: var(--highlight-color);
    margin: 0;
}

.post-cta .arrowcircle {
    top: -10px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lowlight-color);
    border: 1.5px solid var(--highlight-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.post-cta .arrowcircle::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 140%; height: 140%;
    background: var(--highlight-color);
    transform: skew(30deg) translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.3,1,0.8,1);
    pointer-events: none;
}

.post-cta .CTAMsg:hover .arrowcircle::before {
    transform: skew(30deg) translateX(0);
}

.post-cta .arrowcircle img {
    width: 20px;
    height: auto;
    mix-blend-mode: difference;
    position: relative;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .blog-post {
        padding: 2em 1.5em;
    }

    .post-header h1 {
        font-size: 36px;
    }

    .post-intro {
        font-size: 1.1rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-content p,
    .post-content ul,
    .post-content ol {
        font-size: 1rem;
    }

    .post-cta h3 {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .blog-post {
        padding: 1.5em 1em;
    }

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