
/* ==========================
   BASE LAYOUT
   ========================== */

.home {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;

    background: #ffffff;
}

/* ==========================
   GLOBAL LINKS (stop blue UI bleed)
   ========================== */

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================
   CONTENT WRAPPER (README area)
   ========================== */

.home-content {
    margin-bottom: 2rem;
}

.home-content .card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 1.5rem;

    line-height: 1.6;
    color: #111827;

    /* IMPORTANT: makes it readable */
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ==========================
   POSTS SECTION
   ========================== */

.home-posts {
    margin-top: 2rem;
}

.home-posts h2 {
    margin-bottom: 1rem;
    color: #111827;
}

/* ==========================
   POST CARDS (VISUAL FIX CORE)
   ========================== */

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;

    padding: 1rem;
    margin-bottom: 1rem;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    color: #111827;

    /* THIS is what makes it readable */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

    transition: transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

/* hover = stronger separation */
.post-card:hover {
    transform: translateY(-3px);

    border-color: #2563eb;

    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* visited fix */
.post-card:visited {
    color: #111827;
}

/* ==========================
   POST TEXT
   ========================== */

.post-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
    .home {
        padding: 1rem;
    }
}