/* ============================================================
   Blog / answer-first article styles.
   Built on the site's shipped theme.css tokens (oxblood + graphite).
   Loaded by blogs.html and every blogs/{slug}/index.html.
   ============================================================ */

/* ---------- Article shell ---------- */
.geo-hero {
    padding-block: calc(var(--nav-h) + var(--s-64)) var(--s-64);
}

.geo-hero-title {
    max-width: 20ch;
    margin-top: var(--s-16);
}

.geo-hero-lead {
    margin-top: var(--s-24);
    max-width: 60ch;
}

.geo-meta {
    margin-top: var(--s-24);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-on-ink-soft);
    opacity: 0.8;
}

.geo-body {
    max-width: 68ch;
    margin-inline: auto;
}

.geo-body h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: var(--s-48) 0 var(--s-16);
    color: var(--text-on-chalk);
}

.geo-body h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.125rem;
    margin: var(--s-32) 0 var(--s-8);
    color: var(--text-on-chalk);
}

.geo-body p,
.geo-body li {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-on-chalk-soft, var(--text-on-chalk));
}

.geo-body p { margin: 0 0 var(--s-16); }

.geo-body ul,
.geo-body ol { margin: 0 0 var(--s-16); padding-left: 1.25rem; }
.geo-body li { margin-bottom: var(--s-8); }

.geo-body strong { color: var(--text-on-chalk); font-weight: 600; }

.geo-body a {
    /* Site convention: inherit the body colour and rely on the underline, so links
       always meet contrast. The accent is applied on hover/focus by theme.css. */
    color: inherit;
    border-bottom: 1px solid currentColor;
}

/* The answer-first opening paragraph: the liftable answer. */
.geo-answer {
    font-size: 1.1875rem;
    line-height: 1.55;
    padding: var(--s-24);
    border-left: 3px solid var(--hot);
    background: var(--chalk-deep, rgba(0, 0, 0, 0.03));
    border-radius: 0 4px 4px 0;
    margin-bottom: var(--s-32);
}

/* FAQ block */
.geo-faq { margin-top: var(--s-48); }
.geo-faq h3 { margin-top: var(--s-24); }

/* Sources block */
.geo-sources {
    margin-top: var(--s-48);
    padding-top: var(--s-24);
    border-top: 1px solid var(--line-on-chalk, rgba(0, 0, 0, 0.12));
    font-size: 0.9375rem;
}
.geo-sources li { font-size: 0.9375rem; }
.geo-sources em { opacity: 0.8; }

/* Closing CTA */
.geo-cta {
    margin-top: var(--s-48);
    padding-top: var(--s-32);
    border-top: 1px solid var(--line-on-chalk, rgba(0, 0, 0, 0.12));
}

/* ============================================================
   Fixed-background band (the house blog image treatment).
   Full-bleed image that stays still while the copy scrolls over it.
   ============================================================ */
.parallax-band {
    position: relative;
    min-height: clamp(260px, 38vw, 460px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-block: var(--s-64);
}

/* Keep it legible if anything is ever overlaid, and tie it to the palette. */
.parallax-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        oklch(16% 0.012 40 / 0.10) 0%,
        oklch(16% 0.012 40 / 0.28) 100%);
    pointer-events: none;
}

/* Mobile: fixed attachment is unreliable and janky on touch, so scroll it. */
@media (max-width: 900px) {
    .parallax-band {
        background-attachment: scroll;
        min-height: clamp(200px, 46vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .parallax-band { background-attachment: scroll; }
}

@media print {
    .parallax-band { display: none; }
}

/* ============================================================
   Blog index (blogs.html)
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--s-24);
    margin-top: var(--s-48);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--chalk);
    border: 1px solid var(--line-on-chalk, rgba(0, 0, 0, 0.12));
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-on-chalk);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--hot);
    box-shadow: 0 22px 44px -28px oklch(16% 0.012 40 / 0.5);
}

.blog-card-media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
    padding: var(--s-24);
    flex: 1 1 auto;
}

.blog-card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--cobalt);
}

.blog-card-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1875rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.blog-card-sub {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-on-chalk-soft, var(--text-on-chalk));
}

.blog-card-go {
    margin-top: auto;
    padding-top: var(--s-16);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cobalt);
}
