
body {
    font-family: sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
    color: #222;
}

/* Links */
a { color: #0000EE; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Images - Keeps Substack photos neat */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

/* Header & Typography */
h1, h2, h3 { line-height: 1.2; }
hr { border: 0; border-top: 1px solid #eee; margin: 2rem 0; }

/* Lists */
.post-list { list-style: none; padding: 0; }
.post-date { color: #666; font-family: monospace; margin-right: 10px; }

/* Navigation Menu */
nav {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

nav a {
    margin-right: 15px;
    font-weight: bold;
    color: #000; /* Makes nav links stand out from body links */
}

nav a:hover {
    color: #0000EE;
}

h1 {
    text-decoration: underline;
    text-underline-offset: 8px; /* Moves the line down slightly so it doesn't touch the letters */
    text-decoration-thickness: 1px;
}

blockquote {
    border-left: 3px solid #eee;
    margin-left: 0;
    padding-left: 20px;
    font-style: italic;
    color: #555;
}

/* Bottom Navigation */
.bottom-nav {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-btn {
    display: inline-block;
    background-color: #f4f4f4;
    color: #333 !important;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.back-btn:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.post-date {
    font-family: monospace;
    color: #666;
    margin-right: 20px;
    min-width: 90px; /* Keeps the dates aligned in a straight column */
}

/* Newsletter Form Styling */
.newsletter-form {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.newsletter-form input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    width: 250px;
}

.newsletter-form input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 9px 15px;
    cursor: pointer;
}

.newsletter-form input[type="submit"]:hover {
    background: #000;
}

img {
    /* Prevents layout shift */
    display: block;
    max-width: 100%;
    height: auto;
    
    /* Subtle fade-in */
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bottom Navigation & Contact */
.article-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-btn {
    display: inline-block;
    background-color: #f4f4f4;
    color: #333 !important;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.footer-btn:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

.secondary-text {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
    width: 100%; /* Keeps the "send a note" text above the buttons */
}

/* Minimalist inline links */
article p a {
    color: #000; /* Keep it black like the text */
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #ccc; /* A lighter underline so it's not too heavy */
}

article p a:hover {
    text-decoration-color: #000; /* Darkens when the reader is interested */
    background-color: #fff9c4; /* Optional: a very slight "highlight" effect */
}