/* CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-image:url(../images/aged_paper.png) ;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #ccc;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: grey;
}

/* typograpghy styles */

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* layouts */
.flex-row {
    display: flex;
    gap: 40px;
    margin: 60px;
    align-items: center;
}

.flex-col {
    flex: 1;
}

.flex-col img {
    border-radius: 7px;
}

.flex-image-strip {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.featured-image {
    margin-bottom: 60px;
}

/* grid layouts */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.span-2 {
    grid-column: span 2;
}

/*text layouts  */
.quote-text {
    font-style: italic;
    text-align: center;
    margin: 30px 0;
    font-size: #555;
}


.text-container {
    max-width: 800px;
    text-align: center;
    margin: auto;
}

.article-section {
    margin-bottom: 60px;
}

/* Brand Colors & Typography */
:root {
    --accent: #d4af37;
    /* Gold for his "Veteran" status */
    --text-dark: #1a1a1a;
    --border-soft: #eaeaea;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: #fafafa;
}

.brand-statement {
    max-width: 600px;
    margin: 20px auto;
    font-style: italic;
    color: #666;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
}

/* Feature Image Styling */
.feature-image img {
    width: 100%;
    max-height: 800px;
    object-fit: contain;
    border-radius: 12px;
}

/* Post Preview Cards */
.flex-row {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.flex-row:hover {
    transform: translateY(-5px);
}

.flex-col h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.flex-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}





@media (max-width: 768px) {

    .flex-row,
    header {
        flex-direction: column;
    }

    header {
        text-align: center;
        gap: 40px;
    }

    .flex-row.reverse {
        flex-direction: column-reverse;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        place-items: center;
    }

    .span-2 {
        grid-column: span 1;
    }


}

@media (max-width: 476px) {
    nav ul {
        flex-direction: column;
    }
}

/* added by anti gravity */

/* Tag & Footer Styles */
.tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
}

footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--accent, #d4af37);
}

footer p {
    margin-bottom: 10px;
}

/* Background Images */
body.dnd-bg {
    background-image: url('../images/dice_on_border.jpg');
    background-size: cover;
    background-attachment: fixed;
}

body.comics-bg {
    background-image: url('../images/my_shelf.jpg');
    background-size: cover;
    background-attachment: fixed;
}

body.hobbies-bg {
    background-image: url('../images/john_turtle.jpg');
    background-size: cover;
    background-attachment: fixed;
}

/* Make content readable over backgrounds */
main {

    padding: 40px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Uniform Grid Images - "No-Crop" Policy */
.grid-2 img,
.grid-3 img {
    width: 100%;
    max-height: 600px;
    /* Increased for better visibility */
    object-fit: contain;
    /* Ensures no part of the image is cut off */
    background-color: #f9f9f9;
    /* Subtle background for aspect ratio gaps */
    border-radius: 12px;
    transition: transform 0.3s ease;
}



.grid-2 img:hover,
.grid-3 img:hover {
    transform: scale(1.02);
}

