        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;          /* changed to center children horizontally */
            padding: 2rem 3rem;
            text-align: center;           /* helps center text content */
        }
        .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;             /* allows 2 columns, grows/shrinks as needed */
            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: 2.5rem;
            width: 100%;
            margin-bottom: 2.5rem;
            justify-content: center;      /* centered horizontally */
        }
        .recent-section {
            background: rgba(0,0,0,0.65);
            border-radius: 8px;
            padding: 1.5rem 1.8rem;
            backdrop-filter: blur(2px);
        }
        /* Desktop: fixed width for both sections */
        @media (min-width: 1025px) {
            .recent-section {
                width: 400px;
                max-width: 400px;
                flex: 0 0 400px;
            }
            .post-grid {
                flex-direction: column;
                align-items: center;
                gap: 16px;
            }
            .post-grid a {
                width: fit-content;
            }
        }
        /* Mobile: full width, stacked */
        @media (max-width: 1024px) {
            .container {
                padding: 1.5rem;
                align-items: stretch;     /* full width on mobile */
            }
            .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: 0 0 1rem 0;
            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;             /* keep text left-aligned inside card */
        }
        .posts-list li {
            margin: 0.6rem 0;
        }
        .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: fixed;
            bottom: 1rem;
            right: 1rem;
            width: 120px;
            height: auto;
            z-index: 10;
        }
        #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;
        }
