/**
 * /assets/css/pages/blog.css
 *
 * Blog listing (The Journal) + single post (article) styles.
 * Inherits theme vars from main.css: --void, --cream, --gold.
 */

/* ============================================================
   LISTING — category filter
   ============================================================ */
.blog-filter-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(248, 246, 241, 0.08);
    padding-bottom: 2rem;
    margin-top: 1rem;
}

.blog-filter-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(248, 246, 241, 0.4);
    transition: color 0.4s ease;
    position: relative;
}

.blog-filter-link:hover,
.blog-filter-link.is-active {
    color: var(--gold);
}

/* ============================================================
   LISTING — post grid + cards
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 3rem;
}

.blog-card-link {
    display: block;
}

.blog-card-media {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
}

.blog-card-cat {
    margin-bottom: 1rem;
}

.blog-card-title {
    line-height: 1.05;
    transition: color 0.4s ease;
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(248, 246, 241, 0.3);
}

.blog-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem 2.5rem; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}

/* ============================================================
   POST — hero
   ============================================================ */
.post-hero {
    position: relative;
    height: 70vh;
    max-height: 820px;   /* GSC tall-viewport guard (see CLAUDE.md) */
    min-height: 460px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(2, 2, 4, 0.95) 0%,
        rgba(2, 2, 4, 0.45) 45%,
        rgba(2, 2, 4, 0.25) 100%);
}

/* When no hero image: fall back to the page-hero gradient look */
.post-hero:not(:has(.post-hero-image)) {
    background: linear-gradient(135deg,
        rgba(2, 2, 4, 1) 0%, rgba(20, 18, 15, 0.95) 50%, rgba(2, 2, 4, 1) 100%);
    height: auto;
    min-height: 380px;
    padding-top: 8rem;
}

.post-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8vw 4rem;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(248, 246, 241, 0.55);
    margin-bottom: 2rem;
}

.post-breadcrumb a { color: var(--gold); transition: opacity 0.3s ease; }
.post-breadcrumb a:hover { opacity: 0.7; }
.post-breadcrumb-sep { color: rgba(248, 246, 241, 0.3); }

.post-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1.75rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(248, 246, 241, 0.45);
}

.post-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .post-hero { height: auto; min-height: 360px; padding-top: 7rem; }
    .post-hero-content { padding: 0 6vw 3rem; }
}

/* ============================================================
   POST — article body (readable measure)
   ============================================================ */
.post-article {
    padding-top: 5rem;
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
}

.post-lead {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.4;
    color: rgba(248, 246, 241, 0.85);
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(248, 246, 241, 0.08);
}

/* Vertical rhythm between blocks */
.article-block { margin: 2.5rem 0; }
.article-block:first-child { margin-top: 0; }

.article-heading { margin-top: 4rem; margin-bottom: 1.5rem; }
.article-paragraph { margin: 1.75rem 0; }

/* Pull quote (oversized) */
.article-pullquote {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 5rem auto;
    padding-top: 2.5rem;
}
.article-pullquote-mark {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(7rem, 14vw, 12rem);
    line-height: 1;
    color: var(--gold);
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}
.article-pullquote-text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.25;
    color: rgba(248, 246, 241, 0.92);
}
.article-pullquote-cite {
    margin-top: 2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
}

/* Editorial aside (formerly infobox) */
.article-aside {
    text-align: center;
    max-width: 580px;
    margin: 4.5rem auto;
}
.article-aside-divider {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
.article-aside-divider::before,
.article-aside-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.55), transparent);
}
.article-aside-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    white-space: nowrap;
}
.article-aside-body {
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    line-height: 1.45;
    color: rgba(248, 246, 241, 0.8);
    margin: 0;
}
.article-aside-tail {
    display: block;
    width: 60px;
    height: 1px;
    margin: 1.75rem auto 0;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* Stat strip */
.article-stats {
    margin: 4rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(248, 246, 241, 0.08);
    border-bottom: 1px solid rgba(248, 246, 241, 0.08);
}
.article-stats-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1rem;
}
.article-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    position: relative;
}
.article-stat + .article-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(248, 246, 241, 0.1);
}
.article-stat-value {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1;
    color: var(--gold);
}
.article-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(248, 246, 241, 0.4);
}
@media (max-width: 640px) {
    .article-stats-grid { grid-auto-flow: row; grid-auto-columns: auto; gap: 2.5rem; }
    .article-stat + .article-stat::before { display: none; }
}

