/* Base Styles & Theme */

body {
    background-color: #F4EBD0;
    color: #2C2C2C;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}
/* Main Container */
.window {
    width: 100%;
    max-width: 980px;
    border: 3px solid #990011;
    background-color: #FFFDF9;
    box-shadow: 6px 6px 0px #990011;
    box-sizing: border-box;
}
.content,
.sidebar {
    box-sizing: border-box;
}
/* Header Bar */
.header {
    background-color: #990011;
    color: #F4EBD0;
    padding: 12px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 3px solid #990011;
}
/* Layout Grid */
.layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
}
/* Sidebar Navigation */
.sidebar {
    border-right: 2px dashed #990011;
    padding: 20px;
    background-color: #FAF4E8;
    align-self: stretch;
}
.nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #FFFDF9;
    color: #990011;
    border: 2px solid #990011;
    padding: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    background-color: #990011;
    color: #F4EBD0;
}
/* Main Content Area */
.content {
    padding: 25px;
    min-height: 450px;
    min-width: 0;
}
h2 {
    color: #990011;
    margin-top: 0;
    border-bottom: 1px solid #990011;
    padding-bottom: 5px;
}
p {
    line-height: 1.6;
}
/* Side-by-Side Rants Layout Box */
.rants-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 480px;
    gap: 12px;
}
.date {
    font-size: 0.6rem;
    color: #777;
    font-style: italic;
}
.tag {
    display: inline-block;
    font-size: 0.55rem;
    background: #FAF4E8;
    border: 1px solid #990011;
    padding: 1px 4px;
    margin-top: 5px;
}
/* Clickable Rant Cards */
.rant-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}
.rant-card {
    width: 100%;
    border: 1px solid #990011;
    background: #FAF4E8;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rant-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #990011;
}
/* Photo Display Area */
.rant-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #990011;
    overflow: hidden;
    border-bottom: 1px solid #990011;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rant-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Card Info Area */
.rant-details {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.view-prompt {
    font-size: 0.65rem;
    color: #990011;
    font-weight: bold;
    margin-top: auto;
    padding-top: 8px;
    text-align: right;
  
}

/* Entry content images */
/* Entry content images ONLY */
.content > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border: 2px solid #990011;
}

.content > img + p em,
.content > img + p i {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: -10px;
}
/* ======================================================== */
/* Unified Mobile Optimization (Screens under 750px width)   */
/* ======================================================== */
@media screen and (max-width: 750px) {

    body {
        padding: 5px;
    }

    .window {
        width: calc(100% - 10px);
        max-width: 100%;
    }

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px dashed #990011;
        padding: 12px;
        margin-bottom: 10px;
    }

    .content {
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    .content > img {
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 20px auto;
    }
}