/* =========================================
   BASE STYLES (Applies to all pages)
   ========================================= */
body {
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    display: flex;
    justify-content: space-between; /* Pushes Title left, Nav right */
    align-items: baseline;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    text-decoration: underline;
}

/* =========================================
   MAIN LAYOUT LOGIC
   ========================================= */
main {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Utility class for the home page to center vertically */
.align-center {
    justify-content: center;
}

/* Utility class for blog pages to start near the top */
.align-top {
    padding-top: 40px;
}

/* =========================================
   CONTENT BOXES
   ========================================= */
.content-box {
    border: 2px solid white;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    line-height: 1.6;
}

.content-box h2 {
    margin-top: 0;
}

/* Centers the text inside the home page box */
.text-center {
    text-align: center; 
}

/* =========================================
   BLOG SPECIFIC STYLES
   ========================================= */
.post-list {
    list-style-type: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 20px;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.post-list a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.post-list a:hover {
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding-top: 40px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

footer a:hover::before { content: "[ "; }
footer a:hover::after { content: " ]"; }