body {
    margin: 0;
    padding: 0;

    background-color: #e5c295;
    background-image: url('/img/lauhala-loop-02b.jpg');
    background-repeat: repeat;

    /* control scale of pattern */
    background-size: 1600px auto;

}

.header {
    text-align: center;
    color: #f5e6d3;
    padding: 60px 20px 20px;
    position: relative;
    z-index: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(245, 230, 211, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.card.featured {
    border: 2px solid #d4a373;
}

.card h2 {
    margin-top: 0;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #3e2a18;
    font-weight: bold;
}

/* GRID WRAPPER */
/* STACK CONTAINER */
.tiles {
    max-width: 900px;          /* controls card width on large screens */
    margin: 40px auto;
    padding: 0 4vw;            /* fluid side padding */
}

/* EACH CARD */
.tile {
    margin-bottom: 24px;

    background: rgba(245, 235, 220, 0.77);  /* warmer + more solid */

    border-radius: 14px;
    padding: 22px;

    box-shadow: 0 8px 22px rgba(0,0,0,0.35);

    border: 1px solid rgba(0,0,0,0.06);
}


/* hover still works fine */
.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* featured still works */
.tile.featured {
    background: rgba(255, 245, 230, 0.95);
    border: 2px solid #d4a373;
}




/* TYPOGRAPHY */
.tile h2 {
    font-size: 28px;
}

.tile p {
    font-size: 16px;
    line-height: 1.5;
}


.tile .category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}


.tile a {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: #3e2a18;
}

@media (max-width: 600px) {
    .tiles {
        padding: 0 4%;
    }

    .tile {
        padding: 18px;
    }
}

.tile:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