/* Itinerary / timeline */
.article-timeline {
    list-style: none;
    margin: 4rem 0;
    padding: 0;
}
.article-timeline-item {
    position: relative;
    padding: 0 0 2.75rem 2.75rem;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}
.article-timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.article-timeline-dot {
    position: absolute;
    left: -5px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--void);
}
.article-timeline-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.article-timeline-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
    color: rgba(248, 246, 241, 0.95);
    margin-bottom: 0.6rem;
}
.article-timeline-text {
    color: rgba(248, 246, 241, 0.5);
    font-weight: 300;
    line-height: 1.7;
}

/* Full-bleed image */
.article-fullbleed {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
}
.article-fullbleed-media {
    width: 100%;
    height: clamp(340px, 70vh, 760px);
    overflow: hidden;
}
.article-fullbleed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-fullbleed-cap {
    max-width: 760px;
    margin: 1.25rem auto 0;
    padding: 0 8vw;
    text-align: center;
    color: rgba(248, 246, 241, 0.35);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Key takeaways */
.article-takeaways {
    margin: 4rem 0;
    padding: 2.75rem 3rem;
    background: rgba(248, 246, 241, 0.02);
    border: 1px solid rgba(248, 246, 241, 0.08);
    border-radius: 1rem;
}
.article-takeaways-title { margin-bottom: 1.75rem; color: var(--gold); }
.article-takeaways-list { list-style: none; margin: 0; padding: 0; }
.article-takeaways-item {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(248, 246, 241, 0.06);
    color: rgba(248, 246, 241, 0.8);
    font-weight: 300;
    line-height: 1.6;
}
.article-takeaways-item:first-child { border-top: none; }
.article-takeaways-mark {
    flex-shrink: 0;
    width: 18px;
    height: 1px;
    margin-top: 0.7rem;
    background: var(--gold);
}

/* Side-caption figure (breaks out wider than the text column) */
.article-figure {
    width: min(980px, 92vw);
    margin: 4.5rem 0;
    margin-left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: end;
}
.article-figure--left { grid-template-columns: 1fr 2fr; }
.article-figure--left .article-figure-media { order: 2; }
.article-figure--left .article-figure-cap { order: 1; }
.article-figure-media { border-radius: 0.75rem; }
.article-figure-cap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
}
.article-figure-num {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
}
.article-figure-text {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.35;
    color: rgba(248, 246, 241, 0.7);
}
@media (max-width: 768px) {
    .article-figure,
    .article-figure--left { grid-template-columns: 1fr; gap: 1.5rem; }
    .article-figure--left .article-figure-media,
    .article-figure--left .article-figure-cap { order: initial; }
}

/* Standalone image */
.article-image { margin: 3.5rem 0; }
.article-image .curtain-wrap { border-radius: 0.75rem; }

/* Divider */
.article-divider { margin: 4rem 0; }

/* CTA */
.article-cta {
    text-align: center;
    margin: 4.5rem 0;
    padding: 3.5rem 2rem;
    background: rgba(248, 246, 241, 0.015);
    border: 1px solid rgba(248, 246, 241, 0.06);
    border-radius: 1rem;
}

/* Video */
.article-video { margin: 3.5rem 0; }
.article-video-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}
.article-video-el { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gallery — breaks out wider than the 760px text column, centered in viewport */
.article-gallery {
    width: min(1100px, 90vw);
    margin: 4rem 0;
    margin-left: 50%;
    transform: translateX(-50%);
}
.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.article-gallery-item .curtain-wrap { border-radius: 0.75rem; cursor: pointer; }
@media (max-width: 640px) {
    .article-gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(248, 246, 241, 0.08);
}
.post-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(248, 246, 241, 0.5);
    border: 1px solid rgba(248, 246, 241, 0.12);
    border-radius: 100px;
    padding: 0.5rem 1.1rem;
}

/* Related */
.post-related { border-top: 1px solid rgba(248, 246, 241, 0.06); }
