/* ============================================
   Homepage Overrides — Minimal Hero + Clean Feed
   Inter font · Single-column list
   ============================================ */

/* --- Inter font stack --- */
.home-template {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Hero Section --- */

.home-template .home-hero {
    padding-top: 132px;
    padding-bottom: 56px;
    min-height: auto !important;
    color: #fff;
    background-color: #0a0b0c;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.home-template .home-hero .site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* FIX: blend logo to remove transparent-PNG haze box */
.hero-logo {
    width: 64px;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    mix-blend-mode: lighten;
}

.home-template .home-hero .site-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 5.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0;
    color: #fff;
    line-height: 1;
}

.hero-divider {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    margin: 20px 0;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
}

.hero-subline {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 460px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.005em;
}

.home-hero-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 28px;
    background: #fff;
    color: #15171A;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-hero-cta:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #15171A;
}

/* Nav overlay on homepage */
.home-template.has-cover .gh-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2000;
    background-color: transparent;
    color: #fff;
}


/* --- Post Feed — single-column list --- */

.home-template .post-feed {
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 0 0 !important;
    gap: 0 !important;
    grid-gap: 0 !important;
}

/* FIX: Hide all post images on homepage for clean text-only list */
.home-template .post-card-image-link {
    display: none !important;
}

/* All cards — uniform spacing, override everything */
.home-template .post-card {
    grid-column: unset !important;
    padding: 18px 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid #eaeaea;
}

.home-template .post-card:first-child {
    padding-top: 0 !important;
}

.home-template .post-card:last-child {
    border-bottom: none;
}

/* Hover */
.home-template .post-card .post-card-content-link:hover .post-card-title {
    opacity: 0.6;
}

/* Featured/large post — force identical to all other cards */
.home-template .post-card-large {
    grid-column: unset !important;
    display: flex;
    flex-direction: column;
    padding: 18px 0 !important;
    border-bottom: 1px solid #eaeaea;
    margin: 0 !important;
    gap: 0 !important;
}

.home-template .post-card-large .post-card-content {
    grid-column: unset;
}

.home-template .post-card-large .post-card-image-link {
    display: none !important;
}

.home-template .post-card-large .post-card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.7rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: #1a1a1a;
}

.home-template .post-card-large .post-card-excerpt {
    -webkit-line-clamp: 1;
    margin-top: 2px;
    font-size: 1.4rem !important;
}

.home-template .post-card-large .post-card-meta {
    margin-top: 6px;
}

/* FIX: Override Casper's .dynamic card sizing (3rem at desktop) */
.home-template .post-card.dynamic {
    grid-column: unset !important;
}

.home-template .post-card.dynamic .post-card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.7rem !important;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

/* Kill any tag/category labels above titles */
.home-template .post-card-tags {
    display: none !important;
}

/* Reset inner content wrappers */
.home-template .post-card-content {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.home-template .post-card-content-link {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Card titles — consistent sizing */
.home-template .post-card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.7rem !important;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

/* Excerpts — 1 line, muted */
.home-template .post-card-excerpt {
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
    font-size: 1.4rem !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    color: #888;
    line-height: 1.5;
}

/* Meta */
.home-template .post-card-meta {
    margin-top: 6px;
    font-size: 1.2rem;
    color: #aaa;
}

/* Override ALL dynamic sizing on homepage */
.home-template .post-card.dynamic .post-card-excerpt {
    font-size: 1.4rem !important;
    -webkit-line-clamp: 1;
}

/* Hide "Featured" badge for cleaner look */
.home-template .post-card-featured-label {
    display: none;
}

/* --- View All link --- */

.home-view-all {
    display: flex;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0 16px;
}

.home-view-all-link {
    display: inline-block;
    padding: 10px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}

.home-view-all-link:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

/* --- Mobile --- */

@media (max-width: 767px) {
    .home-template .home-hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .home-template .home-hero .site-title {
        font-size: 3.6rem;
    }

    .hero-divider {
        width: 36px;
        margin: 16px 0;
    }

    .hero-tagline {
        font-size: 1.6rem;
    }

    .hero-subline {
        font-size: 1.3rem;
    }

    .home-template .post-feed {
        padding-top: 20px;
    }

    .home-template .post-card {
        padding: 14px 0 !important;
    }

    .home-template .post-card-large {
        padding: 14px 0 !important;
    }

    .home-template .post-card-large .post-card-title,
    .home-template .post-card-title,
    .home-template .post-card.dynamic .post-card-title {
        font-size: 1.5rem !important;
    }

    .home-template .post-card-excerpt {
        font-size: 1.3rem !important;
    }
}
