/* Site CSS extracted from base.njk */
:root {
    --bg: #fff;
    --text: #222;
    --primary: #222;
    --primary-dark: #000;
    --border: #eee;
    --card: #f8fafc;
    --shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="dark"] {
    --bg: #181a1b;
    --text: #e5e7eb;
    --primary: #e5e7eb;
    --primary-dark: #fff;
    --border: #222;
    --card: #23272a;
    --shadow: 0 2px 8px rgba(30,64,175,0.10);
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    max-width: 65ch;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text);
    background: var(--bg);
}
header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
nav a {
    color: var(--primary);
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
h1, h2 {
    color: var(--primary-dark);
}
h2 {
    margin-top: 2rem;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    margin-bottom: 1rem;
}
time {
    display: block;
    color: #666;
    font-size: 0.9rem;
}
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: #666;
}
.post, .recipe {
    margin-bottom: 3rem;
}
.post header, .recipe header {
    margin-bottom: 1.5rem;
}
.header-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100vw;
    overflow-x: auto;
}
.site-logo {
    height: 40px;
    width: auto;
    display: block;
}
.profile-img {
    display: block;
    margin: 1.5rem auto 1rem auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #eee;
}
.footer-social {
    margin: 1rem 0 0.5rem 0;
}
.footer-social a {
    margin-right: 0.5rem;
    color: var(--primary);
    display: inline-block;
    vertical-align: middle;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--primary-dark);
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.75rem;
    color: var(--primary-dark);
    letter-spacing: 0.01em;
}
.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    order: 2;
}
.theme-toggle {
    order: 3;
    margin-left: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.theme-toggle svg {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-toggle .sun-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(90deg);
}
.theme-toggle .moon-icon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg);
}
[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
    stroke: #fff;
}
[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
    stroke: #e5e7eb;
}
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.nav-toggle {
    order: 4;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.25rem;
}
.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    position: relative;
    border-radius: 2px;
    transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: background 0.2s, top 0.2s;
}
.hamburger::before {
    top: -8px;
}
.hamburger::after {
    top: 8px;
}
.flex-spacer {
    flex: 1 1 auto;
}
.carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
}
.carousel-item {
    flex: 0 0 auto;
    width: 180px;
    background: var(--card);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: center;
    scroll-snap-align: start;
    transition: box-shadow 0.2s;
}
.carousel-item:hover {
    box-shadow: 0 4px 16px rgba(30,64,175,0.10);
}
.thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    background: #e5e7eb;
}
.thumb-title {
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
    color: var(--primary-dark);
    font-size: 1rem;
}
.post-image {
    width: 100%;
    max-width: 700px;
    height: 260px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 1.5rem auto 1.5rem auto;
    display: block;
    background: #e5e7eb;
}
pre, code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1em;
    background: #222;
    color: #e5e7eb;
    border-radius: 0.4rem;
    padding: 0.2em 0.5em;
    overflow-x: auto;
}
[data-theme="light"] pre, [data-theme="light"] code {
    background: #f4f4f4;
    color: #222;
}
pre {
    padding: 1em;
    margin: 1.5em 0;
}
code {
    padding: 0.1em 0.3em;
}
@media (max-width: 700px) {
    .header-flex {
        flex-wrap: wrap;
        overflow-x: visible;
        overflow-y: visible;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-radius: 0.5rem;
        padding: 1rem 2rem;
        z-index: 100;
    }
    .site-nav.open {
        display: flex;
    }
    .theme-toggle {
        margin-left: auto;
    }
    .nav-toggle {
        display: block;
        margin-left: 0.5rem;
    }
} 