/* Blog list + article styles, layered on top of style.css */

.blog-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 28px 120px;
}

.blog-head {
    max-width: 760px;
    margin-bottom: 60px;
}
.blog-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -.03em;
    margin: 16px 0 18px;
}
.blog-head p { color: var(--ink-dim); font-size: 18px; max-width: 56ch; }

.blog-empty { padding: 60px 0; color: var(--ink-dim); text-align: center; }

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.post-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; }

.post-card {
    display: block;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s;
    color: inherit;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }

.post-cover {
    aspect-ratio: 16 / 10;
    background: #111 center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.post-cover-mark {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    display: grid; place-items: center;
}
.post-cover-mark svg { width: 90px; opacity: .5; }
.post-card.featured .post-cover { border-bottom: none; border-right: 1px solid var(--line); aspect-ratio: auto; }

.post-body { padding: 24px 24px 28px; }
.post-card.featured .post-body { padding: 36px; align-self: center; }
.post-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-dim);
}
.post-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(20px, 1.8vw, 26px);
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 10px 0 10px;
    font-weight: 600;
}
.post-card.featured h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; }
.post-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin: 8px 0 8px;
    font-weight: 600;
}
.post-body p { color: var(--ink-dim); margin: 0 0 18px; font-size: 15px; }
.post-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 14px;
    color: var(--accent); letter-spacing: .04em;
}

@media (max-width: 900px) {
    .post-grid, .post-card.featured { grid-template-columns: 1fr; }
}

/* Article (single post) */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 28px 80px;
}
.crumbs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 18px;
}
.crumbs a { color: var(--ink-dim); }
.crumbs a:hover { color: var(--ink); }
.article-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    font-weight: 700;
}
.article-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--ink-dim);
    margin: 0 0 32px;
}

.article-cover {
    margin: 0 -28px 40px;
    border-radius: 18px;
    overflow: hidden;
}
.article-cover img { width: 100%; height: auto; display: block; }

.article-body {
    font-family: 'Source Serif Pro', 'Instrument Serif', Georgia, serif;
    font-size: 19px;
    line-height: 1.75;
    color: #e8e3d6;
}
.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    margin: 48px 0 14px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -.01em;
}
.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin: 36px 0 10px;
    color: var(--ink);
    font-weight: 600;
}
.article-body p { margin: 0 0 20px; }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(243,235,58,.4); }
.article-body a:hover { border-color: var(--accent); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote {
    margin: 28px 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--ink);
}
.article-body code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
    font-family: ui-monospace, Menlo, monospace;
}
.article-body pre {
    background: #0d0d0d;
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    font-family: ui-monospace, Menlo, monospace;
    color: #cfcabd;
    line-height: 1.6;
}
.article-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.article-foot {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.related {
    border-top: 1px solid var(--line-2);
    padding: 80px 0;
    background: var(--bg-2);
}
.related h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    letter-spacing: -.02em;
    margin: 0 0 28px;
}
