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

:root {
    --color-bg: #f5f3ef;
    --color-bg-alt: #eae7e1;
    --color-bg-card: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #1a1a1a;
    --color-border: #d4d0c8;
    --font-serif: 'Spectral', 'Georgia', 'Times New Roman', serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Site Header */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.site-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-nav a:hover {
    color: var(--color-text);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: #333333;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
}

/* Section Headers */
.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 1rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
}

.section-description {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Install Section */
.install-section {
    background: var(--color-bg-alt);
    padding: 3rem 0;
    text-align: center;
}

.install-command {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-text);
    color: #ffffff;
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.install-command code {
    color: #a0e8a0;
}

/* Posts List */
.posts {
    padding: 2rem 0;
}

.post-preview {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.post-preview h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-preview h2 a {
    text-decoration: none;
}

.post-preview h2 a:hover {
    text-decoration: underline;
}

.post-preview time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.post-preview p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Notes List */
.notes {
    padding: 2rem 0;
}

.note-preview {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.note-preview:hover {
    background-color: var(--color-bg-alt);
}

/* Single Note */
.note {
    max-width: 720px;
    padding: 3rem 0;
}

.note-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.note-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.note-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.note-content p {
    margin-bottom: 1.25rem;
}

.note-content ul, .note-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.note-content li {
    margin-bottom: 0.5rem;
}

.note-content code {
    font-family: var(--font-mono);
    background: var(--color-bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.note-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.note-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Single Post */
.post {
    max-width: 720px;
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.post-header time {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

.post-content ul, .post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    font-family: var(--font-mono);
    background: var(--color-bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.post-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Site Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 2rem;
}

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

.site-footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .site-nav {
        gap: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }
}
