/* --- General & Typography --- */
:root {
  --primary-color: #0d9488; /* Teal */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'Lora', serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: #343a40;
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0f766e; /* Darker Teal */
}

/* --- Layout & Container --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    flex-grow: 1;
    padding: 2rem 0;
}

/* --- Header --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.75rem;
}

.site-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-family: var(--body-font);
    font-style: italic;
}

/* --- Homepage Post List (Update) --- */
.post-list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.post-list-item:first-child {
    padding-top: 0;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-list-item h2 {
    margin: 0;
}

.post-list-item h2 a {
    font-size: 1.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: #343a40;
}

.post-list-item h2 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #495057;
    line-height: 1.6;
}

/* --- Single Post Article --- */
.post {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.post h1 {
    margin-top: 0;
    font-size: 2.5rem;
}

.post .post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 2rem;
    display: block;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 2rem 0;
    color: #6c757d;
    font-style: italic;
}

/* --- Header Navigation (Update) --- */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.site-navigation li {
    margin-left: 20px;
}

.site-navigation a {
    color: #343a40;
    font-weight: 500;
    font-size: 1rem;
}

.site-navigation a:hover {
    color: #007bff;
}

/* --- About Page --- */
.about-page {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-info h2 {
    margin-top: 0;
    font-size: 2rem;
}

.about-info h3 {
    margin-top: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.interests-list {
    list-style: none;
    padding: 0;
}

.interests-list li {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* Responsive styles for About Page */
@media (max-width: 768px) {
    .about-page {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* --- Footer (Update) --- */
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links span {
    font-weight: bold;
    color: #adb5bd;
}

.social-links a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* --- Generic Page Content --- */
.page-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.page-content h1 {
    margin-top: 0;
    font-size: 2.5rem;
}

.page-content h3 {
    margin-top: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* --- Footer Legal Links --- */
.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal .copyright {
    margin: 0;
}

.footer-legal a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: #f8f9fa;
}

/* --- Update Main Footer Container --- */
.site-footer .container {
    gap: 1.5rem;
}

/* Responsive Layout Additions from CRQ-002 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

@media (max-width: 600px) {
    .container {
        padding: 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
}
