/* Blog cards — magazine-style insights grid */

.gs-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    position: relative;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.gs-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0a0a0a 0%, #52525b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gs-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

.gs-blog-card:hover::before {
    opacity: 1;
}

.gs-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
}

.gs-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-blog-card:hover .gs-blog-card__media img {
    transform: scale(1.06);
}

.gs-blog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

.gs-blog-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.gs-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.5rem 1.5rem;
}

.gs-blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    color: #71717a;
}

.gs-blog-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gs-blog-card__title {
    font-family: var(--gs-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0a0a0a;
    margin-bottom: 0.65rem;
}

.gs-blog-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #52525b;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gs-blog-card__footer {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.gs-blog-card__footer i {
    transition: transform 0.25s ease;
}

.gs-blog-card:hover .gs-blog-card__footer i {
    transform: translateX(4px);
}

.gs-blog-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--gs-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Blog index hero */
.gs-blog-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
}

.gs-blog-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.gs-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.gs-blog-hero__content {
    position: relative;
    z-index: 2;
}

/* Article detail — covers are 16:9. The hero stage uses the same ratio so
   object-fit:cover neither letterboxes nor crops the artwork. */
.gs-article-hero {
    background: #0a0a0a;
    color: #fff;
    padding-top: var(--gs-header-h, 4.5rem);
}

.gs-article-hero__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    padding: 2rem 0 2.25rem;
}

.gs-article-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 640px) {
    .gs-article-hero__stage {
        aspect-ratio: 4 / 5;
        min-height: 22rem;
    }
}

/* Cover art is whatever the post happens to use, so the scrim has to hold up over a
   busy illustration. Darkest at the bottom where the title and meta sit, lifting
   toward the top so the artwork still reads. */
.gs-article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

.gs-article-hero__content {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.gs-article-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
}

.gs-article-hero__title {
    font-family: var(--gs-font-display);
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
    /* The global h1-h6 rule sets a dark colour, and a directly matching rule always
       beats the white inherited from .gs-article-hero — without this the title
       renders near-black on a near-black hero. */
    color: #fff;
}

.gs-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

.gs-article-body {
    padding: 4rem 0 6rem;
    background: #fff;
}

.gs-article-content {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--gs-font-sans);
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
}

.gs-article-content h3 {
    font-family: var(--gs-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #0f172a;
    margin: 2.75rem 0 1rem;
}

.gs-article-content p {
    margin-bottom: 1.35rem;
}

.gs-article-content code {
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.gs-article-content a {
    color: #0a0a0a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
