body.homepage {
    background: black url("/arisuchan.jpg") center center / cover no-repeat fixed;
    color: #ddd;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 3rem;
    text-align: center;
}

.homepage-title {
    font-family: "Love Letter", "Lucida Sans Typewriter", "Lucida Console", monaco, monospace;
    color: #be132d;
    font-size: 8vmin;
    text-shadow: 4px 4px 0 #000;
    margin: 1rem 0 1.5rem 0;
    opacity: 1;
    max-width: 90%;
}

.about-section {
    margin: 1rem 0 3rem 0;
    max-width: 800px;
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.board-links {
    margin: 0 auto;
    display: flex;
}

.board-links a {
    flex: 1 1 280px;
    color: #777;
    font-size: 4.5vmin;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 3px 3px 0 #000;
    margin: 0.4rem 0;
    transition: color 0.4s, opacity 0.4s;
}

.board-links a:hover {
    color: #be132d;
    opacity: 0.9;
}

.sections-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.recent-section {
    background: rgba(0,0,0,0.65);
    border-radius: 8px;
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(2px);
}

/* =============== RESPONSIVE RECENT SECTION =============== */

/* Large Desktop: Wide recent sections */
@media (min-width: 1184px) {
    .recent-section {
        width: 520px;
        max-width: 520px;
        flex: 0 0 520px;
    }
    
    .post-grid {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    
    .post-grid a {
        width: fit-content;
    }
.sections-wrapper {
    gap: 2.5rem;
}
}

/* Medium screens (Tablet / Narrow Desktop): 400px version */
@media (min-width: 920px) and (max-width: 1183px) {
    .recent-section {
        width: 400px;
        max-width: 400px;
        flex: 0 0 400px;
    }
    
    .post-grid {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    
    .post-grid a {
        width: fit-content;
    }
}

/* Mobile: Full width + stacked */
@media (max-width: 919px) {
    .container {
        padding: 1.5rem;
        align-items: stretch;
    }
    
    .homepage-title {
        font-size: 10vmin;
    }
    
    .about-section {
        margin: 1rem 0 2rem 0;
    }
    
    .board-links {
        transform: none;
    }
    
    .sections-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .recent-section {
        width: 100%;
        max-width: none;
    }
    
    #tan-avatar {
        width: 90px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .post-grid {
        justify-content: center;
    }
}

.section-title {
    font-family: "Love Letter", monospace;
    color: #be132d;
    margin-bottom: .2rem;
    text-shadow: 2px 2px 4px #000;
}

.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.post-grid a {
    line-height: 0;
}

.post-grid img {
    max-width: 140px;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.post-grid a:hover img {
    transform: scale(1.06);
}

.posts-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.posts-list li {
    margin-bottom: 0.6rem;
}

.posts-list a {
    color: #aaa;
    text-decoration: none;
}

.posts-list a:hover {
    color: #be132d;
}

.stats {
    font-size: 0.95rem;
    color: #777;
    margin-top: 1.5rem;
    text-align: left;
}

.stats ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

#tan-avatar {
    position: absolute;
    bottom: 0rem;
    right: 1rem;
    width: 100px;
    height: auto;
    z-index: 10;
    transform:translateY(50%);
}

#logs-link {
    position: fixed;
    z-index: 1000;
    color: #777;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

#logs-link { bottom: 1rem; left: 1rem; }

#logs-link:hover {
    color: #be132d;
    opacity: 1;
}

.homepage-quotelink {
    display: inline-block;
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}
