/* ============================================================
   blog.css — article + listing styles for LastCo blog
   Inherits the light "home-page" theme tokens from home.css
   (loaded alongside). Blog-specific classes use the bl- prefix.
   ============================================================ */

html { overflow-x: hidden; }

.blog-page {
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

.bl-body,
.bl-title,
.bl-sub { overflow-wrap: break-word; }

/* ---------- Shared reading column ---------- */
.bl-wrap {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.bl-col {
    width: min(720px, 100%);
    margin-inline: auto;
}

/* ---------- Breadcrumb ---------- */
.bl-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    padding-top: 120px;
    min-width: 0;
}

.bl-crumb > span { overflow-wrap: anywhere; }

.bl-crumb a {
    color: var(--ink-soft);
    text-decoration: none;
}

.bl-crumb a:hover { color: var(--indigo); }

.bl-crumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ============================================================
   ARTICLE
   ============================================================ */
.bl-article {
    padding-bottom: 96px;
}

.bl-head {
    padding: 18px 0 8px;
}

.bl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--indigo-700);
    background: var(--indigo-tint);
    border: 1px solid rgba(91, 91, 240, 0.16);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.bl-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.bl-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5.4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 18px;
}

.bl-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.5;
    color: var(--ink-soft);
    font-weight: 500;
    margin: 0 0 22px;
}

.bl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 0.9rem;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

.bl-meta .bl-dot { opacity: 0.5; }

/* ---------- Hero figure ---------- */
/* NOTE: keep margin-inline auto so the image stays centered on the same
   axis as the text column (it carries .bl-col). A `margin: x 0 y` shorthand
   here would zero the inline margins and left-align the image. */
.bl-figure {
    width: min(820px, 100%);
    margin: 30px auto 44px;
    padding: 10px;
    background: linear-gradient(135deg, var(--indigo-tint), var(--green-tint));
    border-radius: calc(var(--r-xl, 28px) + 10px);
    box-shadow: 0 30px 80px -28px rgba(23, 28, 56, 0.34);
}

.bl-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-xl, 28px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.bl-figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--ink-faint);
    text-align: center;
}

/* ---------- Body typography ---------- */
.bl-body { font-size: 1.12rem; line-height: 1.75; color: #2a3148; }

.bl-body > p { margin: 0 0 1.35em; }

.bl-body strong { color: var(--ink); font-weight: 700; }

.bl-body h2 {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 2.1em 0 0.7em;
    padding-top: 1.1em;
    scroll-margin-top: 100px;
}

/* accent bar above each section heading */
.bl-body h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--indigo), var(--green));
}

.bl-body h2:first-child { margin-top: 0.4em; }

/* drop cap on the opening paragraph */
.bl-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 0.82;
    padding: 4px 12px 0 0;
    color: var(--indigo-700);
}

.bl-body ul,
.bl-body ol {
    margin: 0 0 1.5em;
    padding-left: 0;
    list-style: none;
}

.bl-body ul li,
.bl-body ol li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 0.7em;
    line-height: 1.6;
}

.bl-body ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.bl-body ol {
    counter-reset: bl-ol;
}

.bl-body ol li {
    counter-increment: bl-ol;
}

.bl-body ol li::before {
    content: counter(bl-ol);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--indigo-tint);
    color: var(--indigo-700);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Pull / testimonial quotes ---------- */
.bl-quote {
    margin: 0 0 1.5em;
    padding: 22px 26px;
    background: var(--card-solid, #fff);
    border: 1px solid var(--card-line);
    border-left: 4px solid var(--indigo);
    border-radius: var(--r-md, 14px);
    box-shadow: 0 14px 40px -22px rgba(23, 28, 56, 0.25);
}

.bl-quote p {
    margin: 0 0 0.5em;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink);
    font-style: italic;
}

.bl-quote cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* ---------- Inline CTA ---------- */
.bl-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin: 40px 0;
    padding: 36px 28px;
    background: linear-gradient(135deg, var(--indigo-tint), var(--green-tint));
    border: 1px solid var(--card-line);
    border-radius: var(--r-xl, 28px);
}

.bl-cta-lead {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
}

.bl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bl-cta-btn svg { width: 20px; height: 20px; }

/* ============================================================
   BLOG INDEX (listing)
   ============================================================ */
.bl-index-hero {
    padding: 140px 0 12px;
    text-align: center;
}

.bl-index-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.6vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 14px 0 16px;
}

.bl-index-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.bl-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    padding: 48px 0 96px;
}

.bl-card {
    display: flex;
    flex-direction: column;
    background: var(--card-solid, #fff);
    border: 1px solid var(--card-line);
    border-radius: var(--r-xl, 28px);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 16px 44px -26px rgba(23, 28, 56, 0.28);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.bl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 64px -28px rgba(23, 28, 56, 0.4);
}

.bl-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--indigo-tint);
}

.bl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.bl-card:hover .bl-card-media img { transform: scale(1.04); }

.bl-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 26px 28px;
    flex: 1;
}

.bl-card-tag {
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--indigo);
}

.bl-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

.bl-card-excerpt {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

.bl-card-more {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--indigo-700);
}

.bl-card-more svg { width: 16px; height: 16px; }

/* ---------- Back-to-blog footer link inside an article ---------- */
.bl-foot-nav {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--card-line);
    display: flex;
    justify-content: center;
}

.bl-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--indigo-700);
    text-decoration: none;
}

.bl-back svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
    .bl-crumb { padding-top: 96px; }
    .bl-index-hero { padding-top: 112px; }
    .bl-body { font-size: 1.06rem; }
}
