/* Three Birch Farm - Modern Static Site */
:root {
    --header: #6b6560;
    --header-light: #7d7873;
    --cream: #faf9f6;
    --brown: #5c4033;
    --text: #333;
    --text-light: #666;
    --border: #e0ddd5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--header);
    color: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header .tagline {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: white;
}

/* Main content */
main {
    padding-bottom: 3rem;
}

article {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

article h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

article h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brown);
    margin: 2rem 0 1rem;
}

article h2 a {
    color: var(--brown);
    text-decoration: none;
}

article h2 a:hover {
    color: var(--header);
}

.meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--brown);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

img.alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    border-radius: 50%;
}

img.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

figcaption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Lists */
ul, ol {
    margin: 1.25rem 0 1.25rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--header);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--cream);
    border-radius: 0 6px 6px 0;
    color: var(--text-light);
    font-style: italic;
}

/* Sidebar / Aside */
aside {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

aside h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--header);
    margin-bottom: 1rem;
    font-weight: 600;
}

aside ul {
    list-style: none;
    margin: 0;
}

aside li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

aside li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

aside a {
    color: var(--text);
    font-weight: 500;
}

aside a:hover {
    color: var(--header);
}

/* Footer */
footer {
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Utilities */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 640px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    article {
        padding: 1.5rem;
        border-radius: 0;
        margin: 0 -1.5rem 1.5rem;
    }

    aside {
        border-radius: 0;
        margin: 0 -1.5rem 1.5rem;
    }

    img.alignleft {
        float: none;
        display: block;
        margin: 0 auto 1.5rem;
    }
}
