/* SSK Music blog — listing + post pages.
 *
 * Mirrors the rest of the site: Syne for headings, Inter for body, navy
 * #1a365d as the accent. Pages are generated by scripts/build-blog.mjs, so
 * there is no client-side rendering and nothing here depends on JS.
 */

* { max-width: 100%; box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    margin: 0;
    padding: 80px 0 0;
    background: #f8f9fa;
    color: #1a1512;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0a1628;
}

.blog-index .container,
.blog-post .container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- listing ---------- */

.blog-index-head {
    padding: 3.5rem 0 2rem;
    border-bottom: 2px solid #0a1628;
    margin-bottom: 2.5rem;
}
.blog-index-head h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0 0 0.75rem; }
.blog-index-head p { font-size: 1.05rem; color: #555f6b; margin: 0; max-width: 60ch; }

.blog-grid { display: grid; gap: 1.25rem; padding-bottom: 4rem; }

.blog-card {
    background: #fff;
    border: 1px solid rgba(10, 22, 40, 0.10);
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 54, 93, 0.35);
    box-shadow: 0 14px 34px rgba(10, 22, 40, 0.10);
}
.blog-card-link {
    display: block;
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    color: inherit;
}
.blog-card-image {
    display: block;
    width: calc(100% + 3rem);
    margin: -1.6rem -1.5rem 1.1rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.blog-card h2 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 0.6rem; }
.blog-card-excerpt { margin: 0 0 0.9rem; color: #4a5560; font-size: 0.97rem; }
.blog-card-more {
    font-family: 'Syne', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a365d;
}

.blog-meta {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7c848d;
    margin: 0 0 0.55rem;
}

.blog-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0 0 0.9rem;
}
.blog-tags li {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a365d;
    background: rgba(26, 54, 93, 0.08);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.blog-empty { color: #7c848d; padding: 2rem 0 4rem; }

/* ---------- post ---------- */

.blog-crumb { padding: 2rem 0 0; }
.blog-crumb a {
    font-family: 'Syne', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a365d;
    text-decoration: none;
}
.blog-crumb a:hover { text-decoration: underline; }

.blog-post-head { padding: 1.6rem 0 1.4rem; }
.blog-post-head h1 {
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    line-height: 1.16;
    margin: 0 0 1rem;
}
.blog-standfirst {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #46515d;
    margin: 0 0 1.1rem;
    max-width: 62ch;
}

.blog-hero {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 0 2rem;
}

/* Generous measure — this is long-form reading, not marketing copy. */
.blog-body { font-size: 1.07rem; line-height: 1.78; color: #26303a; max-width: 68ch; }
.blog-body h2 { font-size: 1.35rem; margin: 2.4rem 0 0.85rem; }
.blog-body h3 { font-size: 1.08rem; margin: 1.9rem 0 0.7rem; }
.blog-body p { margin: 0 0 1.15rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body a { color: #1a365d; text-decoration: underline; }
.blog-body strong { font-weight: 700; color: #16202b; }
.blog-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: rgba(26, 54, 93, 0.08);
    padding: 0.12em 0.36em;
    border-radius: 4px;
}
.blog-body blockquote {
    margin: 1.6rem 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 3px solid #f5b301;
    color: #46515d;
    font-style: italic;
}
.blog-body hr { border: 0; border-top: 1px solid rgba(10, 22, 40, 0.12); margin: 2.2rem 0; }

.blog-post-foot {
    margin: 3rem 0 4.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(10, 22, 40, 0.12);
}
.blog-post-foot p { color: #7c848d; font-size: 0.92rem; margin: 0 0 1rem; }
.blog-cta {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
}
.blog-cta:hover { background: #2d4a7f; }

@media (max-width: 600px) {
    .blog-index-head { padding: 2.5rem 0 1.5rem; }
    .blog-card-link { padding: 1.3rem 1.15rem; }
    .blog-card-image { width: calc(100% + 2.3rem); margin: -1.3rem -1.15rem 1rem; }
    .blog-body { font-size: 1.02rem; }
}

/* ---------- sticky header ----------
 * Every other page carries these rules in an inline <style> block, so nothing
 * in main.css defines them. Generated blog pages have no inline block, which
 * left the nav as bare links and rendered the logo at its natural size —
 * filling the page. Duplicated here so blog pages are self-contained.
 */
.sticky-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999999;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.sticky-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.sticky-logo img { max-height: 40px; width: auto; display: block; }
.sticky-cta { display: flex; gap: 1rem; align-items: center; }
.sticky-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}
.sticky-nav-link:hover { opacity: 0.7; }
.sticky-nav-link.active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* main.css styles body copy for dark sections, which washed the article text
   out to near-invisible on this light background. Pin the colours. */
.blog-index, .blog-post { background: #f8f9fa; }
.blog-body, .blog-body p, .blog-body li { color: #26303a !important; }
.blog-standfirst { color: #46515d !important; }
.blog-card h2, .blog-index-head h1, .blog-post-head h1,
.blog-body h2, .blog-body h3 { color: #0a1628 !important; }
.blog-card-excerpt { color: #4a5560 !important; }

/* main.css styles the bare `header` element for the site's fixed nav bar.
   The article title block is also a <header> — correct HTML for it — so it
   inherited position:fixed, pinned itself to the viewport at full width, and
   overlapped the crumb, standfirst, tags and first paragraph. Keeping the
   semantic element and resetting the layout, rather than swapping in a div.
   Applies to the listing head as well — same element, same inheritance, and
   missing it there left the blog index overlapping its own first card. */
.blog-post .blog-post-head,
.blog-post .blog-post-foot,
.blog-index .blog-index-head {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding-left: 0;
    padding-right: 0;
    z-index: auto !important;
}
