/* ============================================================
   HOME.CSS
   Styles used ONLY by page-home.hbs (the "Home" page).
   Every class here is prefixed "home-" so nothing in this file
   can collide with or override assets/css/screen.css, which the
   rest of the theme (index, post, tag, author...) keeps using
   untouched.
   ============================================================ */

/* Intro heading block */
.home-intro{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 24px;
    padding: 56px 0 40px;
}
.home-intro-title{
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 480px;
    margin: 0 0 12px;
    color: #111111;
}
.home-intro-subtitle{
    font-size: 15px;
    color: #767676;
    line-height: 1.55;
    max-width: 420px;
    margin: 0;
}
.home-intro-note{
    font-size: 13px;
    color: #767676;
    white-space: nowrap;
    margin: 0;
}

/* Grid of cards */
.home-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

/* Card */
.home-card{ position: relative; }
.home-card-link{
    position: relative;
    display:block;
    border-radius: 14px;
    overflow:hidden;
    aspect-ratio: 4/2.85;
    background: #eeeeee;
}
.home-card-image{
    width:100%;
    height:100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.home-card-link:hover .home-card-image{ transform: scale(1.035); }

.home-card-scrim{
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
    pointer-events:none;
}

.home-card-badge{
    position:absolute;
    top: 14px; right: 14px;
    display:inline-flex;
    align-items:center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color:#ffffff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 11px;
    border-radius: 999px;
}
.home-card-badge i{
    width:5px; height:5px;
    border-radius:50%;
    background:#ffffff;
    display:inline-block;
}

.home-card-text{
    position:absolute;
    left: 16px; bottom: 14px; right: 16px;
    color:#ffffff;
}
.home-card-title{
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px;
    line-height:1.3;
}
.home-card-category{
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* Responsive */
@media (max-width: 800px){
    .home-grid{ grid-template-columns: 1fr; }
    .home-intro{ flex-direction:column; align-items:flex-start; gap:10px; }
    .home-card-title{
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (max-width: 560px){
    .home-intro-title{ font-size: 24px; }
}

/* "Meet our top authors" teaser (below the home grid) */
.authors-teaser{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 44px 0;
    border-top: 1px solid var(--color-border);
    text-decoration: none;
}
.authors-teaser-avatars{
    display: flex;
    align-items: center;
}
.authors-teaser-avatar{
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--color-border);
    margin-left: -18px;
    transition: transform .25s ease;
}
.authors-teaser-avatar:first-child{ margin-left: 0; }
.authors-teaser-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.authors-teaser-avatar:hover{
    transform: scale(1.15) translateY(-6px);
    z-index: 5;
}
.authors-teaser-label{
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
}
.authors-teaser:hover .authors-teaser-label{ color: var(--ghost-accent-color); }

@media (max-width: 560px){
    .authors-teaser{ padding: 32px 0; }
    .authors-teaser-avatar{ width: 48px; height: 48px; margin-left: -14px; }
    .authors-teaser-label{ font-size: 16px; }
}
