/* ═══════════════════════════════════════════════════════════════
   Blog-specific styles. Loaded on top of styles.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Blog hero ─────────────────────────────────────────────── */
.blog-hero {
    padding: 70px 0 40px;
    border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 18px;
    max-width: 820px;
}

/* ── Posts grid ────────────────────────────────────────────── */
.blog-list { padding: 60px 0 100px; border-bottom: 1px solid var(--line); }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.post-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}
.post-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--bg-elev);
    width: 100%;
    border-bottom: 1px solid var(--line);
}
.post-img-placeholder {
    aspect-ratio: 16 / 10;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.post-card-coming { opacity: 0.7; pointer-events: none; }
.post-meta {
    padding: 18px 22px 0;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
.post-meta span { color: var(--text-2); }
.post-meta time { font-feature-settings: 'tnum'; }
.post-title {
    padding: 12px 22px 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.post-excerpt {
    padding: 0 22px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.post-link {
    padding: 14px 22px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.post-art {
    aspect-ratio: 16 / 10;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--text);
    overflow: hidden;
    position: relative;
    transition: background var(--t-base) var(--ease);
}

.post-card:hover .post-art {
    background: var(--bg-soft);
}
.article-hero-icon {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-elev);

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 50px;
}

.article-hero-icon i {
    font-size: clamp(72px, 12vw, 140px);
    color: var(--text);
    opacity: 0.9;
}
.post-art i {
    font-size: clamp(52px, 8vw, 80px);
    color: var(--text);
    opacity: 0.9;
    transition:
        transform var(--t-base) var(--ease),
        opacity var(--t-base) var(--ease);
}

.post-card:hover .post-art i {
    transform: scale(1.08);
    opacity: 1;
}

.post-art-placeholder i {
    opacity: 0.4;
}

.post-art-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}
/* ── Article (single post) ─────────────────────────────────── */
.article {
    padding: 60px 0 100px;
    border-bottom: 1px solid var(--line);
}
.article-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.article-back {
    display: inline-block;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 32px;
    transition: color var(--t-fast) var(--ease);
}
.article-back:hover { color: var(--text); }

.article-meta {
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}
.article h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 22px;
}
.article-subtitle {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}
.article-hero-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    border-radius: var(--radius);
    background: var(--bg-elev);
    margin: 0 0 50px;
    border: 1px solid var(--line);
}

.article-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}
.article-body p {
    margin-bottom: 22px;
    color: var(--text);
}
.article-body p.lede {
    font-size: 19px;
    color: var(--text);
    font-weight: 500;
}
.article-body h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 48px 0 18px;
    line-height: 1.2;
}
.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 32px 0 12px;
}
.article-body blockquote {
    border-left: 3px solid var(--text);
    padding: 8px 0 8px 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-2);
    font-size: 18px;
    line-height: 1.6;
}
.article-body ul, .article-body ol {
    margin: 0 0 22px 24px;
    color: var(--text);
}
.article-body ul li, .article-body ol li {
    margin-bottom: 10px;
    list-style-position: outside;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text-3);
    text-underline-offset: 4px;
    transition: text-decoration-color var(--t-fast) var(--ease);
}
.article-body a:hover { text-decoration-color: var(--text); }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; color: var(--text); }
.article-body code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
}
.article-body img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin: 28px 0;
    width: 100%;
}
.article-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 50px 0;
}
/* ════════════════════════════════════════════════════════════════
   PATCH for blog.css — append at the end of the file.
   Stops the .article-body a {color, text-decoration} rule from
   hijacking buttons placed inside an article. Without this, a
   .btn-primary inside .article-body inherits underline + black text,
   which makes the button look like a solid black rectangle.
   ════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   PATCH for blog.css — append at the end of the file.
   Styles for the new SVG illustrations replacing post-img.
   ════════════════════════════════════════════════════════════════ */

/* Container for the SVG illustration on each blog card.
   Replaces the .post-img <img> tag with a centered SVG that scales
   crisply at every breakpoint and matches the site's monochrome
   aesthetic. */
.post-art {
    aspect-ratio: 16 / 10;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--text);
    overflow: hidden;
    position: relative;
    transition: background var(--t-base) var(--ease);
}
.post-card:hover .post-art {
    background: var(--bg-soft);
}
.post-art svg {
    width: 75%;
    height: auto;
    max-height: 80%;
    display: block;
}

/* Placeholder variant for "coming soon" posts — dimmer overlay,
   small label inside the art area. */
.post-art-placeholder {
    color: var(--text-3);
}
.post-art-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}
/* Buttons inside the article body keep their own styling.
   We re-assert color and no-underline so the generic link rule
   above can't override them. */
.article-body .btn-primary {
    color: var(--on-light) !important;
    text-decoration: none !important;
}
.article-body .btn-primary:hover {
    text-decoration: none !important;
}
.article-body .btn-ghost {
    text-decoration: none !important;
}

/* The .article-cta box gets a tiny visual breathing line at the top
   so it reads as a separate "now do the thing" zone rather than
   another paragraph. */
.article-cta {
    border-top: 2px solid var(--text);
    border-radius: var(--radius-lg);
}
.article-cta h3 {
    color: var(--text);
}
.article-cta .btn svg {
    flex-shrink: 0;
}
/* ── End-of-article CTA box ───────────────────────────────── */
.article-cta {
    margin-top: 60px;
    padding: 32px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
}
.article-cta h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: white;
}
.article-cta p { color: var(--text-2); margin-bottom: 20px; font-size: 15px; }

/* ── Responsive blog ───────────────────────────────────────── */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 16px; }
    .article-body p.lede { font-size: 17px; }
}

