/* Info Products — Shared Stylesheet */

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #555;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-surface: #f8f9fa;
    --color-border: #e5e7eb;
    --color-cta: #16a34a;
    --color-cta-hover: #15803d;
    --max-width: 720px;
    --max-width-wide: 960px;
}

[data-theme="dark"] {
    --color-bg: #0f172a;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-accent: #60a5fa;
    --color-accent-hover: #93bbfd;
    --color-surface: #1e293b;
    --color-border: #334155;
    --color-cta: #22c55e;
    --color-cta-hover: #4ade80;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 17px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.site-header .container {
    max-width: var(--max-width-wide);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    color: var(--color-text-muted);
}

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

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-cta);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--color-cta-hover);
}

/* Article content */
.article-content {
    padding: 3rem 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

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

.article-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

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

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

.article-content li {
    margin-bottom: 0.4rem;
}

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

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

.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--color-surface);
    border-radius: 0 6px 6px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.article-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Blog index */
.blog-index {
    padding: 3rem 0;
}

.blog-index h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.blog-intro {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.post-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--color-accent);
}

.post-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

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

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

/* Responsive */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.8rem; }
    .article-header h1 { font-size: 1.6rem; }
    body { font-size: 16px; }
}
