:root {
    --black: #0a0a0a;
    --white: #fafafa;
    --gray: #555;
    --gray-light: #e8e8e8;
    --gray-bg: #f5f5f5;
    --accent: #ff4d00;
    --accent-dark: #e64500;
    --success: #10b981;
    --font-display: "Playfair Display", serif;
    --font-body: "DM Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.8;
    font-size: 17px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.container { max-width: 740px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
    position: sticky; top: 0;
    background: rgba(250,250,250,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid var(--gray-light); }
.logo { font-family: var(--font-body); font-size: 1.3rem; font-weight: 500; color: var(--black); display: flex; align-items: center; gap: 2px; }
.logo .separator { color: var(--accent); font-weight: 300; margin: 0 2px; }
.logo .max { color: var(--accent); font-weight: 700; }

.header-cta {
    background: var(--accent); color: var(--white);
    padding: 10px 20px; text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
    border-radius: 6px; transition: all 0.2s;
}
.header-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Article */
.article-header { padding: 48px 0 32px; }
.article-breadcrumb { font-size: 0.82rem; color: var(--gray); margin-bottom: 16px; }
.article-breadcrumb a { color: var(--accent); text-decoration: none; }

.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.article-meta-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; }
.article-meta-info { display: flex; flex-direction: column; gap: 2px; }
.article-meta-author { font-weight: 600; font-size: 0.9rem; }
.article-meta-date { font-size: 0.8rem; color: var(--gray); }

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600; line-height: 1.2;
    margin-bottom: 16px;
}

.article-header h1 em { color: var(--accent); font-style: italic; }

.article-tldr {
    background: rgba(255,77,0,0.06);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--black);
    line-height: 1.6;
}

.article-tldr strong { color: var(--accent); }

/* Article body */
.article-body { padding: 0 0 60px; }
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.55rem; font-weight: 600;
    margin: 40px 0 16px; line-height: 1.3;
}
.article-body h3 {
    font-size: 1.1rem; font-weight: 700;
    margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; color: #333; }
.article-body p strong { color: var(--black); }

.article-body blockquote {
    background: var(--gray-bg);
    border-left: 3px solid var(--accent);
    padding: 16px 20px; margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--gray);
}

.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; color: #333; }

.stat-callout {
    display: flex; align-items: center; gap: 16px;
    background: var(--gray-bg); border-radius: 10px;
    padding: 16px 20px; margin: 24px 0;
    border: 1px solid var(--gray-light);
}
.stat-callout-number {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 600;
    color: var(--accent); white-space: nowrap;
    min-width: 80px; text-align: center;
}
.stat-callout-text { font-size: 0.9rem; color: var(--gray); line-height: 1.5; }

/* CTA block */
.article-cta {
    background: var(--black); color: var(--white);
    border-radius: 14px; padding: 32px;
    text-align: center; margin: 40px 0;
}
.article-cta h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; margin: 0 0 8px; color: var(--white);
}
.article-cta p { color: #999; font-size: 0.9rem; margin-bottom: 20px; }
.article-cta a {
    display: inline-block; background: var(--accent);
    color: var(--white); padding: 14px 32px;
    text-decoration: none; font-weight: 700;
    font-size: 1rem; border-radius: 8px;
    transition: all 0.2s;
}
.article-cta a:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,77,0,0.35); }

/* Author box */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--gray-bg); border-radius: 14px;
    padding: 24px; margin: 40px 0; border: 1px solid var(--gray-light);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.author-box-content h4 { font-size: 1rem; margin-bottom: 4px; }
.author-box-content p { font-size: 0.85rem; color: var(--gray); margin-bottom: 0; line-height: 1.5; }
.author-box-content a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Related articles */
.related-articles { padding: 40px 0 60px; border-top: 1px solid var(--gray-light); }
.related-articles h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: 12px; padding: 20px;
    text-decoration: none; color: var(--black);
    transition: all 0.2s;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.related-card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; display: block; }
.related-card h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.related-card p { font-size: 0.8rem; color: var(--gray); line-height: 1.4; }

/* Footer */
footer {
    padding: 30px 0; text-align: center;
    font-size: 0.85rem; color: var(--gray);
    border-top: 1px solid var(--gray-light);
}
footer a { color: var(--gray); text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .article-header h1 { font-size: 1.6rem; }
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
    .stat-callout { flex-direction: column; text-align: center; }
}
