/* Nai5.dev - Clean, OpenAI-inspired style */

:root {
    --color-text: #0d0d0d;
    --color-text-secondary: #666;
    --color-bg: #fff;
    --color-accent: #10a37f;
    --color-border: #e5e5e5;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    --max-width: 680px;
}

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

html {
    font-size: 18px;
    line-height: 1.7;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Main Content */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Article */
.article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

.article p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.article a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article a:hover {
    border-bottom-color: var(--color-accent);
}

.article ul, .article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article li {
    margin-bottom: 0.5rem;
}

.article blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.article code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.article pre {
    background: #0d0d0d;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article th, .article td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.article th {
    font-weight: 600;
}

.article img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Meta info */
.article-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
    html {
        font-size: 16px;
    }
    
    .article h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}
