/* FONT REGISTRATION */
@font-face {
    font-family: 'ToshibaHeader';
    src: url('WebPlus_ToshibaSat_8x16.woff') format('woff');
}

@font-face {
    font-family: 'ToshibaBody';
    src: url('WebPlus_ToshibaSat_9x16.woff') format('woff');
}

:root {
    --bg-dark: #3a3a42;
    --header-beige: #a39c82;
    --text-offwhite: #e2e6e1;
    --sidebar-beige: #9e9e8d;
    --post-bg: #545461;
    --border-thickness: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* This keeps pixel art sharp */
    image-rendering: pixelated;
}

body {
    background-color: var(--bg-dark);
    font-family: 'ToshibaBody', monospace;
    font-size: 16px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* LAYOUT GRID */
.main-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--border-thickness);
    background-color: var(--bg-dark);
    border: var(--border-thickness) solid var(--bg-dark);
    max-width: 1000px;
    width: 100%;
}

/* REUSABLE BOXES */
.header-bar {
    font-family: 'ToshibaHeader', monospace;
    background-color: var(--header-beige);
    padding: 8px 10px;
    border-bottom: var(--border-thickness) solid var(--bg-dark);
    color: #1a1a1a;
}

.text-box {
    background-color: var(--text-offwhite);
    padding: 12px;
}

/* SIDEBAR STYLING */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--border-thickness);
}

.profile-section {
    height: 268px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pixel-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-text, .sidebar-link {
    font-size: 14px;
    border-bottom: var(--border-thickness) solid var(--bg-dark);
}

.quote-style {
    font-style: italic;
    color: #555;
    min-height: 60px;
}

.sidebar-link {
    text-decoration: none;
    color: black;
    transition: background 0.2s;
}

.sidebar-link:hover {
    background-color: white;
}

.sidebar-filler {
    flex-grow: 1;
    background-color: var(--sidebar-beige);
}

/* MAIN CONTENT STYLING */
.content-area {
    display: flex;
    flex-direction: column;
    gap: var(--border-thickness);
}

.main-body-text {
    min-height: 120px;
    line-height: 1.4;
}

.bottom-split-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--border-thickness);
    flex-grow: 1;
}

/* POSTS */
.posts-column {
    display: flex;
    flex-direction: column;
    gap: var(--border-thickness);
}

.post-item {
    border-bottom: var(--border-thickness) solid var(--bg-dark);
}

.post-image-placeholder {
    height: 140px;
    background-color: var(--post-bg);
}

.post-caption {
    background-color: var(--text-offwhite);
    padding: 4px 8px;
    font-size: 12px;
    border-top: var(--border-thickness) solid var(--bg-dark);
}

.post-image {
    display: block;
    margin: 0 auto;
}

.final-content-block {
    display: flex;
    flex-direction: column;
}

.fill-height {
    flex-grow: 1;
}

/* RESPONSIVE STACKING FOR SMALL SCREENS */
@media (max-width: 800px) {
    .main-container, .bottom-split-container {
        grid-template-columns: 1fr;
    }
}