/* SmashClub blog index. Loads after home.css and uses its variables, nav, buttons, directory and footer. */

/* Current page in the navigation */

.nav-item[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Hero */

.bl-hero { background: var(--tint); padding: 56px 0 72px; text-align: center; }
.bl-hero__eyebrow { font-size: 16px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.bl-hero__title {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(36px, 5.2vw, 54px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}
.bl-hero__lead { max-width: 620px; margin: 24px auto 0; font-size: 20px; line-height: 1.55; }

/* "Start here" note under the hero text */

.blog-start { max-width: 620px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid rgba(22, 25, 29, 0.14); }
.blog-start h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.blog-start p { margin-top: 8px; font-size: 17px; }
.blog-start a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.blog-start a:hover { text-decoration-color: var(--ink); }

/* Shared by every post teaser: plain link, flat image, underlined title on hover */

.bl-latest, .bl-card, .bl-item, .bl-arch-link { text-decoration: none; color: inherit; }

.bl-latest__image, .bl-card__image, .bl-item__thumb { overflow: hidden; border-radius: 6px; background: var(--panel); }
.bl-latest__image, .bl-card__image { aspect-ratio: 16 / 9; }
.bl-item__thumb { aspect-ratio: 3 / 2; }
.bl-latest__image img, .bl-card__image img, .bl-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.bl-latest__tag, .bl-card__tag { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); }

.bl-latest:hover .bl-latest__title,
.bl-card:hover .bl-card__title,
.bl-item:hover .bl-item__title,
.bl-arch-link:hover .bl-arch-link__title {
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Latest post and case studies */

.bl-featured { padding: 72px 0 80px; }
.bl-featured__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.bl-col-title { margin-bottom: 24px; font-size: 24px; line-height: 1.2; }

.bl-latest { display: block; }
.bl-latest__body { padding-top: 20px; }
.bl-latest__title { font-size: clamp(24px, 3vw, 30px); line-height: 1.18; }
.bl-latest__excerpt { margin-top: 12px; font-size: 17px; line-height: 1.55; }
.bl-meta { display: flex; flex-wrap: wrap; margin-top: 14px; font-size: 15px; color: var(--muted); }
.bl-meta > * + *::before { content: "·"; margin: 0 8px; }

.bl-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; padding-bottom: 24px; }
.bl-item__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bl-item__title { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.bl-item__meta { font-size: 15px; line-height: 1.4; }
.bl-result { font-weight: 600; color: var(--ink); }

.bl-card__author { font-size: 15px; line-height: 1.4; color: var(--muted); }

.bl-soon { padding-top: 20px; border-top: 1px solid var(--line); }
.bl-soon__eyebrow { font-size: 15px; font-weight: 600; color: var(--ink); }
.bl-soon__text { margin-top: 6px; font-size: 16px; line-height: 1.55; }

/* More articles: heading, filters, grid */

.bl-more { padding-bottom: 88px; }
.bl-more__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 56px 0 32px;
    border-top: 1px solid var(--line);
}
.bl-more__title, .bl-archive__title { font-size: 28px; line-height: 1.2; }

.bl-filters { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.bl-pill {
    padding: 4px 0;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
}
.bl-pill:hover { color: var(--ink); }
.bl-pill.active { color: var(--ink); border-bottom-color: var(--accent); }

.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.bl-card { display: block; }
.bl-card__body { padding-top: 16px; }
.bl-card__title { font-size: 20px; line-height: 1.25; }
.bl-card__excerpt { margin: 10px 0 12px; font-size: 16px; line-height: 1.55; }
.bl-card__meta { font-size: 15px; line-height: 1.4; color: var(--muted); }
.bl-card__meta::before { content: "·"; margin: 0 8px 0 4px; }

/* Archive: older articles grouped by topic */

.bl-archive { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.bl-archive__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 36px; }
.bl-archive__count { font-size: 16px; color: var(--muted); }
.bl-archive__count strong { font-weight: 600; color: var(--ink); }
.bl-archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; align-items: start; }

.bl-topic { padding-top: 18px; border-top: 1px solid var(--ink); }
.bl-topic__head { display: flex; align-items: baseline; gap: 10px; }
.bl-topic__sigil { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-topic__name { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.bl-topic__meta { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.bl-topic__list { list-style: none; padding: 0; margin-top: 16px; }
.bl-topic__list li { border-top: 1px solid var(--line); }

.bl-arch-link { display: grid; grid-template-columns: 1.75em 1fr auto; align-items: baseline; gap: 10px; padding: 14px 0; }
.bl-arch-link__num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-arch-link__title { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.bl-arch-link__time { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Tablet and phone */

@media (max-width: 900px) {
    .bl-hero { padding: 40px 0 56px; }
    .bl-hero__lead { font-size: 18px; }
    .blog-start { margin-top: 28px; padding-top: 24px; }
    .bl-featured { padding: 48px 0 56px; }
    .bl-featured__grid { grid-template-columns: 1fr; gap: 48px; }
    .bl-more { padding-bottom: 56px; }
    .bl-more__head { padding: 40px 0 28px; }
    .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .bl-archive { margin-top: 56px; padding-top: 40px; }
    .bl-archive__head { margin-bottom: 28px; }
    .bl-archive__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
    .bl-hero__title { font-size: 34px; }
    .bl-grid { grid-template-columns: 1fr; gap: 36px; }
    .bl-item { grid-template-columns: 112px 1fr; gap: 16px; }
    .bl-more__title, .bl-archive__title { font-size: 24px; }
}
