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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

/* Navigation styles */
.main-nav {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e4e8;
}

.main-nav a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #666;
    font-size: 1rem;
}

.main-nav a:hover {
    color: #0366d6;
}

.main-nav a.active {
    color: #0366d6;
    font-weight: 600;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

section {
    margin-bottom: 32px;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

li:before {
    content: "•";
    color: #666;
    position: absolute;
    left: 0;
}

.tech-categories {
    margin-top: 8px;
}

.tech-category {
    margin-bottom: 12px;
    line-height: 1.5;
}

.tech-category strong {
    color: #000;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
}

.coming-soon {
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

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

a:hover {
    text-decoration: underline;
}

.contact ul {
    margin-top: 8px;
}

/* Blog styles */
.blog-posts {
    margin-top: 16px;
}

.blog-post-preview {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

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

.blog-post-preview h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.blog-post-preview h3 a {
    color: #000;
    text-decoration: none;
}

.blog-post-preview h3 a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-style: italic;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-post h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.blog-post h2:first-of-type {
    margin-top: 32px;
}

.blog-post h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.blog-post h4 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post p, .blog-post div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Image styling for blog posts */
.blog-post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
}

pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

/* Code block wrapper for copy functionality */
.code-block-wrapper {
    position: relative;
    margin: 16px 0;
}

pre {
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.copy-button:active {
    background: #f3f4f6;
    transform: translateY(1px);
}

code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.85rem;
}

.back-link {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.back-link a {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

/* Mermaid diagram styling */
.mermaid {
    text-align: center;
    margin: 32px 0;
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .tech-category {
        margin-bottom: 16px;
    }

    .tech-category strong {
        display: block;
        margin-bottom: 4px;
    }
}
