:root {
    --bg: #e5e4df;
    --window: #f4f3ef;
    --bar: #d1cfca;
    --border: #000;
    --shadow: #999;
    --hover: #c4c2bc;
    --accent: #ff6b3d;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Window */
.window {
    width: 90%;
    max-width: 1100px;
    background: var(--window);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0 var(--shadow);
}

/* Window Bar */
.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bar);
    border-bottom: 2px solid var(--border);
    padding: 8px 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

.window-controls span {
    margin-left: 10px;
    cursor: pointer;
}

/* Body Layout */
.window-body {
    display: flex;
    padding: 20px;
    gap: 25px;
}

.sidebar {
    flex: 0.3;
    border-right: 2px solid var(--border);
    padding-right: 15px;
}

.author-img {
    width: 100%;
    max-width: 180px;
    border: 2px solid var(--border);
    background: #ccc;
    image-rendering: pixelated;
}

.sidebar h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    margin: 10px 0 5px;
}

.author-role {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 12px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.tags span {
    border: 1px solid var(--border);
    padding: 3px 5px;
    font-size: 10px;
    font-family: 'Press Start 2P', cursive;
    background: var(--bar);
}

.meta {
    font-size: 11px;
    color: #444;
    margin-top: 10px;
}

/* Story Section */
.story-section {
    flex: 0.7;
    display: flex;
    flex-direction: column;
}

.story-section h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 10px;
}

.subtitle {
    font-style: italic;
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
}

.story-body {
    font-size: 13px;
    line-height: 1.7;
    color: #222;
}

.story-body p {
    margin-bottom: 15px;
}

/* Buttons */
.retro-btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bar);
    border: 2px solid var(--border);
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.retro-btn:hover {
    background: var(--hover);
    box-shadow: 2px 2px 0 var(--border);
}

.story-footer {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 20px;
}

/* Comments Section */
#comment-section {
    background: var(--window);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0 var(--shadow);
    padding: 20px;
    margin: 60px auto;
    max-width: 600px;
}

#comment-section h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    margin-bottom: 10px;
}

#comment-section input,
#comment-section textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    border: 2px solid var(--border);
    background: var(--window);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #111;
}

#comments div {
    border: 2px solid var(--border);
    background: #f8f7f3;
    box-shadow: 3px 3px 0 var(--shadow);
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

#comments strong {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
}

/* Footer */
footer {
    border-top: 2px solid var(--border);
    text-align: center;
    margin-top: 40px;
    padding: 30px 0;
    font-size: 12px;
    color: #444;
    width: 90%;
    max-width: 1100px;
}

/* Responsive */
@media (max-width: 800px) {
    .window-body {
        flex-direction: column;
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid var(--border);
        padding-bottom: 15px;
    }
}

/* Related Reads Section */
.related-reads {
    margin-top: 60px;
    background: var(--window);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0 var(--shadow);
    padding: 20px;
}

.related-reads h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    margin-bottom: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.related-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bar);
    border: 2px solid var(--border);
    padding: 10px;
    text-decoration: none;
    color: #111;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: 0.2s;
}

.related-card:hover {
    background: var(--hover);
    box-shadow: 5px 5px 0 var(--border);
}

.related-thumb {
    width: 60px;
    height: 60px;
    background: #ccc;
    background-image: url('../style/images/paw4.webp');
    background-size: cover;
    background-position: center;

    border: 2px solid var(--border);
    image-rendering: pixelated;
}
.related-thumb2 {
    width: 60px;
    height: 60px;
    background: #ccc;
    background-image: url('../style/images/charu1.webp');
    background-size: cover;
    background-position: center;

    border: 2px solid var(--border);
    image-rendering: pixelated;
}
.related-thumb3{
    width: 60px;
    height: 60px;
    background: #ccc;
    background-image: url('../style/images/paw3.webp');
    background-size: cover;
    background-position: center;

    border: 2px solid var(--border);
    image-rendering: pixelated;
}

.related-info h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    margin: 0 0 5px;
}

.related-info p {
    font-size: 11px;
    color: #333;
    margin: 0;
}


/* Article Images */
.article-img {
    text-align: center;
    margin: 25px 0;
}

.article-img img {
    width: 100%;
    max-width: 600px;
    border: 3px solid var(--border);
    box-shadow: 4px 4px 0 var(--shadow);
    background: var(--window);
    image-rendering: pixelated;
}

.img-caption {
    font-size: 10px;
    font-family: 'Press Start 2P', cursive;
    color: #444;
    margin-top: 8px;
}