/* Blog styles for Atlantas.Ai.
   Layout reuses the site's panel system, so this file only adds the prose column,
   the source list, the index cards and the fixed-background image bands. */

.blog-narrow { max-width: 72ch; margin: 0 auto; }

.blog-eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.blog-standfirst {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text-on-chalk-soft);
    margin: 0 0 var(--s-24, 1.5rem);
    text-wrap: pretty;
}
.panel-ink .blog-standfirst { color: var(--text-on-ink-soft); }

.blog-h2 { margin: var(--s-40, 2.5rem) 0 var(--s-16, 1rem); }

.blog-p, .blog-list li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-on-chalk-soft);
    text-wrap: pretty;
}
.panel-ink .blog-p, .panel-ink .blog-list li { color: var(--text-on-ink-soft); }
.blog-p { margin: 0 0 var(--s-16, 1rem); }
.blog-list { margin: 0 0 var(--s-16, 1rem); padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* Prose links must not rely on colour alone (WCAG 1.4.1) */
.blog-p a, .blog-list a, .blog-faq-a a, .blog-sources a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Comparison tables scroll on narrow screens, and stay keyboard reachable */
.blog-table-wrap { overflow-x: auto; margin: var(--s-24, 1.5rem) 0; }
.blog-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.blog-table th, .blog-table td {
    border: 1px solid var(--line-on-chalk, rgba(0, 0, 0, 0.12));
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
    color: var(--text-on-chalk-soft);
}
.blog-table th { color: var(--text-on-chalk); font-weight: 600; }

.blog-faq-q { font-size: 1.05rem; margin: var(--s-24, 1.5rem) 0 0.35rem; }
.blog-faq-a { margin: 0 0 var(--s-16, 1rem); color: var(--text-on-chalk-soft); line-height: 1.65; }
.panel-ink .blog-faq-a { color: var(--text-on-ink-soft); }

.blog-sources { list-style: none; margin: var(--s-16, 1rem) 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.blog-sources li { position: relative; padding-left: 1.3rem; line-height: 1.55; font-size: 0.95rem; color: var(--text-on-chalk-soft); }
.blog-sources li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--hot); }
.panel-ink .blog-sources li { color: var(--text-on-ink-soft); }

/* Index cards */
.blog-cards { display: grid; gap: 1.1rem; margin-top: var(--s-32, 2rem); }
.blog-card {
    display: block;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--line-on-chalk, rgba(0, 0, 0, 0.12));
    border-radius: 16px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--hot); }
.blog-card-meta {
    display: block;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-on-chalk-soft);
    margin: 0 0 0.5rem;
}
.blog-card-title { font-size: 1.45rem; line-height: 1.2; margin: 0 0 0.5rem; color: var(--text-on-chalk); }
.blog-card-blurb { margin: 0; color: var(--text-on-chalk-soft); line-height: 1.55; }

/* Full-bleed fixed-background (parallax) image bands.
   The image stays still while the copy scrolls over it. These sit between panel
   sections, so a plain full-width block is enough. */
.parallax-band {
    width: 100%;
    height: 42vh;
    min-height: 280px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* iOS and small screens do not honour fixed attachment, so fall back cleanly */
@media (max-width: 900px) {
    .parallax-band { background-attachment: scroll; height: 32vh; min-height: 200px; }
}
@media print { .parallax-band { display: none; } }

/* Sections alternate chalk and ink, so the prose furniture needs its on-ink
   colours too. Without this the table renders dark ink on ink (1.06:1). */
.panel-ink .blog-table th { color: var(--text-on-ink); }
.panel-ink .blog-table td { color: var(--text-on-ink-soft); }
.panel-ink .blog-table th,
.panel-ink .blog-table td { border-color: var(--ink-line); }
.panel-ink .blog-card-title { color: var(--text-on-ink); }
.panel-ink .blog-faq-q { color: var(--text-on-ink); }
