/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5e8;
    min-height: 100vh;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #3d2817;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

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

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.container {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 4px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: #3d2817;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
    color: #3d2817;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #3d2817;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Article styles */
article {
    max-width: 800px;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

article a img {
    transition: opacity 0.3s ease;
}

article a:hover img {
    opacity: 0.85;
}

/* Lists */
ul,
ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    border: 1px solid #ddd;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    margin: 0 0 0.5rem 0;
    transition: opacity 0.3s ease;
}

.gallery-item a:hover img {
    opacity: 0.85;
}

.gallery-item h3 {
    font-size: 1.2rem;
    margin-top: 0;
}

.gallery-item p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 0 1rem 2rem;
    }

    .container {
        padding: 1.5rem;
    }
}