/* Blog Styles - Studio Notes */

/* Blog Header */
.blog-header {
    padding: 10rem 0 4rem;
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.blog-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.header-divider {
    width: 60px;
    height: 1px;
    background: var(--black);
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 4rem;
    padding: 6rem 0 8rem;
}

/* Blog Card */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--light-gray);
    margin-bottom: 2rem;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.03);
    opacity: 0.9;
}

.blog-content {
    padding: 0;
}

.blog-date {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 400;
}

.blog-title {
    font-family: var(--heading);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--black);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--charcoal);
}

.blog-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.blog-link {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--black);
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
}

.blog-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.3s ease;
}

.blog-card:hover .blog-link::after {
    width: 100%;
}

/* Blog CTA */
.blog-cta {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 6rem 0;
    text-align: center;
}

.blog-cta h2 {
    color: var(--black);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Blog Article Page */
.article-hero {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background: var(--light-gray);
    overflow: hidden;
    position: relative;
}

.article-hero img {
    width: 85vw;
    height: 100%;
    object-fit: cover;
}

.article-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--light-gray);
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2rem;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 0;
}

/* Article Content */
.article-content {
    padding: 3rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.article-content h2 {
    font-size: 2rem;
    margin: 4rem 0 1.5rem;
    font-weight: 500;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
    font-weight: 500;
}

.article-content img {
    width: 100%;
    margin: 3rem 0;
    border-radius: 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-style: italic;
}

.article-content blockquote {
    margin: 3rem 0;
    padding: 2rem 0;
    border-left: 2px solid var(--black);
    padding-left: 2rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--charcoal);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--charcoal);
}

/* Article Intro */
.article-intro {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--charcoal);
    margin-bottom: 3rem;
}

/* Article Subtitle */
.article-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Inline CTA Block */
.article-inline-cta {
    margin: 4rem 0;
    padding: 2.25rem;
    border: 1px solid var(--light-gray);
    background: var(--white);
}

.article-inline-cta h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.article-inline-cta p {
    margin-bottom: 1.5rem;
}

.article-inline-cta .btn {
    display: inline-block;
}

/* Data Table */
.article-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    width: 100%;
}

.article-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.6;
    table-layout: fixed;
}

.article-table th,
.article-table td {
    vertical-align: top;
    word-wrap: break-word;
}

.article-table th:nth-child(1),
.article-table td:nth-child(1) { width: 30%; }

.article-table th:nth-child(2),
.article-table td:nth-child(2) { width: 22%; }

.article-table th:nth-child(3),
.article-table td:nth-child(3) { width: 28%; }

.article-table th:nth-child(4),
.article-table td:nth-child(4) { width: 20%; }

.article-table th {
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 400;
    padding: 0.75rem 1.5rem 0.75rem 0;
    border-bottom: 1px solid var(--black);
}

.article-table td {
    padding: 0.85rem 1.5rem 0.85rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--charcoal);
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table td:first-child {
    font-weight: 500;
    color: var(--black);
}

/* Pull Quote */
.pull-quote {
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 2rem;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    font-style: italic;
    color: var(--charcoal);
}

/* Image Gallery in Article */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.article-gallery img {
    width: 100%;
    margin: 0;
}

/* Related Articles */
.related-articles {
    background: var(--white);
    padding: 6rem 0;
    border-top: 1px solid var(--light-gray);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    text-decoration: none;
    color: inherit;
}

.related-card .blog-image {
    aspect-ratio: 4/3;
    margin-bottom: 1.5rem;
}

.related-card .blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.related-card .blog-date {
    margin-bottom: 0;
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--black);
}

.back-to-blog::before {
    content: '← ';
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 4rem 0;
    }

    .article-content h2 {
        font-size: 1.75rem;
        margin: 3rem 0 1rem;
    }

    .article-content h3 {
        font-size: 1.35rem;
    }

    .pull-quote {
        font-size: 1.25rem;
        padding: 2rem 1rem;
        margin: 3rem 0;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 8rem 0 3rem;
    }

    .blog-grid {
        padding: 4rem 0 6rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .article-hero {
        height: 40vh;
        min-height: 300px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content p {
        font-size: 1.05rem;
    }
}

/* Print Styles for Articles */
@media print {

    header,
    footer,
    .related-articles,
    .blog-cta,
    .back-to-blog {
        display: none;
    }

    .article-content {
        max-width: 100%;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* ---------- BLOG IMAGE SYSTEM ---------- */

:root {
    --blog-hero-max: 1440px;
    --blog-content-max: 900px;
    --blog-detail-max: 760px;
    --blog-gallery-max: 960px;
}

/* Hero wrapper */
.article-hero-wrap {
    padding: 2rem 0 0;
    background: var(--white);
}

.article-hero {
    width: min(92vw, var(--blog-hero-max));
    margin: 0 auto;
    height: clamp(320px, 48vw, 620px);
    background: var(--light-gray);
    overflow: hidden;
    position: relative;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optional subtle overlay for hero mood */
.article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

/* Standard article figures */
.article-content figure {
    width: 100%;
    max-width: var(--blog-content-max);
    margin: 3rem auto;
}

.article-content figure img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* Square detail / concept image */
.article-content figure.figure-detail {
    max-width: var(--blog-detail-max);
}

/* Wide figure inside article */
.article-content figure.figure-wide {
    max-width: 900px;
}

/* Portrait figure */
.article-content figure.figure-portrait {
    max-width: 560px;
}

/* Captions */
.article-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.85rem;
    font-style: italic;
    line-height: 1.6;
}

/* Two-up gallery */
.article-gallery {
    max-width: var(--blog-gallery-max);
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.article-gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .article-hero-wrap {
        padding-top: 1rem;
    }

    .article-hero {
        width: min(94vw, var(--blog-hero-max));
        height: clamp(240px, 56vw, 420px);
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }
}