/* ============================================
   Sandeep Aulakh — Blog
   Clean, minimal, professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --text: #1a1a1a;
    --text-secondary: #555;
    --accent: #0066cc;
    --accent-light: #f0f7ff;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-subtle: #f8f9fa;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* -- Layout -- */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -- Site Header -- */
.site-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

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

.site-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

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

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95em;
}

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

/* -- Homepage -- */
.hero {
    padding: 48px 0 40px;
}

.hero h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15em;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.posts-list {
    padding: 0 0 64px;
}

.posts-list h2 {
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.post-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.post-card:first-of-type {
    border-top: 1px solid var(--border);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

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

.post-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.post-card .post-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 1em;
}

/* -- Article Page -- */
.article-header {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    text-align: center;
    color: var(--accent);
}

.article-header .post-meta {
    font-size: 0.95em;
    color: var(--text-secondary);
    text-align: center;
}

.article-body {
    padding-bottom: 64px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.article-body hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 48px 0;
}

.article-body h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 8px 0 16px;
    color: var(--text);
}

.article-body h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-body strong {
    font-weight: 600;
}

.article-body ul, .article-body ol {
    margin: 16px 0 20px 32px;
}

.article-body li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

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

.article-body img {
    max-width: 75%;
    height: auto;
    border-radius: 8px;
    margin: 24px auto 8px;
    display: block;
}

.article-body .image-caption {
    font-size: 0.78em;
    color: #666;
    text-align: center;
    width: 75%;
    margin: 2px auto 22px;
    line-height: 1.35;
}

.article-body .image-caption em {
    font-style: normal;
}

.article-body .callout {
    padding: 20px 24px;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.article-body .callout p {
    margin-bottom: 0;
    font-size: 1.05em;
}

/* -- Author Box -- */
.author-box {
    margin: 48px 0;
    padding: 24px;
    background: var(--bg-subtle);
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-box .author-info h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-box .author-info p {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

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

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

/* -- Responsive -- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6em;
    }

    .article-header h1 {
        font-size: 1.7em;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav a:first-child {
        margin-left: 0;
    }
}
