:root {
    --bg-color: #eef1f4; /* Calm grey desktop background */
    --paper-white: #ffffff;
    --text-color: #000000;
}

body {
    background-color: var(--bg-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    /* Add these two lines: */
    flex-direction: column; 
    align-items: center;
}

.paper {
    background-color: var(--paper-white);
    width: 100%;
    max-width: 800px; /* Standard letter width */
    padding: 80px 90px; /* Deep margins like a real document */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* The float effect */
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 28pt;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

header p {
    text-align: center;
    font-size: 11pt;
    margin: 0;
}

h2 {
    font-size: 14pt;
    text-transform: uppercase;
    border-bottom: 2px solid #000; /* Crisp divider line */
    padding-bottom: 5px;
    margin: 35px 0 15px 0;
}

.entry {
    margin-bottom: 20px;
}

/* This row pushes the title left and the date right automatically */
.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 11pt;
}

p {
    font-size: 10.5pt;
    margin: 0 0 8px 0;
    text-align: justify; /* Aligns text cleanly like an academic PDF */
}

/* Optimizes the page for actual printing or saving as PDF */
@media print {
    body { 
        background: none; 
        padding: 0; 
    }
    .paper { 
        box-shadow: none; 
        padding: 0; 
        max-width: 100%; 
    }
}

/* Container to align the button to the right side of the paper */
.download-container {
    width: 100%;
    max-width: 800px;
    text-align: right; 
    margin-bottom: 20px;
}

/* The Button Styling */
.download-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 10pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #444; /* Slightly lighter black on hover */
}

/* Ensures the button disappears if someone hits Cmd+P / Ctrl+P */
@media print {
    .download-container {
        display: none;
    }
}
